| Run ID | 作者 | 问题 | 语言 | 测评结果 | Time | Memory | 代码长度 | 提交时间 |
|---|---|---|---|---|---|---|---|---|
| 153781 | 唐瑞尧 | 12for循环练习I | C++ | Compile Error | 0 MS | 0 KB | 158 | 2026-05-24 09:23:27 |
#include<bits/stdc++.h> using namespace std; int main(){ int n cin>>n; for(int i=1;i<=n;i++){ cout<<i<<endl; } return 0 }
Main.cc: In function 'int main()':
Main.cc:5:5: error: expected initializer before 'cin'
cin>>n;
^
Main.cc:6:20: error: 'n' was not declared in this scope
for(int i=1;i<=n;i++){
^
Main.cc:10:1: error: expected ';' before '}' token
}
^