| Run ID | 作者 | 问题 | 语言 | 测评结果 | Time | Memory | 代码长度 | 提交时间 |
|---|---|---|---|---|---|---|---|---|
| 113271 | 林嘉乐 | 水仙花数II | C++ | Compile Error | 0 MS | 0 KB | 547 | 2025-03-15 16:16:06 |
#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++){ i%10=a; i/10%10=b; i/100%10=c; 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:11:13: error: lvalue required as left operand of assignment
i%10=a;
^
Main.cc:12:16: error: lvalue required as left operand of assignment
i/10%10=b;
^
Main.cc:13:17: error: lvalue required as left operand of assignment
i/100%10=c;
^
Main.cc:21:5: error: expected ';' before '}' token
}
^