Run ID 作者 问题 语言 测评结果 Time Memory 代码长度 提交时间
140720 王显端 输出成绩等级II C++ Compile Error 0 MS 0 KB 254 2025-12-20 10:57:40

Tests(0/0):


Code:

#include <iostream> using namespace std; int main(){ int a; cin>>a; a/=10; switch(a){ case10: case9: cout<<"A"; break; case8: case7: cout<<"B"; break; case6: cout<<"C"; break; default: cout<<"D" } return 0; }


Run Info:

Main.cc: In function 'int main()':
Main.cc:21:1: error: expected ';' before '}' token
 }
 ^
Main.cc:8:1: warning: label 'case10' defined but not used [-Wunused-label]
 case10:
 ^
Main.cc:9:1: warning: label 'case9' defined but not used [-Wunused-label]
 case9:      
 ^
Main.cc:12:1: warning: label 'case8' defined but not used [-Wunused-label]
 case8:
 ^
Main.cc:13:1: warning: label 'case7' defined but not used [-Wunused-label]
 case7:  
 ^
Main.cc:16:1: warning: label 'case6' defined but not used [-Wunused-label]
 case6:
 ^