| Run ID | 作者 | 问题 | 语言 | 测评结果 | Time | Memory | 代码长度 | 提交时间 |
|---|---|---|---|---|---|---|---|---|
| 141099 | 傅小轩 | 100~999的水仙花数 | C++ | Compile Error | 0 MS | 0 KB | 212 | 2025-12-21 11:31:44 |
#include<bits/stdc++.h> using namespace std; int main() { int 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:5:13: warning: right operand of comma operator has no effect [-Wunused-value]
for(i=100,i<=999;i++){
^
Main.cc:5:22: error: expected ';' before ')' token
for(i=100,i<=999;i++){
^