| Run ID | 作者 | 问题 | 语言 | 测评结果 | Time | Memory | 代码长度 | 提交时间 |
|---|---|---|---|---|---|---|---|---|
| 140727 | 王显端 | 输出成绩等级II | C++ | Compile Error | 0 MS | 0 KB | 252 | 2025-12-20 10:58:42 |
#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; }
Main.cc: In function 'int main()': Main.cc:22:2: error: expected '}' at end of input } ^ 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: ^