Run ID 作者 问题 语言 测评结果 Time Memory 代码长度 提交时间
165055 屠思宇 输出不及格学生的成绩 C++ Compile Error 0 MS 0 KB 391 2026-11-09 19:14:40

Tests(0/0):


Code:

#include<bits/stdc++.h> using namespace std; int main(){ for (int i=0;i<=3;i++){ bool f=0; for (i=0;<=4;i++){ cin>>a[i]; if (a[i]<60){ f=1; } } if (f){ for (int j=0;j<4;j++){ cout<<a[j]<<" "; } } cout<<a[j]; } return 0;


Run Info:

Main.cc: In function 'int main()':
Main.cc:6:18: error: expected primary-expression before '<=' token
         for (i=0;<=4;i++){
                  ^
Main.cc:7:18: error: 'a' was not declared in this scope
             cin>>a[i];
                  ^
Main.cc:14:23: error: 'a' was not declared in this scope
                 cout<