| Run ID | 作者 | 问题 | 语言 | 测评结果 | Time | Memory | 代码长度 | 提交时间 |
|---|---|---|---|---|---|---|---|---|
| 122958 | 王镜铭 | 12for循环练习I | C++ | Compile Error | 0 MS | 0 KB | 139 | 2025-06-22 12:15:34 |
#include<bits/stdc++.h> using namespace std; int main(){ int a; cin>>a; for(int b=1;b<=a:b++){ cout<<b<<endl; } return 0; }
Main.cc: In function 'int main()':
Main.cc:6:18: error: expected ';' before ':' token
for(int b=1;b<=a:b++){
^
Main.cc:6:18: error: expected primary-expression before ':' token
Main.cc:6:18: error: expected ')' before ':' token
Main.cc:6:18: error: expected primary-expression before ':' token