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