| Run ID | 作者 | 问题 | 语言 | 测评结果 | Time | Memory | 代码长度 | 提交时间 |
|---|---|---|---|---|---|---|---|---|
| 79151 | 揭伟琦 | 100~999的水仙花数 | C++ | Compile Error | 0 MS | 0 KB | 213 | 2024-06-30 14:32:13 |
#include<bits/stdc++.h> using namespace std; int main() { int a=100; for (a<=999){ int g=a%10; int s=a/10%10; int b=a/100%10; if(g*g*g+s*s*s+b*b*b=a){ cout <<a; } a++; } return 0; }
Main.cc: In function 'int main()':
Main.cc:7:13: error: expected ';' before ')' token
for (a<=999){
^
Main.cc:7:8: warning: statement has no effect [-Wunused-value]
for (a<=999){
^
Main.cc:17:1: error: expected primary-expression at end of input
}
^
Main.cc:17:1: error: expected ';' at end of input
Main.cc:17:1: error: expected primary-expression at end of input
Main.cc:17:1: error: expected ')' at end of input
Main.cc:17:1: error: expected statement at end of input
Main.cc:17:1: error: expected '}' at end of input