| Run ID | 作者 | 问题 | 语言 | 测评结果 | Time | Memory | 代码长度 | 提交时间 |
|---|---|---|---|---|---|---|---|---|
| 64630 | 周梓易 | 完美立方 | C++ | Compile Error | 0 MS | 0 KB | 357 | 2024-01-21 17:19:48 |
# include<iostream> # include<cstdio> using namespace std; int main(){ int n; cin>>n; for(int a=1;a<=n;a++){ for(int b=1;b<=a;b++){ for(int c=m;c<=a;c++){ for(int d=c;d<=a;d++){ if(a*a*a==b*b*b+c*c*c+d*d*d){ cout<<"Cube = "<<a<<", Triple("<<b<<","<<c<<","<<d<<")"<<endl; } } } } } return 0; }
Main.cc: In function 'int main()':
Main.cc:10:14: error: 'm' was not declared in this scope
for(int c=m;c<=a;c++){
^