Run ID | 作者 | 问题 | 语言 | 测评结果 | Time | Memory | 代码长度 | 提交时间 |
---|---|---|---|---|---|---|---|---|
109102 | 6张轶涵 | 勾股数 | C++ | Compile Error | 0 MS | 0 KB | 253 | 2025-01-26 17:38:28 |
#include<bits/stdc++.h> using namespace std; int main() { for(int i=1;i<=11;i++) { for(int j=1;j<=11;j++) { for(int k=1;k<=11;k++) { if(i<j&&i*i+j*j==k*k) { s++; } } } } cout<<s<<endl; return 0; }
Main.cc: In function 'int main()': Main.cc:13:6: error: 's' was not declared in this scope s++; ^ Main.cc:18:8: error: 's' was not declared in this scope cout<