criyle/codenet-compile-errors huggingface dataset:
Language: C++

#include<bits/stdc++.h>
using namespace std;

int main(){

int x,y;
cin>>x>>y;

if(x==1||x==3||x==5||x==7||x==8||x==10||x=12)
{
  if(y==1||y==5||y==3||y==7||y==10||y==12){
     cout<<"YES";
  }
  else{
    cout<<"NO"<<endl;
  }
}
else if(x==4||x==6||x==9||x==11){
  if(y==4||y==6||y==9||y==11){
    cout<<"YES"<<endl;
  }
  else{
    cout<<"NO"<<endl;;;
  }
}
else{
  cout<<"NO"<<endl;
}

return 0;}


Compiler output:
a.cc: In function 'int main()':
a.cc:9:39: error: lvalue required as left operand of assignment
    9 | if(x==1||x==3||x==5||x==7||x==8||x==10||x=12)
      |    ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~
Language: C++

#include <bits/stdc++.h>
using namespace std;

int main() {
  set<int> S;

  S.insert(1);
  S.insert(3);
  S.insert(5);
  S.insert(7);
  S.insert(8);
  S.insert(10);
  S.insert(12);
  
  set<int> B;

  B.insert(4);
  B.insert(6);
  B.insert(9);
  B.insert(11);
  
    set<int> C;

  C.insert(2);
  
  int a, b ;
  cin >> a >> b ;
  
  cout << ( (S.count(a)&&S.count(b))||
           (B.count(a)&&N.count(b))||
           (C.count(a)&&C.count(b)) ?
           "Yes" : "No"
           )
    << endl;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:30:25: error: 'N' was not declared in this scope
   30 |            (B.count(a)&&N.count(b))||
      |                         ^
Language: C++

#include <bits/stdc++.h>
using namespace std;

int main() {
  set<int> S;

  S.insert(1);
  S.insert(3);
  S.insert(5);
  S.insert(7);
  S.insert(8);
  S.insert(10);
  S.insert(12);
  
  set<int> B;

  B.insert(4);
  B.insert(6);
  B.insert(9);
  B.insert(11);
  
    set<int> C;

  C.insert(2);
  
  int a, b ;
  cin >> a >> b ;
  
  cout << ( (S.count(a)&&S.count(b))||
           (B.count(a)&&N.count(b))||
           (C.count(a)&&C.count(b)) ?
           "Yes" : "No"
           )
    << endl;

Compiler output:
a.cc: In function 'int main()':
a.cc:30:25: error: 'N' was not declared in this scope
   30 |            (B.count(a)&&N.count(b))||
      |                         ^
a.cc:34:13: error: expected '}' at end of input
   34 |     << endl;
      |             ^
a.cc:4:12: note: to match this '{'
    4 | int main() {
      |            ^
Language: C++

#include <bits/stdc++.h>
using namespace std;

int main() {
  set<int> S;

  S.insert(1);
  S.insert(3);
  S.insert(5);
  S.insert(7);
  S.insert(8);
  S.insert(10);
  S.insert(12);
  
  set<int> B;

  B.insert(4);
  B.insert(6);
  B.insert(9);
  B.insert(11);
  
    set<int> C;

  C.insert(2);
  
  int a, b ;
  cin a >> b ;
  
  cout << ( (S.count(a)&&S.count(b))||
           (B.count(a)&&N.count(b))||
           (C.count(a)&&C.count(b)) ?
           "Yes" : "No"
           )

Compiler output:
a.cc: In function 'int main()':
a.cc:27:6: error: expected ';' before 'a'
   27 |   cin a >> b ;
      |      ^~
      |      ;
a.cc:30:25: error: 'N' was not declared in this scope
   30 |            (B.count(a)&&N.count(b))||
      |                         ^
a.cc:33:13: error: expected '}' at end of input
   33 |            )
      |             ^
a.cc:4:12: note: to match this '{'
    4 | int main() {
      |            ^
Language: C

#include<stdio.h>
#include<bits/stdc++.h>
using namespace std;
int main()
{
    int x,y,z;
    cin>>x>>y;
    if(x==2 || y==2)
        cout<<"No"<<endl;
    else if(x==4 || x==6 || x==9 || x==12)
        if(y==4 || y==6 || y==9 || y==12)
            cout<<"Yes"<<endl;
        else
            cout<<"No"<<endl;
    else if(x== 3 || x==1 || x==5 || x==7 || x==8 || x==10 || x==12)
        if(y==3 || y==1 || y==5 || y==7 || y==8 || y==10 || y==12)
            cout<<"yes"<<endl;
        else
            cout<<"No"<<endl;
    else
        cout<<"No"<<endl;
    return 0;

}


Compiler output:
main.c:2:9: fatal error: bits/stdc++.h: No such file or directory
    2 | #include<bits/stdc++.h>
      |         ^~~~~~~~~~~~~~~
compilation terminated.
Language: C

int main()
{
    int x,y,z;
    cin>>x>>y;
    if(x==2 || y==2)
        cout<<"No"<<endl;
    else if(x==4 || x==6 || x==9 || x==12)
        if(y==4 || y==6 || y==9 || y==12)
            cout<<"Yes"<<endl;
        else
            cout<<"No"<<endl;
    else if(x== 3 || x==1 || x==5 || x==7 || x==8 || x==10 || x==12)
        if(y==3 || y==1 || y==5 || y==7 || y==8 || y==10 || y==12)
            cout<<"yes"<<endl;
        else
            cout<<"No"<<endl;
    else
        cout<<"No"<<endl;
    return 0;

}


Compiler output:
main.c: In function 'main':
main.c:4:5: error: 'cin' undeclared (first use in this function)
    4 |     cin>>x>>y;
      |     ^~~
main.c:4:5: note: each undeclared identifier is reported only once for each function it appears in
main.c:6:9: error: 'cout' undeclared (first use in this function)
    6 |         cout<<"No"<<endl;
      |         ^~~~
main.c:6:21: error: 'endl' undeclared (first use in this function)
    6 |         cout<<"No"<<endl;
      |                     ^~~~
Language: C++

int main()
{
    int x,y,z;
    cin>>x>>y;
    if(x==2 || y==2)
        cout<<"No"<<endl;
    else if(x==4 || x==6 || x==9 || x==12)
        if(y==4 || y==6 || y==9 || y==12)
            cout<<"Yes"<<endl;
        else
            cout<<"No"<<endl;
    else if(x== 3 || x==1 || x==5 || x==7 || x==8 || x==10 || x==12)
        if(y==3 || y==1 || y==5 || y==7 || y==8 || y==10 || y==12)
            cout<<"yes"<<endl;
        else
            cout<<"No"<<endl;
    else
        cout<<"No"<<endl;
    return 0;

}


Compiler output:
a.cc: In function 'int main()':
a.cc:4:5: error: 'cin' was not declared in this scope
    4 |     cin>>x>>y;
      |     ^~~
a.cc:6:9: error: 'cout' was not declared in this scope
    6 |         cout<<"No"<<endl;
      |         ^~~~
a.cc:6:21: error: 'endl' was not declared in this scope
    6 |         cout<<"No"<<endl;
      |                     ^~~~
a.cc:9:13: error: 'cout' was not declared in this scope
    9 |             cout<<"Yes"<<endl;
      |             ^~~~
a.cc:9:26: error: 'endl' was not declared in this scope
    9 |             cout<<"Yes"<<endl;
      |                          ^~~~
a.cc:11:13: error: 'cout' was not declared in this scope
   11 |             cout<<"No"<<endl;
      |             ^~~~
a.cc:11:25: error: 'endl' was not declared in this scope
   11 |             cout<<"No"<<endl;
      |                         ^~~~
a.cc:14:13: error: 'cout' was not declared in this scope
   14 |             cout<<"yes"<<endl;
      |             ^~~~
a.cc:14:26: error: 'endl' was not declared in this scope
   14 |             cout<<"yes"<<endl;
      |                          ^~~~
a.cc:16:13: error: 'cout' was not declared in this scope
   16 |             cout<<"No"<<endl;
      |             ^~~~
a.cc:16:25: error: 'endl' was not declared in this scope
   16 |             cout<<"No"<<endl;
      |                         ^~~~
a.cc:18:9: error: 'cout' was not declared in this scope
   18 |         cout<<"No"<<endl;
      |         ^~~~
a.cc:18:21: error: 'endl' was not declared in this scope
   18 |         cout<<"No"<<endl;
      |                     ^~~~
Language: C++

#include <bits/stdc++.h>
using namespace std;
using ll = long long;
using ld = long double;
#define INF 1e12

#define PB push_back
#define PF push_front
#define fi first
#define se second
#define pii pair<int, int>
#define pll pair<ll, ll>
#define vi vector<int>
#define vpi vector<pii>
#define vll vector<ll>
#define vpl vector<pll>
#define vvi vector<vector<int>>
#define vvl vector<vector<ll>>
#define MX(x) *max_element(all(x))
#define MN(x) *min_element(all(x))
#define ios ios_base::sync_with_stdio(0), cin.tie(0), cout.tie(0)
#define pr_d(x) cout << fixed << setprecision(15) << x << endl
#define ud(c, x) distance(c.begin(), upper_bound(all(c), x))
#define ld(c, x) distance(c.begin(), lower_bound(all(c), x))
#define rep(i, n) for (int i = 0; i < (n); ++i)
#define rep2(i, a, b) for (int i = (a); i < (b); ++i)
#define rep3(i, n) for (int i = (n - 1); i >= 0; --i)
#define rep4(i, a, b) for (int i = (a); i > (b); --i)
#define pb push_back
#define out(x) cout << x << "\n"
bool odd(int i) { return i % 2; }

#define all(v) v.begin(), v.end()
#define size(x) int(x.size())

int gcd(int a, int b) { return __gcd(a, b); }
int lcm(int a, int b) { return a * (b / gcd(a, b)); }
void Yes_No(bool f) {
  if (f)
    printf("Yes\n");
  else
    printf("No\n");
}

void deb_p(pii p) { printf("pair = %d %d\n", p.fi, p.se); }
void deb_i(int i) { printf("i = %d\n", i); }
void deb_v(vector<int> v) {
  printf("v = ");
  for (auto i : v) printf("%d ", i);
  printf("\n");
}
template <typename T>
bool chmax(T& a, const T& b) {
  if (a < b) {
    a = b;
    return true;
  }
  return false;
}
template <typename T>
bool chmin(T& a, const T& b) {
  if (a > b) {
    a = b;
    return true;
  }
  return false;
}
//-------------------ここから回答する-----------------------

int f(int x) {
  switch (x) {
    case (1):
    case (3):
    case (5):
    case (7):
    case (8):
    case (10):
    case (12):
      return 1;
    case (4):
    case (6):
    case (9):
    case (11):
      return 2;
    case (2):
      return 3
  }
}
void solve(void) {
  int x, y;
  cin >> x >> y;
  Yes_No(f(x) == f(y));
}
int main(void) { solve(); }

Compiler output:
a.cc: In function 'int f(int)':
a.cc:86:15: error: expected ';' before '}' token
   86 |       return 3
      |               ^
      |               ;
   87 |   }
      |   ~            
a.cc:88:1: warning: control reaches end of non-void function [-Wreturn-type]
   88 | }
      | ^
Language: C++

#include<bits/stdc++.h>

using namespace std;

#define debug(n) cerr << #n << ':' << n << endl;
#define dline    cerr << __LINE__ << endl;

using ll = long long;
using ull = unsigned long long;
template<class T, class U> using P = pair<T,U>;
template<class T> using Heap = priority_queue<T>;
template<class T> using heaP = priority_queue<T,vector<T>,greater<T>>;
template<class T,class U> using umap = unordered_map<T,U>;
template<class T> using uset = unordered_set<T>;

template<class T>
bool ChangeMax(T&a,const T&b){
  if(a >= b) return false;
  a = b;    return true;
}

template<class T>
bool ChangeMin(T&a,const T&b){
  if(a <= b) return false;
  a = b;    return true;  
}

template<class T, size_t N, class U>
void Fill(T (&a)[N], const U&v){
    fill((U*)a,(U*)(a+N),v);
}

template<class T>
istream& operator >> (istream&is, vector<T>&v){
  for(auto&e:v)is >> e;
  return is;
}

int Sum(const string&s){
  int n = (int)s.size();
  int sum = 0;
  for(int i = 0; i < n; ++i)sum += s[i] - '0';
  return sum;
}

struct UFT{
  int * p;
  
  UFT(int N):p(new int[N]){fill(p,p+N,-1);}  
  ~UFT(){delete[] p;}  
  int par(int a)   { if( p[a] >= 0 ){ p[a] = par( p[a] ); return p[a]; } return a;  }
  int size(int a)  { return -p[par(a)]; }
  bool	same(int a, int b) { return par(a) == par(b); }
  void unite(int a, int b){
    a = par(a);  b = par(b);
    if( a == b ) return;
    if( size(a) < size(b) )a^=b^=a^=b;
    p[a] -= size(b);
    p[b] = a;
  }
};


int main(){
  UFT uft(13);
  uft.unite(4,6);
  uft.unite(4,9);
  uft.unite(4,11);
  uft.unite(1,3);
  uft.unite(1,5);
  uft.unite(1,7);
  uft.unite(1,8);
  uft.unite(1,10);
  uft.unite(1,12);
  int a,b;cin >> a >> b;
  cout << (uft.same(a, v) ? "Yes" : "No") << endl;
  return 0;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:76:24: error: 'v' was not declared in this scope
   76 |   cout << (uft.same(a, v) ? "Yes" : "No") << endl;
      |                        ^
Language: C++

#define _GIBCXX_DEBUG
#include <bits/stdc++.h>
using namespace std;
#define rep(i, n) for (int i = 0; i < (n); ++i)
#define all(v) v.begin(), v.end()
using namespace std;
using ll = long long;
using P = pair<int, int>;


int main(void) {
  int x, y;
  cin >> x >> y;

  vector<vector<int>> v = {{1, 3, 5, 7, 8, 10 , 12},
  {4, 6, 9, 11},
  {2}};

  int xg, yg;
  rep(j, v.size()) {
    rep(i, v[j].size()) {
      if (v[j][i] == x) xg = j;
      if (v[j][i] == y) yg = j;
    }
  }

  if (xg == yg) cout << "Yes" << endl;
  else cout << "No" << endl;
  
  return 0;
}b

Compiler output:
a.cc:31:2: error: 'b' does not name a type
   31 | }b
      |  ^
Language: C

#include <stdio.h>

int main(void)
{
        int a[7]={1,3,5,7,8,10,12};b[4]={4,6,9,11},c=2;
        int s1=0,s2=0,x,y,i;
        scanf("%d%d",&x,&y);
        for(i=0;i<7;i++)
                if(x==a[i] || y==a[i])s1++;
        for(i=0;i<4;i++)
                if(x==b[i] || y==b[i])s2++;
        if(s1==2 || s2==2 || x==2 && y==2)printf("Yes");
        else printf("No");
        return 0;
}


Compiler output:
main.c: In function 'main':
main.c:5:36: error: 'b' undeclared (first use in this function)
    5 |         int a[7]={1,3,5,7,8,10,12};b[4]={4,6,9,11},c=2;
      |                                    ^
main.c:5:36: note: each undeclared identifier is reported only once for each function it appears in
main.c:5:41: error: expected expression before '{' token
    5 |         int a[7]={1,3,5,7,8,10,12};b[4]={4,6,9,11},c=2;
      |                                         ^
Language: C++

#include <bits/stdc++.h>
using namespace std;

int main() {
  int x, y;
  cin >> x >> y;
  int group1 = 0. group2 = 0, group3 = 0;
  
  
  if (x == 2) {
    group3++;
  } else if (x == 4 || x == 6 || x == 9 || x == 11) {
    group2++;
  } else {
    group1++;
  }

  if (y == 2) {
    group3++;
  } else if (y == 4 || y == 6 || y == 9 || y == 11) {
    group2++;
  } else {
    group1++;
  }
  
  if (group1 == 2 || group2 == 2 || group3 == 2) {
    cout << "Yes" << endl;
  } else {
    cout << "No" << endl;
  }
  
}

Compiler output:
a.cc: In function 'int main()':
a.cc:7:19: error: expected ',' or ';' before 'group2'
    7 |   int group1 = 0. group2 = 0, group3 = 0;
      |                   ^~~~~~
a.cc:11:5: error: 'group3' was not declared in this scope; did you mean 'group1'?
   11 |     group3++;
      |     ^~~~~~
      |     group1
a.cc:13:5: error: 'group2' was not declared in this scope; did you mean 'group1'?
   13 |     group2++;
      |     ^~~~~~
      |     group1
a.cc:19:5: error: 'group3' was not declared in this scope; did you mean 'group1'?
   19 |     group3++;
      |     ^~~~~~
      |     group1
a.cc:21:5: error: 'group2' was not declared in this scope; did you mean 'group1'?
   21 |     group2++;
      |     ^~~~~~
      |     group1
a.cc:26:22: error: 'group2' was not declared in this scope; did you mean 'group1'?
   26 |   if (group1 == 2 || group2 == 2 || group3 == 2) {
      |                      ^~~~~~
      |                      group1
a.cc:26:37: error: 'group3' was not declared in this scope; did you mean 'group1'?
   26 |   if (group1 == 2 || group2 == 2 || group3 == 2) {
      |                                     ^~~~~~
      |                                     group1
Language: C++

#include <bits/stdc++.h>
using namespace std;

int main() {
  int x,y;
  int a[] = {1, 3, 5, 7, 8, 10, 12};
  int b[] = {4, 6, 9, 11};
  int c = 2;
  
  if (x == y) {
    cout << "Yes" << endl;
    return 0;
  }
  
  int x_ = 0;
  int y_ = 0;
  for (int i=0; i<(int)a.length();i++){
    if (a[i] == x) x_ = 1;
    if (a[i] == y) y_ = 1;
  }
  for (int i=0; i<(int)b.length();i++){
    if (a[i] == x) x_ = 1;
    if (a[i] == y) y_ = 1;
  }

  if (x_ == y_) {
    cout << "Yes" << endl;
    return 0;
  }
  
  cout << "No" << endl;

}

Compiler output:
a.cc: In function 'int main()':
a.cc:17:26: error: request for member 'length' in 'a', which is of non-class type 'int [7]'
   17 |   for (int i=0; i<(int)a.length();i++){
      |                          ^~~~~~
a.cc:21:26: error: request for member 'length' in 'b', which is of non-class type 'int [4]'
   21 |   for (int i=0; i<(int)b.length();i++){
      |                          ^~~~~~
Language: C++

#include <bits/stdc++.h>
using namespace std;

int main() {
  int x,y;
  int a[] = {1, 3, 5, 7, 8, 10, 12};
  int b[] = {4, 6, 9, 11};
  int c = 2;
  
  if (x == y) {
    cout << "Yes" << endl;
    return 0;
  }
  
  int x_ = 0;
  int y_ = 0;
  for (int i=0; i<(int)a.size();i++){
    if (a[i] == x) x_ = 1;
    if (a[i] == y) y_ = 1;
  }
  for (int i=0; i<(int)b.size();i++){
    if (a[i] == x) x_ = 1;
    if (a[i] == y) y_ = 1;
  }

  if (x_ == y_) {
    cout << "Yes" << endl;
    return 0;
  }
  
  cout << "No" << endl;

}

Compiler output:
a.cc: In function 'int main()':
a.cc:17:26: error: request for member 'size' in 'a', which is of non-class type 'int [7]'
   17 |   for (int i=0; i<(int)a.size();i++){
      |                          ^~~~
a.cc:21:26: error: request for member 'size' in 'b', which is of non-class type 'int [4]'
   21 |   for (int i=0; i<(int)b.size();i++){
      |                          ^~~~
Language: C++

#include <bits/stdc++.h>
using namespace std;

int main() {
  int x,y;
  int a[] = {1, 3, 5, 7, 8, 10, 12};
  int b[] = {4, 6, 9, 11}
  int c = 2;
  
  if (x == y) {
    cout << "Yes" << endl;
    return 0;
  }
  
  int x_ = 0;
  int y_ = 0;
  for (int i=0; i<(int)a.size();i++){
    if (a[i] == x) x_ = 1;
    if (a[i] == y) y_ = 1;
  }
  for (int i=0; i<(int)b.size();i++){
    if (a[i] == x) x_ = 1;
    if (a[i] == y) y_ = 1;
  }

  if (x_ == y_) {
    cout << "Yes" << endl;
    return 0;
  }
  
  cout << "No" << endl;

}

Compiler output:
a.cc: In function 'int main()':
a.cc:8:3: error: expected ',' or ';' before 'int'
    8 |   int c = 2;
      |   ^~~
a.cc:17:26: error: request for member 'size' in 'a', which is of non-class type 'int [7]'
   17 |   for (int i=0; i<(int)a.size();i++){
      |                          ^~~~
a.cc:21:26: error: request for member 'size' in 'b', which is of non-class type 'int [4]'
   21 |   for (int i=0; i<(int)b.size();i++){
      |                          ^~~~
Language: C++

#pragma GCC optimize("O3")
#include <bits/stdc++.h>
#define ll long long
#define rep(i,n) for(ll i=0;i<(n);i++)
#define pll pair<ll,ll>
#define pq priority_queue
#define pb push_back
#define eb emplace_back
#define fi first
#define se second
#define ios ios_base::sync_with_stdio(0),cin.tie(0),cout.tie(0);
#define lb(c,x) distance(c.begin(),lower_bound(all(c),x))
#define ub(c,x) distance(c.begin(),upper_bound(all(c),x))

using namespace std;

template<class T> inline bool chmax(T& a,T b){if(a<b){a=b;return 1;}return 0;}
template<class T> inline bool chmin(T& a,T b){if(a>b){a=b;return 1;}return 0;}

const ll mod=1e9+7;

const ll INF=1e10+100;

int main()
{
    ll x,y;
    cin >> x >> y;
    ll a={1,3,5,7,8,10,12};
    ll b={4,6,9,11};
    bool ok1=false,ok2=false,ok3=false,ok4=false;
    rep(i,7){
        if(a[i]==x) ok1=true;
        if(a[i]==y) ok2=true;
    }
    rep(i,4){
        if(b[i]==x) ok3=true;
        if(b[i]==y) ok4=true;
    }
    if((ok1 && ok2) || (ok3 && ok4)) cout << "Yes" << endl;
    else cout << "No" << endl;
    return 0;
} 


Compiler output:
a.cc: In function 'int main()':
a.cc:28:8: error: scalar object 'a' requires one element in initializer
   28 |     ll a={1,3,5,7,8,10,12};
      |        ^
a.cc:29:8: error: scalar object 'b' requires one element in initializer
   29 |     ll b={4,6,9,11};
      |        ^
Language: C++

#include <bits/stdc++.h>
using namespace std;
#define ll long long

int main()
{
    int x, y;
    cin >> x >> y;
    if((x==2 and y==2)cout << "Yes";
    else if(x==2 or y==2) cout << "No";
    else if(((x<8 and x%2) or (x>7 and x%2==0)) and ((y<8 and y%2) or (y>7 and y%2==0))) cout << "Yes";
    else if((x==4 or x==6 or x==9 or x==11) and (y==4 or y==6 or y==9 or y==11)) cout << "Yes";
    else cout << "No";
}



Compiler output:
a.cc: In function 'int main()':
a.cc:9:23: error: expected ';' before 'cout'
    9 |     if((x==2 and y==2)cout << "Yes";
      |                       ^~~~
      |                       ;
a.cc:10:5: error: expected primary-expression before 'else'
   10 |     else if(x==2 or y==2) cout << "No";
      |     ^~~~
a.cc:9:37: error: expected ')' before 'else'
    9 |     if((x==2 and y==2)cout << "Yes";
      |       ~                             ^
      |                                     )
   10 |     else if(x==2 or y==2) cout << "No";
      |     ~~~~
Language: C++

#include <bits/stdc++.h>
using namespace std;

int main(){
  
  int a,b;
  cin >> a >> b;
  vector<int> c={ 0,1,3,1,2,1,2,1,1,2,1,2,1 }  
  
  if( c.at(a) == c.at(b) ){
    
    cout << "Yes" << endl;
    
  }
  
  else{
    
    cout << "No" << endl;
    
  }
  
}
  

Compiler output:
a.cc: In function 'int main()':
a.cc:10:3: error: expected ',' or ';' before 'if'
   10 |   if( c.at(a) == c.at(b) ){
      |   ^~
a.cc:16:3: error: 'else' without a previous 'if'
   16 |   else{
      |   ^~~~
Language: Java

import java.util.*;
public class Main {
	public static void main(String[] args){
		Scanner sc = new Scanner(System.in);
	    int x = sc.nextInt();    	
        int y = sc.nextInt();
        if(x==1||x==3||x==5||x==7||x==8||x==10||x==12){
      	    if(y==1||y==3||y==5||y==7||y==8||y==10||y==12){
      	        System.out.println(Yes);
      	    }else{
      	        System.out.println(No);
      	    }
      	}if(x==2||x==6||x==9||x==11){
      	    if(y==2||y==6||y==9||y==11){
      	        System.out.println(Yes);
      	    }else{
      	        System.out.println(No);
      	    }
      	}
    }
}


Compiler output:
Main.java:9: error: cannot find symbol
      	        System.out.println(Yes);
      	                           ^
  symbol:   variable Yes
  location: class Main
Main.java:11: error: cannot find symbol
      	        System.out.println(No);
      	                           ^
  symbol:   variable No
  location: class Main
Main.java:15: error: cannot find symbol
      	        System.out.println(Yes);
      	                           ^
  symbol:   variable Yes
  location: class Main
Main.java:17: error: cannot find symbol
      	        System.out.println(No);
      	                           ^
  symbol:   variable No
  location: class Main
4 errors
Language: Java

import java.util.*;
 
public class Main{
  
  public static void main(String[] args){
    
    Scanner sc = new Scanner(System.in);
    
    int x = sc.nextInt();
    int y = sc.nextInt();
    
    if(x>=1 && x<=12 && y>=1 && y<=12){
    if((x==1||x==3||x==5||x==7||x==8||x==10||x==12)&&(y==1||y==3||y==5||y==7||y==8||y==10||y==12)){
      System.out.println("yes");    
    }else if((x==4||x==6||x==9||x==11)&&(y==4||y==6||y==9||y==11)){
      System.out.println("yes");
    }else if(x==2 && y==2){
      System.out.println("yes");
    }else{
      System.out.println("no");
    }
    }else{
      System.out.println("入力値が誤っています");
    }
  }
  
}
import java.util.*;
 
public class Main{
  
  public static void main(String[] args){
    
    Scanner sc = new Scanner(System.in);
    
    int x = sc.nextInt();
    int y = sc.nextInt();
    
    if(x>=1 && x<=12 && y>=1 && y<=12){
    if((x==1||x==3||x==5||x==7||x==8||x==10||x==12)&&(y==1||y==3||y==5||y==7||y==8||y==10||y==12)){
      System.out.println("Yes");    
    }else if((x==4||x==6||x==9||x==11)&&(y==4||y==6||y==9||y==11)){
      System.out.println("Yes");
    }else if(x==2 && y==2){
      System.out.println("Yes");
    }else{
      System.out.println("No");
    }
    }else{
      System.out.println("入力値が誤っています");
    }
  }
  
}

Compiler output:
Main.java:28: error: class, interface, enum, or record expected
import java.util.*;
^
1 error
Language: C++

#include <bits/stdc++.h>
using namespace std;

int main(){
  int X[] = {0,1,3,1,2,1,2,1,1,2,1,2,1}
  int A,B;
  cin >> A >> B;
  if(X[A] == X[B]){
    cout << "YES" << endl;
  }
else{
cout << "NO" << endl;
}
}


Compiler output:
a.cc: In function 'int main()':
a.cc:6:3: error: expected ',' or ';' before 'int'
    6 |   int A,B;
      |   ^~~
a.cc:7:10: error: 'A' was not declared in this scope
    7 |   cin >> A >> B;
      |          ^
a.cc:7:15: error: 'B' was not declared in this scope
    7 |   cin >> A >> B;
      |               ^
Language: C++

#include <bits/stdc++.h>
using namespace std;

int main(){
  int X[] = {0,1,3,1,2,1,2,1,1,2,1,2,1}
  int A,B;
  cin >> A >> B;
  if(X[A] == X[B]){
    cout << "YES" << endl;
  }
else{
cout << "YES" << endl;
}
}

Compiler output:
a.cc: In function 'int main()':
a.cc:6:3: error: expected ',' or ';' before 'int'
    6 |   int A,B;
      |   ^~~
a.cc:7:10: error: 'A' was not declared in this scope
    7 |   cin >> A >> B;
      |          ^
a.cc:7:15: error: 'B' was not declared in this scope
    7 |   cin >> A >> B;
      |               ^
Language: C++

#include <bits/stdc++.h>
using namespace std;

int main(){
  bool A=false;
  bool B=false;
  bool C=true;
  int a,b;
  cin >> a >> b;
  vector<int>N(7);
  N.at(0)=1;
  N.at(1)=3;
  N.at(2)=5;
  N.at(3)=7;
  N.at(4)=8;
  N.at(5)=10;
  N.at(6)=12;
  vector<int>M(4);
  M.at(0)=4;
  M.at(1)=6;
  M.at(2)=9;
  M.at(3)=11;
  for(int i=0;i<7;i++){
    if(N.at(i)==a){
      A=true;
      C=false;
    }
    if(N.at(i)==b){
      B=true;
      C=false;
    }
  }
  for(int i=0;i<4&&C=true;i++){
    if(M.at(i)==a){
      A=true;
    }
    if(M.at(i)==b){
      A=true;
    }
  }
  if(A&&B){
    cout << "Yes" << endl;
  }
  else{
    cout << "No" << endl;
  }
}

Compiler output:
a.cc: In function 'int main()':
a.cc:33:18: error: lvalue required as left operand of assignment
   33 |   for(int i=0;i<4&&C=true;i++){
      |               ~~~^~~
Language: C

#incude <stdio.h>

#define GROUP_1_MAX 7
#define GROUP_2_MAX 4
#define GROUP_3_MAX 1

typedef struct {
  int group[GROUP_1_MAX];
} GROUP_t;

int checkNum( GROUP_t *a_pstGroup, int x, int y, int groupNum );

int main(){
  int x,y,ret;
  GROUP_t stGroup1 = { 1, 3, 5, 7, 8, 10, 12 };
  GROUP_t stGroup2 = { 4, 6, 9, 11 };
  GROUP_t stGroup3 = { 2 };
  
  scanf( "%d", x );
  scanf( "%d", y );
  
  if( ( checkNum( &stGroup1, x, y, GROUP_1_MAX ) != 0 ) &&
      ( checkNum( &stGroup2, x, y, GROUP_2_MAX ) != 0 ) &&
      ( checkNum( &stGroup3, x, y, GROUP_3_MAX ) != 0 ) ) {
    printf( "%s\n", "Yes" );
  } else {
    printf( "%s\n", "No" );
  }
  
  return 0;
}

int checkNum( GROUP_t *a_pstGroup, int x, int y, int groupNum ) {
  int i, ret, x_count, y_count;
  
  for( i = 0; i < groupNum; i++ ){
    if( x == a_pstGroup->group[i] ){
      x_count = 1;
    }
    if( y == a_pstGroup->group[i] ){
      y_count = 1;
    }
  }
  if ( ( x_count == 1 ) && ( y_count == 1 ) ) {
    ret = groupNum;
  } else {
    ret = 0;
  } 
  
  return ret;
}



Compiler output:
main.c:1:2: error: invalid preprocessing directive #incude; did you mean #include?
    1 | #incude <stdio.h>
      |  ^~~~~~
      |  include
main.c: In function 'main':
main.c:19:3: error: implicit declaration of function 'scanf' [-Wimplicit-function-declaration]
   19 |   scanf( "%d", x );
      |   ^~~~~
main.c:1:1: note: include '<stdio.h>' or provide a declaration of 'scanf'
  +++ |+#include <stdio.h>
    1 | #incude <stdio.h>
main.c:19:3: warning: incompatible implicit declaration of built-in function 'scanf' [-Wbuiltin-declaration-mismatch]
   19 |   scanf( "%d", x );
      |   ^~~~~
main.c:19:3: note: include '<stdio.h>' or provide a declaration of 'scanf'
main.c:25:5: error: implicit declaration of function 'printf' [-Wimplicit-function-declaration]
   25 |     printf( "%s\n", "Yes" );
      |     ^~~~~~
main.c:25:5: note: include '<stdio.h>' or provide a declaration of 'printf'
main.c:25:5: warning: incompatible implicit declaration of built-in function 'printf' [-Wbuiltin-declaration-mismatch]
main.c:25:5: note: include '<stdio.h>' or provide a declaration of 'printf'
main.c:27:5: warning: incompatible implicit declaration of built-in function 'printf' [-Wbuiltin-declaration-mismatch]
   27 |     printf( "%s\n", "No" );
      |     ^~~~~~
main.c:27:5: note: include '<stdio.h>' or provide a declaration of 'printf'
Language: C++

#include <bits/stdc++.h>
#include <math.h>
#define _GLIBCXX_DEBUG
using namespace std;
int main() {
  
int a[] = {0, 1, 3, 1, 2, 1, 2, 1, 1, 2, 1, 2, 1}; 
  int x, y; cin >> x >> y;
cout << (a[x] == a[y] ? "Yes" : "No") << endl;


Compiler output:
a.cc: In function 'int main()':
a.cc:9:47: error: expected '}' at end of input
    9 | cout << (a[x] == a[y] ? "Yes" : "No") << endl;
      |                                               ^
a.cc:5:12: note: to match this '{'
    5 | int main() {
      |            ^
Language: C++

#include <bits/stdc++.h>
#include <math.h>
#define _GLIBCXX_DEBUG
using namespace std;
int main() {
  
int a[] = {0, 1, 3, 1, 2, 1, 2, 1, 1, 2, 1, 2, 1}; 
cout << (a[x] == a[y] ? "Yes" : "No") << endl;

Compiler output:
a.cc: In function 'int main()':
a.cc:8:12: error: 'x' was not declared in this scope
    8 | cout << (a[x] == a[y] ? "Yes" : "No") << endl;
      |            ^
a.cc:8:20: error: 'y' was not declared in this scope
    8 | cout << (a[x] == a[y] ? "Yes" : "No") << endl;
      |                    ^
a.cc:8:47: error: expected '}' at end of input
    8 | cout << (a[x] == a[y] ? "Yes" : "No") << endl;
      |                                               ^
a.cc:5:12: note: to match this '{'
    5 | int main() {
      |            ^
Language: C++

#include <iostream>
using namespace std;

using Int = long long int;
using UInt = unsigned long long int;


int main(void) {
    int x, y;
    cin >> x >> y;
    int g_num[13] = {0,1,3,1,2,1,2,1,1,2,1,2,1}
    if (g_num[x] == g_num[y]) {
        cout << "Yes" << endl;
    } else {
        cout << "No" << endl;
    }
    return 0;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:12:5: error: expected ',' or ';' before 'if'
   12 |     if (g_num[x] == g_num[y]) {
      |     ^~
a.cc:14:7: error: 'else' without a previous 'if'
   14 |     } else {
      |       ^~~~
Language: C++

#include "bits/stdc++.h"

using namespace std;

int main() {
    vector<int> g1 {1, 3, 5, 7, 8, 10, 12};
    vector<int> g2 {4, 6, 9, 11};
    int x, y;
    cin >> x >> y;

    if (find(g1.begin(), g1.end(), x) != g1.end() && find(g1.begin(), g1.end(), y) != g1.end()) {
        cout << "Yes" << endl;
    } else if (find(g2.begin(), g2.end(), x) != g2.end() && find(g2.begin(), g2.end(), y) != g2.end()) {
        cout << "Yes" << endl;
    } else if (x == 2 && y == 2) {
        cout << "Yes" << endl;
    } else {
        cout << "No" << endl
    }

    return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:18:29: error: expected ';' before '}' token
   18 |         cout << "No" << endl
      |                             ^
      |                             ;
   19 |     }
      |     ~
Language: C++

#include<iostream>
using namespace std;
int main(){
  int c[12]={0,1,3,1,2,1,2,1,1,2,1,2,1};
  int a,b;
  cin>>a>>b;
  if(c[a]==c[b])
    cout<<"Yes"<<endl;
  else
    cout<<"No"<<endl;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:4:39: error: too many initializers for 'int [12]'
    4 |   int c[12]={0,1,3,1,2,1,2,1,1,2,1,2,1};
      |                                       ^
Language: C++

#include <bits/stdc=+.h>
using namespace std;

int main() {
  int g[]={-1,0,2,0,1,0,1,0,0,1,0,1,0};
  int a,b;
  cin >> a >> b;
  cout << ( g[a]==g[b] ? "Yes" : "no" ) << '\n';
  return 0; 
}

Compiler output:
a.cc:1:10: fatal error: bits/stdc=+.h: No such file or directory
    1 | #include <bits/stdc=+.h>
      |          ^~~~~~~~~~~~~~~
compilation terminated.
Language: C++

#include <bits/stdc++.h>
#define INF 2e9
#define MOD 1000000007
#define MOD9 998244353
#define intMAX 51000;
#define PI 3.14159265359
using namespace std;
typedef long long llong;
// typedef long double ldouble;

using Graph = vector<vector<int>>;

// int ctoi(const char c){
//   if('0' <= c && c <= '9') return (c-'0');
//   return -1;
// }

// int gcd(int a, int b){
//   int ma = max(a,b);
//   int mi = min(a,b);
//   if(mi == 0) return ma;

//   return gcd(mi, ma%mi);
// }

// llong POW(llong a, llong b){
//   if(b == 0) return 1;
//   else{
//     if(b%2 == 0) return POW(a * a % MOD, b / 2) % MOD;
//     else return a * POW(a * a % MOD, b / 2) % MOD;
//   }
// }

int main(){
  int x, y;
  cin >> x >> y;
  int xgroup = 3;
  int ygroup = 3;
  vector<int> A(7) = {1, 3, 5, 7, 8, 10, 12};
  vector<int> B(4) = {4, 6, 9, 11};
  for(int i=0; i<7; ++i){
    if(x == A[i]) xgroup = 1;
    if(y == A[i]) ygroup = 1;
  }
  for(int i=0; i<4; ++i){
    if(x == B[i]) xgroup = 2;
    if(y == B[i]) ygroup = 2;
  }
  if(xgroup == ygroup) cout << "Yes" << endl;
  else cout << "No" << endl;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:39:20: error: expected ',' or ';' before '=' token
   39 |   vector<int> A(7) = {1, 3, 5, 7, 8, 10, 12};
      |                    ^
a.cc:40:20: error: expected ',' or ';' before '=' token
   40 |   vector<int> B(4) = {4, 6, 9, 11};
      |                    ^
Language: C++

#include <bits/stdc++.h>
using namespace std;
 
 
int main() {
    int x,y;
    cin >> x >> y;
    vector<int> a={1,3,5,7,8,10,12};
    vector<int> b={4,6,9,11};
    bool flag1=false;
    bool flag2=false; 
    if(x==2&&y==2) cout << "Yes"　<< endl;
    else{
        for(int i=0;i<7;i++){
            if(a.at(i)==x) flag1=true;
            if(a.at(i)==y) flag2=true;
        }
        for(int i=0;i<4;i++){
            if(b.at(i)==x) flag1=true;
            if(b.at(i)==y)flag2=true;
        }
        if(flag1&&flag2) cout << "Yes" << endl;
        else cout << "No" << endl;
    }
        
}


Compiler output:
a.cc:12:28: error: extended character 　 is not valid in an identifier
   12 |     if(x==2&&y==2) cout << "Yes"　<< endl;
      |                            ^
a.cc: In function 'int main()':
a.cc:12:28: error: unable to find string literal operator 'operator""\U00003000' with 'const char [4]', 'long unsigned int' arguments
   12 |     if(x==2&&y==2) cout << "Yes"　<< endl;
      |                            ^~~~~~~
Language: C++

#include <bits/stdc++.h>
using namespace std;
 
 
int main() {
    int x,y;
    cin >> x >> y;
    vector<int> a={1,3,5,7,8,10,12};
    vector<int> b={4,6,9,11};
    bool flag1=false;
    bool flag2=false; 
    if(x==2&&y==2) cout << "Yes"　<< endl;
    else{
        for(int i=0;i<7;i++){
            if(a.at(i)==x) flag1=true;
            if(a.at(i)==y) flag=true;
        }
        for(int i=0;i<4;i++){
            if(b.at(i)==x) flag1=true;
            if(b.at(i)==y)flag2=true;
        }
        if(flag1&&flag2) cout << "Yes" << endl;
        else cout << "No" << endl;
    }
        
}


Compiler output:
a.cc:12:28: error: extended character 　 is not valid in an identifier
   12 |     if(x==2&&y==2) cout << "Yes"　<< endl;
      |                            ^
a.cc: In function 'int main()':
a.cc:12:28: error: unable to find string literal operator 'operator""\U00003000' with 'const char [4]', 'long unsigned int' arguments
   12 |     if(x==2&&y==2) cout << "Yes"　<< endl;
      |                            ^~~~~~~
a.cc:16:28: error: 'flag' was not declared in this scope; did you mean 'flag2'?
   16 |             if(a.at(i)==y) flag=true;
      |                            ^~~~
      |                            flag2
Language: C++

#include <bits/stdc++.h>
using namespace std;
 
 
int main() {
    int x,y;
    cin >> x >> y;
    vector<int> a={1,3,5,7,8,10,12};
    vector<int> b={4,6,9,11};
    bool flag1=false;
    bool flag2=false; 
    if(x==2&&y==2) cout << "Yes"　<< endl;
    else{
        for(int i=0;i<7;i++){
            if(a.at(i)==x) flag1=true;
            if(a.tt(i)==y) flag=true;
        }
        for(int i=0;i<4;i++){
            if(b.at(i)==x) flag1=true;
            if(b.at(i)==y)flag2=true;
        }
        if(flag1&&flag2) cout << "Yes" << endl;
        else cout << "No" << endl;
    }
        
}


Compiler output:
a.cc:12:28: error: extended character 　 is not valid in an identifier
   12 |     if(x==2&&y==2) cout << "Yes"　<< endl;
      |                            ^
a.cc: In function 'int main()':
a.cc:12:28: error: unable to find string literal operator 'operator""\U00003000' with 'const char [4]', 'long unsigned int' arguments
   12 |     if(x==2&&y==2) cout << "Yes"　<< endl;
      |                            ^~~~~~~
a.cc:16:18: error: 'class std::vector<int>' has no member named 'tt'; did you mean 'at'?
   16 |             if(a.tt(i)==y) flag=true;
      |                  ^~
      |                  at
a.cc:16:28: error: 'flag' was not declared in this scope; did you mean 'flag2'?
   16 |             if(a.tt(i)==y) flag=true;
      |                            ^~~~
      |                            flag2
Language: C++

#include <bits/stdc++.h>
using namespace std;
 
 
int main() {
    int x,y;
    cin >> x >> y;
    vector<int> a={1,3,5,7,8,10,12};
    vector<int> b=[4,6,9,11];
    bool flag1=false;
    bool flag2=false; 
    if(x==2&&y==2) cout << "Yes"　<< endl;
    else{
        for(int i=0;i<7;i++){
            if(a.at(i)==x) flag1=true;
            if(a.tt(i)==y) flag=true;
        }
        for(int i=0;i<4;i++){
            if(b.at(i)==x) flag1=true;
            if(b.at(i)==y)flag2=true;
        }
        if(flag1&&flag2) cout << "Yes" << endl;
        else cout << "No" << endl;
    }
        
}


Compiler output:
a.cc:12:28: error: extended character 　 is not valid in an identifier
   12 |     if(x==2&&y==2) cout << "Yes"　<< endl;
      |                            ^
a.cc: In function 'int main()':
a.cc:9:20: error: expected identifier before numeric constant
    9 |     vector<int> b=[4,6,9,11];
      |                    ^
a.cc:9:21: error: expected ']' before ',' token
    9 |     vector<int> b=[4,6,9,11];
      |                     ^
      |                     ]
a.cc: In lambda function:
a.cc:9:21: error: expected '{' before ',' token
a.cc: In function 'int main()':
a.cc:9:19: error: conversion from 'main()::<lambda()>' to non-scalar type 'std::vector<int>' requested
    9 |     vector<int> b=[4,6,9,11];
      |                   ^~
a.cc:9:22: error: expected unqualified-id before numeric constant
    9 |     vector<int> b=[4,6,9,11];
      |                      ^
a.cc:12:28: error: unable to find string literal operator 'operator""\U00003000' with 'const char [4]', 'long unsigned int' arguments
   12 |     if(x==2&&y==2) cout << "Yes"　<< endl;
      |                            ^~~~~~~
a.cc:16:18: error: 'class std::vector<int>' has no member named 'tt'; did you mean 'at'?
   16 |             if(a.tt(i)==y) flag=true;
      |                  ^~
      |                  at
a.cc:16:28: error: 'flag' was not declared in this scope; did you mean 'flag2'?
   16 |             if(a.tt(i)==y) flag=true;
      |                            ^~~~
      |                            flag2
Language: C++

 #include <bits/stdc++.h>
using namespace std;

int main() {
int a[] = {0, 1, 3, 1, 2, 1, 2, 1, 1, 2, 1, 2, 1}
  int x, y;
  cin >> x >> y;
  cout <<(a[x] == a[y] ? "Yes" : "No") << endl;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:6:3: error: expected ',' or ';' before 'int'
    6 |   int x, y;
      |   ^~~
a.cc:7:10: error: 'x' was not declared in this scope
    7 |   cin >> x >> y;
      |          ^
a.cc:7:15: error: 'y' was not declared in this scope
    7 |   cin >> x >> y;
      |               ^
Language: C++

#include <bits/stdc++.h>
using namespace std;
const int64_t INF=999999999;

int main() {
   int x,y;
   cin>>x>>y;
   vector<int>t={1,3,5,7,8,12};
   vector<int>k={4,6,9,11};
   int h=2;
   if(x==2&&y==2){cout<<"Yes"<<endl;return 0;}

   bool xx=false;bool yy=false;
   for(int a:t){
      if(x==a){xx=true;}
      if(y==a){yy=true;}
   }
   if(xx&&yy){cout<<"Yes"<<endl;return 0;}
  
   xx=false; yy=false;
   for(int c:k){
      if(x==a){xx=true;}
      if(y==a){yy=true;}
   }
   if(xx&&yy){cout<<"Yes"<<endl;return 0;}

   cout<<"No"<<endl;
return 0;}

Compiler output:
a.cc: In function 'int main()':
a.cc:22:13: error: 'a' was not declared in this scope
   22 |       if(x==a){xx=true;}
      |             ^
a.cc:23:13: error: 'a' was not declared in this scope
   23 |       if(y==a){yy=true;}
      |             ^
Language: Java

import java.util.*;

public Main {
  public static void main(String args[]) {
  	Scanner sc = new Scanner(System.in);
    int[] group = new int[12];
    group[0] = 0;
    group[1] = 2;
    group[2] = 0;
    group[3] = 1;
    group[4] = 0;
    group[5] = 1;
    group[6] = 0;
    group[7] = 0;
    group[8] = 1;
    group[9] = 0;
    group[10] = 1;
    group[11] = 0;
    
    int x = sc.nextInt();
    int y = sc.nextInt();
    
    if (group[x - 1] == group[y -1]) {
      System.out.println("Yes");
    } else {
      System.out.println("No");
    }
  }
}

Compiler output:
Main.java:3: error: class, interface, enum, or record expected
public Main {
       ^
Main.java:4: error: unnamed classes are a preview feature and are disabled by default.
  public static void main(String args[]) {
                ^
  (use --enable-preview to enable unnamed classes)
Main.java:29: error: class, interface, enum, or record expected
}
^
3 errors
Language: C++

#include <bits/stdc++.h>
using namespace std;

int main() {
    set<int> A = {1,3,5,7,8,10,12};
    set<int> B = {4,6,9,11};
    set<int> C = {2};

    int x,y; cin >> x >> y;
    if((A.count(x) && A.count(y) || B.count(x) && B.count(y) || C.count(x) && C.count(y)){
        cout << "Yes";
    }else{
        cout << "No";
    }
    return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:10:90: error: expected ';' before '{' token
   10 |     if((A.count(x) && A.count(y) || B.count(x) && B.count(y) || C.count(x) && C.count(y)){
      |                                                                                          ^
      |                                                                                          ;
a.cc:12:6: error: expected primary-expression before 'else'
   12 |     }else{
      |      ^~~~
a.cc:12:6: error: expected ')' before 'else'
   12 |     }else{
      |      ^~~~
      |      )
a.cc:10:7: note: to match this '('
   10 |     if((A.count(x) && A.count(y) || B.count(x) && B.count(y) || C.count(x) && C.count(y)){
      |       ^
Language: C++

#include <bits/stdc++.h>
using namespace std;

int main() {
    set<int> A = {1,3,5,7,8,10,12};
    set<int> B = {4,6,9,11};
    set<int> C = {2};
    
    int x,y; cin >> x >> y;
    if((A.count(x) && A.count(y) || B.count(x) && B.count(y) || C.count(x) && C.count(y)){
        cout << "Yes";
    }else{
        cout << "No;
    }
    return 0;
}

Compiler output:
a.cc:13:17: warning: missing terminating " character
   13 |         cout << "No;
      |                 ^
a.cc:13:17: error: missing terminating " character
   13 |         cout << "No;
      |                 ^~~~
a.cc: In function 'int main()':
a.cc:10:90: error: expected ';' before '{' token
   10 |     if((A.count(x) && A.count(y) || B.count(x) && B.count(y) || C.count(x) && C.count(y)){
      |                                                                                          ^
      |                                                                                          ;
a.cc:12:6: error: expected primary-expression before 'else'
   12 |     }else{
      |      ^~~~
a.cc:12:6: error: expected ')' before 'else'
   12 |     }else{
      |      ^~~~
      |      )
a.cc:10:7: note: to match this '('
   10 |     if((A.count(x) && A.count(y) || B.count(x) && B.count(y) || C.count(x) && C.count(y)){
      |       ^
Language: C++

#include <bits/stdc++.h>
using namespace std;

int main(){
  vector<int> a={0,1,3,1,2,1,2,1,1,2,1,2,1}
  int x,y;
  cin >> x >> y;
  if(a.at(x)==a.at(y)){
    cout << "Yes" << endl;
  }
  else{
    cout << "No" << endl;
  }
}

Compiler output:
a.cc: In function 'int main()':
a.cc:6:3: error: expected ',' or ';' before 'int'
    6 |   int x,y;
      |   ^~~
a.cc:7:10: error: 'x' was not declared in this scope
    7 |   cin >> x >> y;
      |          ^
a.cc:7:15: error: 'y' was not declared in this scope
    7 |   cin >> x >> y;
      |               ^
Language: C++

#include<bits/stdc++.h>
using namespace std;

int main(){
  int group[12]=[1,2,1,3,1,3,1,1,3,1,3,1];
  int a,b;
  cin>>a>>b;
  if(group[a-1]==group[b-1]){
    cout<<"Yes"<<endl;
  }else{
    cout<<"No"<<endl;
  }
}

Compiler output:
a.cc: In function 'int main()':
a.cc:5:18: error: expected identifier before numeric constant
    5 |   int group[12]=[1,2,1,3,1,3,1,1,3,1,3,1];
      |                  ^
a.cc:5:19: error: expected ']' before ',' token
    5 |   int group[12]=[1,2,1,3,1,3,1,1,3,1,3,1];
      |                   ^
      |                   ]
a.cc: In lambda function:
a.cc:5:19: error: expected '{' before ',' token
a.cc: In function 'int main()':
a.cc:5:17: error: array must be initialized with a brace-enclosed initializer
    5 |   int group[12]=[1,2,1,3,1,3,1,1,3,1,3,1];
      |                 ^~
a.cc:5:20: error: expected unqualified-id before numeric constant
    5 |   int group[12]=[1,2,1,3,1,3,1,1,3,1,3,1];
      |                    ^
Language: C++

#include <bits/stdc++.h>
using namespace std;

typedef long long ll;
 
int main(){
  int a[] = {1, 3, 5, 7, 8, 10, 12};
  int b[] = {4, 6, 9, 11};
  int c[] = {2};
  int x, y;
  cin >> x >> y;
  char xg, yg;
  for(int i=0; i<7; i++){
    if(x==a[i]) xg='a';
    if(y==a[i]) yg='a';
  }
  for(int i=0; i<4.size(); i++){
    if(x==b[i]) xg='b';
    if(y==b[i]) yg='b';
  }
  for(int i=0; i<1; i++){
    if(x==c[i]) xg='c';
    if(y==c[i]) yg='c';
  }
  if(xg==yg) cout << "Yes" << endl;
  else cout << "No" << endl;
  return 0;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:17:18: error: unable to find numeric literal operator 'operator""size'
   17 |   for(int i=0; i<4.size(); i++){
      |                  ^~~~~~
Language: C++

#include <bits/stdc++.h>
using namespace std;

typedef long long ll;
 
int main(){
  int a[] = {1, 3, 5, 7, 8, 10, 12};
  int b[] = {4, 6, 9, 11};
  int c[] = {2};
  int x, y;
  cin >> x >> y;
  char xg, yg;
  for(int i=0; i<a.size(); i++){
    if(x==a[i]) xg='a';
    if(y==a[i]) yg='a';
  }
  for(int i=0; i<b.size(); i++){
    if(x==b[i]) xg='b';
    if(y==b[i]) yg='b';
  }
  for(int i=0; i<c.size(); i++){
    if(x==c[i]) xg='c';
    if(y==c[i]) yg='c';
  }
  if(xg==yg) cout << "Yes" << endl;
  else cout << "No" << endl;
  return 0;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:13:20: error: request for member 'size' in 'a', which is of non-class type 'int [7]'
   13 |   for(int i=0; i<a.size(); i++){
      |                    ^~~~
a.cc:17:20: error: request for member 'size' in 'b', which is of non-class type 'int [4]'
   17 |   for(int i=0; i<b.size(); i++){
      |                    ^~~~
a.cc:21:20: error: request for member 'size' in 'c', which is of non-class type 'int [1]'
   21 |   for(int i=0; i<c.size(); i++){
      |                    ^~~~