| Run ID | 作者 | 问题 | 语言 | 测评结果 | Time | Memory | 代码长度 | 提交时间 |
|---|---|---|---|---|---|---|---|---|
| 165057 | 屠思宇 | 输出不及格学生的成绩 | C++ | Compile Error | 0 MS | 0 KB | 395 | 2026-11-09 19:15:37 |
#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<<endl; } } return 0;
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<