Run ID 作者 问题 语言 测评结果 Time Memory 代码长度 提交时间
147783 何睿函 12for循环练习I C++ Compile Error 0 MS 0 KB 150 2026-02-07 17:01:15

Tests(0/0):


Code:

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


Run Info:

Main.cc: In function 'int main()':
Main.cc:5:19: error: 'n' was not declared in this scope
     for(int i=0;i