Run ID 作者 问题 语言 测评结果 Time Memory 代码长度 提交时间
131184 何兴驰 09能否赴约 C++ Compile Error 0 MS 0 KB 310 2025-09-21 12:28:35

Tests(0/0):


Code:

#include<bits/stdc++.h> using namespace std; int main(){ int y,m; cin>>y>>m; switch (a){ case 1: case 3: case 5: cout<<"NO"; break: case 2: case 4: case 6: case 7: cout<<"YES"; return 0; }


Run Info:

Main.cc: In function 'int main()':
Main.cc:6:10: error: 'a' was not declared in this scope
  switch (a){ 
          ^
Main.cc:11:18: error: expected ';' before ':' token
             break:
                  ^
Main.cc:11:18: error: expected primary-expression before ':' token
Main.cc:19:1: error: expected '}' at end of input
 }
 ^