| Run ID | 作者 | 问题 | 语言 | 测评结果 | Time | Memory | 代码长度 | 提交时间 |
|---|---|---|---|---|---|---|---|---|
| 111674 | 李鸿文添 | 09能否赴约 | C++ | Compile Error | 0 MS | 0 KB | 747 | 2025-03-03 19:27:23 |
#include<iostream> // cin\cout\endl #include<cstdio> //scanf()\printf() #include<cstring> // strcpy()\strcat()\strcmp()\strlen()\memset() #include<cmath> //sqrt()\pow()\abs()\ceil()\floor()\max()\min() using namespace std; int main(){ int a; cin>>a; switch(a){ case 1: case 3: case 5: cout<<"NO";break; } default: cout<<"YES";break; } return 0; }
Main.cc: In function 'int main()':
Main.cc:16:5: error: case label not within a switch statement
default:
^
Main.cc:17:21: error: break statement not within loop or switch
cout<<"YES";break;
^
Main.cc: At global scope:
Main.cc:57:5: error: expected unqualified-id before 'return'
return 0;
^
Main.cc:58:1: error: expected declaration before '}' token
}
^