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

#include<iostream>
using namespace std;

int main(){
int a[13]={0,1,3,1,2,1, 2 , 1 , 1 , 2 , 1 , 2 , 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:6:3: error: expected ',' or ';' before 'int'
    6 |   int x,y;
      |   ^~~
a.cc:7:8: error: 'x' was not declared in this scope
    7 |   cin>>x>>y;
      |        ^
a.cc:7:11: 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;
  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){
      cout << "Yes" << endl;
    }else{
      cout << "No" << endl;
    }
  }
  if(x==4||x==6||x==9||x==11){
    if(y==4||y==6||y==9||y==11){
      cout << "Yes" << endl;
    }else{
      cout << "No" << endl;
    }
  }
  if(x==2){
    if(y==2){
      cout << "Yes" << endl;
    }else{
      cout << "No" << endl;
    }
  }
    
  

Compiler output:
a.cc: In function 'int main()':
a.cc:26:4: error: expected '}' at end of input
   26 |   }
      |    ^
a.cc:3:11: note: to match this '{'
    3 | int main(){
      |           ^
Language: C++

#include<iostream>
main(){std::string x,y;std::cin>>x,y;x+=y;puts(x[1]=='2'||x[2]=='2'?"No":"Yes"));}

Compiler output:
a.cc:2:1: warning: ISO C++ forbids declaration of 'main' with no type [-Wreturn-type]
    2 | main(){std::string x,y;std::cin>>x,y;x+=y;puts(x[1]=='2'||x[2]=='2'?"No":"Yes"));}
      | ^~~~
a.cc: In function 'int main()':
a.cc:2:80: error: expected ';' before ')' token
    2 | main(){std::string x,y;std::cin>>x,y;x+=y;puts(x[1]=='2'||x[2]=='2'?"No":"Yes"));}
      |                                                                                ^
      |                                                                                ;
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:20: error: expected ',' or ';' before '=' token
    8 |   vector<int>A(13) = {0,1,3,1,2,1,2,1,1,2,1,2,1};
      |                    ^
Language: C++

#include <bits/stdc++.h>
using namespace std;
int main(){
	int x,y;
	int 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;
	return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:5:44: error: expected ',' or ';' before '\U0000ff1b'
    5 |         int a[]={0,1,3,1,2,1,2,1,1,2,1,2,1}；
      |                                            ^~
Language: C++

#include<iostream>
#include<vector>
#include<sstream>
#include<string>
#include<numeric>
#include <algorithm>
using namespace std;
int input(){
  int x;
  cin>>x;
  return x;
}
int abs(int x){
  if(x>=0){
    return x;
  }else{
    return -x;
  }
}
int gcd(int x, int y){
	if(x<y){
    return gcd(y,x);
  }
  if(y==0){
    return x;
  }
  return gcd(y,x%y);
}
int moji(char i){
  if(i=='a'){
    return 1;
  }
  if(i=='b'){
    return 2;
  }
  if(i=='c'){
    return 3;
  }
  if(i=='d'){
    return 4;
  }
  if(i=='e'){
    return 5;
  }
  if(i=='f'){
    return 6;
  }
  if(i=='g'){
    return 7;
  }
  if(i=='h'){
    return 8;
  }
  if(i=='i'){
    return 9;
  }
  if(i=='j'){
    return 10;
  }
  if(i=='k'){
    return 11;
  }
  if(i=='l'){
    return 12;
  }
  if(i=='m'){
    return 13;
  }
  if(i=='n'){
    return 14;
  }
  if(i=='o'){
    return 15;
  }
  if(i=='p'){
    return 16;
  }
  if(i=='q'){
    return 17;
  }
  if(i=='r'){
    return 18;
  }
  if(i=='s'){
    return 19;
  }
  if(i=='t'){
    return 20;
  }
  if(i=='u'){
    return 21;
  }
  if(i=='v'){
    return 22;
  }
  if(i=='w'){
    return 23;
  }
  if(i=='x'){
    return 24;
  }
  if(i=='y'){
    return 25;
  }
  if(i=='z'){
    return 26;
  }
  return 100;
  
}




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

  
  


  


  

  




  
  
}

  


Compiler output:
a.cc: In function 'int main()':
a.cc:118:12: error: expected identifier before numeric constant
  118 |   int a[]=[0,1,2,1,3,1,3,1,1,3,1,3,1];
      |            ^
a.cc:118:13: error: expected ']' before ',' token
  118 |   int a[]=[0,1,2,1,3,1,3,1,1,3,1,3,1];
      |             ^
      |             ]
a.cc: In lambda function:
a.cc:118:13: error: expected '{' before ',' token
a.cc: In function 'int main()':
a.cc:118:11: error: initializer fails to determine size of 'a'
  118 |   int a[]=[0,1,2,1,3,1,3,1,1,3,1,3,1];
      |           ^~
a.cc:118:11: error: array must be initialized with a brace-enclosed initializer
a.cc:118:14: error: expected unqualified-id before numeric constant
  118 |   int a[]=[0,1,2,1,3,1,3,1,1,3,1,3,1];
      |              ^
Language: C++

x,y = gets.chomp.split(" ").map(&:to_i);
a = [1, 3, 5, 7, 8, 10, 12]
b = [4, 6, 9, 11]
c = [2]

if (a.include?(x) && a.include?(y)) || (b.include?(x) && b.include?(y))||(c.include?(x) && c.include?(y))
    puts 'Yes'
else
    puts 'No'
end

Compiler output:
a.cc:7:10: warning: multi-character character constant [-Wmultichar]
    7 |     puts 'Yes'
      |          ^~~~~
a.cc:9:10: warning: multi-character character constant [-Wmultichar]
    9 |     puts 'No'
      |          ^~~~
a.cc:1:1: error: 'x' does not name a type
    1 | x,y = gets.chomp.split(" ").map(&:to_i);
      | ^
a.cc:2:1: error: 'a' does not name a type
    2 | a = [1, 3, 5, 7, 8, 10, 12]
      | ^
Language: C++

x,y = gets.chomp.split(" ").map(&:to_i);
A = [1, 3, 5, 7, 8, 10, 12]
B = [4,6,9,11]
C = [2]

if A.include?(x) then
    x = 'A'
elsif B.include?(x) then
    x = 'B'
else
    x = 'C'
end

if A.include?(y) then
    y = 'A'
elsif B.include?(y) then
    y = 'B'
else
    y ='C'
end

if x == y
    puts 'Yes'
else
    puts 'No'
end

Compiler output:
a.cc:23:10: warning: multi-character character constant [-Wmultichar]
   23 |     puts 'Yes'
      |          ^~~~~
