Run ID 作者 问题 语言 测评结果 Time Memory 代码长度 提交时间
147601 丁昭臣 12for循环练习II C++ Compile Error 0 MS 0 KB 138 2026-02-06 14:17:17

Tests(0/0):


Code:

#include<iostream> using namespace std; int main(){ int n,m; cin>>n,m; for(i=n;i<=m;i++){ cout<<i<<endl; } }


Run Info:

Main.cc: In function 'int main()':
Main.cc:5:11: warning: right operand of comma operator has no effect [-Wunused-value]
   cin>>n,m;
           ^
Main.cc:6:7: error: 'i' was not declared in this scope
   for(i=n;i<=m;i++){
       ^