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

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<<" ";} 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++)
              ^
Main.cc: At global scope:
Main.cc:8:2: error: expected unqualified-id before 'return'
  return 0;
  ^
Main.cc:9:1: error: expected declaration before '}' token
 }
 ^