Run ID 作者 问题 语言 测评结果 Time Memory 代码长度 提交时间
69602 杨一诺 12for循环练习III C++ Compile Error 0 MS 0 KB 144 2024-04-06 08:58:19

Tests(0/0):


Code:

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


Run Info:

Main.cc: In function 'int main()':
Main.cc:5:7: error: 'n' was not declared in this scope
  cin>>n>>m;
       ^
Main.cc:5:10: error: 'm' was not declared in this scope
  cin>>n>>m;
          ^