criyle/codenet-compile-errors huggingface dataset:
Language: Java

import java.util.*;

class Main{
  public static void main(String[] args){
    Integer a[] = {1,3,5,7,8.10.12};
    Integer b[] = {4,6,9,11};
    Integer c[] = {2};
    Scanner scan = new Scanner(System.in);
    Integer x = scan.nextInt();
    Integer y = scan.nextInt();
    Integer g1 = 0;
    Integer g2 = 0;
    if(Arrays.asList(a).contains(x)) {
      g1 = 1;
    }else if(Arrays.asList(b).contains(x)){
      g1 = 2;
    }else{
      g1 = 3;
    }
    if(Arrays.asList(a).contains(y)) {
      g2 = 1;
    }else if(Arrays.asList(b).contains(y)){
      g2 = 2;
    }else{
      g2 = 3;
    }
    if(g1==g2){
      System.out.println("Yes");
    }else{
      System.out.println("No");
    }
  }
}

  

Compiler output:
Main.java:5: error: '}' expected
    Integer a[] = {1,3,5,7,8.10.12};
                               ^
Main.java:13: error: illegal start of type
    if(Arrays.asList(a).contains(x)) {
    ^
Main.java:13: error: <identifier> expected
    if(Arrays.asList(a).contains(x)) {
                    ^
Main.java:13: error: <identifier> expected
    if(Arrays.asList(a).contains(x)) {
                      ^
Main.java:13: error: ';' expected
    if(Arrays.asList(a).contains(x)) {
                       ^
Main.java:15: error: illegal start of type
    }else if(Arrays.asList(b).contains(x)){
     ^
Main.java:15: error: <identifier> expected
    }else if(Arrays.asList(b).contains(x)){
                          ^
Main.java:15: error: <identifier> expected
    }else if(Arrays.asList(b).contains(x)){
                            ^
Main.java:15: error: ';' expected
    }else if(Arrays.asList(b).contains(x)){
                             ^
Main.java:17: error: illegal start of type
    }else{
     ^
Main.java:20: error: illegal start of type
    if(Arrays.asList(a).contains(y)) {
    ^
Main.java:20: error: <identifier> expected
    if(Arrays.asList(a).contains(y)) {
                    ^
Main.java:20: error: <identifier> expected
    if(Arrays.asList(a).contains(y)) {
                      ^
Main.java:20: error: ';' expected
    if(Arrays.asList(a).contains(y)) {
                       ^
Main.java:22: error: illegal start of type
    }else if(Arrays.asList(b).contains(y)){
     ^
Main.java:22: error: <identifier> expected
    }else if(Arrays.asList(b).contains(y)){
                          ^
Main.java:22: error: <identifier> expected
    }else if(Arrays.asList(b).contains(y)){
                            ^
Main.java:22: error: ';' expected
    }else if(Arrays.asList(b).contains(y)){
                             ^
Main.java:24: error: illegal start of type
    }else{
     ^
Main.java:27: error: illegal start of type
    if(g1==g2){
    ^
Main.java:27: error: <identifier> expected
    if(g1==g2){
         ^
Main.java:27: error: <identifier> expected
    if(g1==g2){
             ^
Main.java:29: error: illegal start of type
    }else{
     ^
Main.java:33: error: class, interface, enum, or record expected
}
^
24 errors
Language: C++

#include <iostream>
#include <iomanip>
#include <utility>
#include <cmath>
#include <random>
#include <vector>
#include <map>
#include <set>
#include <queue>
#include <stack>
#include <string>
#include <algorithm>
using namespace std;

#define rep(i,n) for(int i = 0; i<n; ++i)
const int INF = 100100100;
const int MOD = (int)1e9 + 7;
typedef long long ll;

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



Compiler output:
a.cc: In function 'int main()':
a.cc:23:60: error: expected '}' at end of input
   23 |     cout << ((s[a] == s[b]) ? "Yes":"No") <<endl; return 0;
      |                                                            ^
a.cc:20:11: note: to match this '{'
   20 | int main(){
      |           ^
Language: C++

#include<bits/stdc++.h>
using namespace std;
int x,y,a[15],b[15],c[15];
int main(){
    scanf("%d%d",&x,&y);
    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");
        else printf("No");
    }
    if(x==4||x==6||x==9||x==11){
        if(y==4||y==6||y==9||y==11)printf("Yes\n");
        else printf("No");
    }
    if(x==2){
        if(y==2) printf("Yes\n");
        else printf("No");
    }
    return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:6:52: error: expected primary-expression before ')' token
    6 |     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 x,y,a[15],b[15],c[15];
int main(){
    scanf("%d%d",&x,&y)
    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");
        else printf("No");
    }
    if(x==4||x==6||x==9||x==11){
        if(y==4||y==6||y==9||y==11)printf("Yes\n");
        else printf("No");
    }
    if(x==2){
        if(y==2) printf("Yes\n");
        else printf("No");
    }
    return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:5:24: error: expected ';' before 'if'
    5 |     scanf("%d%d",&x,&y)
      |                        ^
      |                        ;
    6 |     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(){
  string a="0020101001010"
  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:5:3: error: expected ',' or ';' before 'int'
    5 |   int x,y;
      |   ^~~
a.cc:6:8: error: 'x' was not declared in this scope
    6 |   cin>>x>>y;
      |        ^
a.cc:6:11: error: 'y' was not declared in this scope
    6 |   cin>>x>>y;
      |           ^
Language: C++

#include<iostream>
using namespace std;
int a[11]={31,28,31,30,31,30,31,31,30,31,30,31};
int main(){
int m,n;
cin>>m>>n;
if(a[m-1]==a[n-1]) cout<<"Yes";
else cout<<"No";
}

Compiler output:
a.cc:3:47: error: too many initializers for 'int [11]'
    3 | int a[11]={31,28,31,30,31,30,31,31,30,31,30,31};
      |                                               ^
Language: C++

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

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

Compiler output:
a.cc: In function 'int main()':
a.cc:12:9: error: 'cotu' was not declared in this scope
   12 |         cotu << "No";
      |         ^~~~
Language: C++

#include<bits/stdc++.h>
using namespace std;
int main(){
  int a,b;
  int aa = 0,bb = 0,cc = 0,dd = 0,ee = 0 ,ff = 0,gg = 0,hh = 0;
  cin >> a >> b;
  vector<int> c= {1,3,5,7,8,10,12};
  vector<int> d= {4,6,9,11};
  vector<int> e= {2};
  
  for(int i = 0;i<c.size();i++){
    if(c.at(i) == a)
      aa  = 1;
    if(c.at(i) == b)
      bb = 1;
  }
  for(int i = 0;i<d.size();i++){
    if(d.at(i) == a)
      cc  = 1;
    if(d.at(i) == b)
      dd = 1;
  }
  for(int i = 0;i<e.size();i++){
    if(e.at(i) == a)
      ee  = 1;
    if(e.at(i) == b)
      ff = 1;
  }
  if(aa == 1 && bb == 1)
    cout << "Yes" << endl;
  else if(cc == 1 && dd == 1)
    cout << "Yes" << endl;
  else if(ee == 1 && ff == 1)
    cout << "Yes" << endl;
  else
    cout << "No" << endl;
}
  
}


Compiler output:
a.cc:39:1: error: expected declaration before '}' token
   39 | }
      | ^
Language: C++

#include <iostream>
#include <string>
//#include <sstream>  // istringstream
#include <vector>

using namespace std;

int Test()
{
	int x = 0; 
	int y = 0;
	
	std::vector<int> gr1 = { 1, 3, 5, 7, 8, 10, 12 };
//	int gr1[] = { 1, 3, 5, 7, 8, 10, 12 };
	std::vector<int> gr2 = { 4, 6, 9, 11 };
	//int gr2[] = { 4, 6, 9, 11 };
	std::vector<int> gr3 = { 2 };
	//int gr3[] = { 2 };
	
	std::vector<std::vector<int>> grp = { gr1, gr2, gr3 };
	//int *grp[] = { gr1, gr2, gr3 };

	cin >> x >> y;

	int num1 = 0;
	int num2 = 0;
	for (int i = 0; i < 3; ++i){
		for (auto& elem : grp[i]){
			if (x == elem){
				num1 = i;
				break;
			}
		}
	}
	for (int i = 0; i < 3; ++i){
		for (auto& elem : grp[i]){
			if (y == elem){
				num2 = i;
				break;
			}
		}
	}
	if (num1 == num2){
		cout << "Yes";
	}
	else {
		cout << "No";
	}

	return 0;
}

Compiler output:
/usr/bin/ld: /usr/lib/gcc/x86_64-linux-gnu/14/../../../x86_64-linux-gnu/Scrt1.o: in function `_start':
(.text+0x17): undefined reference to `main'
collect2: error: ld returned 1 exit status
Language: C++

#include <iostream>
#include <string>
//#include <sstream>  // istringstream
#include <vector>

using namespace std;

int Test()
{
	int x = 0; 
	int y = 0;
	
	std::vector<int> gr1 = { 1, 3, 5, 7, 8, 10, 12 };
	std::vector<int> gr2 = { 4, 6, 9, 11 };
	std::vector<int> gr3 = { 2 };
	std::vector<std::vector<int>> grp = { gr1, gr2, gr3 };

	cin >> x >> y;

	int num1 = 0;
	int num2 = 0;
	for (int i = 0; i < 3; ++i){
		for (auto& elem : grp[i]){
			if (x == elem){
				num1 = i;
				break;
			}
		}
	}
	for (int i = 0; i < 3; ++i){
		for (auto& elem : grp[i]){
			if (y == elem){
				num2 = i;
				break;
			}
		}
	}
	if (num1 == num2){
		cout << "Yes";
	}
	else {
		cout << "No";
	}

	return 0;
}

Compiler output:
/usr/bin/ld: /usr/lib/gcc/x86_64-linux-gnu/14/../../../x86_64-linux-gnu/Scrt1.o: in function `_start':
(.text+0x17): undefined reference to `main'
collect2: error: ld returned 1 exit status
Language: C++


#include <iostream>
#include <string>
#include <sstream>  // istringstream
#include <vector>

using namespace std;

int mai()
{
	int x = 0; 
	int y = 0;
	
	std::vector<int> gr1 = { 1, 3, 5, 7, 8, 10, 12 };
	std::vector<int> gr2 = { 4, 6, 9, 11 };
	std::vector<int> gr3 = { 2 };
	std::vector<std::vector<int>> grp = { gr1, gr2, gr3 };

	cin >> x >> y;

	int num1 = 0;
	int num2 = 0;
	for (int i = 0; i < 3; ++i){
		for (auto& elem : grp[i]){
			if (x == elem){
				num1 = i;
				break;
			}
		}
	}
	for (int i = 0; i < 3; ++i){
		for (auto& elem : grp[i]){
			if (y == elem){
				num2 = i;
				break;
			}
		}
	}
	if (num1 == num2){
		cout << "Yes";
	}
	else {
		cout << "No";
	}

	return 0;
}


Compiler output:
/usr/bin/ld: /usr/lib/gcc/x86_64-linux-gnu/14/../../../x86_64-linux-gnu/Scrt1.o: in function `_start':
(.text+0x17): undefined reference to `main'
collect2: error: ld returned 1 exit status
Language: C++

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

}


Compiler output:
a.cc: In function 'int main()':
a.cc:6:34: error: invalid operands of types 'const char [3]' and '<unresolved overloaded function type>' to binary 'operator<<'
    6 |   cout<<(a[x]==a[y]) ? "Yes":"No"<<endl;
      |                              ~~~~^~~~~~
Language: C++

#include <bits/stdc++.h>
using namespace std;
 
int main() {
	int x, y;
	cin >> x >> y;

	int a[] = {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:9:14: error: request for member 'at' in 'a', which is of non-class type 'int [13]'
    9 |         if(a.at(x)==a.at(y))
      |              ^~
a.cc:9:23: error: request for member 'at' in 'a', which is of non-class type 'int [13]'
    9 |         if(a.at(x)==a.at(y))
      |                       ^~
Language: C

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

Compiler output:
main.c: In function 'main':
main.c:31:5: error: expected declaration or statement at end of input
   31 |     return 0;
      |     ^~~~~~
Language: C++

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

int main() {
  vector<int> groupA = {1,3,5,7,8,10,12};  
  vector<int> groupB = {4,6,9,11};
  bool same;
  int x,y;
  cin>>x>>y;
  
  for(int i=0; i<7; i++)
  {
    if (x == groupA.at(i))
  {
      for(int j=0; j<6-i;j++)
      {if(y ==groupA.at(j)){same = true; break;}}
    }
  }
  if(!same){
    for(int i=0; i<4; i++)
  {
    if (x == groupB.at(i))
  {
      for(int j=0; j<3-i;j++)
      {if(y ==groupB.at(j)){same = true; break;}}
    }
  }
  }
  if(same){
  cout<<Yes<<endl;}
  else{cout<<No<<endl;}
  
  
}



Compiler output:
a.cc: In function 'int main()':
a.cc:30:9: error: 'Yes' was not declared in this scope
   30 |   cout<<Yes<<endl;}
      |         ^~~
a.cc:31:14: error: 'No' was not declared in this scope
   31 |   else{cout<<No<<endl;}
      |              ^~
Language: C++

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

int main() {
  vector<int> groupA(7)={1,3,5,7,8,10,12};  
  vector<int> groupB(4)={4,6,9,11};
  bool same;
  int x,y;
  cin>>x>>y;
  
  for(int i=0; i<7; i++;)
  {
    if (x == groupA.at(i))
  {
      for(int j=0; j<6-i;j++)
      {if(y ==groupA.at(j)){same = true; break;}}
    }
  }
  if(!same){
    for(int i=0; i<4; i++;)
  {
    if (x == groupB.at(i))
  {
      for(int j=0; j<3-i;j++)
      {if(y ==groupB.at(j)){same = true; break;}}
    }
  }
  }
  if(same){
  cout<<Yes<<endl;}
  else{cout<<No<<endl;}
  
  
}



Compiler output:
a.cc: In function 'int main()':
a.cc:5:24: error: expected ',' or ';' before '=' token
    5 |   vector<int> groupA(7)={1,3,5,7,8,10,12};
      |                        ^
a.cc:6:24: error: expected ',' or ';' before '=' token
    6 |   vector<int> groupB(4)={4,6,9,11};
      |                        ^
a.cc:11:24: error: expected ')' before ';' token
   11 |   for(int i=0; i<7; i++;)
      |      ~                 ^
      |                        )
a.cc:11:25: error: expected primary-expression before ')' token
   11 |   for(int i=0; i<7; i++;)
      |                         ^
a.cc:20:26: error: expected ')' before ';' token
   20 |     for(int i=0; i<4; i++;)
      |        ~                 ^
      |                          )
a.cc:20:27: error: expected primary-expression before ')' token
   20 |     for(int i=0; i<4; i++;)
      |                           ^
a.cc:30:9: error: 'Yes' was not declared in this scope
   30 |   cout<<Yes<<endl;}
      |         ^~~
a.cc:31:14: error: 'No' was not declared in this scope
   31 |   else{cout<<No<<endl;}
      |              ^~
Language: C

# -*- coding: utf-8 -*-S
x,y = [int(i) for i in input().split()]

"""
if x == 2 or y == 2:
    print("No")
elif x == 4 or x == 6 or x == 9 and y == 6 or y == 9 or y == 11:
    print("Yes")
elif x == 1 or x == 3 or x == 5 or x == 7 or x == 8 or x == 10　and y == 3 or y == 5 or y == 7 or y == 8 or y == 10 or y == 12:
    print("Yes")
else:
    print("No")
"""

A = [1,3,5,7,8,10,12]
B = [4,6,9,11]
tmp = 0

for i in range(7):
    if A[i] == x:
        for j in range(i,7):
            if A[j] == y:
                tmp = 1
for i in range(4):
    if A[i] == x:
        for j in range(i,4):
            if A[j] == y:
                tmp = 1
if tmp == 1:
    print("Yes")
else:
    print("No")


Compiler output:
main.c:1:3: error: invalid preprocessing directive #-
    1 | # -*- coding: utf-8 -*-S
      |   ^
main.c:2:1: warning: data definition has no type or storage class
    2 | x,y = [int(i) for i in input().split()]
      | ^
main.c:2:1: error: type defaults to 'int' in declaration of 'x' [-Wimplicit-int]
main.c:2:3: error: type defaults to 'int' in declaration of 'y' [-Wimplicit-int]
    2 | x,y = [int(i) for i in input().split()]
      |   ^
main.c:2:7: error: expected expression before '[' token
    2 | x,y = [int(i) for i in input().split()]
      |       ^
main.c:4:1: error: expected ',' or ';' before string constant
    4 | """
      | ^~
main.c:4:3: warning: missing terminating " character
    4 | """
      |   ^
main.c:4:3: error: missing terminating " character
main.c:9:63: error: stray '\343' in program
    9 | elif x == 1 or x == 3 or x == 5 or x == 7 or x == 8 or x == 10<U+3000>and y == 3 or y == 5 or y == 7 or y == 8 or y == 10 or y == 12:
      |                                                               ^~~~~~~~
main.c:13:3: warning: missing terminating " character
   13 | """
      |   ^
main.c:13:3: error: missing terminating " character
Language: C++

#include<iostream>
using namespace std;
int main(){
    int x,y;
    cin>>x>>y;
    if(x==1&&y==1||x==3&&y==3||x==5&&y==5||x==7&&y==7||x==8&&y==8||x==10&&y==10||x==12&&y==12){
        cout<<"Yes";
    }
       else if(x==1&&y==3||x==1&&y==3||x==1&&y==5||x==1&&y==7||x==1&&y==8||x==1&&y==10||x==1&&y==12){
        cout<<"Yes";
    } 
    else if(x==3&&y==1||x==3&&y==3||x==3&&y==5||x==3&&y==7||x==3&&y==8||x==3&&y==10||x==3&&y==12){
        cout<<"Yes";
    }
    else if(x==5&&y==1||x==5&&y==3||x==5&&y==5||x==5&&y==7||x==5&&y==8||x==5&&y==10||x==5&&y==12){
        cout<<"Yes";
    }
    else if(x==7&&y==1||x==7&&y==3||x==7&&y==5||x==7&&y==7||x==7&&y==8||x==7&&y==10||x==7&&y==12){
        cout<<"Yes";
    }
    else if(x==8&&y==1||x==8&&y==3||x==8&&y==5||x==8&&y==7||x==8&&y==8||x==8&&y==10||x==8&&y==12){
        cout<<"Yes";
    }
   else if(x==12&&y==1||x==12&&y==3||x==12&&y==5||x==12&&y==7||x==12&&y==8||x==12&&y==10||x==12&&y==12){
        cout<<"Yes";
    }
    else if (x==6&&y==4||x==6&&y==6||x==6&&y==9||x==6&&y==11 ){
        cout<<"Yes";
    }
    else if (x==4&&y==4||x==4&&y==6||x==4&&y==9||x==4&&y==11 ){
        cout<<"Yes";
    }
    else if (x==9&&y==4||x==9&&y==6||x==9&&y==9||x==9&&y==11 ){
        cout<<"Yes";
    }
    else if (x==11&&y==4||x==11&&y==6||x=11&&y==9||x==11&&y==11 ){
        cout<<"Yes";
    }
    else if(x==2&&y==2){
        cout<<"Yes";
    }
    else cout<<"No";
return 0;
}


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

#include<stdio.h>
int main(){
int a,b;
scanf("%d%d",&a,&b);
if(a==2){
a=3;
}else if(a==4 || a==6 || a==9 || a==11){
a=2
}else{
a=1
}
if(b==2){
b=3;
}else if(b==4 || b==6 || b==9 || b==11){
b=2
}else{
b=1
}
printf(a==b?"Yes":"No");
return 0;}

Compiler output:
main.c: In function 'main':
main.c:8:4: error: expected ';' before '}' token
    8 | a=2
      |    ^
      |    ;
    9 | }else{
      | ~   
main.c:10:4: error: expected ';' before '}' token
   10 | a=1
      |    ^
      |    ;
   11 | }
      | ~   
main.c:15:4: error: expected ';' before '}' token
   15 | b=2
      |    ^
      |    ;
   16 | }else{
      | ~   
main.c:17:4: error: expected ';' before '}' token
   17 | b=1
      |    ^
      |    ;
   18 | }
      | ~
Language: C

#include<stdio.h>
	int main(){
      int A[7] = {1, 3, 5, 7, 8, 10, 12};
      int B[4] = {4, 6, 9, 11};
      int C[1] = {2};
      int x, y, a, b, c, i, j;
      scanf("%d%d", &x, &y);
      	for(i = 1; i < 8; i++){
          if(x == A[i]){
            a = 1;
          }
          	if(y == A[i]){
              b = 1;
            }
          for(j = 1; j < 5; j++){
            if(x == B[j]){
              a = 2;
            }
            	if(y == B[j]){
                  b = 2;
                }
            if(a == b || x == y){
              printf("Yes");
            }else{
			  printf("No");
            }
            return 0;
          }

Compiler output:
main.c: In function 'main':
main.c:28:11: error: expected declaration or statement at end of input
   28 |           }
      |           ^
main.c:28:11: error: expected declaration or statement at end of input
Language: C++

#include<bits/stdc++.h>
using namespace std;
#define rep(i,j,n) for(int i=(int)(j);i<(int)(n);i++)
#define REP(i,j,n) for(int i=(int)(j);i<=(int)(n);i++)
#define MOD 1000000007
#define int long long
#define ALL(a) (a).begin(),(a).end()
#define vi vector<int>
#define vii vector<vi>
#define pii pair<int,int>
#define priq priority_queue<int>
#define disup(A,key) distance(A.begin(),upper_bound(ALL(A),(int)(key)))
#define dislow(A,key) distance(A.begin(),lower_bound(ALL(A),(int)(key)))
signed main(){
  vi A={1,3,5,7.8.10,12};
  int X,Y;
  cin>>X>>Y;
  int x=3,y=3;
  rep(i,0,A.size()){
    if(A[i]==X)
      x=1;
    if(A[i]==Y)
      y=1;
    }
  if(2==X)
    x=2;
  if(2==Y)
    y=2;
  string ans="No";
  if(x==y)
    ans="Yes";
  cout<<ans;
  }


Compiler output:
a.cc:15:15: error: too many decimal points in number
   15 |   vi A={1,3,5,7.8.10,12};
      |               ^~~~~~
a.cc: In function 'int main()':
a.cc:15:24: error: could not convert '{1, 3, 5, <expression error>, 12}' from '<brace-enclosed initializer list>' to 'std::vector<long long int>'
   15 |   vi A={1,3,5,7.8.10,12};
      |                        ^
      |                        |
      |                        <brace-enclosed initializer list>
Language: C++

#include <bits/stdc++.h>
using namespace std;
#define int long long
#define rep(i,n) for(int i=0;i<n;i++)
#define rep1(i,n) for(int i=1;i<=n;i++)
#define rep2(i,n) for(int i=0;i<=n;i++)
#define repr(i,a,n) for(int i=a;i<n;i++)
#define all(a) a.begin(),a.end()
#define P pair<long long,long long>
#define double long double
#define INF 1e10
#define MOD 1e9+7
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; }
signed main(){
vector<int> b(13)={0,1,3,1,2,1,2,1,1,2,1,2,1};
  int x,y;
  cin>>x>>y;
  if(b[x]==b[y])
    cout<<"Yes";
  else
    cout<<"No";
}

Compiler output:
a.cc: In function 'int main()':
a.cc:16:18: error: expected ',' or ';' before '=' token
   16 | vector<int> b(13)={0,1,3,1,2,1,2,1,1,2,1,2,1};
      |                  ^
Language: C++

///スマホコーディング
#include <bits/stdc++.h>
using namespace std;
#define rep(i,n) for(int i=0;i<int(n);++i)
typedef long long ll;
const int inf=1e9;
int main(){
  int x,y;cin>>x>>y;
  if(x==2||y==2)cout<<"No"<<endl;
  else{
  vector<int> v={4,6,9,11};
  int f=0;int f2==0;
  rep(i,4)if(v[i]==x)f=1;
  rep(i,4)if(v[i]==y)f2=1;
  if(f==1&&f2==1)cout<<"Yes"<<endl;
  else{
    if(f==1||f2==1)cout<<"No"<<endl;
    else cout<<"Yes"<<endl;
  }
  }
  return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:12:17: error: expected initializer before '==' token
   12 |   int f=0;int f2==0;
      |                 ^~
a.cc:14:22: error: 'f2' was not declared in this scope; did you mean 'f'?
   14 |   rep(i,4)if(v[i]==y)f2=1;
      |                      ^~
      |                      f
a.cc:15:12: error: 'f2' was not declared in this scope; did you mean 'f'?
   15 |   if(f==1&&f2==1)cout<<"Yes"<<endl;
      |            ^~
      |            f
Language: C++

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

Compiler output:
a.cc: In function 'int main()':
a.cc:6:3: error: 'group' was not declared in this scope
    6 |   group[] = {1,3,1,2,1,2,1,1,2,1,2,1};
      |   ^~~~~
a.cc:6:9: error: expected primary-expression before ']' token
    6 |   group[] = {1,3,1,2,1,2,1,1,2,1,2,1};
      |         ^
Language: C++

#include<iostream>
using namespace std;
int main(){
  int a, b;
  cin >> a >> b;

  int c[3][] ={ {1,3,5,7,8,10,12}
   ,{4,6,9,11}
  ,{2}};
  
  bool ans = false;
  int cnt = 0;
  for(int i=0; i<7; i++){
if(a==c[0][i] || b==c[0][i])
  cnt++;
  }
  if(cnt ==2){
    cout << "Yes";
return 0;
  }
  cnt =0;
for(int i=0; i<4; i++){
if(a==c[1][i] || b==c[1][i])
  cnt++;
  }
  if(cnt ==2){
    cout << "Yes";
return 0;
  }
  else
    cout << "No";
  
  return 0;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:7:7: error: declaration of 'c' as multidimensional array must have bounds for all dimensions except the first
    7 |   int c[3][] ={ {1,3,5,7,8,10,12}
      |       ^
a.cc:14:7: error: 'c' was not declared in this scope
   14 | if(a==c[0][i] || b==c[0][i])
      |       ^
a.cc:23:7: error: 'c' was not declared in this scope
   23 | if(a==c[1][i] || b==c[1][i])
      |       ^
Language: C++

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

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


Compiler output:
a.cc: In function 'int main()':
a.cc:10:14: error: request for member 'at' in 'a', which is of non-class type 'int [13]'
   10 |   cout << (a.at(x) == a.at(y) ? "Yes" : "No") << endl ;
      |              ^~
a.cc:10:25: error: request for member 'at' in 'a', which is of non-class type 'int [13]'
   10 |   cout << (a.at(x) == a.at(y) ? "Yes" : "No") << endl ;
      |                         ^~
Language: C++

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

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


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

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

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


Compiler output:
a.cc: In function 'int main()':
a.cc:7:53: error: too many initializers for 'int [12]'
    7 |   int a[12] = {0, 1, 2, 1, 3, 1, 3, 1, 1, 3, 1, 3, 1}
      |                                                     ^
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) && (y == 1 || y == 3 || y == 5 || y == 7 || y == 8 || y == 10 || y == 12)){
    cout << "Yes" << endl;
  }
  
  else if((x == 4 || x == 6 || x == 9 || x == 11) && (y == 4 || y == 6 || y == 9 || y == 11){
    cout << "Yes" << endl;
  }
  
  else{
    cout << "No" << endl;
  }
     
}


Compiler output:
a.cc: In function 'int main()':
a.cc:12:93: error: expected ')' before '{' token
   12 |   else if((x == 4 || x == 6 || x == 9 || x == 11) && (y == 4 || y == 6 || y == 9 || y == 11){
      |          ~                                                                                  ^
      |                                                                                             )
a.cc:20:1: error: expected primary-expression before '}' token
   20 | }
      | ^
Language: C++

#include <vector>
#include <iostream>
#include <algorithm>
#include <functional>
#include <string>
#include <limits.h>
#include <cmath>
#include <queue>
#include <map>
#include <iomanip>
#include <random>
#include <fstream>
#define rep(i, n) for (int i = 0; i < n; i++)
#define PI 3.14159265358979323846
#define MOD 1000000007
using namespace std;
using ll = long long;

const int MAX = 1000000;

ll fac[MAX], finv[MAX], inv[MAX];

// テーブルを作る前処理
void COMinit() {
  fac[0] = fac[1] = 1;
  finv[0] = finv[1] = 1;
  inv[1] = 1;
  for (int i = 2; i < MAX; i++){
    fac[i] = fac[i - 1] * i % MOD;
    inv[i] = MOD - inv[MOD%i] * (MOD / i) % MOD;
    finv[i] = finv[i - 1] * inv[i] % MOD;
  }
}

// 二項係数計算
long long COM(int n, int k){
  if (n < k) return 0;
  if (n < 0 || k < 0) return 0;
  return fac[n] * (finv[k] * finv[n - k] % MOD) % MOD;
}

ll gcd(ll a, ll b)
{
  ll r;
  while ((r = a % b))
  {
    a = b;
    b = r;
  }
  return b;
}

template <class T> struct cord{
  T x,y;
};

template <class T> double dist(cord<T> a, cord<T> b){
  T dx=a.x-b.x;
  T dy=a.y-b.y;
  return sqrt(dx*dx+dy*dy);
}

int main()
{

  //cout << fixed << setprecision(10);

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

  return 0;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:69:20: error: expected ',' or ';' before '=' token
   69 |   vector<int> a(13)={-1,0,2,0,1,0,1,0,0,1,0,1,0};
      |                    ^
Language: C

#include <stdio.h>

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


Compiler output:
main.c: In function 'main':
main.c:8:17: error: lvalue required as left operand of assignment
    8 |     if((x=a && y=a)||(x=b && y=b)){
      |                 ^
main.c:8:31: error: lvalue required as left operand of assignment
    8 |     if((x=a && y=a)||(x=b && y=b)){
      |                               ^
Language: C

#include <stdio.h>

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


Compiler output:
main.c: In function 'main':
main.c:8:14: error: expected expression before ']' token
    8 |     if((x==a[] && y==a[])||(x==b[] && y==b[])){
      |              ^
main.c:8:34: error: expected expression before ']' token
    8 |     if((x==a[] && y==a[])||(x==b[] && y==b[])){
      |                                  ^
Language: C

#include <stdio.h>

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

Compiler output:
main.c: In function 'main':
main.c:6:3: error: expected ',' or ';' before 'int'
    6 |   int b[] = {1,3,5,7,8,10,12}
      |   ^~~
main.c:8:10: warning: comparison between pointer and integer
    8 |     if((x==a && y==a)||(x==b && y==b)){
      |          ^~
main.c:8:18: warning: comparison between pointer and integer
    8 |     if((x==a && y==a)||(x==b && y==b)){
      |                  ^~
main.c:8:28: error: 'b' undeclared (first use in this function)
    8 |     if((x==a && y==a)||(x==b && y==b)){
      |                            ^
main.c:8:28: note: each undeclared identifier is reported only once for each function it appears in
Language: C

#include <stdio.h>

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

Compiler output:
main.c: In function 'main':
main.c:8:10: warning: comparison between pointer and integer
    8 |     if((x==a && y==a)||(x==b && y==b){
      |          ^~
main.c:8:18: warning: comparison between pointer and integer
    8 |     if((x==a && y==a)||(x==b && y==b){
      |                  ^~
main.c:8:26: warning: comparison between pointer and integer
    8 |     if((x==a && y==a)||(x==b && y==b){
      |                          ^~
main.c:8:34: warning: comparison between pointer and integer
    8 |     if((x==a && y==a)||(x==b && y==b){
      |                                  ^~
main.c:8:38: error: expected ')' before '{' token
    8 |     if((x==a && y==a)||(x==b && y==b){
      |       ~                              ^
      |                                      )
main.c:17:1: error: expected expression before '}' token
   17 | }
      | ^
Language: C

#include <stdio.h>

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


Compiler output:
main.c: In function 'main':
main.c:6:3: error: expected ',' or ';' before 'int'
    6 |   int b[] = {1,3,5,7,8,10,12}
      |   ^~~
main.c:8:10: warning: comparison between pointer and integer
    8 |     if((x==a && y==a)||(x==b && y==b){
      |          ^~
main.c:8:18: warning: comparison between pointer and integer
    8 |     if((x==a && y==a)||(x==b && y==b){
      |                  ^~
main.c:8:28: error: 'b' undeclared (first use in this function)
    8 |     if((x==a && y==a)||(x==b && y==b){
      |                            ^
main.c:8:28: note: each undeclared identifier is reported only once for each function it appears in
main.c:8:38: error: expected ')' before '{' token
    8 |     if((x==a && y==a)||(x==b && y==b){
      |       ~                              ^
      |                                      )
main.c:17:1: error: expected expression before '}' token
   17 | }
      | ^
Language: C

#include <stdio.h>

int main(void){
  scanf("%d",&x); scanf("%d",&y);
    if(x==4,6,9,11 && y==4,6,9,11){
      printf("Yes");
    }else if(x!=2 && y!=2){
      printf("Yes");
    }else{
      printf("No");
    }
  
  return 0;
}
  

Compiler output:
main.c: In function 'main':
main.c:4:15: error: 'x' undeclared (first use in this function)
    4 |   scanf("%d",&x); scanf("%d",&y);
      |               ^
main.c:4:15: note: each undeclared identifier is reported only once for each function it appears in
main.c:4:31: error: 'y' undeclared (first use in this function)
    4 |   scanf("%d",&x); scanf("%d",&y);
      |                               ^
Language: C++

#include <bits/stdc++.h>
#define rep(var,cnt) for(int (var)=0; (var)<(int)(cnt); ++(var))
#define Rep(var,init,cnt) for(int (var)=(init); (var)<(cnt); ++(var))
#define ran(var,vec) for(auto &(var):(vec))
#define all(v) (v).begin(),(v).end()
#define rall(v) (v).rbegin(),(v).rend()
#define SORT(v) sort(all(v))
#define RSORT(v) sort(rall(v))
#define SUM(v) accumulate(all(v),0)
#define tget(tp,idx) get<idx>(tp)
#define TF(flag) (flag)?1:0
using namespace std;

using ll = long long;
using ull = unsigned long long;
using pi = pair<int,int>;
using pl = pair<ll,ll>;
using ti = tuple<int,int,int>;
using tl = tuple<ll,ll,ll>;

template<typename T>
using vec = vector<T>;
template<typename T>
using mat = vector<vec<T>>;
template<typename T>
using cub = vector<mat<T>>;
template<typename T>
using val = valarray<T>;

template<typename T>
using pq = priority_queue<T>;
template<typename T>
using rpq = priority_queue<T,vec<T>,greater<T>>;

template<typename T1,typename T2>
ostream &operator<<(ostream &os, const pair<T1,T2> &p){
  os<<"P("<<p.first<<", "<<p.second<<") ";
  return os;
}

template<typename T1,typename T2>
istream &operator>>(istream &is, pair<T1,T2> &p){
  is>>p.first>>p.second;
  return is;
}

template<typename T>
ostream &operator<<(ostream &os, const vector<T> &v){
  cout<<"V{";
  for(int i=0; i<(int)v.size(); ++i){
    os<<v[i]<<(i+1!=v.size()?" ":"");
  }
  cout<<"}";
  return os;
}

template<typename T>
istream &operator>>(istream &is, vector<T> &v){
  for(T &in:v) is>>in;
  return is;
}

template<typename T>
ostream &operator<<(ostream &os, const valarray<T> &v){
  cout<<"V{";
  for(int i=0; i<(int)v.size(); ++i){
    os<<v[i]<<(i+1!=v.size()?" ":"");
  }
  cout<<"}";
  return os;
}

template<typename T>
istream &operator>>(istream &is, valarray<T> &v){
  for(T &in:v) is>>in;
  return is;
}

// Usual Template End ================================================

// Template End ======================================================

constexpr int MOD=1e9+7;

int main(void){
  vec<int> g{1,0,1,2,1,2,1,1,2,1,2,1};
  cin>>x>>y;
  if(g[x-1]==g[y-1]) cout<<"Yes"<<endl;
  else cout<<"No"<<endl;
}













Compiler output:
a.cc: In function 'int main()':
a.cc:87:8: error: 'x' was not declared in this scope
   87 |   cin>>x>>y;
      |        ^
a.cc:87:11: error: 'y' was not declared in this scope
   87 |   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;
  
  return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:7:41: error: invalid operands of types 'const char [3]' and '<unresolved overloaded function type>' to binary 'operator<<'
    7 |   cout << (a[x] == a[y]) ? "Yes" : "No" << endl;
      |                                    ~~~~~^~~~~~~
Language: C++

#include <iostream>
int main(){char c[]="0131212112121";int a,b;std::cin>>a>>b;std::cout<<(c[b]-c[a]:"No":"Yes");}

Compiler output:
a.cc: In function 'int main()':
a.cc:2:81: error: expected ')' before ':' token
    2 | int main(){char c[]="0131212112121";int a,b;std::cin>>a>>b;std::cout<<(c[b]-c[a]:"No":"Yes");}
      |                                                                       ~         ^
      |                                                                                 )
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};
  int x, y;
  cin >> x >> y;
  if(a[x] == a[y]) cout << "Yes" << endl;
  else cout << "No" << endl;
  return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:5:7: error: scalar object 'a' requires one element in initializer
    5 |   int a = {0, 2, 0, 1, 0, 1, 0, 0, 1, 0, 1, 0};
      |       ^
Language: C++

#include<bits/stdc++.h>
using namespace std;
#define ll long long                                    // long long省略
#define pb push_back                                    // push_back省略
#define mp make_pair                                    // make_pair省略
#define fi first                                        // first省略
#define se second                                       // second省略
#define itn int                                         // int誤字保険
#define count cout                                      // cout誤字保険
#define vecotr vector                                   // vector誤字保険
#define ednl endl                                       // endl誤字保険
#define opt() cin.tie(0); ios::sync_with_stdio(false)   // 入出力速度改善

#define rep(i,l,r) for(ll i=(l);i<(r);i++)               // 範囲[l, r)で刻み1のfor文(順方向)
#define repp(i,l,r,k) for(ll i=(l);i<(r);i+=(k))         // 範囲[l, r)で刻みkのfor文(順方向)
#define rrep(i,l,r) for(ll i=(r-1);i>=(l);i--)           // 範囲[l, r)で刻み1のfor文(逆方向)
#define rrepp(i,l,r,k) for(ll i=(r-1);i>=(l);i-=(k))     // 範囲[l, r)で刻みkのfor文(逆方向)
#define all(x) (x).begin(), (x).end()                   // vectorのポインタ位置指定用
#define max(p,q)((p)>(q)?(p):(q))                       // max拡張
#define min(p,q)((p)<(q)?(p):(q))                       // min拡張
#define bit(n,m)(((n)>>(m))&1)                          // 変数nのm番目のbitを取り出す

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; }

int dy[]={0, 1, 0, -1};                                 // 4方向近傍
int dx[]={1, 0, -1, 0};                                 // 4方向近傍

//union-find
const int N_MAX = 10000;
ll par[N_MAX];
ll rnk[N_MAX];
void init(ll n){ rep(i,0,n){ par[i] = i; rnk[i] = 1;} }
ll find(ll x){ if(x == par[x]) return x; return par[x] = find(par[x]); }
void unite(ll x, ll y){
    x = find(x); y = find(y);
    if(rnk[x] < rnk[y]){
        par[x] = y;
    }else{
        par[y] = x;
        if(rnk[x] == rnk[y]) rnk[x]++
    }
}
bool same(ll x, ll y){ return find(x) == find(y); }
int main(){
    ll x, y; cin>>x>>y; x--; y--;
    init(12);
    unite(0,2); unite(2,4); unite(4,6); unite(6,7); unite(7,9); unite(9,11);
    unite(3,5); unite(5,8); unite(8,10);
    cout << (same(x,y) ? "Yes" : "No") << ednl;
}



Compiler output:
a.cc: In function 'void unite(long long int, long long int)':
a.cc:41:38: error: expected ';' before '}' token
   41 |         if(rnk[x] == rnk[y]) rnk[x]++
      |                                      ^
      |                                      ;
   42 |     }
      |     ~
Language: C++

#include<bits/stdc++.h>
using namespace std;
#define ll long long                                    // long long省略
#define pb push_back                                    // push_back省略
#define mp make_pair                                    // make_pair省略
#define fi first                                        // first省略
#define se second                                       // second省略
#define itn int                                         // int誤字保険
#define count cout                                      // cout誤字保険
#define vecotr vector                                   // vector誤字保険
#define ednl endl                                       // endl誤字保険
#define opt() cin.tie(0); ios::sync_with_stdio(false)   // 入出力速度改善

#define rep(i,l,r) for(ll i=(l);i<(r);i++)               // 範囲[l, r)で刻み1のfor文(順方向)
#define repp(i,l,r,k) for(ll i=(l);i<(r);i+=(k))         // 範囲[l, r)で刻みkのfor文(順方向)
#define rrep(i,l,r) for(ll i=(r-1);i>=(l);i--)           // 範囲[l, r)で刻み1のfor文(逆方向)
#define rrepp(i,l,r,k) for(ll i=(r-1);i>=(l);i-=(k))     // 範囲[l, r)で刻みkのfor文(逆方向)
#define all(x) (x).begin(), (x).end()                   // vectorのポインタ位置指定用
#define max(p,q)((p)>(q)?(p):(q))                       // max拡張
#define min(p,q)((p)<(q)?(p):(q))                       // min拡張
#define bit(n,m)(((n)>>(m))&1)                          // 変数nのm番目のbitを取り出す

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; }

int dy[]={0, 1, 0, -1};                                 // 4方向近傍
int dx[]={1, 0, -1, 0};                                 // 4方向近傍

//union-find
const int N_MAX = 10000;
ll par[N_MAX];
ll rnk[N_MAX];
void init(ll n){ rep(i,0,n){ par[i] = i; rnk[i] = 1;} }
ll find(ll x){ if(x == par[x]) return x; return par[x] = find(par[x]); }
void unite(ll x, ll y){
    x = find(x); y = find(y);
    if(rnk[x] < rnk[y]){
        par[x] = y;
    }else{
        par[y] = x;
        if(rnk[x] == rnk[y]) rnk[x]++
    }
}
bool same(ll x, ll y){ return find(x) == find(y); }
int main(){
    ll x, y; cin>>x>>y; x--; y--;
    init(12);
    unite(1,3); unite(3,5); unite(5,7); unite(7,8); unite(8,10); unite(10,12);
    unite(4,6); unite(6,9); unite(9,11);
    cout << (same(x,y) ? "Yes" : "No") << ednl;
}



Compiler output:
a.cc: In function 'void unite(long long int, long long int)':
a.cc:41:38: error: expected ';' before '}' token
   41 |         if(rnk[x] == rnk[y]) rnk[x]++
      |                                      ^
      |                                      ;
   42 |     }
      |     ~
Language: C++

#include<bits/stdc++.h>
using namespace std;
#define ll long long                                    // long long省略
#define pb push_back                                    // push_back省略
#define mp make_pair                                    // make_pair省略
#define fi first                                        // first省略
#define se second                                       // second省略
#define itn int                                         // int誤字保険
#define count cout                                      // cout誤字保険
#define vecotr vector                                   // vector誤字保険
#define ednl endl                                       // endl誤字保険
#define opt() cin.tie(0); ios::sync_with_stdio(false)   // 入出力速度改善

#define rep(i,l,r) for(ll i=(l);i<(r);i++)               // 範囲[l, r)で刻み1のfor文(順方向)
#define repp(i,l,r,k) for(ll i=(l);i<(r);i+=(k))         // 範囲[l, r)で刻みkのfor文(順方向)
#define rrep(i,l,r) for(ll i=(r-1);i>=(l);i--)           // 範囲[l, r)で刻み1のfor文(逆方向)
#define rrepp(i,l,r,k) for(ll i=(r-1);i>=(l);i-=(k))     // 範囲[l, r)で刻みkのfor文(逆方向)
#define all(x) (x).begin(), (x).end()                   // vectorのポインタ位置指定用
#define max(p,q)((p)>(q)?(p):(q))                       // max拡張
#define min(p,q)((p)<(q)?(p):(q))                       // min拡張
#define bit(n,m)(((n)>>(m))&1)                          // 変数nのm番目のbitを取り出す

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; }

int dy[]={0, 1, 0, -1};                                 // 4方向近傍
int dx[]={1, 0, -1, 0};                                 // 4方向近傍

//union-find
const int N_MAX = 10e9;
ll par[N_MAX];
ll rnk[N_MAX];
void init(ll n){ rep(i,0,n){ par[i] = i; rnk[i] = 1;} }
ll find(ll x){ if(x == par[x]) return x; return par[x] = find(par[x]); }
void unite(ll x, ll y){
    x = find(x); y = find(y);
    if(rnk[x] < rnk[y]){
        par[x] = y;
    }else{
        par[y] = x;
        if(rnk[x] == rnk[y]) rnk[x]++
    }
}
bool same(ll x, ll y){ return find(x) == find(y); }
int main(){
    ll x, y; cin>>x>>y; x--; y--;
    init(12);
    unite(1,3); unite(3,5); unite(5,7); unite(7,8); unite(8,10); unite(10,12);
    unite(4,6); unite(6,9); unite(9,11);
    cout << (same(x,y) ? "Yes" : "No") << ednl;
}



Compiler output:
a.cc:30:19: warning: overflow in conversion from 'double' to 'int' changes value from '1.0e+10' to '2147483647' [-Woverflow]
   30 | const int N_MAX = 10e9;
      |                   ^~~~
a.cc:31:8: error: size of array 'par' exceeds maximum object size '9223372036854775807'
   31 | ll par[N_MAX];
      |        ^~~~~
a.cc:32:8: error: size of array 'rnk' exceeds maximum object size '9223372036854775807'
   32 | ll rnk[N_MAX];
      |        ^~~~~
a.cc: In function 'void unite(long long int, long long int)':
a.cc:41:38: error: expected ';' before '}' token
   41 |         if(rnk[x] == rnk[y]) rnk[x]++
      |                                      ^
      |                                      ;
   42 |     }
      |     ~
Language: C++

//自称高知能系Vtuberの高井茅乃です。
//Twitter: https://twitter.com/takaichino
//YouTube: https://www.youtube.com/channel/UCTOxnI3eOI_o1HRgzq-LEZw

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

#define INF 1999999999
#define REP(i,n) for(int i=0;i<n;i++)
#define REP1(i,n) for(int i=1;i<=n;i++)
#define MODA 1000000007 

int main() {
    int ans = 0;
    int tmp;
    int y,x;
    int m[12] = { 1, 9, 1,0,1,0,1,1,0,1,0,1}
    cin >> x >> y;
    if (m[y]==m[x] ) cout << "Yes" << endl;
    else cout << "No" << endl;
    
    //cout << ans << endl;
}

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

#include<bits/stdc++.h>
using namespace std;
int main()
{
  int a,b;
  cin>>a>>b;
  if(a==2&&b==2)
  {
    cout<<"Yes"<<endl;
  }
  else if((a==1||a==3||a==5||a==7||a==8||a==10||a==12)&&a==1||(b==3||b==5||b==7||b==8||b==10||b==12))
  {
    cout<<"Yes"<<endl;
  }
  else if(a==4||a==6||a==9||a==11)&&(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:15:37: error: expected identifier before '(' token
   15 |   else if(a==4||a==6||a==9||a==11)&&(b==4||b==6||b==9||b==11)
      |                                     ^
Language: C++

#include <bits/stdc++.h>
using namespace std;
#define REP(i, n) for(int i = 0; i < n; i++)
int main(){ 
    int x,y
    cin>>x>>y;
    if((x==1||x==3||x==5||x==7||x==8||x==10)&&(y==3||y==5||y==7||y==8||y==10||y==12)){
    cout<<"Yes";
    }else if((x==4||x==6||x==9||x==11)&&(y==6||y==9||y==11)){
        cout<<"Yes";
    }else{
        cout<<"No";
    }
    return 0;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:6:5: error: expected initializer before 'cin'
    6 |     cin>>x>>y;
      |     ^~~
a.cc:7:48: error: 'y' was not declared in this scope
    7 |     if((x==1||x==3||x==5||x==7||x==8||x==10)&&(y==3||y==5||y==7||y==8||y==10||y==12)){
      |                                                ^
Language: C++

(display (if (or (= (modulo (read) 10) 2) 
              (= (modulo (read) 10) 2))
          "Yes" "No")
 )


Compiler output:
a.cc:1:9: error: expected ')' before '(' token
    1 | (display (if (or (= (modulo (read) 10) 2)
      | ~       ^~
      |         )
Language: C++

#include <iostream>
#include <vector>
#include <algorithm>
#include <string.h>
#include <iomanip>
#include <map>
#include <cstdlib>
using namespace std;

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

    return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:12:67: error: expected '}' before ';' token
   12 |     int s[] = {{0 , 1 , 3 , 1 , 2 , 1 , 2 , 1 , 1 , 2 , 1 , 2 , 1};
      |               ~                                                   ^
a.cc:12:67: error: cannot convert '<brace-enclosed initializer list>' to 'int' in initialization