Run ID 作者 问题 语言 测评结果 Time Memory 代码长度 提交时间
153847 李一凡 12for循环练习II C++ Compile Error 0 MS 0 KB 189 2026-05-24 10:15:35

Tests(0/0):


Code:

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


Run Info:

Main.cc: In function 'int main()':
Main.cc:7:18: error: expected ';' before '<=' token
     for(int k=i,k<=j;k++){
                  ^
Main.cc:7:18: error: expected primary-expression before '<=' token