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:13:15: error: request for member 'begin' in 'grp1', which is of non-class type 'int [7]'
   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 [7]'
   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 [7]'
   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 [7]'
   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 [7]'
   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 [7]'
   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 [4]'
   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 [4]'
   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 [4]'
   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 [4]'
   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 [4]'
   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{
      | ^