Run ID 作者 问题 语言 测评结果 Time Memory 代码长度 提交时间
132830 傅小轩 12for循环练习II C++ Compile Error 0 MS 0 KB 168 2025-10-12 12:22:50

Tests(0/0):


Code:

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


Run Info:

Main.cc: In function 'int main()':
Main.cc:6:14: error: expected ';' before 'k'
  for(int k=a k<=j;k++){
              ^