a.cc:25:10: warning: multi-character character constant [-Wmultichar]
   25 |     puts 'No'
      |          ^~~~
a.cc:1:1: error: 'x' does not name a type
    1 | x,y = gets.chomp.split(" ").map(&:to_i);
      | ^
a.cc:2:1: error: 'A' does not name a type
    2 | A = [1, 3, 5, 7, 8, 10, 12]
      | ^
Language: C

main(a,b){scanf("%d%d",&a,&b);if(a==2) puts("No");else if(a-4&&a-6&&a-9&&a-11) puts(b==1||b==3||b==5||b==7||b==8||b==10||b==12?"Yes":"No");else puts(y==4||y==6||y==9||y==11?"Yes":"No");}

Compiler output:
main.c:1:1: error: return type defaults to 'int' [-Wimplicit-int]
    1 | main(a,b){scanf("%d%d",&a,&b);if(a==2) puts("No");else if(a-4&&a-6&&a-9&&a-11) puts(b==1||b==3||b==5||b==7||b==8||b==10||b==12?"Yes":"No");else puts(y==4||y==6||y==9||y==11?"Yes":"No");}
      | ^~~~
main.c: In function 'main':
main.c:1:1: error: type of 'a' defaults to 'int' [-Wimplicit-int]
main.c:1:1: error: type of 'b' defaults to 'int' [-Wimplicit-int]
main.c:1:11: error: implicit declaration of function 'scanf' [-Wimplicit-function-declaration]
    1 | main(a,b){scanf("%d%d",&a,&b);if(a==2) puts("No");else if(a-4&&a-6&&a-9&&a-11) puts(b==1||b==3||b==5||b==7||b==8||b==10||b==12?"Yes":"No");else puts(y==4||y==6||y==9||y==11?"Yes":"No");}
      |           ^~~~~
main.c:1:1: note: include '<stdio.h>' or provide a declaration of 'scanf'
  +++ |+#include <stdio.h>
    1 | main(a,b){scanf("%d%d",&a,&b);if(a==2) puts("No");else if(a-4&&a-6&&a-9&&a-11) puts(b==1||b==3||b==5||b==7||b==8||b==10||b==12?"Yes":"No");else puts(y==4||y==6||y==9||y==11?"Yes":"No");}
main.c:1:11: warning: incompatible implicit declaration of built-in function 'scanf' [-Wbuiltin-declaration-mismatch]
    1 | main(a,b){scanf("%d%d",&a,&b);if(a==2) puts("No");else if(a-4&&a-6&&a-9&&a-11) puts(b==1||b==3||b==5||b==7||b==8||b==10||b==12?"Yes":"No");else puts(y==4||y==6||y==9||y==11?"Yes":"No");}
      |           ^~~~~
main.c:1:11: note: include '<stdio.h>' or provide a declaration of 'scanf'
main.c:1:40: error: implicit declaration of function 'puts' [-Wimplicit-function-declaration]
    1 | main(a,b){scanf("%d%d",&a,&b);if(a==2) puts("No");else if(a-4&&a-6&&a-9&&a-11) puts(b==1||b==3||b==5||b==7||b==8||b==10||b==12?"Yes":"No");else puts(y==4||y==6||y==9||y==11?"Yes":"No");}
      |                                        ^~~~
main.c:1:40: note: include '<stdio.h>' or provide a declaration of 'puts'
main.c:1:150: error: 'y' undeclared (first use in this function)
    1 | main(a,b){scanf("%d%d",&a,&b);if(a==2) puts("No");else if(a-4&&a-6&&a-9&&a-11) puts(b==1||b==3||b==5||b==7||b==8||b==10||b==12?"Yes":"No");else puts(y==4||y==6||y==9||y==11?"Yes":"No");}
      |                                                                                                                                                      ^
main.c:1:150: note: each undeclared identifier is reported only once for each function it appears in
Language: C++

#include<cstdio>
#include<cstring>
#include<algorithm>
#include<queue>
#include<map>
#include<iostream>
using namespace std;
typedef long long ll;
const int INF = 0x3f3f3f3f;
int main()
{

    
    int a, b;
    cin >> a >> b;
    map<int, int> mp1, mp2, mp3;
    mp1.clear();mp2.clear();mp3.clear();
    mp1[1]=1;mp1[3] = 1; mp1[5] = 1; mp1[7] = 1;mp1[8] = 1;mp1[10] = 1;mp1[12] = 1;
    mp2[4] = 1;mp2[6] = 1;mp2[9] = 1;mp2[11] = 1;mp3[2] = 1;
    if(mp1[a] && mp1[b])
        printf("Yes\n");
    else if(mp2[a] && mp2[b])
        printf("Yes\n");
    else if(mp3[a] && mp3[b])
        pritnf("Yes\n");
    else printf("No\n");
    return 0;
}



Compiler output:
a.cc: In function 'int main()':
a.cc:25:9: error: 'pritnf' was not declared in this scope; did you mean 'printf'?
   25 |         pritnf("Yes\n");
      |         ^~~~~~
      |         printf
Language: C++

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

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

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

	int type_x=0, type_y=0;

	for(int i=0;i<7;i++) {
		if(group1(i) == x) type_x=1;
		if(group1(i) == y) type_y=1;
	}

	for(int i=0;i<4;i++) {
		if(group2(i) == x) type_x=2;
		if(group2(i) == y) type_y=2;
	}

	if(type_x == type_y) cout << "Yes" << endl;
	else cout << "No" << endl;

}

Compiler output:
a.cc: In function 'int main()':
a.cc:14:26: error: no match for call to '(std::vector<int>) (int&)'
   14 |                 if(group1(i) == x) type_x=1;
      |                    ~~~~~~^~~
a.cc:15:26: error: no match for call to '(std::vector<int>) (int&)'
   15 |                 if(group1(i) == y) type_y=1;
      |                    ~~~~~~^~~
a.cc:19:26: error: no match for call to '(std::vector<int>) (int&)'
   19 |                 if(group2(i) == x) type_x=2;
      |                    ~~~~~~^~~
a.cc:20:26: error: no match for call to '(std::vector<int>) (int&)'
   20 |                 if(group2(i) == y) type_y=2;
      |                    ~~~~~~^~~
Language: C++

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

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

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

	int type_x=0, type_y=0;

	for(int i=0;i<7;i++) {
		if(group1(i) == x) type_x=1;
		if(group1(i) == y) type_y=1;
	}

	for(int i=0;i<4;i++) {
		if(group2(i) == x) type_x=2;
		if(group2(i) == y) type_y=2;
	}

	if(type_x == type_y) cout << "Yes" << endl;
	else cout << "No" << endl;

}

