Run ID 作者 问题 语言 测评结果 Time Memory 代码长度 提交时间
63637 李明择 12for循环练习III C++ Compile Error 0 MS 0 KB 191 2024-01-19 14:00:16

Tests(0/0):


Code:

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


Run Info:

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