Run ID | 作者 | 问题 | 语言 | 测评结果 | Time | Memory | 代码长度 | 提交时间 |
---|---|---|---|---|---|---|---|---|
99880 | 陈治宸 | 09能否赴约 | C++ | Compile Error | 0 MS | 0 KB | 289 | 2024-11-30 23:42:13 |
#include<iostream> using namespace std; int main() { int a; cin>>a; if{ switch(a) { case 1: case 3: case 5: cout<<"NO"<<endl; break; }} else cout<<"YES"<<endl; return 0; }
Main.cc: In function 'int main()': Main.cc:8:6: error: expected '(' before '{' token if{ switch(a) ^ Main.cc:19:5: error: expected '}' at end of input } ^