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

#include<bits/stdc++.h>
using namespace std;
int main(){
int x,y;
  cin>>x>>y;
  
vector<int>vec1={1,3,5,7,8,10,12};
vector<int>vec2={4,6,9,11}
  
  int sum1=0;
  int sum2=0;
  
  
  for(int i=0,int j=0;i<vec1.size(),j<vec1.size();i++,j++){
    if(vec1.at(i)==x&&vec.at(j)==y){
      sum1++;
    }
  }
    for(int i=0,int j=0;i<vec2.size(),j<vec2.size();i++,j++){
    if(vec2.at(i)==x&&vec2.at(j)==y){
      sum2++;
    }
    }
  
      
  
      
   
  if(sum1==1||sum2==1){
    cout<<"Yes"<<endl;
  }
  else{
    cout<<"No"<<endl;
  }
}

    
      
    

Compiler output:
a.cc: In function 'int main()':
a.cc:10:3: error: expected ',' or ';' before 'int'
   10 |   int sum1=0;
      |   ^~~
a.cc:14:15: error: expected unqualified-id before 'int'
   14 |   for(int i=0,int j=0;i<vec1.size(),j<vec1.size();i++,j++){
      |               ^~~
a.cc:14:15: error: expected ';' before 'int'
   14 |   for(int i=0,int j=0;i<vec1.size(),j<vec1.size();i++,j++){
      |               ^~~
      |               ;
a.cc:14:50: error: expected ')' before ';' token
   14 |   for(int i=0,int j=0;i<vec1.size(),j<vec1.size();i++,j++){
      |      ~                                           ^
      |                                                  )
a.cc:14:51: error: 'i' was not declared in this scope
   14 |   for(int i=0,int j=0;i<vec1.size(),j<vec1.size();i++,j++){
      |                                                   ^
a.cc:14:55: error: 'j' was not declared in this scope
   14 |   for(int i=0,int j=0;i<vec1.size(),j<vec1.size();i++,j++){
      |                                                       ^
a.cc:19:17: error: expected unqualified-id before 'int'
   19 |     for(int i=0,int j=0;i<vec2.size(),j<vec2.size();i++,j++){
      |                 ^~~
a.cc:19:17: error: expected ';' before 'int'
   19 |     for(int i=0,int j=0;i<vec2.size(),j<vec2.size();i++,j++){
      |                 ^~~
      |                 ;
a.cc:19:52: error: expected ')' before ';' token
   19 |     for(int i=0,int j=0;i<vec2.size(),j<vec2.size();i++,j++){
      |        ~                                           ^
      |                                                    )
a.cc:29:6: error: 'sum1' was not declared in this scope; did you mean 'sum2'?
   29 |   if(sum1==1||sum2==1){
      |      ^~~~
      |      sum2
Language: C++

#include<bits/stdc++.h>
using namespace std;
int main(){
int x,y;
  cin>>x>>y;
  
vector<int>vec1={1,3,5,7,8,10,12};
vector<int>vec2={4,6,9,11}
  
  int sum1=0;
  int sum2=0;
  
  
  for(int i=0 int j=0;i<vec1.size() j<vec1.size();i++ j++){
    if(vec1.at(i)==x&&vec.at(j)==y){
      sum1++;
    }
  }
    for(int i=0 int j=0;i<vec2.size() j<vec2.size();i++ j++){
    if(vec2.at(i)==x&&vec2.at(j)==y){
      sum2++;
    }
    }
  
      
  
      
   
  if(sum1==1||sum2==1){
    cout<<"Yes"<<endl;
  }
  else{
    cout<<"No"<<endl;
  }
}

    
      
    

Compiler output:
a.cc: In function 'int main()':
a.cc:10:3: error: expected ',' or ';' before 'int'
   10 |   int sum1=0;
      |   ^~~
a.cc:14:14: error: expected ';' before 'int'
   14 |   for(int i=0 int j=0;i<vec1.size() j<vec1.size();i++ j++){
      |              ^~~~
      |              ;
a.cc:14:36: error: expected ')' before 'j'
   14 |   for(int i=0 int j=0;i<vec1.size() j<vec1.size();i++ j++){
      |      ~                             ^~
      |                                    )
a.cc:14:51: error: 'i' was not declared in this scope
   14 |   for(int i=0 int j=0;i<vec1.size() j<vec1.size();i++ j++){
      |                                                   ^
a.cc:19:16: error: expected ';' before 'int'
   19 |     for(int i=0 int j=0;i<vec2.size() j<vec2.size();i++ j++){
      |                ^~~~
      |                ;
a.cc:19:38: error: expected ')' before 'j'
   19 |     for(int i=0 int j=0;i<vec2.size() j<vec2.size();i++ j++){
      |        ~                             ^~
      |                                      )
a.cc:29:6: error: 'sum1' was not declared in this scope; did you mean 'sum2'?
   29 |   if(sum1==1||sum2==1){
      |      ^~~~
      |      sum2
Language: C++

#include <bits/stdc++.h>

using namespace std;

int main() {
    ios_base::sync_with_stdio(false);
    cin.tie(nullptr);
    int arr[12] = {-1, 1, 3, 1, 2, 1, 2, 1, 1, 2, 1, 2, 1};
    int x, y;
    cin >> x >> y;
    cout << (arr[x] == arr[y] ? "Yes" : "No") << '\n';
    return 0;
}


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

#include <bits/stdc++.h>
using namespace std;
typedef long long ll;
int main()
{
  ll 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 if(x==2&&y==2) cout<<"Yes"<<endl;
  else cout<<"No"<<endl;
}
	


Compiler output:
a.cc: In function 'int main()':
a.cc:8:52: error: lvalue required as left operand of assignment
    8 |   else if(x==4||x==6||x==9||x==11&&y==4||y==6||y==9||y=11) cout<<"Yes"<<endl;
      |           ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~
Language: C++

#include <math.h>
#include <stdlib.h>
#include <string.h>
#include <algorithm>
#include <array>
#include <iomanip>
#include <iostream>
#include <limits>
#include <map>
#include <queue>
#include <set>
#include <stack>
#include <string>
#include <vector>

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;
    if(a[x]==a[y])cout<<"Yes"<<endl;
    else cout<<"No"<<endl;
    return 0;
}#include <math.h>
#include <stdlib.h>
#include <string.h>
#include <algorithm>
#include <array>
#include <iomanip>
#include <iostream>
#include <limits>
#include <map>
#include <queue>
#include <set>
#include <stack>
#include <string>
#include <vector>

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;
    if(a[x]==a[y])cout<<"Yes"<<endl;
    else cout<<"No"<<endl;
    return 0;
}

Compiler output:
a.cc:25:2: error: stray '#' in program
   25 | }#include <math.h>
      |  ^
a.cc:25:3: error: 'include' does not name a type
   25 | }#include <math.h>
      |   ^~~~~~~
a.cc:42:5: error: redefinition of 'int main()'
   42 | int main() {
      |     ^~~~
a.cc:18:5: note: 'int main()' previously defined here
   18 | int main() {
      |     ^~~~
Language: C++

#include <stdio.h>

int main()
{
	int a[13] = {0,1,2,1,3,1,3,1,1,3,1,3,1};	
	int x,y;
scanf("%d%d",&x,&y)){
		printf(a[x] - a[y] ? "No" : "Yes");
		printf("\n");
	}
	return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:7:20: error: expected ';' before ')' token
    7 | scanf("%d%d",&x,&y)){
      |                    ^
      |                    ;
Language: C++

int main() {
 int a[] = {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:3:12: error: 'cin' was not declared in this scope
    3 |  int x, y; cin >> x >> y;
      |            ^~~
a.cc:4:6: error: 'A' was not declared in this scope
    4 |   if(A[x]==A[y]){
      |      ^
a.cc:5:5: error: 'cout' was not declared in this scope
    5 |     cout<<"YES"<<endl;
      |     ^~~~
a.cc:5:18: error: 'endl' was not declared in this scope
    5 |     cout<<"YES"<<endl;
      |                  ^~~~
a.cc:7:8: error: 'cout' was not declared in this scope
    7 |   else{cout<<"NO"<<endl;
      |        ^~~~
a.cc:7:20: error: 'endl' was not declared in this scope
    7 |   else{cout<<"NO"<<endl;
      |                    ^~~~
Language: C++

int main() {
int a[] = {0, 1, 3, 1, 2, 1, 2, 1, 1, 2, 1, 2, 1}; // 配列の添字は 0 から始まるので，a[0] は 0 にしている． int x, y; cin >> x >> y;
cout << (a[x] == a[y] ? "Yes" : "No") << endl;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:3:1: error: 'cout' was not declared in this scope
    3 | cout << (a[x] == a[y] ? "Yes" : "No") << endl;
      | ^~~~
a.cc:3:12: error: 'x' was not declared in this scope
    3 | cout << (a[x] == a[y] ? "Yes" : "No") << endl;
      |            ^
a.cc:3:20: error: 'y' was not declared in this scope
    3 | cout << (a[x] == a[y] ? "Yes" : "No") << endl;
      |                    ^
a.cc:3:42: error: 'endl' was not declared in this scope
    3 | cout << (a[x] == a[y] ? "Yes" : "No") << endl;
      |                                          ^~~~
Language: C++

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

/* メモリ食い過ぎ注意 */
#define int long long

typedef long long ll;

ll gcd(ll a, ll b)
{
    if (a < b)
        gcd(b, a);
    if (b == 0)
        return a;
    int r;
    while ((r = a % b))
    {
        a = b;
        b = r;
    }
    return b;
}

/* define const */
const ll INF = (1ll << 60);
const ll MOD = (ll)1e9 + 7;
/* end defineing */

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

    int arr[] = {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:36:9: error: 'a' was not declared in this scope
   36 |     if (a[x] == a[y])
      |         ^
Language: C++

#include<bits/stdc++.h>
using namespace std;
int main(){
  vector<int> a[]={0,1,3,1,2,1,2,1,1,2,1,2,1};
  int x,y;
  cin >> x >> y;
  string ans;
  if(a[x]==a[y]){
    ans="YES";
  }
  else{
    ans="NO";
  }
  cout << ans << endl;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:4:20: error: conversion from 'int' to non-scalar type 'std::vector<int>' requested
    4 |   vector<int> a[]={0,1,3,1,2,1,2,1,1,2,1,2,1};
      |                    ^
a.cc:4:22: error: conversion from 'int' to non-scalar type 'std::vector<int>' requested
    4 |   vector<int> a[]={0,1,3,1,2,1,2,1,1,2,1,2,1};
      |                      ^
a.cc:4:24: error: conversion from 'int' to non-scalar type 'std::vector<int>' requested
    4 |   vector<int> a[]={0,1,3,1,2,1,2,1,1,2,1,2,1};
      |                        ^
a.cc:4:26: error: conversion from 'int' to non-scalar type 'std::vector<int>' requested
    4 |   vector<int> a[]={0,1,3,1,2,1,2,1,1,2,1,2,1};
      |                          ^
a.cc:4:28: error: conversion from 'int' to non-scalar type 'std::vector<int>' requested
    4 |   vector<int> a[]={0,1,3,1,2,1,2,1,1,2,1,2,1};
      |                            ^
a.cc:4:30: error: conversion from 'int' to non-scalar type 'std::vector<int>' requested
    4 |   vector<int> a[]={0,1,3,1,2,1,2,1,1,2,1,2,1};
      |                              ^
a.cc:4:32: error: conversion from 'int' to non-scalar type 'std::vector<int>' requested
    4 |   vector<int> a[]={0,1,3,1,2,1,2,1,1,2,1,2,1};
      |                                ^
a.cc:4:34: error: conversion from 'int' to non-scalar type 'std::vector<int>' requested
    4 |   vector<int> a[]={0,1,3,1,2,1,2,1,1,2,1,2,1};
      |                                  ^
a.cc:4:36: error: conversion from 'int' to non-scalar type 'std::vector<int>' requested
    4 |   vector<int> a[]={0,1,3,1,2,1,2,1,1,2,1,2,1};
      |                                    ^
a.cc:4:38: error: conversion from 'int' to non-scalar type 'std::vector<int>' requested
    4 |   vector<int> a[]={0,1,3,1,2,1,2,1,1,2,1,2,1};
      |                                      ^
a.cc:4:40: error: conversion from 'int' to non-scalar type 'std::vector<int>' requested
    4 |   vector<int> a[]={0,1,3,1,2,1,2,1,1,2,1,2,1};
      |                                        ^
a.cc:4:42: error: conversion from 'int' to non-scalar type 'std::vector<int>' requested
    4 |   vector<int> a[]={0,1,3,1,2,1,2,1,1,2,1,2,1};
      |                                          ^
a.cc:4:44: error: conversion from 'int' to non-scalar type 'std::vector<int>' requested
    4 |   vector<int> a[]={0,1,3,1,2,1,2,1,1,2,1,2,1};
      |                                            ^
Language: C++

#include<bits/stdc++>
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;
  string ans;
  if(a[x]==a[y]){
    ans="YES";
  }
  else{
    ans="NO";
  }
  cout << ans << endl;
}

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

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

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

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

Compiler output:
a.cc: In function 'int main()':
a.cc:12:47: error: lvalue required as left operand of assignment
   12 |     else if(A==1||A==3||A==5||A=7||A==8||A==10||A=12){
      |                                 ~~~~~~~~~~~~~~^~~
a.cc:13:45: error: lvalue required as left operand of assignment
   13 |       if(B==1||B==3||B==5||B==7||B==8||B==10||B=12)cout<<"Yes";
      |          ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~
Language: C++

#include "bits/stdc++.h"
using namespace std;
int main(void){
  int a[2],group[2];
  string ans;
  cin >> a[0] >> a[1];
  for (int i=0;i<2;i++){
    if (a[i]==1||a[i]==3||a[i]==5||a[i]==7||a[i]==8||a[i]==10||a[i]==12)
      group[i] = 0;
    else if (a[i]==4||a[i]==6||a[i]==9||a[i]==11||)
      group[i] = 1;
    else
      group[i] = 2;
  }
  if (group[0]==group[1]){
    ans = "Yes";
  }else {
    ans = "No";
  }
  cout << ans << endl;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:10:51: error: expected primary-expression before ')' token
   10 |     else if (a[i]==4||a[i]==6||a[i]==9||a[i]==11||)
      |                                                   ^
Language: C++

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

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

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

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

Compiler output:
a.cc: In function 'int main()':
a.cc:6:9: error: expected primary-expression before '{' token
    6 |   cout<<{"Yes","No"}[g[a]==g[b]];
      |         ^
a.cc:6:23: error: expected ',' before '[' token
    6 |   cout<<{"Yes","No"}[g[a]==g[b]];
      |                       ^
      |                       ,
a.cc:6:23: error: expected identifier before '[' token
a.cc: In lambda function:
a.cc:6:33: error: expected '{' before ';' token
    6 |   cout<<{"Yes","No"}[g[a]==g[b]];
      |                                 ^
Language: C++

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

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

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

Compiler output:
a.cc: In function 'int main()':
a.cc:4:11: error: scalar object 'g' requires one element in initializer
    4 |   int a,b,g={0,1,3,1,2,1,2,1,1,2,1,2,1}
      |           ^
a.cc:5:3: error: expected ',' or ';' before 'cin'
    5 |   cin>>a>>b;
      |   ^~~
Language: C++

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

Compiler output:
a.cc: In function 'int main()':
a.cc:4:11: error: scalar object 'g' requires one element in initializer
    4 |   int a,b,g={0,1,3,1,2,1,2,1,1,2,1,2,1}
      |           ^
a.cc:5:3: error: expected ',' or ';' before 'cin'
    5 |   cin>>a>>b;
      |   ^~~
Language: C++

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

Compiler output:
a.cc: In function 'int main()':
a.cc:4:11: error: scalar object 'g' requires one element in initializer
    4 |   int a,b,g={0,1,3,1,2,1,2,1,1,2,1,2,1}
      |           ^
a.cc:5:3: error: expected ',' or ';' before 'cin'
    5 |   cin>>a>>b;
      |   ^~~
a.cc:6:9: error: expected primary-expression before 'if'
    6 |   cout<<if g[a]==g[b]?"Yes":"No";
      |         ^~
Language: C++

#include<iostream>
using namespace std;
int main(){
  int a,b;
  int g1[]={1,3,5,7,8,10,12},g2[]={4,6,9,11},g3[]={2};
  cin>>a>>b;
  if(g1.find(a)&&g1.find(b))cout<<"Yes";
  if(g2.find(a)&&g2.find(b))cout<<"Yes";
  if(g3.find(a)&&G3.find(b))cout<<"Yes";
  else cout<<"No";
}

Compiler output:
a.cc: In function 'int main()':
a.cc:7:9: error: request for member 'find' in 'g1', which is of non-class type 'int [7]'
    7 |   if(g1.find(a)&&g1.find(b))cout<<"Yes";
      |         ^~~~
a.cc:7:21: error: request for member 'find' in 'g1', which is of non-class type 'int [7]'
    7 |   if(g1.find(a)&&g1.find(b))cout<<"Yes";
      |                     ^~~~
a.cc:8:9: error: request for member 'find' in 'g2', which is of non-class type 'int [4]'
    8 |   if(g2.find(a)&&g2.find(b))cout<<"Yes";
      |         ^~~~
a.cc:8:21: error: request for member 'find' in 'g2', which is of non-class type 'int [4]'
    8 |   if(g2.find(a)&&g2.find(b))cout<<"Yes";
      |                     ^~~~
a.cc:9:9: error: request for member 'find' in 'g3', which is of non-class type 'int [1]'
    9 |   if(g3.find(a)&&G3.find(b))cout<<"Yes";
      |         ^~~~
a.cc:9:18: error: 'G3' was not declared in this scope; did you mean 'g3'?
    9 |   if(g3.find(a)&&G3.find(b))cout<<"Yes";
      |                  ^~
      |                  g3
Language: C++

#include<iostream>
using namespace std;
int main(){
  int a,b;
  int g1={1,3,5,7,8,10,12},g2={4,6,9,11},g3={2};
  cin>>a>>b;
  if(g1.find(a)&&g1.find(b))cout<<"Yes";
  if(g2.find(a)&&g2.find(b))cout<<"Yes";
  if(g3.find(a)&&G3.find(b))cout<<"Yes";
  else cout<<"No";
}

Compiler output:
a.cc: In function 'int main()':
a.cc:5:7: error: scalar object 'g1' requires one element in initializer
    5 |   int g1={1,3,5,7,8,10,12},g2={4,6,9,11},g3={2};
      |       ^~
a.cc:5:28: error: scalar object 'g2' requires one element in initializer
    5 |   int g1={1,3,5,7,8,10,12},g2={4,6,9,11},g3={2};
      |                            ^~
a.cc:9:9: error: request for member 'find' in 'g3', which is of non-class type 'int'
    9 |   if(g3.find(a)&&G3.find(b))cout<<"Yes";
      |         ^~~~
a.cc:9:18: error: 'G3' was not declared in this scope; did you mean 'g3'?
    9 |   if(g3.find(a)&&G3.find(b))cout<<"Yes";
      |                  ^~
      |                  g3
Language: C++

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

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

Compiler output:
a.cc: In function 'int main()':
a.cc:9:42: error: expected ';' before 'if'
    9 |         vec = {0,1,3,1,2,1,2,1,1,2,1,2,1}
      |                                          ^
      |                                          ;
   10 | 
   11 |         if(vec.at(x) == vec.at(y)) {
      |         ~~                                
a.cc:13:6: error: 'else' without a previous 'if'
   13 |     }else {
      |      ^~~~
Language: C++

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

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


Compiler output:
a.cc: In function 'int main()':
a.cc:7:15: warning: empty parentheses were disambiguated as a function declaration [-Wvexing-parse]
    7 |   vector<int>A()={1,3,5,7,8,12};
      |               ^~
a.cc:7:15: note: remove parentheses to default-initialize a variable
    7 |   vector<int>A()={1,3,5,7,8,12};
      |               ^~
      |               --
a.cc:7:16: warning: declaration of 'std::vector<int> A()' has 'extern' and is initialized
    7 |   vector<int>A()={1,3,5,7,8,12};
      |                ^
a.cc:7:19: error: invalid pure specifier (only '= 0' is allowed) before numeric constant
    7 |   vector<int>A()={1,3,5,7,8,12};
      |                   ^
a.cc:7:14: error: function 'std::vector<int> A()' is initialized like a variable
    7 |   vector<int>A()={1,3,5,7,8,12};
      |              ^
a.cc:7:31: error: expected ',' or ';' before '}' token
    7 |   vector<int>A()={1,3,5,7,8,12};
      |                               ^
a.cc: At global scope:
a.cc:8:19: error: invalid pure specifier (only '= 0' is allowed) before numeric constant
    8 |   vector<int>B()={4,6,9,10};
      |                   ^
a.cc:8:14: error: function 'std::vector<int> B()' is initialized like a variable
    8 |   vector<int>B()={4,6,9,10};
      |              ^
a.cc:8:27: error: expected ',' or ';' before '}' token
    8 |   vector<int>B()={4,6,9,10};
      |                           ^
a.cc:8:27: error: expected declaration before '}' token
a.cc:11:3: error: expected unqualified-id before 'for'
   11 |   for(int i=0;i<5;i++){
      |   ^~~
a.cc:11:15: error: 'i' does not name a type
   11 |   for(int i=0;i<5;i++){
      |               ^
a.cc:11:19: error: 'i' does not name a type
   11 |   for(int i=0;i<5;i++){
      |                   ^
a.cc:17:3: error: expected unqualified-id before 'for'
   17 |   for(int i=0;i<3;i++){
      |   ^~~
a.cc:17:15: error: 'i' does not name a type
   17 |   for(int i=0;i<3;i++){
      |               ^
a.cc:17:19: error: 'i' does not name a type
   17 |   for(int i=0;i<3;i++){
      |                   ^
a.cc:23:3: error: expected unqualified-id before 'if'
   23 |   if(f)
      |   ^~
a.cc:25:3: error: expected unqualified-id before 'else'
   25 |   else
      |   ^~~~
a.cc:27:1: error: expected declaration before '}' token
   27 | }
      | ^
Language: C++

import qualified Data.ByteString.Char8 as BS
import Data.Maybe (fromJust)
import Control.Monad
import Data.List

getGroup :: Int -> Int
getGroup 2 = 2
getGroup x
    | elem x [4, 6, 9, 11] = 1
    | otherwise = 0

solve :: Int -> Int -> String
solve x y
    | (getGroup x) == (getGroup y) = "Yes"
    | otherwise = "No"


main :: IO ()
main = do
    [x, y] <- map (fst . fromJust . BS.readInt) . BS.words <$> BS.getLine
    putStrLn $ solve x y


Compiler output:
a.cc:1:1: error: 'import' does not name a type
    1 | import qualified Data.ByteString.Char8 as BS
      | ^~~~~~
a.cc:1:1: note: C++20 'import' only available with '-fmodules-ts'
Language: C++

#include <iostream>
using namespace std;

int main() {
	int x, y;
	
	cin >> x >> y;
	
	if(x==2 || y==2) cout << "No";
	else {
		int a[13], b[13];
		for(int i = 0;i<13;i++){
			a[i] =0;
			b[i] =0;
        }

		
		//冗長すぎるが...
		a[1]=1; a[3]=1; a[5]=1; a[7]=1; a[8]=1;a[10]=1;a[12]=1;
		b[4]=1;b[6]=1;b[9]=1;b[11]=1;
		
		if(a[x]==1 && a[y]==1) cout << "Yes";
		else if(b[x]==1 && b[y]==1) cout << "Yes":
		else cout << "No";
	}
	
	cout << endl;
	
	return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:23:58: error: expected ';' before ':' token
   23 |                 else if(b[x]==1 && b[y]==1) cout << "Yes":
      |                                                          ^
      |                                                          ;
Language: C++

#include <iostream>
using namespace std;

int main() {
	int x, y;
	
	cin >> x >> y;
	
	if(x==2 || y==2) cout << "No";
	else if{
		int a[13], b[13];
		for(int i = 0;i<13;i++){
			a[i] =0;
			b[i] =0;
		}
		
		//冗長すぎるが...
		a[1]=1; a[3]=1; a[5]=1; a[7]=1; a[8]=1;a[10]=1;a[12]=1;
		b[4]=1;b[6]=1;b[9]=1;b[11]=1;
		
		if(a[x]==1 && a[y]==1) cout << "Yes";
		else if(b[x]==1 && b[y]==1) << "Yes":
		else cout << "No";
	}
	
	cout << endl;
	
	return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:10:16: error: expected '(' before '{' token
   10 |         else if{
      |                ^
      |                (
Language: C++

#include<iostream>

using namespace std;

int sel(int i){
  switch(i){
      case(4):
      case(6):
      case(9):
      case(11):i=2;break;
      case(2):i=3;break;
    default:i=1;break;
  }
  return i;
}

int main(){
  int x,y;
  cin>>x,y;
  sel(x);sel(y);
  cout<<(x=y?"Yes":"No")<<endl;
  return 0;
  
}  

Compiler output:
a.cc: In function 'int main()':
a.cc:21:13: error: invalid conversion from 'const char*' to 'int' [-fpermissive]
   21 |   cout<<(x=y?"Yes":"No")<<endl;
      |            ~^~~~~~~~~~~
      |             |
      |             const char*
Language: C++

#include<iostream>

using namespace std;

int sel(int i){
  switch(i){
      case(4):
      case(6):
      case(9):
      case(11):i=2;break;
      case(2):i=3;break;
    default:i=1;break;
  }
  return i;
}

int main(){
  int x,y;
  cin>>x,y;
  sel x;sel y;
  cout<<(x=y?"Yes":"No")<<endl;
  return 0;
  
}  

Compiler output:
a.cc: In function 'int main()':
a.cc:20:6: error: expected ';' before 'x'
   20 |   sel x;sel y;
      |      ^~
      |      ;
a.cc:20:12: error: expected ';' before 'y'
   20 |   sel x;sel y;
      |            ^~
      |            ;
a.cc:21:13: error: invalid conversion from 'const char*' to 'int' [-fpermissive]
   21 |   cout<<(x=y?"Yes":"No")<<endl;
      |            ~^~~~~~~~~~~
      |             |
      |             const char*
Language: C++

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

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

Compiler output:
a.cc: In function 'int main()':
a.cc:6:13: error: scalar object 'mon' requires one element in initializer
    6 |   int x, y, mon = {0, 2, 0, 1, 0, 1, 0, 0, 1, 0, 1, 0};
      |             ^~~
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}
 string c,b;
  cin>>c>>b;
    if(a[c]==a[b]){
cout<<"YES"<<endl;
  }
    else{
   cout<<"NO"<<endl;
    }
  }
 



Compiler output:
a.cc: In function 'int main()':
a.cc:6:2: error: expected ',' or ';' before 'string'
    6 |  string c,b;
      |  ^~~~~~
a.cc:7:8: error: 'c' was not declared in this scope
    7 |   cin>>c>>b;
      |        ^
a.cc:7:11: error: 'b' was not declared in this scope
    7 |   cin>>c>>b;
      |           ^
Language: Java

import java.util.*;
public class Main{
    public static void main(String[]args){
        Scanner sc = new Scanner(System.in);
        int x = sc.nextInt();
        int y = sc.nextInt();
        int[] a = {0,2,0,1,0,1,0,0,1,0,1,0};
        if(a[x-1]==b[y-1])
            System.out.println("Yes");else System.out.println("No");
    }
}

Compiler output:
Main.java:8: error: cannot find symbol
        if(a[x-1]==b[y-1])
                   ^
  symbol:   variable b
  location: class Main
1 error
Language: C++

[x,y] = list(map(int, input().split()))
s1 = [1,3,5,7,8,10,12]
s2 = [4,6,9,11]
if x == 2:
  print("No")
elif x in s1 and y in s1:
  print("Yes")
elif x in s2 and y in s2:
  print("Yes")
else:
  print("No")

Compiler output:
a.cc:1:1: error: expected unqualified-id before '[' token
    1 | [x,y] = list(map(int, input().split()))
      | ^
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 b,c;
     cin>>b>>c;
     if(a[b]==a[c]){
         cout<<“Yes”;
     }
     else{
        cout<<“No”;
     }
  }


Compiler output:
a.cc:3:2: error: extended character   is not valid in an identifier
    3 |   
      |  ^
a.cc:9:16: error: extended character “ is not valid in an identifier
    9 |          cout<<“Yes”;
      |                ^
a.cc:9:16: error: extended character ” is not valid in an identifier
a.cc:12:15: error: extended character “ is not valid in an identifier
   12 |         cout<<“No”;
      |               ^
a.cc:12:15: error: extended character ” is not valid in an identifier
a.cc:3:2: error: '\U000000a0' does not name a type
    3 |   
      |  ^
Language: C++

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


Compiler output:
a.cc:1:4: error: stray '#' in program
    1 | 1. #include <bits/stdc++.h>
      |    ^
a.cc:3:4: error: extended character   is not valid in an identifier
    3 | 3.  
      |    ^
a.cc:8:18: error: extended character “ is not valid in an identifier
    8 | 8.         cout<<“Yes”;
      |                  ^
a.cc:8:18: error: extended character ” is not valid in an identifier
a.cc:11:18: error: extended character “ is not valid in an identifier
   11 | 11.        cout<<“No”;
      |                  ^
a.cc:11:18: error: extended character ” is not valid in an identifier
a.cc:1:1: error: expected unqualified-id before numeric constant
    1 | 1. #include <bits/stdc++.h>
      | ^~
a.cc:3:1: error: expected unqualified-id before numeric constant
    3 | 3.  
      | ^~
Language: C

#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <math.h>
#include <time.h>

#define _CRT_SECURE_NO_WARNINGS
#define TLong long long 

// fact(n)
int fact(int n){
	if(n == 1)	return 1;
	else return (n * fact(n - 1));
}

// combination(n,r)
int combination(int n, int r){

	if(r == 0 || r == n)	return 1;
	else if(r == 1)	return n;
	return (combination(n - 1, r - 1) + combination(n - 1, r));
}

// gcd(a,b)
int gcd(int a,int b){
	int ret;
	ret = (b == 0) ? a : gcd(b, a % b);
	return ret;
}

// lcm(a.b)
int lcm(int a,int b){
	return (a * b) / gcd(a,b);
}

// qsort(array, size, sizeof(int),comp);
int comp(const int *a,const int *b){
	return (*a - *b);
}

// append(array,*size,addNum)
void append(int *array,int *size,int num){
	realloc(array, sizeof(int) * (*size + 1));
	array[(*size)] = num;
	++(*size);
}

// pop(array,*size) & nongetpop(array,*size)
int pop(int *array,int *size){
	int temp = array[(*size - 1)];
	realloc(array,sizeof(int) * (*size - 1));
	--(*size);
	return temp;
}

void nongetpop(int *array,int *size){
	realloc(array,sizeof(int) * (*size - 1));
	--(*size);
}

int main(int argc, char const *argv[]){
	int num[2],gp[] = {0,1,3,1,2,1,2,1,1,2,1,2,1};
	scanf("%d%d",&num[0],&num[1]);
	for (int i = 0; i < 2; ++i)
	{
		if(gp[num[0]] == gp[num[1]])	puts("Yes");
		else puts("No");
		return 0;
	}


Compiler output:
main.c: In function 'main':
main.c:69:9: error: expected declaration or statement at end of input
   69 |         }
      |         ^
main.c: In function 'append':
main.c:43:9: warning: ignoring return value of 'realloc' declared with attribute 'warn_unused_result' [-Wunused-result]
   43 |         realloc(array, sizeof(int) * (*size + 1));
      |         ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
main.c: In function 'pop':
main.c:51:9: warning: ignoring return value of 'realloc' declared with attribute 'warn_unused_result' [-Wunused-result]
   51 |         realloc(array,sizeof(int) * (*size - 1));
      |         ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
main.c: In function 'nongetpop':
main.c:57:9: warning: ignoring return value of 'realloc' declared with attribute 'warn_unused_result' [-Wunused-result]
   57 |         realloc(array,sizeof(int) * (*size - 1));
      |         ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Language: C++

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

int main(){
	vector<int> x (2);
	cin >> x[0] >> x[1] ;
	for (int i = 0; i < 2; ++i)
	{
		switch(x[i]){
			case 1, 3, 5, 7, 10, 12:
				x[i] = 1;
				break;
			case 4, 6, 9, 11:
				x[i] = 2;
				break;
			default:
				x[i] = 3;
				break;
		}
	}
	if (x[0] == x[1])
	{
		cout << "Yes" << endl;
	}else{
		cout << "No" << endl;
	}
}

Compiler output:
a.cc: In function 'int main()':
a.cc:10:31: error: expected ':' before ',' token
   10 |                         case 1, 3, 5, 7, 10, 12:
      |                               ^
      |                               :
a.cc:10:31: error: expected primary-expression before ',' token
a.cc:13:31: error: expected ':' before ',' token
   13 |                         case 4, 6, 9, 11:
      |                               ^
      |                               :
a.cc:13:31: error: expected primary-expression before ',' token
Language: Java

import java.io.PrintWriter;
import java.util.*;
public class Main {
	public static void main(String[] args){
		Scanner sc = new Scanner(System.in);
		PrintWriter out = new PrintWriter(System.out);
		//String S = sc.next();
		//int N = Integer.parseInt(sc.next());
		//out.println();
		// ArrayList<String> list = new ArrayList<String>();
		// list.stream().sorted().distinct();
		int a[] = [1,3,5,7,8,10,12];
		int b[] = [4,6,9,11];
		int c[] = [2];
		int A = Integer.parseInt(sc.next());
		int B = Integer.parseInt(sc.next());
		if((a.contains(A) && a.contains(B))
		|| (b.contains(A) && b.contains(B))
		|| (c.contains(A) && c.contains(B))){
			out.println("Yes");
		}else {
			out.println("No");
		}
		out.flush();	
	}
}

Compiler output:
Main.java:12: error: illegal start of expression
		int a[] = [1,3,5,7,8,10,12];
		          ^
Main.java:13: error: illegal start of expression
		int b[] = [4,6,9,11];
		          ^
Main.java:14: error: illegal start of expression
		int c[] = [2];
		          ^
3 errors
Language: C++

#include <iostream>
#include <algorithm>
#include <vector>
#include <string>
#include <map>
#include <set>
using namespace std;
int main() 
  int ans[] = {1,2,1,3,1,3,1,3,1,3,1,3,1};
  int a, b;
  cin >> a >> b;
  if(ans[a-1] == ans[b-1]) cout << "Yes" << endl;
  else cout << "No" << endl;
}


Compiler output:
a.cc:9:3: error: expected initializer before 'int'
    9 |   int ans[] = {1,2,1,3,1,3,1,3,1,3,1,3,1};
      |   ^~~
a.cc:11:3: error: 'cin' does not name a type
   11 |   cin >> a >> b;
      |   ^~~
a.cc:12:3: error: expected unqualified-id before 'if'
   12 |   if(ans[a-1] == ans[b-1]) cout << "Yes" << endl;
      |   ^~
a.cc:13:3: error: expected unqualified-id before 'else'
   13 |   else cout << "No" << endl;
      |   ^~~~
a.cc:14:1: error: expected declaration before '}' token
   14 | }
      | ^
Language: C++

#include <iostream>
#include <algorithm>
#include <vector>
#include <string>
#include <map>
#include <set>
using namespace std;
int main() 
  int ans[] = {1,2,1,3,1,3,1,3,1,3,1,3,1};
  int a, b;
  cin >> a >> b;
  if(ans[a] == ans[b]) cout << "Yes" << endl;
  else cout << "No" << endl;
}


Compiler output:
a.cc:9:3: error: expected initializer before 'int'
    9 |   int ans[] = {1,2,1,3,1,3,1,3,1,3,1,3,1};
      |   ^~~
a.cc:11:3: error: 'cin' does not name a type
   11 |   cin >> a >> b;
      |   ^~~
a.cc:12:3: error: expected unqualified-id before 'if'
   12 |   if(ans[a] == ans[b]) cout << "Yes" << endl;
      |   ^~
a.cc:13:3: error: expected unqualified-id before 'else'
   13 |   else cout << "No" << endl;
      |   ^~~~
a.cc:14:1: error: expected declaration before '}' token
   14 | }
      | ^
Language: C++

#include <iostream>
#include <algorithm>
#include <vector>
#include <string>
#include <map>
#include <set>
using namespace std;
int main() 
  int [] ans = {1,2,1,3,1,3,1,3,1,3,1,3,1};
  int a, b;
  cin >> a >> b;
  if(ans[a] == ans[b]) cout << "Yes" << endl;
  else cout << "No" << endl;
}

Compiler output:
a.cc:9:3: error: expected initializer before 'int'
    9 |   int [] ans = {1,2,1,3,1,3,1,3,1,3,1,3,1};
      |   ^~~
a.cc:11:3: error: 'cin' does not name a type
   11 |   cin >> a >> b;
      |   ^~~
a.cc:12:3: error: expected unqualified-id before 'if'
   12 |   if(ans[a] == ans[b]) cout << "Yes" << endl;
      |   ^~
a.cc:13:3: error: expected unqualified-id before 'else'
   13 |   else cout << "No" << endl;
      |   ^~~~
a.cc:14:1: error: expected declaration before '}' token
   14 | }
      | ^
Language: C++

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

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


Compiler output:
a.cc: In function 'int main()':
a.cc:17:5: error: expected '}' before 'else'
   17 |     else {
      |     ^~~~
a.cc:10:51: note: to match this '{'
   10 |   else if (x == 4 || x == 6 || x == 9 || x == 11) {
      |                                                   ^
a.cc:20:9: error: expected '}' before 'else'
   20 |         else {
      |         ^~~~
a.cc:18:50: note: to match this '{'
   18 |       if (y == 4 || y == 6 || y == 9 || y == 11) {
      |                                                  ^
a.cc:23:2: error: expected '}' at end of input
   23 | }
      |  ^
a.cc:4:11: note: to match this '{'
    4 | int main(){
      |           ^
Language: C++

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

int main(){
    int a = {0, 1, 3, 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:5:9: error: scalar object 'a' requires one element in initializer
    5 |     int a = {0, 1, 3, 2, 1, 2, 1, 1, 2, 1, 2, 1};
      |         ^
Language: C++

#include <bits/stdc++.h>
using namespace std;
 
int main () {
  int x,y;
  cin >> x >> y;
  int group1[]={1,3,5,7,8,10,12};
  int group2[]={4,6,9,11};
  int i;
  int judge1 = 0;
  int judge2 = 0;
  
  if((x==2)||(y==2)){
    cout << "No";
  }else{
    for(i=0;i<7;i++){
      if(x==group[i]){
        judge1++;
      }
      if(y==group[i]){
        judge1++;
      }
      if(x==group2[i]){
        judge2++;
      }
      if(y==group2[i]){
        judge2++;
      }
    }
    if((judge1==2)&&(x<y)){
        cout << "Yes";
      }else{
        cout << "No";
      }
      if((judge2==2)&&(x<y)){
        cout << "Yes";
      }else{
        cout << "No";
      }
}

Compiler output:
a.cc: In function 'int main()':
a.cc:17:13: error: 'group' was not declared in this scope; did you mean 'group2'?
   17 |       if(x==group[i]){
      |             ^~~~~
      |             group2
a.cc:20:13: error: 'group' was not declared in this scope; did you mean 'group2'?
   20 |       if(y==group[i]){
      |             ^~~~~
      |             group2
a.cc:40:2: error: expected '}' at end of input
   40 | }
      |  ^
a.cc:4:13: note: to match this '{'
    4 | int main () {
      |             ^
Language: C++

#include <bits/stdc++.h>
using namespace std;
 
int main () {
  int x,y;
  cin >> x >> y;
  int group1[]={1,3,5,7,8,10,12};
  int group2[]={4,6,9,11};
  int i;
  int judge1 = 0;
  int judge2 = 0;
  
  if((x==2)||(y==2)){
    cout << "No";
  }else{
    for(i=0;i<7;i++){
      if(x==group[i]){
        judge1++;
      }
      if(y==group[i]){
        judge1++;
      }
      if(x==group2[i]{
        judge2++;
      }
      if(y==group2[i]{
        judge2++;
      }
    }
    if(judge1==2)&&(x<y)){
        cout << "Yes";
      }else{
        cout << "No";
      }
      if(judge2==2)&&(x<y){
        cout << "Yes";
      }else{
        cout << "No";
      }
}

Compiler output:
a.cc: In function 'int main()':
a.cc:17:13: error: 'group' was not declared in this scope; did you mean 'group2'?
   17 |       if(x==group[i]){
      |             ^~~~~
      |             group2
a.cc:20:13: error: 'group' was not declared in this scope; did you mean 'group2'?
   20 |       if(y==group[i]){
      |             ^~~~~
      |             group2
a.cc:23:22: error: expected ')' before '{' token
   23 |       if(x==group2[i]{
      |         ~            ^
      |                      )
a.cc:29:5: error: expected primary-expression before '}' token
   29 |     }
      |     ^
a.cc:30:20: error: expected identifier before '(' token
   30 |     if(judge1==2)&&(x<y)){
      |                    ^
a.cc:35:22: error: expected identifier before '(' token
   35 |       if(judge2==2)&&(x<y){
      |                      ^
a.cc:40:2: error: expected '}' at end of input
   40 | }
      |  ^
a.cc:4:13: note: to match this '{'
    4 | int main () {
      |             ^
Language: C++

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

int main () {
  int x,y;
  cin >> x >> y;
  int group1[]={1,3,5,7,8,10,12}
  int group2[]={4,6,9,11}
  int i;
  int judge1 = 0;
  int judge2 = 0;
  
  if((x==2)||(y==2)){
    cout << "No";
  }else{
    for(i=0;i<7;i++){
      if(x==group[i]){
        judge1++;
      }
      if(y==group[i]){
        judge1++;
      }
      if(x==group2[i]{
        judge2++;
      }
      if(y==group2[i]{
        judge2++;
      }
    }
    if(judge1==2)&&(x<y)){
        cout << "Yes";
      }else{
        cout << "No";
      }
      if(judge2==2)&&(x<y){
        cout << "Yes";
      }else{
        cout << "No";
      }
}
    

Compiler output:
a.cc: In function 'int main()':
a.cc:8:3: error: expected ',' or ';' before 'int'
    8 |   int group2[]={4,6,9,11}
      |   ^~~
a.cc:17:13: error: 'group' was not declared in this scope; did you mean 'group1'?
   17 |       if(x==group[i]){
      |             ^~~~~
      |             group1
a.cc:20:13: error: 'group' was not declared in this scope; did you mean 'group1'?
   20 |       if(y==group[i]){
      |             ^~~~~
      |             group1
a.cc:23:13: error: 'group2' was not declared in this scope; did you mean 'group1'?
   23 |       if(x==group2[i]{
      |             ^~~~~~
      |             group1
a.cc:23:22: error: expected ')' before '{' token
   23 |       if(x==group2[i]{
      |         ~            ^
      |                      )
a.cc:29:5: error: expected primary-expression before '}' token
   29 |     }
      |     ^
a.cc:30:20: error: expected identifier before '(' token
   30 |     if(judge1==2)&&(x<y)){
      |                    ^
a.cc:35:22: error: expected identifier before '(' token
   35 |       if(judge2==2)&&(x<y){
      |                      ^
a.cc:40:2: error: expected '}' at end of input
   40 | }
      |  ^
a.cc:4:13: note: to match this '{'
    4 | int main () {
      |             ^
Language: C

#include<stdio.h>
int ha(int a){
  switch(a){
      case:1
      case:3
      case:5
      case:7
      case:8
      case:10
      case:12
        return 0;
        break;
      case:4
      case:6
      case:9
        return 1;
        break;
      default:
        return 2;
        break;
  }
}

int main(){
  int x,y;
  scanf("%d %d",&x,&y);
  if(ha(x) == ha(y)){
    printf("Yes");
  }else{
    printf("No");
  }
  return 0;
}

Compiler output:
main.c: In function 'ha':
main.c:4:11: error: expected expression before ':' token
    4 |       case:1
      |           ^
main.c:4:13: error: expected ';' before 'case'
    4 |       case:1
      |             ^
      |             ;
    5 |       case:3
      |       ~~~~   
main.c:13:11: error: expected expression before ':' token
   13 |       case:4
      |           ^
main.c:13:13: error: expected ';' before 'case'
   13 |       case:4
      |             ^
      |             ;
   14 |       case:6
      |       ~~~~
Language: C++

#include <algorithm>
#include <chrono>
#include <cmath>
#include <functional>
#include <iostream>
#include <map>
#include <queue>
#include <tuple>
#include <utility>
#include <vector>

#define llong long long

using namespace std;
const int IINF = 2147483647;
const llong LLINF = 9223372036854775807;

// UnionFind
class UNF {
 private:
  int s;
  vector<int> tree, rank;
  int getP(int i) {
    if (tree[i] == -1)
      return i;
    else
      return tree[i] = getP(tree[i]);
  }

 public:
  UNF(int n) {
    s = n;
    tree.resize(s, -1);
    rank.resize(s, 1);
  }
  int size() { return s; }
  void connect(int a, int b) {
    a = getP(a);
    b = getP(b);
    if (a == b) return;
    if (rank[a] >= rank[b]) {
      tree[b] = a;
      rank[a] += rank[b];
    } else {
      tree[a] = b;
      rank[b] += rank[a];
    }
  }
  bool check(int a, int b) { return getP(a) == getP(b); }
};

int main(){
  UNF uf(13);
  uf.connect(1, 3);
  uf.connect(3, 5);
  uf.connect(5, 7);
  uf.connect(7, 8);
  uf.connect(8, 10);
  uf.connect(10, 12);
  uf.connect(4, 6);
  uf.connect(6, 9);
  uf.connext(9, 11);
  int x, y;
  cin >> x >> y;
  cout << (uf.check(x, y) ? "Yes" : "No");
  return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:62:6: error: 'class UNF' has no member named 'connext'; did you mean 'connect'?
   62 |   uf.connext(9, 11);
      |      ^~~~~~~
      |      connect
Language: C++

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

int main() {
  cin >> x >> y;
  if (x == 2 || y == 2) {
    cout << "No" << endl;
  }
  else {
    boot xg ,yg;
    if (x == 1 || x == 3 || x == 5 || x == 7 || x == 8 ||
        x == 10 || x == 12) {
      xg = true;
    }
    else {
      xg = false;
    }
    if (y == 1 || y == 3 || y == 5 || y == 7 || y == 8 ||
        y == 10 || y == 12) {
      yg = true;
    }
    else {
      yg = false;
    }
    if (xg == yg) {
      cout << "Yes" << endl;
    }
    else {
      cout << "No" << endl;
    }
  }
}


Compiler output:
a.cc: In function 'int main()':
a.cc:5:10: error: 'x' was not declared in this scope
    5 |   cin >> x >> y;
      |          ^
a.cc:5:15: error: 'y' was not declared in this scope; did you mean 'yn'?
    5 |   cin >> x >> y;
      |               ^
      |               yn
a.cc:10:5: error: 'boot' was not declared in this scope; did you mean 'bool'?
   10 |     boot xg ,yg;
      |     ^~~~
      |     bool
a.cc:13:7: error: 'xg' was not declared in this scope
   13 |       xg = true;
      |       ^~
a.cc:16:7: error: 'xg' was not declared in this scope
   16 |       xg = false;
      |       ^~
a.cc:20:7: error: 'yg' was not declared in this scope; did you mean 'yn'?
   20 |       yg = true;
      |       ^~
      |       yn
a.cc:23:7: error: 'yg' was not declared in this scope; did you mean 'yn'?
   23 |       yg = false;
      |       ^~
      |       yn
a.cc:25:9: error: 'xg' was not declared in this scope
   25 |     if (xg == yg) {
      |         ^~
a.cc:25:15: error: 'yg' was not declared in this scope; did you mean 'yn'?
   25 |     if (xg == yg) {
      |               ^~
      |               yn
Language: C++

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

int main() {
  int H, W;
  cin >> H >> W;
  for (int i = 0 ;i < W + 2 ;i++) {
    cout << "#";
  }
  cout << endl;
  string str;
  for (int j = 0 ;j < H ;j++) {
    cout << "#";
    for (int k = 0 ;k < W ;k++) {
      char s
      cin >> s;
      cout << s;
    }
    cout << "#" << endl;
  }
  for (int i = 0 ;i < W + 2 ;i++) {
    cout << "#";
  }
  cout << endl;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:16:7: error: expected initializer before 'cin'
   16 |       cin >> s;
      |       ^~~
a.cc:17:15: error: 's' was not declared in this scope
   17 |       cout << s;
      |               ^