Run ID | 作者 | 问题 | 语言 | 测评结果 | Time | Memory | 代码长度 | 提交时间 |
---|---|---|---|---|---|---|---|---|
109101 | 6张轶涵 | 勾股数 | C++ | Compile Error | 0 MS | 0 KB | 279 | 2025-01-26 17:37:48 |
#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) { cout<<i<<" "<<j<<" "<<k<<endl; } } } } cout<<s<<endl; return 0; }
Main.cc: In function 'int main()': Main.cc:18:8: error: 's' was not declared in this scope cout<