Run ID 作者 问题 语言 测评结果 Time Memory 代码长度 提交时间
7399 赖梓乐 09输出成绩等级 C++ Compile Error 0 MS 0 KB 880 2025-04-20 22:10:07

Tests(0/0):


Code:

#include<iostream> // cin\cout\endl #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; switch(a/10){ case 9: case 10: cout<<"A"; break; case 8: cout<<"B"; break; case 7: cout<<"C" break; case 6: cout<<"D"; break; default : cout<<"E"; break; } return 0; } //我们输入一个整数a,a大于等于90则输出‘A’,大于等于80小于90则输出'B', //大于等于70小于80则输出'C',大于等于60小于70则输出'D',小于60则输出'E'


Run Info:

Main.cc: In function 'int main()':
Main.cc:20:17: error: expected ';' before 'break'
                 break;
                 ^