| Run ID | 作者 | 问题 | 语言 | 测评结果 | Time | Memory | 代码长度 | 提交时间 |
|---|---|---|---|---|---|---|---|---|
| 113273 | 林嘉乐 | 水仙花数II | C++ | Compile Error | 0 MS | 0 KB | 547 | 2025-03-15 16:17:34 |
#include<iostream> // cin\cout\endl #include<cstdio> //scanf()\printf() #include<cstring> // strcpy()\strcat()\strcmp()\strlen()\memset() #include<cmath> //sqrt()\pow()\abs()\ceil()\floor()\max()\min() using namespace std; int main(){ int m,n,a,b,c,x=0; cin>>m>>n; for(int i=m;i<=n;i++){ a=i%10; b=i/10%10; c=i/100%10; if((a*a*a)+(b*b*b)+(c*c*c)==i){ cout<<i<<endl; x++; } } if(x==0){ cout<<"no"<<endl } return 0; }
Main.cc: In function 'int main()':
Main.cc:21:5: error: expected ';' before '}' token
}
^