Run ID | 作者 | 问题 | 语言 | 测评结果 | Time | Memory | 代码长度 | 提交时间 |
---|---|---|---|---|---|---|---|---|
6058 | 先明缜 | 09输出成绩等级 | C++ | Compile Error | 0 MS | 0 KB | 490 | 2024-12-28 20:25:35 |
#include<cstring> // strcpy()\strcat()\strcmp()\strlen()\memset() #include<cmath> //sqrt()\pow()\abs()\ceil()\floor()\max()\min() using namespace std; int main(){ int a; cin>>a; if(a>90){ cout<<"A"<<endl; } else if(a<=90&&a>=80){ cout<<"B"<<endl; } else if(a<=80&&a>=70){ cout<<"C"<<endl; } else if(a<=70&&a>=60){ cout<<"D"<<endl; } else{ cout<<"E"<<endl; } return 0; }
Main.cc: In function 'int main()': Main.cc:7:5: error: 'cin' was not declared in this scope cin>>a; ^ Main.cc:9:9: error: 'cout' was not declared in this scope cout<"A"<<endl; ^ Main.cc:9:20: error: 'endl' was not declared in this scope cout<<"A"<<endl; ^ Main.cc:12:9: error: 'cout' was not declared in this scope cout<<"B"<<endl; ^ Main.cc:12:20: error: 'endl' was not declared in this scope cout<<"B"<<endl; ^ Main.cc:15:9: error: 'cout' was not declared in this scope cout<<"C"<<endl; ^ Main.cc:15:20: error: 'endl' was not declared in this scope cout<<"C"<<endl; ^ Main.cc:18:9: error: 'cout' was not declared in this scope cout<<"D"<<endl; ^ Main.cc:18:20: error: 'endl' was not declared in this scope cout<<"D"<<endl; ^ Main.cc:21:9: error: 'cout' was not declared in this scope cout<<"E"<<endl; ^ Main.cc:21:20: error: 'endl' was not declared in this scope cout<<"E"<<endl; ^