Run ID 作者 问题 语言 测评结果 Time Memory 代码长度 提交时间
102593 陈治宸 100~999的水仙花数 C++ Compile Error 0 MS 0 KB 199 2024-12-22 11:46:34

Tests(0/0):


Code:

#include <iostream> using namespace std; int main() { int ge,shi,bai,i; for(i=100;i<1000;i++){ bai=i/100; shi=(i/10)10; ge=i%10; if return 0; }


Run Info:

Main.cc: In function 'int main()':
Main.cc:8:19: error: expected ';' before numeric constant
         shi=(i/10)10;
                   ^
Main.cc:11:5: error: expected '(' before 'return'
     return 0;
     ^
Main.cc:12:1: error: expected '}' at end of input
 }
 ^