Compiler output:
a.cc: In function 'int main()':
a.cc:13:26: error: no match for call to '(std::vector<int>) (int&)'
   13 |                 if(group1(i) == x) type_x=1;
      |                    ~~~~~~^~~
a.cc:14:26: error: no match for call to '(std::vector<int>) (int&)'
   14 |                 if(group1(i) == y) type_y=1;
      |                    ~~~~~~^~~
a.cc:18:26: error: no match for call to '(std::vector<int>) (int&)'
   18 |                 if(group2(i) == x) type_x=2;
      |                    ~~~~~~^~~
a.cc:19:26: error: no match for call to '(std::vector<int>) (int&)'
   19 |                 if(group2(i) == y) type_y=2;
      |                    ~~~~~~^~~
Language: Java

import java.util.Scanner;

public class Main {

	@SuppressWarnings("resource")
	public static void main(String args[]) {
		Scanner scanner = new Scanner(System.in);
		int x = scanner.nextInt();
		int y = scanner.nextInt();
		
		if(x==2||y==2){
			System.out.println("No");
		}else if((x==4||x==6||x==9||x==11)&&(y==4||y==6||y==9||y==11)){
			System.out.println("Yes");
		}else if((x==1||x==3||x==5||x==7||x==8||x==10||x==12)&&(y==1||y==3||y==5||y==7||y==8||y==10||y==12)){
			System.out.println("Yes");
		}else{
			System.out.println("No");
		}

Compiler output:
Main.java:19: error: reached end of file while parsing
		}
		 ^
1 error
Language: C++

#include<iostream>
int a[]={0,1,2,1,4,1,4,1,1,4,1,4,1},x,y;main{std::cin>>x>>y;puts(a[x]-a[y]?"No":"Yes");}

Compiler output:
a.cc:2:41: error: 'main' does not name a type
    2 | int a[]={0,1,2,1,4,1,4,1,1,4,1,4,1},x,y;main{std::cin>>x>>y;puts(a[x]-a[y]?"No":"Yes");}
      |                                         ^~~~
Language: C++

#include<iostream>

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

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

#include<iostream>
using namespace std;
int main(){
 int x,y;
  string p,q;
  cin >> x >> y;
  if (x == 1 || x==3 || x==5 || x == 7 || x == 8 || x == 10 || x == 12)
  { p = 57; }
  if (x == 4 || x == 6 || x == 9 || x == 11)
  { p = 58; }
  if (x == 2 ) 
  { p = 59; }
  if (y == 1 || x==3 || x==5 || x == 7 || x == 8 || x == 10 || x == 12)
  { q = 57; }
  if (y == 4 || x == 6 || x == 9 || x == 11)
  { q = 58; }
  if (y == 2 ) 
  { y = 59; }
  if ( p == q )
  {cout << "Yes" << endl;}
  if(p=!q) {cout << "No" << endl;}}


Compiler output:
a.cc: In function 'int main()':
a.cc:21:8: error: no match for 'operator!' (operand type is 'std::string' {aka 'std::__cxx11::basic_string<char>'})
   21 |   if(p=!q) {cout << "No" << endl;}}
      |        ^~
a.cc:21:8: note: candidate: 'operator!(bool)' (built-in)
a.cc:21:8: note:   no known conversion for argument 1 from 'std::string' {aka 'std::__cxx11::basic_string<char>'} to 'bool'
Language: C++

#include<iostream>
using namespace std;
int main(){
 int x,y;
  string p,q;
  cin >> x >> y;
  if (x == 1 || x==3 || x==5 || x == 7 || x == 8 || x == 10 || x == 12)
  { p = A; }
  if (x == 4 || x == 6 || x == 9 || x == 11)
  { p = B; }
  if (x == 2 ) 
  { p = C; }
  if (y == 1 || x==3 || x==5 || x == 7 || x == 8 || x == 10 || x == 12)
  { q = A; }
  if (y == 4 || x == 6 || x == 9 || x == 11)
  { q = B; }
  if (y == 2 ) 
  { y = C; }
  if ( p == q )
  {cout << "Yes" << endl;}
  else if {cout << "No" << endl;}}


Compiler output:
a.cc: In function 'int main()':
a.cc:8:9: error: 'A' was not declared in this scope
    8 |   { p = A; }
      |         ^
a.cc:10:9: error: 'B' was not declared in this scope
   10 |   { p = B; }
      |         ^
a.cc:12:9: error: 'C' was not declared in this scope
   12 |   { p = C; }
      |         ^
a.cc:14:9: error: 'A' was not declared in this scope
   14 |   { q = A; }
      |         ^
a.cc:16:9: error: 'B' was not declared in this scope
   16 |   { q = B; }
      |         ^
a.cc:18:9: error: 'C' was not declared in this scope
   18 |   { y = C; }
      |         ^
