Run ID 作者 问题 语言 测评结果 Time Memory 代码长度 提交时间
106137 陈奕涵 09输出成绩等级 C++ Compile Error 0 MS 0 KB 484 2025-01-15 14:26:05

Tests(0/0):


Code:

#include<cstdio> //scanf()\printf() #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"; }else if(80<=a&&a<90){ cout<<"B"; }else if(70<=a&&a<80){ cout<<"C"; }else if(60<=a&&a<70){ cout<<"D"; }else if(a<60){ cout<<"E"; } return 0; }


Run Info:

Main.cc: In function 'int main()':
Main.cc:8:5: error: 'cin' was not declared in this scope
     cin>>a;
     ^
Main.cc:10:9: error: 'cout' was not declared in this scope
         cout<<"A";
         ^
Main.cc:12:9: error: 'cout' was not declared in this scope
         cout<<"B";
         ^
Main.cc:14:9: error: 'cout' was not declared in this scope
         cout<<"C";
         ^
Main.cc:16:9: error: 'cout' was not declared in this scope
         cout<<"D";
         ^
Main.cc:18:9: error: 'cout' was not declared in this scope
         cout<<"E";
         ^