Run ID 作者 问题 语言 测评结果 Time Memory 代码长度 提交时间
132758 何兴驰 12for循环练习I C++ Compile Error 0 MS 0 KB 113 2025-10-12 11:55:29

Tests(0/0):


Code:

#include<bits/stdc++.h> using namespace std; int main(){ int n; for(n=1;n<=n;i++){ cout<<n<<" "; } }


Run Info:

Main.cc: In function 'int main()':
Main.cc:5:15: error: 'i' was not declared in this scope
  for(n=1;n<=n;i++){
               ^