Run ID 作者 问题 语言 测评结果 Time Memory 代码长度 提交时间
4197 黄言岐 输出成绩等级II C++ Compile Error 0 MS 0 KB 522 2024-08-14 13:59:39

Tests(0/0):


Code:

using namespace std; int main(){ int a,b; cin>>a; b=a/10; switch(b){ case 9: cout<<"A"<<endl; break; case 10: cout<<"A"<<endl; break; case 8: cout<<"B"<<endl; break; case 7: cout<<"C"<<endl; break; case 6: cout<<"C"<<endl; break; default: cout<<"D"<<endl; break; } return 0; }


Run Info:

Main.cc: In function 'int main()':
Main.cc:4:5: error: 'cin' was not declared in this scope
     cin>>a;
     ^
Main.cc:8:13: error: 'cout' was not declared in this scope
             cout<"A"<<endl;
             ^
Main.cc:8:24: error: 'endl' was not declared in this scope
             cout<<"A"<<endl;
                        ^