| Run ID | 作者 | 问题 | 语言 | 测评结果 | Time | Memory | 代码长度 | 提交时间 |
|---|---|---|---|---|---|---|---|---|
| 141935 | xyc | 12for循环练习I | C++ | Compile Error | 0 MS | 0 KB | 133 | 2025-12-29 16:30:46 |
#include<iostream> using namespace std; int main(){ int n; for(int n<=100;n>=0;n--){ if(n%1==100){ cout<<n<<" "; }
Main.cc: In function 'int main()':
Main.cc:5:11: error: expected ';' before '<=' token
for(int n<=100;n>=0;n--){
^
Main.cc:5:11: error: expected primary-expression before '<=' token
Main.cc:5:18: warning: for increment expression has no effect [-Wunused-value]
for(int n<=100;n>=0;n--){
^
Main.cc:5:21: error: expected ')' before ';' token
for(int n<=100;n>=0;n--){
^
Main.cc:5:25: error: expected ';' before ')' token
for(int n<=100;n>=0;n--){
^
Main.cc:8:3: error: expected '}' at end of input
}
^