| Run ID | 作者 | 问题 | 语言 | 测评结果 | Time | Memory | 代码长度 | 提交时间 |
|---|---|---|---|---|---|---|---|---|
| 141091 | 万麟峰 | 100~999的水仙花数 | C++ | Compile Error | 0 MS | 0 KB | 202 | 2025-12-21 11:29:22 |
#include<bits/stdc++.h> using namespace std; int main(){ int a,i,A,B,C; for(i=100;i<=999;i++){ A=i%10; B=i/10%10; C=i/100; if(A*A*A+B*B*B+C*C*C=i){ cout<<i; } } return 0; }
Main.cc: In function 'int main()':
Main.cc:9:23: error: lvalue required as left operand of assignment
if(A*A*A+B*B*B+C*C*C=i){
^
Main.cc:4:6: warning: unused variable 'a' [-Wunused-variable]
int a,i,A,B,C;
^