a.cc:21:11: error: expected '(' before '{' token
   21 |   else if {cout << "No" << endl;}}
      |           ^
      |           (
Language: C++

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

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



Compiler output:
a.cc: In function 'int main()':
a.cc:8:30: error: expected primary-expression before ',' token
    8 |   int group[]={0,1,3,1,2,1,2,,1,1,2,1,2,1};
      |                              ^
Language: C++

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

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



Compiler output:
a.cc: In function 'int main()':
a.cc:8:30: error: expected primary-expression before ',' token
    8 |   int group[]={0,1,3,1,2,1,2,,1,1,2,1,2,1}
      |                              ^
a.cc:11:5: error: 'else' without a previous 'if'
   11 |     else
      |     ^~~~
Language: C++

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

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

Compiler output:
a.cc: In function 'int main()':
a.cc:8:49: error: 'b' was not declared in this scope
    8 |   if(x == 4 || x == 6 || x == 9 || x == 11) x = b;
      |                                                 ^
a.cc:9:23: error: 'c' was not declared in this scope
    9 |   else if(x == 2) x = c;
      |                       ^
a.cc:10:12: error: 'a' was not declared in this scope
   10 |   else x = a;
      |            ^
a.cc:12:49: error: 'b' was not declared in this scope
   12 |   if(y == 4 || y == 6 || y == 9 || y == 11) y = b;
      |                                                 ^
a.cc:13:23: error: 'c' was not declared in this scope
   13 |   else if(y == 2) y = c;
      |                       ^
a.cc:14:12: error: 'a' was not declared in this scope
   14 |   else y = a;
      |            ^
Language: C++

#include<iostream>

using namespace std;

int c[13]={
    0,1,3,1,2,1,2,1,2,1,2,1,2
}

int main()
{
    int a,b;
    cin>>a>>b;
    if(c[a]==c[b])cout<<"Yes";
    else cout<<"No";
}
/*code in 90 seconds*/

Compiler output:
a.cc:9:1: error: expected ',' or ';' before 'int'
    9 | int main()
      | ^~~
Language: C++

#include <iostream>
using namespace std;
int main(){
  int a[]={0,1,3,1,2,1,2,1,1,2,1,2,1};
  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:8: error: 'x' was not declared in this scope
    5 |   cin>>x>>y;
      |        ^
a.cc:5:11: error: 'y' was not declared in this scope
    5 |   cin>>x>>y;
      |           ^
Language: C++

#include <bits/stdc++.h>
using namespace std;
int a[12]={0,1,3,1,2,1,2,1,1,2,1,2,1};
int b,c;

int main(){
  cin>>b>>c;
  if(a[b] == a[c]){
    cout<<"Yes"<<endl;
  }else{
    cout<<"No"<<endl;
  }
}

Compiler output:
a.cc:3:37: error: too many initializers for 'int [12]'
    3 | int a[12]={0,1,3,1,2,1,2,1,1,2,1,2,1};
      |                                     ^
Language: C++

#include<iostream>
#include<string>
#include<vector>
#include<algorithm>
#include<map>
#include<set>
#include<utility>
using namespace std;
typedef long long ll;
#define rep(i,a,n)	for(int i=a;i<n;i++)
#define rrep(i,a,n) for(int i=(a-1);i>=n;i--)
 
ll gcd(ll a,ll b){
	if(b==0)return a;
	return gcd(b,a%b);
}
ll lcm(ll a,ll b){
	ll g=gcd(a,b);
	return a/g*b;
}
 
ll digitsum(ll a){
	ll x=0;
	while(a>0){
		x+=a%10;
		a/=10;
	}
	return x;
}
int main(){
	ll x[12]={0,1,3,1,2,1,2,1,1,2,1,2,1};
	ll a,b;
	cin>>a>>b;
	if(x[a]==x[b])cout<<"Yes"<<endl;
	else cout<<"No"<<endl;
	
}

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

#include<iostream>
#include<string>
#include<vector>
#include<algorithm>
#include<map>
#include<set>
#include<utility>
using namespace std;
typedef long long ll;
#define rep(i,a,n)	for(int i=a;i<n;i++)
#define rrep(i,a,n) for(int i=(a-1);i>=n;i--)
 
ll gcd(ll a,ll b){
	if(b==0)return a;
	return gcd(b,a%b);
}
ll lcm(ll a,ll b){
	ll g=gcd(a,b);
	return a/g*b;
}
 
ll digitsum(ll a){
	ll x=0;
	while(a>0){
		x+=a%10;
		a/=10;
	}
	return x;
}
int main(){
	ll x[12]={0,1,3,1,2,1,2,1,1,2,1,2,1}
	ll a,b;
	cin>>a>>b;
	if(x[a]==x[b])cout<<"Yes"<<endl;
	else cout<<"No"<<endl;
	
}

Compiler output:
a.cc: In function 'int main()':
a.cc:31:44: error: too many initializers for 'll [12]' {aka 'long long int [12]'}
   31 |         ll x[12]={0,1,3,1,2,1,2,1,1,2,1,2,1}
      |                                            ^
a.cc:33:14: error: 'a' was not declared in this scope
   33 |         cin>>a>>b;
      |              ^
a.cc:33:17: error: 'b' was not declared in this scope
   33 |         cin>>a>>b;
      |                 ^
Language: C++

import java.util.Scanner;

public class Main {
	public static void main(String[] args) {
		Scanner sc = new Scanner(System.in);
		int x = sc.nextInt(), y = sc.nextInt();
		int[] group1 = {1,3,5,7,8,10,12};
		int[] group2 = {4,6,9,11};
		if(checkSameGroup(x, y, group1)) {
			System.out.println("Yes");
		}else if(checkSameGroup(x, y, group2)) {
			System.out.println("Yes");
		}else {
			System.out.println("No");
		}
	}
	static public boolean checkSameGroup(int x, int y, int[] group) {
		boolean sameX = false,sameY = false;
		for (int i : group) {
			if(i == x) sameX = true;
			if(i == y) sameY = true;
		}

		if(sameX && sameY) return true;
		return false;
	}
}


Compiler output:
a.cc:1:1: error: 'import' does not name a type
    1 | import java.util.Scanner;
      | ^~~~~~
a.cc:1:1: note: C++20 'import' only available with '-fmodules-ts'
a.cc:3:1: error: expected unqualified-id before 'public'
    3 | public class Main {
      | ^~~~~~
Language: C++

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

return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:9:1: error: 'else' without a previous 'if'
    9 | else if(a==2){
      | ^~~~
a.cc:16:1: error: expected '}' before 'else'
   16 | else if (a==4){
      | ^~~~
a.cc:12:15: note: to match this '{'
   12 | else if (a==3){
      |               ^
a.cc:20:1: error: expected '}' before 'else'
   20 | else if (a==5){
      | ^~~~
a.cc:16:15: note: to match this '{'
   16 | else if (a==4){
      |               ^
a.cc:24:1: error: expected '}' before 'else'
   24 | else if(a==6){
      | ^~~~
a.cc:20:15: note: to match this '{'
   20 | else if (a==5){
      |               ^
a.cc:28:1: error: expected '}' before 'else'
   28 | else if(a==10){
      | ^~~~
a.cc:24:14: note: to match this '{'
   24 | else if(a==6){
      |              ^
a.cc:32:1: error: expected '}' before 'else'
   32 | else printf("No");
      | ^~~~
a.cc:28:15: note: to match this '{'
   28 | else if(a==10){
      |               ^
Language: C++

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

return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:14:1: error: expected '}' before 'else'
   14 | else if (a==3){
      | ^~~~
a.cc:5:10: note: to match this '{'
    5 | if (a==1){
      |          ^
a.cc:17:1: error: expected '}' before 'else'
   17 | else printf("No");
      | ^~~~
a.cc:15:24: note: to match this '{'
   15 | if (b==5||7||8||10||12){
      |                        ^
a.cc:18:1: error: expected '}' before 'else'
   18 | else if (a==4){
      | ^~~~
a.cc:14:15: note: to match this '{'
   14 | else if (a==3){
      |               ^
a.cc:21:1: error: expected '}' before 'else'
   21 | else printf("No");
      | ^~~~
a.cc:19:16: note: to match this '{'
   19 | if(b==6||9||11){
      |                ^
a.cc:22:1: error: expected '}' before 'else'
   22 | else if (a==5){
      | ^~~~
a.cc:18:15: note: to match this '{'
   18 | else if (a==4){
      |               ^
a.cc:25:1: error: expected '}' before 'else'
   25 | else printf("No");
      | ^~~~
a.cc:23:21: note: to match this '{'
   23 | if (b==7||8||10||12){
      |                     ^
a.cc:26:1: error: expected '}' before 'else'
   26 | else if(a==6){
      | ^~~~
a.cc:22:15: note: to match this '{'
   22 | else if (a==5){
      |               ^
a.cc:29:1: error: expected '}' before 'else'
   29 | else printf("No");
      | ^~~~
a.cc:27:13: note: to match this '{'
   27 | if(b==9||11){
      |             ^
a.cc:30:1: error: expected '}' before 'else'
   30 | else if(a==10){
      | ^~~~
a.cc:26:14: note: to match this '{'
   26 | else if(a==6){
      |              ^
a.cc:33:1: error: expected '}' before 'else'
   33 | else printf("No");
      | ^~~~
a.cc:31:10: note: to match this '{'
   31 | if(b==12){
      |          ^
a.cc:34:1: error: expected '}' before 'else'
   34 | else printf("No");
      | ^~~~
a.cc:30:15: note: to match this '{'
   30 | else if(a==10){
      |               ^
Language: C++

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

return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:14:1: error: expected '}' before 'else'
   14 | else if (a==3){
      | ^~~~
a.cc:5:10: note: to match this '{'
    5 | if (a==1){
      |          ^
a.cc:18:1: error: expected '}' before 'else'
   18 | else if (a==4){
      | ^~~~
a.cc:14:15: note: to match this '{'
   14 | else if (a==3){
      |               ^
a.cc:22:1: error: expected '}' before 'else'
   22 | else if (a==5){
      | ^~~~
a.cc:18:15: note: to match this '{'
   18 | else if (a==4){
      |               ^
a.cc:26:1: error: expected '}' before 'else'
   26 | else if(a==6){
      | ^~~~
a.cc:22:15: note: to match this '{'
   22 | else if (a==5){
      |               ^
a.cc:30:1: error: expected '}' before 'else'
   30 | else if(a==10){
      | ^~~~
a.cc:26:14: note: to match this '{'
   26 | else if(a==6){
      |              ^
a.cc:34:1: error: expected '}' before 'else'
   34 | else printf("No");
      | ^~~~
a.cc:30:15: note: to match this '{'
   30 | else if(a==10){
      |               ^
Language: C++

[x,y]=[int(i) for i in input().split()]
a=[1,3,5,7,8,10,12]
b=[4,6,9,11]
c=[2]
if (a.count(x)==1 and a.count(y)==1) or (b.count(x)==1 and b.count(y)==1):
    print("Yes")
else:
    print("No")
    


Compiler output:
a.cc:1:1: error: expected unqualified-id before '[' token
    1 | [x,y]=[int(i) for i in input().split()]
      | ^
Language: C

#include <iostream>
#include <vector>

int belong( std::vector<int> g, int a, int b )
{
	int cnt = 0;
	for( int i = 0; g[ i ] != 0; i++ ) {
		if( g[ i ] == a or g[ i ] == b ) {
			cnt += 1;
		}
	}
	return cnt;
}

int main()
{
	std::vector<int> g[] = {
		{ 1, 3, 5, 7, 8, 10, 12, 0 },
		{ 4, 6, 9, 11, 0 },
		{ 2, 0 },
	};

	int a, b;
	std::cin >> a >> b;

	bool isbel = false;
	for( int i = 0; i < 3; i++ ) {
		if( belong( g[ i ], a, b ) == 2 ) {
			isbel = true;
			break;
		}
	}

	std::cout << ( isbel ? "Yes" : "No" ) << std::endl;
	return 0;
}


Compiler output:
main.c:1:10: fatal error: iostream: No such file or directory
    1 | #include <iostream>
      |          ^~~~~~~~~~
compilation terminated.
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)and(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)and(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:6:42: error: lvalue required as left operand of assignment
    6 |   if((x==1||x==3||x==5||x==7||x==8||x==10||x=12)and(y==1||y==3||y==5||y==7||y==8||y==10||y=12))cout << "Yes" << endl;
      |       ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~
a.cc:6:88: error: lvalue required as left operand of assignment
    6 |   if((x==1||x==3||x==5||x==7||x==8||x==10||x=12)and(y==1||y==3||y==5||y==7||y==8||y==10||y=12))cout << "Yes" << endl;
      |                                                     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~
Language: C++

#include <bits/stdc++.h>
#include <typeinfo>
#include <cxxabi.h>
#ifdef LOCAL
  #include "dbgtoki.hpp"
  #define DUMP(i) dump((string)TOSTRING(i), demangle(typeid(i).name()), __LINE__ , i) 
DbgTimer D_t;
  #define TSTART() D_t.start()
  #define TSTOP() D_t.stop()
#else
  #define DUMP(i) 
  #define TSTART()
  #define TSTOP()  
#endif
 
#define TOSTRING(x) #x
#define SZ(x) (int)(x).size()
#define REP(i,n) for(int i=0;i<(n);i++)
#define FOR(i,a,b) for(int i=(a);i<(b);i++)
#define ALL(s) (s).begin(), (s).end()
#define UNIQUE(v) v.erase( unique(v.begin(), v.end()) , v.end());
using namespace std;
typedef long long unsigned int llu;
typedef long long ll;
typedef vector<int> vi;
typedef vector<ll> vll;

const int EPS = 1e-9;

//Union Find Tree
class UnionFindTree{
public:
  int treeCnt; //ツリーの数
  vector<int> rank,p;  //rank => 根の高さ, p => 親
  vector<int> num; //木の要素数
  UnionFindTree(){}
  UnionFindTree(int size){
    rank.resize(size,0);
    p.resize(size,0);
    num.assign(n,1);
    treeCnt = 0;
    REP(i,size){
      makeset(i);
    }
  }

  void makeset(int x){
    p[x] = x;
    rank[x] = 0;
    treeCnt++;
  }

  //同じ木に属しているか判定
  bool same(int x, int y){
    return findSet(x) == findSet(y);
  }

  //xとyが属している木をつなぐ
  void unite(int x, int y){
    link(findSet(x),findSet(y));
  }
  
  ///木と木を繋ぐ処理をする。(ついでに木の高さを調整)
  void link(int x, int y){
    if(!same(x,y)){
      if(rank[x] > rank[y]){
	p[y] = x;
	num[x] += num[y];
      }else{
	p[x] = y;
	if(rank[x] == rank[y]){
	  rank[y]++;
	}
	num[y] += num[x];
      }
      treeCnt--;
    }
  }

  //xが属している木の根を探る(ついでに木を操作)
  int findSet(int x){
    if(p[x] == x) return x;
    else return p[x] = findSet(p[x]);
  }

  int countTree(){
    return treeCnt;
  }

  int getNum(int a){
    return num[findSet(a)];
  }
};


int main (){
  cin.tie(0);
  ios::sync_with_stdio(false);
  int x,y;
  while(cin >> x >>  y){
    TSTART();
    //union find 使うほどの問題ではない(?)と思うが練習
    UnionFindTree uft(12);
    uft.unite(0,2);
    uft.unite(4,2);
    uft.unite(6,2);
    uft.unite(7,2);
    uft.unite(9,2);
    uft.unite(11,2);
    uft.unite(3,5);
    uft.unite(8,5);
    uft.unite(10,5);

    string ans;
    if(same(x-1,y-1))ans = "Yes";
    else ans = "No";
    
    cout << ans << endl;
    TSTOP();
  }
    return 0;
}



Compiler output:
a.cc: In constructor 'UnionFindTree::UnionFindTree(int)':
a.cc:40:16: error: 'n' was not declared in this scope; did you mean 'yn'?
   40 |     num.assign(n,1);
      |                ^
      |                yn
a.cc: In function 'int main()':
a.cc:115:8: error: 'same' was not declared in this scope
  115 |     if(same(x-1,y-1))ans = "Yes";
      |        ^~~~
Language: C++

#include <cstdio>
using namespace std;

int main(void){
  int gr={0,1,2,1,3,1,3,1,1,3,1,3,1};
  int x,y;
  
  cin >> x >> y;
  puts(gr[x]-gr[y]?"No":"Yes");
  return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:5:7: error: scalar object 'gr' requires one element in initializer
    5 |   int gr={0,1,2,1,3,1,3,1,1,3,1,3,1};
      |       ^~
a.cc:8:3: error: 'cin' was not declared in this scope
    8 |   cin >> x >> y;
      |   ^~~
a.cc:2:1: note: 'std::cin' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>'
    1 | #include <cstdio>
  +++ |+#include <iostream>
    2 | using namespace std;
Language: C

#include <stdio.h>

int main(){
    int a=2;
    int b[4];
    b[0]=4;
    b[1]=6;
    b[2]=9;
    b[3]=11;
    int x,y;
    
    
    scanf("%d%d",&x,&y);
    
    switch (x){
        case 2 :x=13;break;
        case 4 :x=14;break;
        case 6 :x=14;break;
        case 9 :x=14;break;
        case 11:x=14;break;
            default :x=12;
            
    }
    

    switch (y){
        case 2 :y=13;break;
        case 4 :y=14;break;
        case 6 :y=14;break;
        case 9 :y=14;break;
        case 11:y=14;break;
        default :y=12;
    }
    
    
    
    if(x==y)
        puts("Yes");
    else
        puts("No");
    
    
    
  

Compiler output:
main.c: In function 'main':
main.c:40:9: error: expected declaration or statement at end of input
   40 |         puts("No");
      |         ^~~~
Language: C++

#include <stdio.h>

int main(){
    int a=2;
    int b[4];
    b[0]=4;
    b[1]=6;
    b[2]=9;
    b[3]=11;
    int x,y;
    
    
    scanf("%d%d",&x,&y);
    
    switch (x){
        case 2 :x=13;break;
        case 4 :x=14;break;
        case 6 :x=14;break;
        case 9 :x=14;break;
        case 11:x=14;break;
            default :x=12;
            
    }
    

    switch (y){
        case 2 :y=13;break;
        case 4 :y=14;break;
        case 6 :y=14;break;
        case 9 :y=14;break;
        case 11:y=14;break;
        default :y=12;
    }
    
    
    
    if(x==y)
        puts("Yes");
    else
        puts("No");
    
    
    

Compiler output:
a.cc: In function 'int main()':
a.cc:40:20: error: expected '}' at end of input
   40 |         puts("No");
      |                    ^
a.cc:3:11: note: to match this '{'
    3 | int main(){
      |           ^
Language: C++

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

int main(){
	int x,y;
  	int a(20)={0,1,3,1,2,1,2,1,1,2,1,2,1};
  	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:6:18: error: expected ',' or ';' before '=' token
    6 |         int a(20)={0,1,3,1,2,1,2,1,1,2,1,2,1};
      |                  ^
a.cc:8:14: error: invalid types 'int[int]' for array subscript
    8 |         if (a[x]==a[y])cout << "Yes" <<endl;
      |              ^
a.cc:8:20: error: invalid types 'int[int]' for array subscript
    8 |         if (a[x]==a[y])cout << "Yes" <<endl;
      |                    ^
Language: C++

include <iostream>
using namespace std;

int main() {
  int a[] = {0, 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;
}

Compiler output:
a.cc:1:1: error: 'include' does not name a type
    1 | include <iostream>
      | ^~~~~~~
a.cc: In function 'int main()':
a.cc:7:3: error: 'cin' was not declared in this scope
    7 |   cin >> x >> y;
      |   ^~~
a.cc:10:5: error: 'cout' was not declared in this scope
   10 |     cout << "Yes" << endl;
      |     ^~~~
a.cc:10:22: error: 'endl' was not declared in this scope
   10 |     cout << "Yes" << endl;
      |                      ^~~~
a.cc:12:5: error: 'cout' was not declared in this scope
   12 |     cout << "No" << endl;
      |     ^~~~
a.cc:12:21: error: 'endl' was not declared in this scope
   12 |     cout << "No" << endl;
      |                     ^~~~
Language: C++

/* ---------- STL Libraries ---------- */

// IO library
#include <cstdio>
#include <iomanip>
#include <ios>
#include <iostream>

// algorithm library
#include <algorithm>
#include <cmath>
#include <numeric>

// container library
#include <deque>
#include <list>
#include <map>
#include <queue>
#include <set>
#include <string>
#include <vector>


/* ---------- Namespace ---------- */

using namespace std;


/* ---------- Type Abbreviation ---------- */

template <typename T>
using V = vector<T>;
template <typename T, typename U>
using P = pair<T, U>;

using ll = long long;
using PL = P<ll, ll>;
using PS = P<string, ll>;

using VI = V<int>;
using VVI = V<VI>;
using VL = V<ll>;
using VVL = V<VL>;
using VS = V<string>;
using VB = V<bool>;
using VVB = V<VB>;
using VPL = V<PL>;
using VPS = V<PS>;

#define fst first
#define snd second


/* ---------- conversion ---------- */

#define INT(c) static_cast<int>(c)
#define CHAR(n) static_cast<char>(n)
#define LL(n) static_cast<ll>(n)
#define DOUBLE(n) static_cast<double>(n)


/* ---------- container ---------- */

#define EACH(i, c) for (auto i = (c).begin(); i != (c).end(); i++)
#define ALL(c) (c).begin(), (c).end()
#define SORT(c) sort(ALL(c))
#define GSORT(c) sort(ALL(c), greater<decltype((c).front())>())
#define SZ(x) (LL((x).size()))


/* ---------- repetition ---------- */

#define FOR(i, a, b) for (ll i = (a); i <= (b); i++)
#define REP(i, n) FOR(i, 0, n - 1)
#define NREP(i, n) FOR(i, 1, n)

#define RFOR(i, a, b) for (ll i = (a); i >= (b); i--)
#define RREP(i, n) RFOR(i, n, 0)
#define RNREP(i, n) RFOR(i, n, 1)

// Usual REP runs from 0 to n-1 (R: n to 0)
// Natural REP runs from 1 to n (R: n to 1)


/* ---------- Constants ---------- */

// const ll MOD = 1e9 + 7;
// const int INF = 1 << 25;
// const ll INF = 1LL << 50;
// const double PI = 3.14159265358979;
// const ll dx[4] = {0, -1, 1, 0};
// const ll dy[4] = {-1, 0, 0, 1};
// const ll dx[8] = {-1, 0, 1, -1, 1, -1, 0, 1};
// const ll dy[8] = {-1, -1, -1, 0, 0, 1, 1, 1};


/* ---------- Short Functions ---------- */

template <typename T>
T square(T a) {
    return a * a;
}


/* ---------- Debug ---------- */
#define GET_VAR_NAME(variable) #variable

#define test(x) cout << GET_VAR_NAME(x) << " = " << x << endl;
#define testP(p) cout << GET_VAR_NAME(p) << " = (" << (p).fst << ", " << (p).snd << ")" << endl;


/* ^^^^^^^^^^^^^^^ Settting Part ^^^^^^^^^^^^^^^ */

/* ---------- Variances ---------- */


/* ---------- Functions ---------- */


/* ---------- Main Function ---------- */

int main() {
    cin.tie(0);
    ios::sync_with_stdio(false);

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

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

#include <bits/stdc++.h>

#define o(output) cout << output << endl

using namespace std;

string s;
int a,b,c,d;
int l[12]={0,1,3,1,2,1,2,1,1,2,1,2,1};
char A,B;
priority_queue<int,vector<int>,greater<int> >small;

int main(){
  cin >> a >> b;
  if(l[a]==l[b])o("Yes");
  else o("No");
}

Compiler output:
a.cc:9:37: error: too many initializers for 'int [12]'
    9 | int l[12]={0,1,3,1,2,1,2,1,1,2,1,2,1};
      |                                     ^
Language: C++

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

Compiler output:
a.cc:3:5: error: cannot declare '::main' to be a global variable
    3 | int main{
      |     ^~~~
a.cc:4:3: error: expected primary-expression before 'int'
    4 |   int a,b;
      |   ^~~
a.cc:4:3: error: expected '}' before 'int'
a.cc:3:9: note: to match this '{'
    3 | int main{
      |         ^
a.cc:5:3: error: 'cin' does not name a type
    5 |   cin>>a>>b;
      |   ^~~
a.cc:8:3: error: expected unqualified-id before 'if'
    8 |   if(a==2) x=1;
      |   ^~
a.cc:9:3: error: expected unqualified-id before 'else'
    9 |   else if(a==4||a==6||a==9||a==11) x=2;
      |   ^~~~
a.cc:10:3: error: expected unqualified-id before 'else'
   10 |   else x=3;
      |   ^~~~
a.cc:12:3: error: expected unqualified-id before 'if'
   12 |   if(b==2) y=1;
      |   ^~
a.cc:13:3: error: expected unqualified-id before 'else'
   13 |   else if(b==4||b==6||b==9||b==11) y=2;
      |   ^~~~
a.cc:14:3: error: expected unqualified-id before 'else'
   14 |   else y=3;
      |   ^~~~
a.cc:16:3: error: expected unqualified-id before 'if'
   16 |   if(x==y){
      |   ^~
a.cc:19:3: error: expected unqualified-id before 'else'
   19 |   else{
      |   ^~~~
a.cc:22:1: error: expected declaration before '}' token
   22 | }
      | ^
Language: C++

#include <iostream>
#include <vector>
#include <string>
#include <algorithm>
#include <functional>
#include <queue>
#include <set>
#define rep(i,n) for(int (i)=0;(i)<(n);(i)++)
#define rep1(i,n) for(int i=1;i<=(int)(n);i++)

using namespace std;
typedef long long int lli;

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

Compiler output:
a.cc: In function 'int main()':
a.cc:18:40: error: expected ';' before 'if'
   18 |         if(x==4||x==6||x==9||x==11)gx=2
      |                                        ^
      |                                        ;
   19 |         if(x==2) gx=3;
      |         ~~                              
a.cc:20:40: error: expected ';' before 'if'
   20 |         if(y==4||y==6||y==9||y==11)gy=2
      |                                        ^
      |                                        ;
   21 |         if(y==2) gy=3;
      |         ~~
Language: C++

use std::env;
use std::io::*;
use std::str::*;

fn read<T: FromStr>() -> T {
    let stdin = stdin();
    let s = stdin.bytes().map(|c| c.unwrap() as char)
        .skip_while(|c| c.is_whitespace())
        .take_while(|c| !c.is_whitespace())
        .collect::<String>();
    s.parse::<T>().ok().unwrap()
}

fn main() {
    // main の引数
    /*
        引数なしのときargs.len() = 1;
    */
    let args: Vec<String> = env::args().collect();

    let G1 = vec![1,3,5,7,8,10,12];
    let G2 = vec![4,6,9,11];
    let G3 = vec![2];


    let x = read::<i32>();
    let y = read::<i32>();
    let mut boolean = false;
    match (G1.iter().find(|&&f| f == x), G1.iter().find(|&&f| f == y)) {
        (Some(x), Some(y)) => boolean = true,
        _ => {},
    }
    match (G2.iter().find(|&&f| f == x), G2.iter().find(|&&f| f == y)) {
        (Some(x), Some(y)) => boolean = true,
        _ => {},
    }
    match (G3.iter().find(|&&f| f == x), G3.iter().find(|&&f| f == y)) {
        (Some(x), Some(y)) => boolean = true,
        _ => {},
    }
    if boolean {
        println!("Yes");
    }else {
        println!("No");
    }
}


Compiler output:
a.cc:1:1: error: 'use' does not name a type
    1 | use std::env;
      | ^~~
a.cc:2:1: error: 'use' does not name a type
    2 | use std::io::*;
      | ^~~
a.cc:3:1: error: 'use' does not name a type
    3 | use std::str::*;
      | ^~~
a.cc:5:1: error: 'fn' does not name a type
    5 | fn read<T: FromStr>() -> T {
      | ^~
a.cc:14:1: error: 'fn' does not name a type
   14 | fn main() {
      | ^~
Language: C

#include <stdio.h>
int main(){
  int a[20];
  a[2]=2;
  a[4]=a[6]=a[9]=a[11]=3;
  int x,y;
  scanf("%d %d",&x,&y);    
  printf(a[x]==a[y]?"Yes":"No");
  return 0;
} 


Compiler output:
main.c: In function 'main':
main.c:3:1: error: stray '\302' in program
    3 | <U+00A0> int a[20];
      | ^~~~~~~~
main.c:4:1: error: stray '\302' in program
    4 | <U+00A0> a[2]=2;
      | ^~~~~~~~
main.c:5:1: error: stray '\302' in program
    5 | <U+00A0> a[4]=a[6]=a[9]=a[11]=3;
      | ^~~~~~~~
main.c:6:1: error: stray '\302' in program
    6 | <U+00A0> int x,y;
      | ^~~~~~~~
main.c:7:1: error: stray '\302' in program
    7 | <U+00A0> scanf("%d %d",&x,&y);<U+00A0><U+00A0><U+00A0>
      | ^~~~~~~~
main.c:7:24: error: stray '\302' in program
    7 | <U+00A0> scanf("%d %d",&x,&y);<U+00A0><U+00A0><U+00A0>
      |                               ^~~~~~~~
main.c:7:25: error: stray '\302' in program
    7 | <U+00A0> scanf("%d %d",&x,&y);<U+00A0><U+00A0><U+00A0>
      |                                       ^~~~~~~~
main.c:7:26: error: stray '\302' in program
    7 | <U+00A0> scanf("%d %d",&x,&y);<U+00A0><U+00A0><U+00A0>
      |                                               ^~~~~~~~
main.c:8:1: error: stray '\302' in program
    8 | <U+00A0> printf(a[x]==a[y]?"Yes":"No");
      | ^~~~~~~~
main.c:9:1: error: stray '\302' in program
    9 | <U+00A0> return 0;
      | ^~~~~~~~
Language: C

#include<stdio.h>
int main(){
  int a[20];
  a[2]=2;
  a[4]=a[6]=a[9]=a[11]=3;
  int x,y;
  scanf("%d%d",&x,&y);
  printf(a[x]==a[y]?"Yes":"No");
  return 0;
 ｝


Compiler output:
main.c: In function 'main':
main.c:10:2: error: '\U0000ff5d' undeclared (first use in this function)
   10 |  ｝
      |  ^~
main.c:10:2: note: each undeclared identifier is reported only once for each function it appears in
main.c:10:4: error: expected ';' at end of input
   10 |  ｝
      |    ^
      |    ;
main.c:10:2: error: expected declaration or statement at end of input
   10 |  ｝
      |  ^~
Language: C

#include<stdio.h>
int main(){
  int a[20];
  a[2]=2;
  a[4]=a[6]=a[9]=a[11]=3;
  int x,y;
  scanf("%d%d",&x,&y);
  printf(a[x]==a[y]?"Yes","No");
  return 0;
 ｝

Compiler output:
main.c: In function 'main':
main.c:8:31: error: expected ':' before ')' token
    8 |   printf(a[x]==a[y]?"Yes","No");
      |                               ^
      |                               :
main.c:10:2: error: '\U0000ff5d' undeclared (first use in this function)
   10 |  ｝
      |  ^~
main.c:10:2: note: each undeclared identifier is reported only once for each function it appears in
main.c:10:4: error: expected ';' at end of input
   10 |  ｝
      |    ^
      |    ;
main.c:10:2: error: expected declaration or statement at end of input
   10 |  ｝
      |  ^~
Language: C++

#include<iostream>
#include<set>
using namespace std;
int main(){
    int x,y;
    set<int> st{1,3,5,7,8,10,12}
    cin >> x >> y;
    if(x==2&&y==2)  cout << "Yes\n";
    else if(x==2||y==2)     cout << "No\n";
    else if(st.find(x)==st.end()&&st.find(y)==st.end()) cout << "Yes\n";
    else if(st.find(x)!=st.end()&&st.find(y)!=st.end()) cout << "Yes\n";
    else    cout << "No\n";
}

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

#include <iostream>
#include <string>
#include <algorithm>
#include <math.h>
using namespace std;

int a[10] = { 1,3,5,7,8,10,12 };
int b[10] = { 4,6,9,11 };
int c[10] = { 2 };

int main() {
	int x, y;
	cin >> x >> y;
	bool one = false;
	bool two = false;
	for (int i = 0; i < 10; i++) {
		if (x == a[i])one = true;
		if (y == a[i])two = true;
	}
	if (one&&two) {
		cout << "Yes" << endl;
		return 0;
	}
	bool one = false;
	bool two = false;
	for (int i = 0; i < 10; i++) {
		if (x == b[i])one = true;
		if (y == b[i])two = true;
	}
	if (one&&two) {
		cout << "Yes" << endl;
		return 0;
	}
	bool one = false;
	bool two = false;
	for (int i = 0; i < 10; i++) {
		if (x == c[i])one = true;
		if (y == c[i])two = true;
	}
	if (one&&two) {
		cout << "Yes" << endl;
		return 0;
	}
	cout << "No" << endl;
	return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:24:14: error: redeclaration of 'bool one'
   24 |         bool one = false;
      |              ^~~
a.cc:14:14: note: 'bool one' previously declared here
   14 |         bool one = false;
      |              ^~~
a.cc:25:14: error: redeclaration of 'bool two'
   25 |         bool two = false;
      |              ^~~
a.cc:15:14: note: 'bool two' previously declared here
   15 |         bool two = false;
      |              ^~~
a.cc:34:14: error: redeclaration of 'bool one'
   34 |         bool one = false;
      |              ^~~
a.cc:14:14: note: 'bool one' previously declared here
   14 |         bool one = false;
      |              ^~~
a.cc:35:14: error: redeclaration of 'bool two'
   35 |         bool two = false;
      |              ^~~
a.cc:15:14: note: 'bool two' previously declared here
   15 |         bool two = false;
      |              ^~~