| Run ID | 作者 | 问题 | 语言 | 测评结果 | Time | Memory | 代码长度 | 提交时间 |
|---|---|---|---|---|---|---|---|---|
| 97383 | 王子毅 | 07判断成绩 | C++ | Compile Error | 0 MS | 0 KB | 192 | 2024-11-15 13:29:56 |
#include<iostream> using namespace std; int main(){ int a; cin>>a; if(a>59) { cout<<'及格'<<; else cout<<'不及格'<<; } return 0; }
Main.cc:8:15: warning: character constant too long for its type
cout<<'及格'<<;
^
Main.cc:10:15: warning: character constant too long for its type
cout<<'不及格'<<;
^
Main.cc: In function 'int main()':
Main.cc:8:25: error: expected primary-expression before ';' token
cout<<'及格'<<;
^
Main.cc:9:5: error: expected '}' before 'else'
else
^
Main.cc:10:28: error: expected primary-expression before ';' token
cout<<'不及格'<<;
^
Main.cc: At global scope:
Main.cc:12:5: error: expected unqualified-id before 'return'
return 0;
^
Main.cc:13:1: error: expected declaration before '}' token
}
^