Run ID 作者 问题 语言 测评结果 Time Memory 代码长度 提交时间
119610 张铖睿 输出不及格学生的成绩 C++ Compile Error 0 MS 0 KB 398 2025-05-18 08:58:56

Tests(0/0):


Code:

#include<bits/stdc++.h> using namespace std; int main(){ int a[101],n; cin>>n; for(int i=1;i<n;i++) cin>>a[i]; for(int i=1;i<n;i++) { if(a[i]<60) cout<<a[i]; } for(int i=1;i<n;i++) cin>>b[i]; { if(a[i]<60) cout<<a[i]; } for(int i=1;i<n;i++) cin>>c[i]; { if(a[i]<60) cout<<a[i]; } cout<<a[i]<<" "; cout<<endl; return 0; }


Run Info:

Main.cc: In function 'int main()':
Main.cc:14:8: error: 'b' was not declared in this scope
   cin>>b[i];
        ^
Main.cc:16:8: error: 'i' was not declared in this scope
   if(a[i]<60) 
        ^
Main.cc:20:8: error: 'c' was not declared in this scope
   cin>>c[i]; 
        ^
Main.cc:22:8: error: 'i' was not declared in this scope
   if(a[i]<60) 
        ^
Main.cc:25:11: error: 'i' was not declared in this scope
   cout<