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

Tests(0/0):


Code:

#include <iostream> using namespace std; int main(){ int a; cin>>a; a/=10; switch(a){ case9: case10: 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 'case9' defined but not used [-Wunused-label]
 case9:
 ^
Main.cc:9:3: warning: label 'case10' defined but not used [-Wunused-label]
   case10:      
   ^
Main.cc:12:1: warning: label 'case8' defined but not used [-Wunused-label]
 case8:
 ^
Main.cc:13:7: warning: label 'case7' defined but not used [-Wunused-label]
       case7:  
       ^
Main.cc:16:2: warning: label 'case6' defined but not used [-Wunused-label]
  case6:
  ^