| Run ID | 作者 | 问题 | 语言 | 测评结果 | Time | Memory | 代码长度 | 提交时间 |
|---|---|---|---|---|---|---|---|---|
| 140724 | 孔声豪 | 输出成绩等级II | C++ | Compile Error | 0 MS | 0 KB | 337 | 2025-12-20 10:58:39 |
#include <iostream> using namespace std; int main() { int a; cin>>a; a/=10 switch(a){ case 10: case 9: cout<<"A"; break; case 8: case 7: cout<<"B"; case 6: cout<<"C"; default : cout<<"D"; } return 0: }
Main.cc: In function 'int main()':
Main.cc:8:4: error: expected ';' before 'switch'
switch(a){
^
Main.cc:21:13: error: expected ';' before ':' token
return 0:
^
Main.cc:21:13: error: expected primary-expression before ':' token