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

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

struct UnionFind {
    vector<int> data;
    int sz;
    UnionFind(int _sz) : data(_sz, -1), sz(_sz) { }
    bool unionSet(int x, int y) {
        if ((x = root(x)) == (y = root(y))) return false;
        if (data[x] > data[y]) swap(x, y);
        data[x] += data[y]; data[y] = x; sz--;
        return true;
    }
    bool findSet(int x, int y) { return root(x) == root(y); }
    int root(int x) { return data[x] < 0 ? x : data[x] = root(data[x]); }
    int size(int x) { return -data[root(x)]; }
    int size() { return sz; }
};

int main(){
    int a, b;
    cin >> a >> b;
    UnionFind uf(12);
    uf.unionSet(0, 2);
    uf.unionSet(2, 4);
    uf.unionSet(4, 6);
    uf.unionSet(6, 7);
    uf.unionSet(7, 9);
    uf.unionSet(9, 11);
    uf.unionSet(3, 5);
    uf.unionSet(5, 8);
    uf.unionSet(8, 10);
    
    if(findSet(a, b))cout << "Yes" << endl;
    else cout << "No" << endl;
    return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:34:8: error: 'findSet' was not declared in this scope
   34 |     if(findSet(a, b))cout << "Yes" << endl;
      |        ^~~~~~~
Language: C++

#include<iostream>
#include<string>
using namespace std;
int main() {
	int x, y, a, b;
	cin >> x >> y;
	if (x == 2) {
		a = 1;
	}
	else if (x == 4 || x == 6 || x = 9 || x == 11) {
		a = 2;
	}

	else if (x == 1 || x == 3 || x == 5 || x == 7 || x == 8 || x == 12) {
		a = 3;
	}

	if (y == 2) {
		b = 1;
	}
	else if (y == 4 || y == 6 || y = 9 || y == 11) {
		b = 2;
	}

	else if (y == 1 || y == 3 || y == 5 || y == 7 || y == 8 || y == 12) {
		b = 3;
	}

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




Compiler output:
a.cc: In function 'int main()':
a.cc:10:35: error: lvalue required as left operand of assignment
   10 |         else if (x == 4 || x == 6 || x = 9 || x == 11) {
      |                  ~~~~~~~~~~~~~~~~~^~~~
a.cc:21:35: error: lvalue required as left operand of assignment
   21 |         else if (y == 4 || y == 6 || y = 9 || y == 11) {
      |                  ~~~~~~~~~~~~~~~~~^~~~
Language: C++

#include<iostream>
#include<string>

using namespace std;
int main(){
  int a,b;
  cin >> a >>b;
  string ans ="Yes";
  int g[7] = {1,3,5,7,8,10,12};
  int g2[4] = {4,6,9,11};
  if(a == 2||b==2) ans = "No";
  else{
    bool aflag = bflag = false;
	for(int i = 0;i < 7;i++ ){
      if(a == g[i]) aflag = true;
    } 
    for(int i = 0;i < 4;i++){
      if(b == g2[i]) bflag = true;
    }
    
    if(aflag&bflag) ans = "No";
  }
  cout << ans << endl;
  
}

Compiler output:
a.cc: In function 'int main()':
a.cc:13:18: error: 'bflag' was not declared in this scope; did you mean 'aflag'?
   13 |     bool aflag = bflag = false;
      |                  ^~~~~
      |                  aflag
Language: C++

#include<iostream>
#include<string>

using namespace std;
int main(){
  int a,b;
  cin >> a >>b;
  string ans ="Yes";
  int g[7] = [1,3,5,7,8,10,12];
  int g2[4] = [4,6,9,11];
  if(a == 2||b==2) ans = "No";
  else{
    bool aflag = bflag = false;
	for(int i = 0;i < 7;i++ ){
      if(a == g[i]) aflag = true;
    } 
    for(int i = 0;i < 4;i++){
      if(b == g2[i]) bflag = true;
    }
    
    if(aflag&bflag) ans = "No";
  }
  cout << ans << endl;
  
}

Compiler output:
a.cc: In function 'int main()':
a.cc:9:15: error: expected identifier before numeric constant
    9 |   int g[7] = [1,3,5,7,8,10,12];
      |               ^
a.cc:9:16: error: expected ']' before ',' token
    9 |   int g[7] = [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: array must be initialized with a brace-enclosed initializer
    9 |   int g[7] = [1,3,5,7,8,10,12];
      |              ^~
a.cc:9:17: error: expected unqualified-id before numeric constant
    9 |   int g[7] = [1,3,5,7,8,10,12];
      |                 ^
a.cc:10:16: error: expected identifier before numeric constant
   10 |   int g2[4] = [4,6,9,11];
      |                ^
a.cc:10:17: error: expected ']' before ',' token
   10 |   int g2[4] = [4,6,9,11];
      |                 ^
      |                 ]
a.cc: In lambda function:
a.cc:10:17: error: expected '{' before ',' token
a.cc: In function 'int main()':
a.cc:10:15: error: array must be initialized with a brace-enclosed initializer
   10 |   int g2[4] = [4,6,9,11];
      |               ^~
a.cc:10:18: error: expected unqualified-id before numeric constant
   10 |   int g2[4] = [4,6,9,11];
      |                  ^
a.cc:13:18: error: 'bflag' was not declared in this scope; did you mean 'aflag'?
   13 |     bool aflag = bflag = false;
      |                  ^~~~~
      |                  aflag
Language: C++

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

int main () {
	int x, y;
	cin >> x >> y;
	if (((x>0&&x<=7&&x%2==1)||(x>7&&x<=12&&x%2==0)) x==25;
	else if ((x==4||x==6||x==9||x==11) x=50;
	else if (x==2) x=100;
	
	else if((y>0&&y<=7&&y%2==1)||(7>0&&y<=12&&y%2==0)) y=25;
	else if(y==4||y==6||y==9||y==11)) y=50;
	else if(y==2) y=100;
	
	if(x==y) cout<<"Yes"<< endl;
	else cout << "No" << endl;
}



Compiler output:
a.cc: In function 'int main()':
a.cc:7:56: error: expected ';' before 'x'
    7 |         if (((x>0&&x<=7&&x%2==1)||(x>7&&x<=12&&x%2==0)) x==25;
      |                                                        ^~
      |                                                        ;
a.cc:8:9: error: expected primary-expression before 'else'
    8 |         else if ((x==4||x==6||x==9||x==11) x=50;
      |         ^~~~
a.cc:7:63: error: expected ')' before 'else'
    7 |         if (((x>0&&x<=7&&x%2==1)||(x>7&&x<=12&&x%2==0)) x==25;
      |            ~                                                  ^
      |                                                               )
    8 |         else if ((x==4||x==6||x==9||x==11) x=50;
      |         ~~~~                                                   
a.cc:12:41: error: expected primary-expression before ')' token
   12 |         else if(y==4||y==6||y==9||y==11)) y=50;
      |                                         ^
Language: C++

#include <bits/stdc++.h>
using namespace std;
int a,b,c,x,y;
int main () {
a=1,3,5,7,8,10,12;
b=4,6,9,11;
c=12;
cin >> x>> y;
if (x==a && y=a) {
	cout << "Yes" << endl;
} else if (x==b && y==b) {
	cout << "Yes" << endl;
} else if (x==c && y==c) {
	cout << "Yes" << endl;
} else {
	cout << "No" << endl;
}
}


Compiler output:
a.cc: In function 'int main()':
a.cc:9:10: error: lvalue required as left operand of assignment
    9 | if (x==a && y=a) {
      |     ~~~~~^~~~
Language: C++

#include <bits/stdc++.h>
#include <ctype.h>
using namespace std;
 
int main() {
int x,y;
char Xs,Ys;
cin >> x >> y ;
vector<int> A{1,3,7,8,10,12};
vector<int> B {4,6,9,11};
vector<int> C{2};
for(int i=0;i<A.size();i++){
if(x == A.at(i)) Xs = 'A';
if(Y == A.at(i)) Ys = 'A';
}
for(int i=0;i<B.size();i++){
if (x == B.at(i)) Xs = 'B';
if(y == B.at(i)) Ys ='B'; 
}
if(x == 2) Xs = 'C';
if(y == 2) Ys = 'C';
if(Xs == Ys)cout << "Yes" << endl;
else cout << "No" << endl;

}


Compiler output:
a.cc: In function 'int main()':
a.cc:14:4: error: 'Y' was not declared in this scope
   14 | if(Y == A.at(i)) Ys = 'A';
      |    ^
Language: C++

#include <iostream>
#include <fstream>
#include <vector>
#include <cstring>
#include <algorithm> // sort
#include <iomanip>

#define REP(i, n) for (long long i = 0; i < (n); i++) 
typedef long long ll;
static const ll MOD = 1000000007;
static const ll INF = 1000000000000000000LL;
using namespace std;

int main(){

//    std::ifstream in("input.txt");
//    std::cin.rdbuf(in.rdbuf());
    int x,y;
    cin >> x >> y;
    string res;
    int list[] = {1,3,5,7,8,10,12};

    bool flg1 = false;
    bool flg2 = false;

    if(x == 2 || y == 2)
    {
        res = "No";
    }
    else
    {
        REP(i,7
        {
            if(x == list[i])flg1 = true;
        }
        REP(i,7)
        {
            if(x == list[i])flg2 = true;
        }
        if(flg1 == flg2)
        {
            res = "Yes";
        }
        else
        {
            res = "No";
        }
        
    }
    
    cout << res << endl;

    return 0;
}


Compiler output:
a.cc:54:2: error: unterminated argument list invoking macro "REP"
   54 | }
      |  ^
a.cc: In function 'int main()':
a.cc:32:9: error: 'REP' was not declared in this scope
   32 |         REP(i,7
      |         ^~~
a.cc:32:12: error: expected '}' at end of input
   32 |         REP(i,7
      |            ^
a.cc:31:5: note: to match this '{'
   31 |     {
      |     ^
a.cc:32:12: error: expected '}' at end of input
   32 |         REP(i,7
      |            ^
a.cc:14:11: note: to match this '{'
   14 | int main(){
      |           ^
Language: C++

#include <iostream>
#include <fstream>
#include <vector>
#include <cstring>
#include <algorithm> // sort
#include <iomanip>

#define REP(i, n) for (long long i = 0; i < (n); i++) 
typedef long long ll;
static const ll MOD = 1000000007;
static const ll INF = 1000000000000000000LL;
using namespace std;

int main(){

//    std::ifstream in("input.txt");
//    std::cin.rdbuf(in.rdbuf());
    int x,y;
    cin >> x >> y;
    string res;
    int list[] = {1,3,5,7,8,10,12};

    bool flg1 = false;
    bool flg2 = false;

    if(x == 2 || y == 2)
    {
        res = "No";
    }
    else
    {
        REP(i,list.size())
        {
            if(x == list[i])flg1 = true;
        }
        REP(i,list.size())
        {
            if(x == list[i])flg2 = true;
        }
        if(flg1 == flg2)
        {
            res = "Yes";
        }
        else
        {
            res = "No";
        }
        
    }
    
    cout << res << endl;

    return 0;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:32:20: error: request for member 'size' in 'list', which is of non-class type 'int [7]'
   32 |         REP(i,list.size())
      |                    ^~~~
a.cc:8:46: note: in definition of macro 'REP'
    8 | #define REP(i, n) for (long long i = 0; i < (n); i++)
      |                                              ^
a.cc:36:20: error: request for member 'size' in 'list', which is of non-class type 'int [7]'
   36 |         REP(i,list.size())
      |                    ^~~~
a.cc:8:46: note: in definition of macro 'REP'
    8 | #define REP(i, n) for (long long i = 0; i < (n); i++)
      |                                              ^
Language: C++

#include <bits/stdc++.h>
#include <ctype.h>
using namespace std;
 
int main() {
int x,y;
char Xs,Ys;
cin >> x >> y ;
vector<int> A{1,3,7,8,10,12};
vector<int> B {4,6,9,11};
vector<int> C{2};
for(int i=0;i<A.size();i++){
if(x == A.at(i)) Xs == 'A';
if(Y == A.at(i)) Ys == 'A';
}
for(int i=0;i<B.size();i++){
if (x == B.at(i)) Xs == 'B';
if(y == B.at(i)) Ys == 'B'; 
}
if(Xs == Ys)cout << "Yes" << endl;
else cout << "No" << endl;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:14:4: error: 'Y' was not declared in this scope
   14 | if(Y == A.at(i)) Ys == 'A';
      |    ^
Language: C++

#include<iostream>
#define size(array) (sizeof(array) / sizeof(array[0]))
using namespace std;
int main(void){
  int a = 3,b = 3;
  cin >> a >> b;
  int dai[] = {1,3,5,7,8,10,12}
  int shou[] = {4,6,9,11}
  for(int i =0;i < size(dai);i++){
    if(dai[i] == a){
      a = 1;
    }else if(dai[i] == b){
      b = 1;
    }
  }
  for(int i =0;i < size(shou);i++){
    if(shou[i] == a){
      a = 2;
    }else if(shou[i] == b){
      b = 2;
    }
  }

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

Compiler output:
a.cc: In function 'int main()':
a.cc:8:3: error: expected ',' or ';' before 'int'
    8 |   int shou[] = {4,6,9,11}
      |   ^~~
a.cc:16:25: error: 'shou' was not declared in this scope
   16 |   for(int i =0;i < size(shou);i++){
      |                         ^~~~
a.cc:2:29: note: in definition of macro 'size'
    2 | #define size(array) (sizeof(array) / sizeof(array[0]))
      |                             ^~~~~
a.cc: At global scope:
a.cc:30:3: error: expected unqualified-id before 'return'
   30 |   return 0;
      |   ^~~~~~
a.cc:31:1: error: expected declaration before '}' token
   31 | }
      | ^
Language: C++

#include<iostream>
using namespace std;
int main(void){
  int a,b;
  cin >> a >> b;
  int dai[] = {1,3,5,7,8,10,12}
  int shou[] = {4,6,9,11}
  for(int i =0;i < dai.size();i++){
    if(dai[i] == a){
      a = 1;
    }else if(shou[i] == a){
      a = 2;
    }else{
      a = 3;
    }
    if(dai[i] == b){
      b = 1;
    }else if(shou[i] == b){
      b = 2;
    }else{
      b = 3;
    }
    if(a == b){
      cout << "Yes" << endl;
    }else{
      cout << "No" << endl;
    }
  }
  return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:7:3: error: expected ',' or ';' before 'int'
    7 |   int shou[] = {4,6,9,11}
      |   ^~~
a.cc:8:24: error: request for member 'size' in 'dai', which is of non-class type 'int [7]'
    8 |   for(int i =0;i < dai.size();i++){
      |                        ^~~~
a.cc:11:14: error: 'shou' was not declared in this scope
   11 |     }else if(shou[i] == a){
      |              ^~~~
a.cc:18:14: error: 'shou' was not declared in this scope
   18 |     }else if(shou[i] == b){
      |              ^~~~
Language: C++

int main(){
  int x,y;
  cin >> x >> y;
  int zx,zy;
  if(x==4||x==6||x==9||x==11){
    zx=0;
  }else if(x==2){
    zx=3;
  }else{
    zx=2;
  }
  if(y==4||y==6||y==9||y==11){
    zy=0;
  }else if(x==2){
    zy=1;
  }else{
    zy=2;
  }
  if(zx==zy){
    cout << "Yes" << endl;
  }else{
    cout << "No" <<endl;
  }
}

Compiler output:
a.cc: In function 'int main()':
a.cc:3:3: error: 'cin' was not declared in this scope
    3 |   cin >> x >> y;
      |   ^~~
a.cc:20:5: error: 'cout' was not declared in this scope
   20 |     cout << "Yes" << endl;
      |     ^~~~
a.cc:20:22: error: 'endl' was not declared in this scope
   20 |     cout << "Yes" << endl;
      |                      ^~~~
a.cc:22:5: error: 'cout' was not declared in this scope
   22 |     cout << "No" <<endl;
      |     ^~~~
a.cc:22:20: error: 'endl' was not declared in this scope
   22 |     cout << "No" <<endl;
      |                    ^~~~
Language: C++

int main(){
  int x,y;
  cin >> x >> y;
  int zx,zy;
  if(x==4||x==6||x==9||x==11){
    zx=0;
  }else if(x==2){
    zx=0;
  }else{
    zx=2;
  }
  if(y==4||y==6||y==9||y==11){
    zy=0;
  }else if(x==2){
    zy=1;
  }else{
    zy=2;
  }
  if(zx==zy){
    cout << "Yes" << endl;
  }else{
    cout << "No" <<endl;
  }
}

Compiler output:
a.cc: In function 'int main()':
a.cc:3:3: error: 'cin' was not declared in this scope
    3 |   cin >> x >> y;
      |   ^~~
a.cc:20:5: error: 'cout' was not declared in this scope
   20 |     cout << "Yes" << endl;
      |     ^~~~
a.cc:20:22: error: 'endl' was not declared in this scope
   20 |     cout << "Yes" << endl;
      |                      ^~~~
a.cc:22:5: error: 'cout' was not declared in this scope
   22 |     cout << "No" <<endl;
      |     ^~~~
a.cc:22:20: error: 'endl' was not declared in this scope
   22 |     cout << "No" <<endl;
      |                    ^~~~
Language: C++

#include <bits/stdc++.h>
using namespace std;
int main(){
    int  a, b ,c;
    char X,Y;
    string S1,S2,S3;
    int A[] = {0,1,3,1,2,1,2,1,1,2,1,2,1}
    cin >>a >> b ;
    if(A[a] == A[b]) cout << "Yes" << endl;
    else cout << "No" << endl;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:8:5: error: expected ',' or ';' before 'cin'
    8 |     cin >>a >> b ;
      |     ^~~
Language: C++

#include <iostream>
#include <string>
#include <vector>
#include <math.h>
#include <stdio.h>
#include <algorithm>
#include <cmath>
#include <stack>
#include <istream>
#include <map>
#include <set>
#include <queue>
#define rep0(i,n) for (int i = 0; i < (n); ++i)  //0スタート
#define rep1(i,n) for (int i = 1; i < (n); ++i)  //1スタート
#define REP(i,a,b) for (int i = a; i < (b); ++i)  //aからbまで
#define print(x) cout<<x<<endl  //xを改行付きで出力
#define scan(x) cin>>x //xを入力
const int INF = 1e9 + 7;  //最大値兼MOD
typedef long long ll;
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; }
int main() {
cin.tie(0);
ios::sync_with_stdio(false);
/*
./a.exe
*/
vector<int>a(13) = {0,1,3,1,2,1,2,1,1,2,1,2,1};
int c,b;
cin>>c>>b;
if(a[c] == a[b])cout<<"Yes"<<endl;
else P("No");
return 0;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:29:18: error: expected ',' or ';' before '=' token
   29 | vector<int>a(13) = {0,1,3,1,2,1,2,1,1,2,1,2,1};
      |                  ^
a.cc:33:6: error: 'P' was not declared in this scope
   33 | else P("No");
      |      ^
Language: C++

#include <bits/stdc++.h>
using namespace std;
#define rep(i, n) for (int i = 0; i < (int)(n); i++)
#define rep2(i, s, n) for (int i = (s); i < (int)(n); i++)
typedef long long ll;

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


Compiler output:
a.cc: In function 'int main()':
a.cc:12:5: error: expected ',' or ';' before 'A'
   12 |     A = {1, 3, 5, 7, 8, 10, 12};
      |     ^
Language: C++

include <bits/stdc++.h>
using namespace std;
#define rep(i, n) for (int i = 0; i < (int)(n); i++)
#define rep2(i, s, n) for (int i = (s); i < (int)(n); i++)
typedef long long ll;

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


Compiler output:
a.cc:1:1: error: 'include' does not name a type
    1 | include <bits/stdc++.h>
      | ^~~~~~~
a.cc: In function 'int main()':
a.cc:9:5: error: 'cin' was not declared in this scope
    9 |     cin >> x >> y;
      |     ^~~
a.cc:10:5: error: 'vector' was not declared in this scope
   10 |     vector<int> A, B, C;
      |     ^~~~~~
a.cc:10:12: error: expected primary-expression before 'int'
   10 |     vector<int> A, B, C;
      |            ^~~
a.cc:11:5: error: 'A' was not declared in this scope
   11 |     A = {1, 3, 5, 7, 8, 10, 12};
      |     ^
a.cc:12:5: error: 'B' was not declared in this scope
   12 |     B = {4, 6, 9, 11};
      |     ^
a.cc:24:9: error: 'cout' was not declared in this scope
   24 |         cout << "Yes" << endl;
      |         ^~~~
a.cc:24:26: error: 'endl' was not declared in this scope
   24 |         cout << "Yes" << endl;
      |                          ^~~~
a.cc:38:13: error: 'cout' was not declared in this scope
   38 |             cout << "Yes" << endl;
      |             ^~~~
a.cc:38:30: error: 'endl' was not declared in this scope
   38 |             cout << "Yes" << endl;
      |                              ^~~~
a.cc:41:13: error: 'cout' was not declared in this scope
   41 |             cout << "No" << endl;
      |             ^~~~
a.cc:41:29: error: 'endl' was not declared in this scope
   41 |             cout << "No" << endl;
      |                             ^~~~
Language: C++

#include<stdio.h>
int main(void)
{
	int x,y;
	scanf("%d %d",&x,&y);
	if(x==2||y==2) {
		printf("No\n");
	}
	if(x==4||x==6||x==9||x==11) {
		if(y==4||y==6||y==9||y==11) {
			printf("Yes\n");
		}
		slse {
			printf("No\n");
		}
	}
	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) {
			printf("Yes\n");
		}
		slse {
			printf("No\n");
		}
	}
	return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:13:17: error: 'slse' was not declared in this scope
   13 |                 slse {
      |                 ^~~~
a.cc:21:17: error: 'slse' was not declared in this scope
   21 |                 slse {
      |                 ^~~~
Language: C++

#include<iostream>
#include<vector>
#include<string>
#include<algorithm>
#include<cmath>
#include<cstdlib>
#include<tuple>
#include<iomanip>
#include<stack>
#include<map>
#include<queue>
#include<set>
#define int long long
using namespace std;
const int INF = 1e10;
const int ZERO = 0;

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

Compiler output:
a.cc: In function 'int main()':
a.cc:21:29: error: expected ',' or ';' before '=' token
   21 |         vector<int> vec(12) = {0,1,0,2,0,2,0,0,2,0,2,0};
      |                             ^
Language: C++

#include<bits/stdc++.h>
using namespace std;
#define int long long
#define fo(a,b) for(int a=0;a<b;a++)
#define Sort(a) sort(a.begin(),a.end())
#define rev(a) reverse(a.begin(),a.end())
#define fi first
#define se second
#define co(a) cout<<a<<endl
#define sz size()
#define bgn begin()
#define en end()
#define pb(a) push_back(a)
#define pop pop_back
#define V vector
#define P pair
template<class T>
 void cou(vector<vector<T>> a){
  int b=a.size();
  int c=a[0].size();
  fo(i,b){
    fo(j,c){
      cout<<a[i][j];
      if(j==c-1)
        cout<<endl;
      else
        cout<<' ';
    }
  }
}
//template<>
 void cou(vector<vector<char>> a){
  int b=a.size();
  int c=a[0].size();
  fo(i,b){
    fo(j,c){
      cout<<a[i][j];
      if(j==c-1)
        cout<<endl;
      else
        cout<<' ';
    }
  }
}
 int wari(int a,int b) {
   if(a%b==0)
     return a/b;
   else
     return a/b+1;
 }
 int keta(int a){
  double b=a;
  b=log10(b);
  int c=b;
  return c+1;
 }
 int souwa(int a){
  return a*(a+1)/2;
 }
 int lcm(int a,int b){
  int d=a,e=b,f;
  if(a<b)
    swap(a,b);
  int c,m=1;
  while(m){
    c=a%b;
    if(c==0){
       f=b;
      m--;
    }
    else{
      a=b;
      b=c;
 }
  }
  return d*e/f;
    }
  int gcm(int a,int b){
      int d=a,e=b,f;
  if(a<b)
    swap(a,b);
  int c,m=1;
  while(m){
    c=a%b;
    if(c==0){
       f=b;
      m--;
    }
    else{
      a=b;
      b=c;
 }
  }
  return f;
  }
 bool prime(int a){
   if(a<2)
     return false;
   else if(a==2)
     return true;
   else if(a%2==0)
     return false;
   double b=sqrt(a);
    for(int i=3;i<=b;i+=2){
      if(a%i==0){
        return false;
      }
    }
   return true;
 }
struct Union{
  vector<int> par;
  Union(int n){
	par= vector<int>(n, -1);
  }
  int find(int x){
    if(par[x]<0)
      return x;
    else
      return par[x]=find(par[x]);
  }
  bool same(int a,int b){
    return find(a)==find(b);
  }
  int Size(int a){
    return -par[find(a)];
  }
  void unite(int a,int b){
    a=find(a);
    b=find(b);
    if(a==b)
      return;
    if(Size(b)>Size(a))
      swap<int>(a,b);
    par[a]+=par[b];
    par[b]=a;
  }
};
int ketas(int a){
  string b=to_string(a);
  int c=0;
  fo(i,keta(a)){
    c+=b[i]-'0';
  }
  return c;
}
signed main(){
  int a,b;
  cin>>a>>b;
  if(a==2){
    if(b==2)
    cout<<"Yes"<<endl;
    else
      cout<<"No"<<endl;
  }
  else if(a==4||a==6||a==9||a==11){
    if(b==4||b==6||b==9||b==11)
      cout<<"Yes"<<endl;
    else
      cout<<"No"<<endl;
  }
  else {
    if(b!=2&&b!=4&&b!=6&&b!=9|&&b!=11)
      cout<<"Yes"<<endl;
    else
      cout<<"No"<<endl;
  }
}

Compiler output:
a.cc: In function 'int main()':
a.cc:163:34: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
  163 |     if(b!=2&&b!=4&&b!=6&&b!=9|&&b!=11)
      |                               ~~~^~~~
a.cc:163:33: error: label 'b' used but not defined
  163 |     if(b!=2&&b!=4&&b!=6&&b!=9|&&b!=11)
      |                                 ^
Language: C++

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

int x,gx,gy;

int main(){
    if(x==2){
        gx=1;
    }else if((x==4)||(x==6)||(x==9)||(x==11)){
        gx=2;
    }else{
        gx=3;
    }

     if(y==2){
        gy=1;
    }else if((y==4)||(y==6)||(y==9)||(y==11)){
        gy=2;
    }else{
        gy=3;
    }

    if(gx==gy){
        cout<<"Yes"<<endl;
    }else{
        cout<<"No"<<endl;
    }
}

Compiler output:
a.cc: In function 'int main()':
a.cc:15:9: error: 'y' was not declared in this scope; did you mean 'yn'?
   15 |      if(y==2){
      |         ^
      |         yn
Language: C++

#include<iostream>
#include<string>
#include<utility>
#include<cmath>
#include<map>
#include<queue>
#include<stack>
#include<vector>
#include<algorithm>
using namespace std;
typedef long long int ll;
#define rep(i,n) for(int i=0;i<(int)n;i++)

int main(void) {
	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;
	return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:15:23: error: narrowing conversion of '1.3e+0' from 'double' to 'int' [-Wnarrowing]
   15 |         int a[] = { 0,1.3,1.2,1,2,1,1,2,1,2,1 };
      |                       ^~~
a.cc:15:27: error: narrowing conversion of '1.2e+0' from 'double' to 'int' [-Wnarrowing]
   15 |         int a[] = { 0,1.3,1.2,1,2,1,1,2,1,2,1 };
      |                           ^~~
Language: C++

#include<stdio.h>
int main(void)
{
	int x,y;
	scanf("%d",&x);
	scanf("%d",&y);
	if(x==1||x==3||x==5||x==7||x==8||x==10||x==12){
		if(x==y||y==3||y==5||y==7||y==8||y==10||y==12){
			printf("yes\n");
		}
	}
	if(x==4||x==6||x==9||x==11||){
		if(y==4||y==6||y==9||y==11||){
			printf("Yes\n");
		}
	}
	if(x==2){
		if(y==2){
			printf("Yes\n");
		}
	}
	else{
		printf("No\n");
	}
	return 0;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:12:37: error: expected primary-expression before ')' token
   12 |         if(x==4||x==6||x==9||x==11||){
      |                                     ^
a.cc:13:45: error: expected primary-expression before ')' token
   13 |                 if(y==4||y==6||y==9||y==11||){
      |                                             ^
Language: C++

#include <bits/stdc++.h>
using namespace std;
int main() {
  vector<int> a() = {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:4:16: warning: empty parentheses were disambiguated as a function declaration [-Wvexing-parse]
    4 |   vector<int> a() = {1,3,1,2,1,2,1,1,2,1,2,1};
      |                ^~
a.cc:4:16: note: remove parentheses to default-initialize a variable
    4 |   vector<int> a() = {1,3,1,2,1,2,1,1,2,1,2,1};
      |                ^~
      |                --
a.cc:4:17: warning: declaration of 'std::vector<int> a()' has 'extern' and is initialized
    4 |   vector<int> a() = {1,3,1,2,1,2,1,1,2,1,2,1};
      |                 ^
a.cc:4:22: error: invalid pure specifier (only '= 0' is allowed) before numeric constant
    4 |   vector<int> a() = {1,3,1,2,1,2,1,1,2,1,2,1};
      |                      ^
a.cc:4:15: error: function 'std::vector<int> a()' is initialized like a variable
    4 |   vector<int> a() = {1,3,1,2,1,2,1,1,2,1,2,1};
      |               ^
a.cc:4:45: error: expected ',' or ';' before '}' token
    4 |   vector<int> a() = {1,3,1,2,1,2,1,1,2,1,2,1};
      |                                             ^
a.cc: At global scope:
a.cc:6:3: error: 'cin' does not name a type
    6 |   cin >> x >> y;
      |   ^~~
a.cc:7:3: error: expected unqualified-id before 'if'
    7 |   if(a.at(x) == a.at(y)) {
      |   ^~
a.cc:9:4: error: expected unqualified-id before 'else'
    9 |   }else {
      |    ^~~~
a.cc:12:1: error: expected declaration before '}' token
   12 | }
      | ^
Language: C++

#include <bits/stdc++.h>
using namespace std;
int main() {
int x,y,gx, gy
cin >> x >> y ;
if (x==2){
	gx = 1
}else if{((x==4)|| (x=6) || (x==9) || (x==11))
	gx=2
}else gx=3
if (y==2){
	gy = 1
}else if {((y==4)|| (y=6) || (y==9) || (y==11))
	gy=2
}else gy=3
if (gx==gy){
	cout << "Yes" << endl;
else 
	cout << "No"  << endl;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:5:1: error: expected initializer before 'cin'
    5 | cin >> x >> y ;
      | ^~~
a.cc:7:15: error: expected ';' before '}' token
    7 |         gx = 1
      |               ^
      |               ;
    8 | }else if{((x==4)|| (x=6) || (x==9) || (x==11))
      | ~              
a.cc:8:9: error: expected '(' before '{' token
    8 | }else if{((x==4)|| (x=6) || (x==9) || (x==11))
      |         ^
      |         (
a.cc:10:2: error: 'else' without a previous 'if'
   10 | }else gx=3
      |  ^~~~
a.cc:10:11: error: expected ';' before 'if'
   10 | }else gx=3
      |           ^
      |           ;
   11 | if (y==2){
      | ~~         
a.cc:13:2: error: 'else' without a previous 'if'
   13 | }else if {((y==4)|| (y=6) || (y==9) || (y==11))
      |  ^~~~
a.cc:13:10: error: expected '(' before '{' token
   13 | }else if {((y==4)|| (y=6) || (y==9) || (y==11))
      |          ^
      |          (
a.cc:15:2: error: 'else' without a previous 'if'
   15 | }else gy=3
      |  ^~~~
a.cc:15:7: error: 'gy' was not declared in this scope; did you mean 'gx'?
   15 | }else gy=3
      |       ^~
      |       gx
a.cc:20:2: error: expected '}' at end of input
   20 | }
      |  ^
a.cc:3:12: note: to match this '{'
    3 | int main() {
      |            ^
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();
      int[] array1 = {1,3,5,7,8,10,12};
      int[] array2 = {4,6,9,11};
      if((array1.contains(x)&&array1.contains(y))||(array2.contains(x)&&array2.contains(y)))
        System.out.println("Yes");
      else System.out.println("No");
    }
}

Compiler output:
Main.java:9: error: cannot find symbol
      if((array1.contains(x)&&array1.contains(y))||(array2.contains(x)&&array2.contains(y)))
                ^
  symbol:   method contains(int)
  location: variable array1 of type int[]
Main.java:9: error: cannot find symbol
      if((array1.contains(x)&&array1.contains(y))||(array2.contains(x)&&array2.contains(y)))
                                    ^
  symbol:   method contains(int)
  location: variable array1 of type int[]
Main.java:9: error: cannot find symbol
      if((array1.contains(x)&&array1.contains(y))||(array2.contains(x)&&array2.contains(y)))
                                                          ^
  symbol:   method contains(int)
  location: variable array2 of type int[]
Main.java:9: error: cannot find symbol
      if((array1.contains(x)&&array1.contains(y))||(array2.contains(x)&&array2.contains(y)))
                                                                              ^
  symbol:   method contains(int)
  location: variable array2 of type int[]
4 errors
Language: C++

#include <bits/stdc++.h>
using namespace std;
 
int main() {
  int x,y;
  cin >> x >> y;
  vector<int> v(12)={1,3,1,2,1,2,1,1,2,1,2,1};
  if (v[x-1]==v[y-1]){
    cout << "Yes" << endl;
  }
  else {
    cout << "No" << endl;
  }
}

Compiler output:
a.cc: In function 'int main()':
a.cc:7:20: error: expected ',' or ';' before '=' token
    7 |   vector<int> v(12)={1,3,1,2,1,2,1,1,2,1,2,1};
      |                    ^
Language: C++

#include <bits/stdc++.h>
using namespace std;
int main(){
  vector<int> a;
  a={0,1,2,1,3,1,3,1,1,3,1,3,1};
  int a,b;
  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:7: error: conflicting declaration 'int a'
    6 |   int a,b;
      |       ^
a.cc:4:15: note: previous declaration as 'std::vector<int> a'
    4 |   vector<int> a;
      |               ^
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 x,y;
  cin >> x >> y;
  vector<int> a(13) {0,1,3,1,2,1,2,1,1,2,1,2,1}
  if(a.at(x) ==a.at(y){
    cout << "Yes" << endl;
  }
  else{
    cout <<"No" << endl;
  }
}


Compiler output:
a.cc: In function 'int main()':
a.cc:8:21: error: expected ',' or ';' before '{' token
    8 |   vector<int> a(13) {0,1,3,1,2,1,2,1,1,2,1,2,1}
      |                     ^
a.cc:9:23: error: expected ')' before '{' token
    9 |   if(a.at(x) ==a.at(y){
      |     ~                 ^
      |                       )
a.cc:15:1: error: expected primary-expression before '}' token
   15 | }
      | ^
Language: C++

#include <iostream>
#include <cstdlib>
#include <algorithm>
#include <vector>
#include <string>
#include <cmath>
#include <cassert>
#include <functional>
#include <string>
#include <sstream>
using namespace std;


int main(){
  int x, y; cin >> x, y;
  map<int, int> m;
  m[1] = 1;
  m[2] = 3;
  m[3] = 1;
  m[4] = 2;
  m[5] = 1;
  m[6] = 2;
  m[7] = 1;
  m[8] = 1;
  m[9] = 2;
  m[10] = 1;
  m[11] = 2;
  m[12] = 1;
  if(m[x] == m[y]) cout << "Yes" << endl;
  else cout << "No" << endl;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:16:3: error: 'map' was not declared in this scope
   16 |   map<int, int> m;
      |   ^~~
a.cc:11:1: note: 'std::map' is defined in header '<map>'; this is probably fixable by adding '#include <map>'
   10 | #include <sstream>
  +++ |+#include <map>
   11 | using namespace std;
a.cc:16:7: error: expected primary-expression before 'int'
   16 |   map<int, int> m;
      |       ^~~
a.cc:17:3: error: 'm' was not declared in this scope
   17 |   m[1] = 1;
      |   ^
Language: C++

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

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


Compiler output:
a.cc: In function 'int main()':
a.cc:10:40: error: expected ';' before 'cout'
   10 |   a[x-1]==a[y-1] ? ans="Yes" : ans="No"
      |                                        ^
      |                                        ;
   11 |   cout <<ans<< endl;
      |   ~~~~
Language: C++

#include <bits/stdc++.h>
using namespace std;
 
int main() {
    int a[]={0,2,0,1,0,1,0,0,1,0,1,0};
    intx,y;
    cin>>x>>y;
    if(a[x-1]==a[y-1]){
    cout<<"Yes"<<endl;
    }else{
      cout<<"No"<<endl;
    }
}


Compiler output:
a.cc: In function 'int main()':
a.cc:6:5: error: 'intx' was not declared in this scope; did you mean 'int'?
    6 |     intx,y;
      |     ^~~~
      |     int
a.cc:6:10: error: 'y' was not declared in this scope
    6 |     intx,y;
      |          ^
a.cc:7:10: error: 'x' was not declared in this scope
    7 |     cin>>x>>y;
      |          ^
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;1 3
  
}


Compiler output:
a.cc: In function 'int main()':
a.cc:6:44: error: expected ';' before numeric constant
    6 |   cout << (a[x]==a[y]?"Yes":"No") << endl;1 3
      |                                            ^~
      |                                            ;
Language: C++

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

int main() {
  map<int,int> m;
  m[1] = 1;
  m[2] = 3;
  m[3] = 1;
  m[4] = 2;
  m[5] = 1;
  m[6] = 2;
  m[7] = 1;
  m[8] = 1;
  m[9] = 2;
  m[10] = 1;
  m[11] = 2;
  m[12] = 1;
  int x, y;
  cin >> x >> y;
  if(map.at(x) == map.at(y))
    cout << "Yes" << endl;
  else
    cout << "No" << endl;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:20:9: error: expected unqualified-id before '.' token
   20 |   if(map.at(x) == map.at(y))
      |         ^
Language: Java


import java.util.Scanner;

class Main {
  public static void main(String[] args){

    Scanner sc = new Scanner(System.in);

    int x = sc.nextInt();
    int y = sc.nextInt();

    if (x == y && y == 2){
      System.out.println("Yes");
    }

    if (x ==　4  || x == 6 || x == 9 || x == 11){
      if (y == 4 || y == 6 || y == 9 || y == 11){
      }
      System.out.println("Yes");
    }
    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");
    }
  }
}
//途中


Compiler output:
Main.java:16: error: illegal character: '\u3000'
    if (x ==?4  || x == 6 || x == 9 || x == 11){
            ^
Main.java:16: error: not a statement
    if (x ==?4  || x == 6 || x == 9 || x == 11){
                                    ^
Main.java:16: error: ';' expected
    if (x ==?4  || x == 6 || x == 9 || x == 11){
                                              ^
3 errors
Language: C++

#include <bits/stdc++.h>
using namespace std;
        
int group(int x){
	if (x==2)
        g=3;
    else if (x==4 || x==6 || x==9 || x==11)
    	g=2;
    else
        g=1;
return g;
}

int main() {
	int x{};
	int y{};
    cin >> x >> y;
    if (group(x)==group(y))
        cout << "Yes";
    else
        cout << "No";

return 0;
    }


Compiler output:
a.cc: In function 'int group(int)':
a.cc:6:9: error: 'g' was not declared in this scope
    6 |         g=3;
      |         ^
a.cc:8:9: error: 'g' was not declared in this scope
    8 |         g=2;
      |         ^
a.cc:10:9: error: 'g' was not declared in this scope
   10 |         g=1;
      |         ^
a.cc:11:8: error: 'g' was not declared in this scope
   11 | return g;
      |        ^
Language: C++

#include <iostream>

using namespace std;
int group(x)
{
    int g;
    if (x==2)
        g=3;
    else if (x==4 || x==6 || x==9 || x==11)
        g=2;
    else
        g=1;
    return g;
}
int main()
{
    int x{};
    int y{};
    cin >> x >> y;
    if (group(x)==group(y))
        cout << "Yes";
    else
        cout << "No";
    return 0;
}


Compiler output:
a.cc:4:11: error: 'x' was not declared in this scope
    4 | int group(x)
      |           ^
a.cc: In function 'int main()':
a.cc:20:14: error: 'group' cannot be used as a function
   20 |     if (group(x)==group(y))
      |         ~~~~~^~~
a.cc:20:24: error: 'group' cannot be used as a function
   20 |     if (group(x)==group(y))
      |                   ~~~~~^~~
Language: C++

#include <iostream>

using namespace std;
int group(x)
{
    int g;
    if (x==2)
        g=3;
    else if (x==4 || x==6 || x==9 || x==11)
        g=2;
    else
        g=1
    return g;
}
int main()
{
    int x{};
    int y{};
    cin >> x >> y;
    if (group(x)==group(y))
        cout << "Yes";
    else
        cout << "No";
    return 0;
}

Compiler output:
a.cc:4:11: error: 'x' was not declared in this scope
    4 | int group(x)
      |           ^
a.cc: In function 'int main()':
a.cc:20:14: error: 'group' cannot be used as a function
   20 |     if (group(x)==group(y))
      |         ~~~~~^~~
a.cc:20:24: error: 'group' cannot be used as a function
   20 |     if (group(x)==group(y))
      |                   ~~~~~^~~
Language: C

#include<stdio.h>
#include<string.h>

int check(int &x){
  if(x==4 || x==6 || x==9 || x==11){
    return 2;
  }else if(x==2){
    return 3;
  }else{
    return 1;
  }
}

int main(void){
  int x,y;
  int gx,gy;

  scanf("%d%d",&x,&y);

  gx = check(x);
  gy = check(y);

  if(gx==gy){
    printf("Yes\n");
  }else{
    printf("No\n");
  }

}


Compiler output:
main.c:4:15: error: expected ';', ',' or ')' before '&' token
    4 | int check(int &x){
      |               ^
main.c: In function 'main':
main.c:20:8: error: implicit declaration of function 'check' [-Wimplicit-function-declaration]
   20 |   gx = check(x);
      |        ^~~~~
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;
vector<int> grp1 = {1,3,5,7,8,10,12};
vector<int> grp2 = {4,6,9,11};
vector <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) == grp2.end())){
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:15:6: error: 'x' was not declared in this scope
   15 | if ((x == 2) && (y == 2)){
      |      ^
a.cc:15:18: error: 'y' was not declared in this scope
   15 | if ((x == 2) && (y == 2)){
      |                  ^
a.cc:21:16: error: expected ';' before '}' token
   21 | cout << "Yes\n"
      |                ^
      |                ;
   22 | }
      | ~
Language: C++

#include <bits/stdc++.h>
using namespace std;
#define lli long long int
#define INF 999999999
#define rep(i, n) for(int i = 0;i < n;i++)
#define pb(n) push_back(n)
#define Sort(n) sort(n.begin(), n.end())
#define Rev(n) reverse(n.begin(),n.end())
#define Out(S) cout << S << endl
#define Vecpr vector<pair<lli,lli>>
int main() {
  lli A,B,C,D;
  cin >>A>>B;
  vector<int>P{1,2,1,3,1,3,1,1,3,1,3,1}
  if(P[A]==P[B])Out("Yes");
  else Out("No");
}

Compiler output:
a.cc: In function 'int main()':
a.cc:15:3: error: expected ',' or ';' before 'if'
   15 |   if(P[A]==P[B])Out("Yes");
      |   ^~
a.cc:16:3: error: 'else' without a previous 'if'
   16 |   else Out("No");
      |   ^~~~
Language: C++

#include <bits/stdc++.h>
using namespace std;
#define lli long long int
#define INF 999999999
#define rep(i, n) for(int i = 0;i < n;i++)
#define pb(n) push_back(n)
#define Sort(n) sort(n.begin(), n.end())
#define Rev(n) reverse(n.begin(),n.end())
#define Out(S) cout << S << endl
#define Vecpr vector<pair<lli,lli>>
int main() {
  lli A,B,C,D;
  cin >>A>>B;
  if(A==1||3||5||7||8||10){
    if(B==3||5||7||8||10||12)Out("Yes")
  }
  else if(A==4||6||9){
    if(B==6||9||11)Out("Yes")
  }
  else Out("No");
}

Compiler output:
a.cc: In function 'int main()':
a.cc:16:3: error: expected ';' before '}' token
   16 |   }
      |   ^
a.cc:19:3: error: expected ';' before '}' token
   19 |   }
      |   ^
Language: C++

#include <bits/stdc++.h>
using namespace std;
 
int main() {
  int a,b;
  cin >> a >> b;
  if(a ==1,3,5,7,8,10,12){
    a== 1;
  }
  else if(a=4,6,9,11){
   a== 2;
  }
    if(b ==1,3,5,7,8,10,12){
    b== 1;
  }
  else if(b=4,6,9,11){
   b== 2;
  }
  if(a ==b){
    cout << Yes <<endl;
  }
  else{
    cout << No <<endl;
  }

Compiler output:
a.cc: In function 'int main()':
a.cc:20:13: error: 'Yes' was not declared in this scope
   20 |     cout << Yes <<endl;
      |             ^~~
a.cc:23:13: error: 'No' was not declared in this scope
   23 |     cout << No <<endl;
      |             ^~
a.cc:24:4: error: expected '}' at end of input
   24 |   }
      |    ^
a.cc:4:12: note: to match this '{'
    4 | int main() {
      |            ^
Language: C++

#include<bits/stdc++.h>
using namespace std;
int main(){
  int a,b;
  cin>>a>>b;
  if(a<=7&&a%2!=0||a>=8&&a%2==0&&a<=7&&a%2!=0||a>=8&&a%2==0)
  cout << "Yes" <<endl;
  else if(4<=a&&a<=6&&a%2||a>=9&&a%2!=0&&4<=b&&b<=6&&b%2||b>=9&&b%2!=0)
          else cout<<"Yes"<<endl;
  else cout<<"No"<<endl;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:9:11: error: expected primary-expression before 'else'
    9 |           else cout<<"Yes"<<endl;
      |           ^~~~
Language: C++


#include<iostream>
#include<math.h>
#include<algorithm>
#include<vector>
#include<string>
//#include<windows.h>


using namespace std;



#define Int int64_t
#define dump(x) cout << (x) << endl
#define fi first
#define se second
Int mod = 1e9 + 7;
Int INF = 1e18;
double EPS = 0.00000001;
//Int mod = 1e6+3;




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


Compiler output:
a.cc: In function 'int main()':
a.cc:31:17: error: 'Cout' was not declared in this scope
   31 |                 Cout << "Yes" << endl;
      |                 ^~~~
Language: C++

// template
#include <bits/stdc++.h>
using namespace std;
typedef long long int ll;
typedef pair<long long, long long> LP;
#define INF 999999999
#define MOD 1000000007
#define REP(i, n) for(ll i = 0, i##_len = (n); i < i##_len; ++i)
#define REP_AB(i, a, b) for (ll i = ll(a); i <= ll(b); ++i)
#define ALL(v) v.begin(), v.end()
#define SORT(v) sort(ALL(v))
#define UNIQUE(v) sort(ALL(v));v.erase(unique(ALL(v)), v.end());
#define SIZE(x) ((ll)(x).size())
#define REVERSE(v) reverse(ALL(v))
ll gcd(ll a,ll b){return b?gcd(b,a%b):a;}
ll lcm(ll a,ll b){return (a / gcd(a, b)) * b;}
int dx[4]={1,0,-1,0};
int dy[4]={0,1,0,-1};
#define out cout
#define in cin
template<class T>bool chmax(T &a, const T &b) { if (a<b) { a=b; return 1; } return 0; }
template<class T>bool chmin(T &a, const T &b) { if (b<a) { a=b; return 1; } return 0; }
// template end

int main()
{
    ios::sync_with_stdio(false);
    cin.tie(0);
    ll x, y;
    in >> x >> y;

    vector<ll> g1 = {1, 3, 5, 7, 8, 10, 12};
    vector<ll> g2 = {4, 6, 9, 11};
    vector<ll> g3 = {2};

    ll xg, xy;
    REP(i, g1.size()){
        if(g1[i] == x) xg = 1;
        if(g1[i] == y) yg = 1;
    }
    REP(i, g2.size()){
        if(g2[i] == x) xg = 2;
        if(g2[i] == y) yg = 2;
    }
    REP(i, g3.size()){
        if(g3[i] == x) xg = 3;
        if(g3[i] == y) yg = 3;
    }
    if(xg == yg) out << "Yes" << endl;
    else out << "No" << endl;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:39:24: error: 'yg' was not declared in this scope; did you mean 'xg'?
   39 |         if(g1[i] == y) yg = 1;
      |                        ^~
      |                        xg
a.cc:43:24: error: 'yg' was not declared in this scope; did you mean 'xg'?
   43 |         if(g2[i] == y) yg = 2;
      |                        ^~
      |                        xg
a.cc:47:24: error: 'yg' was not declared in this scope; did you mean 'xg'?
   47 |         if(g3[i] == y) yg = 3;
      |                        ^~
      |                        xg
a.cc:49:14: error: 'yg' was not declared in this scope; did you mean 'xg'?
   49 |     if(xg == yg) out << "Yes" << endl;
      |              ^~
      |              xg