Run ID 作者 问题 语言 测评结果 Time Memory 代码长度 提交时间
153581 周铭洋 12for循环练习I C++ Compile Error 0 MS 0 KB 170 2026-05-23 10:21:45

Tests(0/0):


Code:

#include<bits/stdc++.h> using namespace std; int main() { int n=3 for(n=1,n=3,i++) { cout<<1+2+n<<endl; } return 0; }


Run Info:

Main.cc: In function 'int main()':
Main.cc:7:5: error: expected ',' or ';' before 'for'
     for(n=1,n=3,i++)
     ^
Main.cc:6:9: warning: unused variable 'n' [-Wunused-variable]
     int n=3
         ^