Run ID 作者 问题 语言 测评结果 Time Memory 代码长度 提交时间
165058 金浩宸 输出不及格学生的成绩 C++ Compile Error 0 MS 0 KB 366 2026-11-09 19:16:16

Tests(0/0):


Code:

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


Run Info:

Main.cc: In function 'int main()':
Main.cc:7:18: error: 'a' was not declared in this scope
             cin>>a[i];
                  ^
Main.cc:9:9: error: expected ';' before '}' token
         }
         ^
Main.cc:12:23: error: 'a' was not declared in this scope
                 cout<