Run ID 作者 问题 语言 测评结果 Time Memory 代码长度 提交时间
7372 谢锦卓 输出成绩等级II C++ Compile Error 0 MS 0 KB 606 2025-04-19 20:25:40

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 n; cin>>n; if(n>=0&&n<=100) switch(n/10){ case 10: case 9:printf("A");break; case 8: case 7:printf("B");break; case 6:printf("C");break; case 5: case 4: case 3: case 2: case 1: case 0:printf("D");break; return 0; }


Run Info:

Main.cc: In function 'int main()':
Main.cc:24:1: error: expected '}' at end of input
 }
 ^