| Run ID | 作者 | 问题 | 语言 | 测评结果 | Time | Memory | 代码长度 | 提交时间 |
|---|---|---|---|---|---|---|---|---|
| 156176 | 张蔚林 | 哪几扇门是打开的 | C++ | Compile Error | 0 MS | 0 KB | 222 | 2026-06-26 20:52:46 |
#include<bits/stdc++.h> using namespace std; int main(){ int a[101]={} for(int i=1;i<=a;i++){ if(a!=1){ a++; } else{ a--; } } return 0; }
Main.cc: In function 'int main()':
Main.cc:5:5: error: expected ',' or ';' before 'for'
for(int i=1;i<=a;i++){
^
Main.cc:5:17: error: 'i' was not declared in this scope
for(int i=1;i<=a;i++){
^