Language: C++

#include<bits/stdc++.h>
using namespace std;
 
int main(){
ios::sync_with_stdio(0);
cin.tie(0);
cout.tie(0);
int a, b;
int grp1[] = [1,3,5,7,8,10,12];
int grp2[] = [4,6,9,11];
int grp3[] = [2];
cin >> a >> b;
if (find(grp1.begin(), grp1.end(), a) == grp1.end() && find(grp1.begin(), grp1.end(), b) == grp1.end()){
if (find(grp2.begin(), grp2.end(), a) == grp2.end() && find(grp2.begin(), grp2.end(), b){
if ((x == 2) && (y == 2)){
cout << "Yes\n";
}else{
cout << "No\n";
}
}else{
cout << "Yes\n"
}
}else{
cout << "Yes\n";
}
return 0;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:9:15: error: expected identifier before numeric constant
    9 | int grp1[] = [1,3,5,7,8,10,12];
      |               ^
a.cc:9:16: error: expected ']' before ',' token
    9 | int grp1[] = [1,3,5,7,8,10,12];
      |                ^
      |                ]
a.cc: In lambda function:
a.cc:9:16: error: expected '{' before ',' token
a.cc: In function 'int main()':
a.cc:9:14: error: initializer fails to determine size of 'grp1'
    9 | int grp1[] = [1,3,5,7,8,10,12];
      |              ^~
a.cc:9:14: error: array must be initialized with a brace-enclosed initializer
a.cc:9:17: error: expected unqualified-id before numeric constant
    9 | int grp1[] = [1,3,5,7,8,10,12];
      |                 ^
a.cc:10:15: error: expected identifier before numeric constant
   10 | int grp2[] = [4,6,9,11];
      |               ^
a.cc:10:16: error: expected ']' before ',' token
   10 | int grp2[] = [4,6,9,11];
      |                ^
      |                ]
a.cc: In lambda function:
a.cc:10:16: error: expected '{' before ',' token
a.cc: In function 'int main()':
a.cc:10:14: error: initializer fails to determine size of 'grp2'
   10 | int grp2[] = [4,6,9,11];
      |              ^~
a.cc:10:14: error: array must be initialized with a brace-enclosed initializer
a.cc:10:17: error: expected unqualified-id before numeric constant
   10 | int grp2[] = [4,6,9,11];
      |                 ^
a.cc:11:15: error: expected identifier before numeric constant
   11 | int grp3[] = [2];
      |               ^
a.cc: In lambda function:
a.cc:11:17: error: expected '{' before ';' token
   11 | int grp3[] = [2];
      |                 ^
a.cc: In function 'int main()':
a.cc:11:14: error: initializer fails to determine size of 'grp3'
   11 | int grp3[] = [2];
      |              ^~~
a.cc:11:14: error: array must be initialized with a brace-enclosed initializer
a.cc:13:15: error: request for member 'begin' in 'grp1', which is of non-class type 'int [1]'
   13 | if (find(grp1.begin(), grp1.end(), a) == grp1.end() && find(grp1.begin(), grp1.end(), b) == grp1.end()){
      |               ^~~~~
a.cc:13:29: error: request for member 'end' in 'grp1', which is of non-class type 'int [1]'
   13 | if (find(grp1.begin(), grp1.end(), a) == grp1.end() && find(grp1.begin(), grp1.end(), b) == grp1.end()){
      |                             ^~~
a.cc:13:47: error: request for member 'end' in 'grp1', which is of non-class type 'int [1]'
   13 | if (find(grp1.begin(), grp1.end(), a) == grp1.end() && find(grp1.begin(), grp1.end(), b) == grp1.end()){
      |                                               ^~~
a.cc:13:66: error: request for member 'begin' in 'grp1', which is of non-class type 'int [1]'
   13 | if (find(grp1.begin(), grp1.end(), a) == grp1.end() && find(grp1.begin(), grp1.end(), b) == grp1.end()){
      |                                                                  ^~~~~
a.cc:13:80: error: request for member 'end' in 'grp1', which is of non-class type 'int [1]'
   13 | if (find(grp1.begin(), grp1.end(), a) == grp1.end() && find(grp1.begin(), grp1.end(), b) == grp1.end()){
      |                                                                                ^~~
a.cc:13:98: error: request for member 'end' in 'grp1', which is of non-class type 'int [1]'
   13 | if (find(grp1.begin(), grp1.end(), a) == grp1.end() && find(grp1.begin(), grp1.end(), b) == grp1.end()){
      |                                                                                                  ^~~
a.cc:14:15: error: request for member 'begin' in 'grp2', which is of non-class type 'int [1]'
   14 | if (find(grp2.begin(), grp2.end(), a) == grp2.end() && find(grp2.begin(), grp2.end(), b){
      |               ^~~~~
a.cc:14:29: error: request for member 'end' in 'grp2', which is of non-class type 'int [1]'
   14 | if (find(grp2.begin(), grp2.end(), a) == grp2.end() && find(grp2.begin(), grp2.end(), b){
      |                             ^~~
a.cc:14:47: error: request for member 'end' in 'grp2', which is of non-class type 'int [1]'
   14 | if (find(grp2.begin(), grp2.end(), a) == grp2.end() && find(grp2.begin(), grp2.end(), b){
      |                                               ^~~
a.cc:14:66: error: request for member 'begin' in 'grp2', which is of non-class type 'int [1]'
   14 | if (find(grp2.begin(), grp2.end(), a) == grp2.end() && find(grp2.begin(), grp2.end(), b){
      |                                                                  ^~~~~
a.cc:14:80: error: request for member 'end' in 'grp2', which is of non-class type 'int [1]'
   14 | if (find(grp2.begin(), grp2.end(), a) == grp2.end() && find(grp2.begin(), grp2.end(), b){
      |                                                                                ^~~
a.cc:14:89: error: expected ')' before '{' token
   14 | if (find(grp2.begin(), grp2.end(), a) == grp2.end() && find(grp2.begin(), grp2.end(), b){
      |    ~                                                                                    ^
      |                                                                                         )
a.cc:23:1: error: expected primary-expression before '}' token
   23 | }else{
      | ^