Run ID 作者 问题 语言 测评结果 Time Memory 代码长度 提交时间
120547 李亭绪 输出成绩等级II C++ Compile Error 0 MS 0 KB 528 2025-05-29 20:38:34

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,b; cin>>a; a=a/10; switch(a) { case 10:cout<<"A";break; case 9:cout<<"A";break; case 8:cout<<"B";break; case 7:cout<<"B";break; case 6:cout<<"C";break; default:cout<<"B";break; { }


Run Info:

Main.cc: In function 'int main()':
Main.cc:20:1: error: expected '}' at end of input
 }
 ^
Main.cc:8:11: warning: unused variable 'b' [-Wunused-variable]
     int a,b;
           ^
Main.cc:20:1: error: expected '}' at end of input
 }
 ^