Run ID 作者 问题 语言 测评结果 Time Memory 代码长度 提交时间
2639 孙浚轩 输出满足条件的成绩 C++ Compile Error 0 MS 0 KB 312 2024-01-20 13:42:42

Tests(0/0):


Code:

#incliude<iostream> using namespace std; int main(){ int t=0; int student[50],score[50]; while(t<50){ cin>>student[t]>>score[t]; t++; } t=0; while(t<50){ if(score[t]>=80) cout<<student[t]<<" "<<score[t]<<endl; } return 0; }


Run Info:

Main.cc:1:2: error: invalid preprocessing directive #incliude
 #incliude
  ^
Main.cc: In function 'int main()':
Main.cc:7:9: error: 'cin' was not declared in this scope
         cin>>student[t]>>score[t];
         ^
Main.cc:13:13: error: 'cout' was not declared in this scope
             cout<student[t]<<" "<<score[t]<<endl;
             ^
Main.cc:13:46: error: 'endl' was not declared in this scope
             cout<<student[t]<<" "<<score[t]<<endl;
                                              ^