| Run ID | 作者 | 问题 | 语言 | 测评结果 | Time | Memory | 代码长度 | 提交时间 |
|---|---|---|---|---|---|---|---|---|
| 153876 | 刘睿霖 | 12for循环练习I | C++ | Compile Error | 0 MS | 0 KB | 163 | 2026-05-24 10:48:39 |
#include<bits/stdc++.h> using namespace std; int main() { int n; cin>>n; for(i=1;<=n;i++) { cout<<i<<endl; } return 0; }
Main.cc: In function 'int main()':
Main.cc:7:9: error: 'i' was not declared in this scope
for(i=1;<=n;i++)
^
Main.cc:7:13: error: expected primary-expression before '<=' token
for(i=1;<=n;i++)
^