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

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

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


Compiler output:
a.cc: In function 'int main()':
a.cc:8:23: error: expected '}' before numeric constant
    8 |   int b[] = {4, 6, 9. 11};
      |             ~         ^~
a.cc:8:20: error: narrowing conversion of '9.0e+0' from 'double' to 'int' [-Wnarrowing]
    8 |   int b[] = {4, 6, 9. 11};
      |                    ^~
a.cc: At global scope:
a.cc:11:3: error: 'cin' does not name a type
   11 |   cin >> x >> y;
      |   ^~~
a.cc:13:3: error: expected unqualified-id before 'for'
   13 |   for(int i=0; i<a.size(); i++){
      |   ^~~
a.cc:13:16: error: 'i' does not name a type
   13 |   for(int i=0; i<a.size(); i++){
      |                ^
a.cc:13:28: error: 'i' does not name a type
   13 |   for(int i=0; i<a.size(); i++){
      |                            ^
a.cc:17:3: error: expected unqualified-id before 'for'
   17 |   for(int i=0; i<b.size(); i++){
      |   ^~~
a.cc:17:16: error: 'i' does not name a type
   17 |   for(int i=0; i<b.size(); i++){
      |                ^
a.cc:17:28: error: 'i' does not name a type
   17 |   for(int i=0; i<b.size(); i++){
      |                            ^
a.cc:21:3: error: expected unqualified-id before 'for'
   21 |   for(int i=0; i<c.size(); i++){
      |   ^~~
a.cc:21:16: error: 'i' does not name a type
   21 |   for(int i=0; i<c.size(); i++){
      |                ^
a.cc:21:28: error: 'i' does not name a type
   21 |   for(int i=0; i<c.size(); i++){
      |                            ^
a.cc:25:3: error: expected unqualified-id before 'if'
   25 |   if(xg==yg) cout << "Yes" << endl;
      |   ^~
a.cc:26:3: error: expected unqualified-id before 'else'
   26 |   else cout << "No" << endl;
      |   ^~~~
a.cc:27:3: error: expected unqualified-id before 'return'
   27 |   return 0;
      |   ^~~~~~
a.cc:28:1: error: expected declaration before '}' token
   28 | }
      | ^
Language: C++

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

Compiler output:
a.cc: In function 'int main()':
a.cc:7:15: error: invalid types 'int[int]' for array subscript
    7 |   if(a[b-1]==c[c-1]) {
      |               ^
Language: C++

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

Compiler output:
a.cc: In function 'int main()':
a.cc:7:13: error: request for member 'at' in 'table', which is of non-class type 'int [13]'
    7 |   if (table.at(a) == table.at(b)) {
      |             ^~
a.cc:7:28: error: request for member 'at' in 'table', which is of non-class type 'int [13]'
    7 |   if (table.at(a) == table.at(b)) {
      |                            ^~
Language: C++

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

int main() {
  int A, B;
  cin >> A >> B;
  
  int S = {1, 3, 5, 7, 8, 10, 12}
  int T = {4, 6, 9, 11}
  
  if (A == S && B == S) {
    cout << "Yes" << endl;
  } else if (A == T && B == T) {
    cout << "Yes" << endl;
  } else if (A == S && B == T) {
    cout << "No" << endl;
  } else if (A == T && B == S) {
    cout << "No" << endl;
  }
}

Compiler output:
a.cc: In function 'int main()':
a.cc:8:7: error: scalar object 'S' requires one element in initializer
    8 |   int S = {1, 3, 5, 7, 8, 10, 12}
      |       ^
a.cc:9:3: error: expected ',' or ';' before 'int'
    9 |   int T = {4, 6, 9, 11}
      |   ^~~
a.cc:13:19: error: 'T' was not declared in this scope
   13 |   } else if (A == T && B == T) {
      |                   ^
Language: C++

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

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

Compiler output:
a.cc: In function 'int main()':
a.cc:8:32: error: expected ')' before '{' token
    8 |     if(group.at(x)==group.at(y){
      |       ~                        ^
      |                                )
a.cc:13:1: error: expected primary-expression before '}' token
   13 | }
      | ^
Language: C++

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


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

Compiler output:
a.cc: In function 'int main()':
a.cc:9:32: error: expected ';' before 'int'
    9 |   a = {1,3,1,2,1,2,1,1,2,1,2,1}
      |                                ^
      |                                ;
   10 |   int x, y;
      |   ~~~                           
a.cc:11:10: error: 'x' was not declared in this scope
   11 |   cin >> x >> y;
      |          ^
a.cc:11:15: error: 'y' was not declared in this scope
   11 |   cin >> x >> y;
      |               ^
Language: C++

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


int main() {
  int x, y;
  cin >> x >> y;
  if (x == 2 || y == 2) cout << "No" << endl;
  else if (abs(a-b) == 2) cout << "Yes" << endl;
  else cout << "No" << endl;
  return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:11:16: error: 'a' was not declared in this scope
   11 |   else if (abs(a-b) == 2) cout << "Yes" << endl;
      |                ^
a.cc:11:18: error: 'b' was not declared in this scope
   11 |   else if (abs(a-b) == 2) cout << "Yes" << endl;
      |                  ^
Language: C++

#include<stdio.h>
#include<math.h>
#include<string.h>
void main()
{
int i,x,y;
int a[1],b[7],c[4];
a[1]='2';
b[7]={1,3,5,7,8,10,12};
c[4]={4,6,9,11};
scanf("%d %d",&x,&y);
for(i=0;i<4;i++)
{
   if(x==c[i])
    {
     for(i=0;i<4;i++)
     {
      if(y==c[i])
       printf("yes"); exit(0);
      }
    }
}
for(i=0;i<7;i++)
{
   if(x==b[i])
    {
     for(i=0;i<7;i++)
     {
      if(y==b[i])
       printf("yes"); exit(0);
      }
    }
}
printf("no");
}


Compiler output:
a.cc:4:1: error: '::main' must return 'int'
    4 | void main()
      | ^~~~
a.cc: In function 'int main()':
a.cc:9:22: error: cannot convert '<brace-enclosed initializer list>' to 'int' in assignment
    9 | b[7]={1,3,5,7,8,10,12};
      |                      ^
a.cc:10:15: error: cannot convert '<brace-enclosed initializer list>' to 'int' in assignment
   10 | c[4]={4,6,9,11};
      |               ^
Language: C++

#include <bits/stdc++.h>
using namespace std;
#define rep(i, n) for (int i = 0; i < (int)(n); i++)
#define PI 3.14159265358979323846
constexpr int INF = numeric_limits<int>::max() / 2;
constexpr long long INFL = numeric_limits<long long>::max() / 2;
constexpr int MOD = 1000000007;
using Graph = vector<vector<int>>;



int main() {
    cin.tie(nullptr);
    ios::sync_with_stdio(false);
    int x,y;
    cin >>x>>y;
    int a[7]={1,3,5,7,8,10,12};
    int b[4]={4,6,9,11};
    int q=0;
    int w=0;
    rep(i,7){
        if(x==a[i]) q=1;
        if(y==a[i]) q=1
    }
    if(x==2) q=2;
    if(y==2) w=2;
    if(q==w) cout << "Yes" << endl;
    else cout <<"No" <<endl;





}


Compiler output:
a.cc: In function 'int main()':
a.cc:23:24: error: expected ';' before '}' token
   23 |         if(y==a[i]) q=1
      |                        ^
      |                        ;
   24 |     }
      |     ~
Language: C++

#include<bits/stdc++.h>
using namespace std;
int main () {
    array<int, 12> 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";
    cout << "No";

}

Compiler output:
a.cc: In function 'int main()':
a.cc:7:21: error: 'b' was not declared in this scope
    7 |     if (a[x + 1] == b[y + 1]) cout << "Yes";
      |                     ^
Language: C++

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

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



Compiler output:
a.cc: In function 'int main()':
a.cc:26:4: error: 'else' without a previous 'if'
   26 |    else if(ans >= 1){
      |    ^~~~
Language: C++

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


Compiler output:
a.cc: In function 'int main()':
a.cc:7:3: error: expected ',' or ';' before 'if'
    7 |   if(s[a-1]==s[b-1]){
      |   ^~
a.cc:9:4: error: 'else' without a previous 'if'
    9 |   }else{
      |    ^~~~
Language: C++

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

Compiler output:
a.cc: In function 'int main()':
a.cc:6:26: error: expected primary-expression before ',' token
    6 |   int s[12]={1,2,1,3,1,3,,1,1,3,1,3,1}
      |                          ^
a.cc:9:4: error: 'else' without a previous 'if'
    9 |   }else{
      |    ^~~~
Language: C++

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

int main() {	
 int x,y;
  cin>>x>>y;
  if(x==2&&y==2)
    cout<<"Yes"<<ebdl;
  else if(x==4||x==6||x==9||x==11){
    if(y==4||y==6||y==9||y==11)
      cout<<"Yes"<<endl;
  }
  else 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<<"No"<<endl;
  }
  else
    cout<<"No"<<endl;
}
    
 

Compiler output:
a.cc: In function 'int main()':
a.cc:8:18: error: 'ebdl' was not declared in this scope
    8 |     cout<<"Yes"<<ebdl;
      |                  ^~~~
Language: C

#include<stdio.h>
int main(void){
  int a[]={0,1,3,1,2,1,2,1,1,2,1,2,1};
  int x,y;
  scanf("%d %d",&x,&y);
  char ans[5]=(a[x]==a[y] ? "Yes" : "No");
  printf("%s",ans);
  return 0;
}

Compiler output:
main.c: In function 'main':
main.c:6:15: error: invalid initializer
    6 |   char ans[5]=(a[x]==a[y] ? "Yes" : "No");
      |               ^
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 ;
}

#include<stdio.h>
int main(void){
  int a[]={0,1,3,1,2,1,2,1,1,2,1,2,1};
  int x,y;
  scanf("%d %d",&x,&y);
  char ans[5]=(a[x]==a[y] ? "Yes" : "No");
  printf("%s",ans);
  return 0;
}

Compiler output:
main.c: In function 'main':
main.c:4:13: error: 'cin' undeclared (first use in this function)
    4 | int x , y ; cin >> x >> y ;
      |             ^~~
main.c:4:13: note: each undeclared identifier is reported only once for each function it appears in
main.c:5:1: error: 'cout' undeclared (first use in this function)
    5 | cout << ( a [ x ] == a [ y ] ? " Yes " : " No ") << endl ;
      | ^~~~
main.c:5:53: error: 'endl' undeclared (first use in this function)
    5 | cout << ( a [ x ] == a [ y ] ? " Yes " : " No ") << endl ;
      |                                                     ^~~~
main.c: At top level:
main.c:9:5: error: redefinition of 'main'
    9 | int main(void){
      |     ^~~~
main.c:1:5: note: previous definition of 'main' with type 'int()'
    1 | int main () {
      |     ^~~~
main.c: In function 'main':
main.c:13:15: error: invalid initializer
   13 |   char ans[5]=(a[x]==a[y] ? "Yes" : "No");
      |               ^
Language: C++

#include<bits/stdc++.h>
using namespace std;
int main() {
  int x, y; cin >> x >> y;
  vector<int> s = {4, 6, 9, 11}; bool j1 = false;
  for(int i = 0; i < 4; i++) {
    if(s[i] == x) z++;
    if(s[i] == y) z++;
  } if(z % 2 == 0) j1 = true;
  cout << (((x != 2 && y != 2) && j1) ? "Yes" : "No") << endl;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:7:19: error: 'z' was not declared in this scope
    7 |     if(s[i] == x) z++;
      |                   ^
a.cc:8:19: error: 'z' was not declared in this scope
    8 |     if(s[i] == y) z++;
      |                   ^
a.cc:9:8: error: 'z' was not declared in this scope
    9 |   } if(z % 2 == 0) j1 = true;
      |        ^
Language: C++

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

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


Compiler output:
a.cc: In function 'int main()':
a.cc:10:3: error: expected ',' or ';' before 'if'
   10 |   if(vec.at(x-1) == vec.at(y-1)) {
      |   ^~
a.cc:14:3: error: 'else' without a previous 'if'
   14 |   else {
      |   ^~~~
Language: C++

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

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


Compiler output:
a.cc: In function 'int main()':
a.cc:10:3: error: expected ',' or ';' before 'if'
   10 |   if (vec.at(x-1) == vec.at(y-1)) {
      |   ^~
a.cc:14:3: error: 'else' without a previous 'if'
   14 |   else {
      |   ^~~~
Language: C++

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

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


Compiler output:
a.cc: In function 'int main()':
a.cc:10:3: error: expected ',' or ';' before 'if'
   10 |   if(vec.at(x-1) == vec.at(y-1)) {
      |   ^~
a.cc:14:3: error: 'else' without a previous 'if'
   14 |   else {
      |   ^~~~
Language: C++

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

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


Compiler output:
a.cc: In function 'int main()':
a.cc:8:3: error: expected ',' or ';' before 'long'
    8 |   long long x,y;
      |   ^~~~
a.cc:9:10: error: 'x' was not declared in this scope
    9 |   cin >> x >> y;
      |          ^
a.cc:9:15: error: 'y' was not declared in this scope; did you mean 'yn'?
    9 |   cin >> x >> y;
      |               ^
      |               yn
Language: C++

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

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


Compiler output:
a.cc: In function 'int main()':
a.cc:8:3: error: expected ',' or ';' before 'int'
    8 |   int A,B;
      |   ^~~
a.cc:9:10: error: 'A' was not declared in this scope
    9 |   cin >> A >> B;
      |          ^
a.cc:9:15: error: 'B' was not declared in this scope
    9 |   cin >> A >> B;
      |               ^
a.cc:11:13: error: 'x' was not declared in this scope
   11 |   if(vec.at(x-1) == vec.at(y-1)) {
      |             ^
a.cc:11:28: error: 'y' was not declared in this scope; did you mean 'yn'?
   11 |   if(vec.at(x-1) == vec.at(y-1)) {
      |                            ^
      |                            yn
Language: C++

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

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


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

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

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

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

x, y = gets.chomp.split.map(&:to_i)
g1 = [1, 3, 5, 7, 8 ,10, 12]
g2 = [4, 6, 9, 11]

if (g1.include?(x) && g1.include?(y)) || (g2.include?(x) && g2.include?(y))
  puts 'Yes'
else
  puts 'No'
end

Compiler output:
a.cc:6:8: warning: multi-character character constant [-Wmultichar]
    6 |   puts 'Yes'
      |        ^~~~~
a.cc:8:8: warning: multi-character character constant [-Wmultichar]
    8 |   puts 'No'
      |        ^~~~
a.cc:1:1: error: 'x' does not name a type
    1 | x, y = gets.chomp.split.map(&:to_i)
      | ^
Language: C

#include <stdio.h>
int main (void)
{
    int a[12],x=0,y=0;
    a[12]={"0,2,0,1,0,1,0,0,1,0,1,0"};
    scanf("%d%d",&x,&y);
    if(a[x]=a[y])
        printf("Yes\n");
    else
        printf("No\n");
return 0 ;
}


Compiler output:
main.c: In function 'main':
main.c:5:11: error: expected expression before '{' token
    5 |     a[12]={"0,2,0,1,0,1,0,0,1,0,1,0"};
      |           ^
Language: C

#include <stdio.h>
int main (void)
{
    int a[12],x=0,y=0;
    a[12]={0,2,0,1,0,1,0,0,1,0,1,0};
    scanf("%d%d",&x,&y);
    if(a[x]=a[y])
        printf("Yes\n");
    else
        printf("No\n");
return 0 ;
}


Compiler output:
main.c: In function 'main':
main.c:5:11: error: expected expression before '{' token
    5 |     a[12]={0,2,0,1,0,1,0,0,1,0,1,0};
      |           ^
Language: C

#include <stdio.h>
int main (void)
{
    int a[12]={0,2,0,1,0,1,0,0,1,0,1,0},x=0,y=0;
    scanf"%d%d",&x,&y);
    if(a[x]=a[y])
        printf("Yes\n");
    else
        printf("No\n");
return 0 ;
}


Compiler output:
main.c: In function 'main':
main.c:5:10: error: expected ';' before string constant
    5 |     scanf"%d%d",&x,&y);
      |          ^~~~~~
      |          ;
main.c:5:22: error: expected statement before ')' token
    5 |     scanf"%d%d",&x,&y);
      |                      ^
Language: C++

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

Compiler output:
a.cc: In function 'int main()':
a.cc:7:3: error: expected ',' or ';' before 'if'
    7 |   if(a[x-1]==a[y-1]){
      |   ^~
a.cc:10:3: error: 'else' without a previous 'if'
   10 |   else{
      |   ^~~~
a.cc:12:3: error: 'COUT' was not declared in this scope
   12 |   COUT<<"No"<<endl;
      |   ^~~~
Language: C++

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

int x,y;
  cin>>x>>y;
  vector<int> a;
  a={1,3,5,7,8,10,12};
  vector<int> b;
  b={4,6,9,11};
  vector<int> c;
  c={2};
  for(int i=0;i<7;i++){
  if(x==a.at(i)&&y==a.at(i)){
  cout<<"Yes"<<endl;
   break;
  }
    
  }
    for(int j=0;j<4;j++){
    if(x==b.at(j)&&y==b.at(j)){
    cout<<"Yes"<<endl;
      break;
    }
    }
 else{
   cout<<"No"<<endl;
 }
}


Compiler output:
a.cc: In function 'int main()':
a.cc:26:2: error: 'else' without a previous 'if'
   26 |  else{
      |  ^~~~
Language: C++

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

int main() {
  int x,y;
  cin >>x>>y;
  if (x == 2 || y == 2) cout << "No" <<endl;
  else if (y <= 7 || x >= 8) {
    if (x + y % 2 == 0) cout << "Yes" << endl;
    else cout << "No" << endl;
  else {
    if (x + y % 2 == 0) cout << "No" << endl;
    else cout << "Yes" << endl;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:12:3: error: expected '}' before 'else'
   12 |   else {
      |   ^~~~
a.cc:9:30: note: to match this '{'
    9 |   else if (y <= 7 || x >= 8) {
      |                              ^
a.cc:15:2: error: expected '}' at end of input
   15 | }
      |  ^
a.cc:5:12: note: to match this '{'
    5 | int main() {
      |            ^
Language: C++

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

int main() {
  int H,W;
  cin >>H>>W;
  vector<string> vec(i)
  for (int i = 0;i < H;i++) {
    cin >> vec(i)
  }
  for (int i = 0;i < W+1;i++) cout <<"#";
  cout<<endl;
  for (int i = 0;i < H;i++) cout <<"#"<<vec(i)<<"#"<<endl;
  for(int i = 0;i < H;i++) {
    cin >> vec(i)
  }
}  


Compiler output:
a.cc: In function 'int main()':
a.cc:7:22: error: 'i' was not declared in this scope
    7 |   vector<string> vec(i)
      |                      ^
a.cc:8:3: error: expected ',' or ';' before 'for'
    8 |   for (int i = 0;i < H;i++) {
      |   ^~~
a.cc:13:44: error: no match for call to '(std::vector<std::__cxx11::basic_string<char> >) (int&)'
   13 |   for (int i = 0;i < H;i++) cout <<"#"<<vec(i)<<"#"<<endl;
      |                                         ~~~^~~
a.cc:15:15: error: no match for call to '(std::vector<std::__cxx11::basic_string<char> >) (int&)'
   15 |     cin >> vec(i)
      |            ~~~^~~
Language: C++

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


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

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

Compiler output:
a.cc: In function 'int main()':
a.cc:5:3: error: expected ',' or ';' before 'cin'
    5 |   cin >> x >> y;
      |   ^~~
a.cc:6:14: error: 'y' was not declared in this scope
    6 |   if(a[x]==a[y])cout<<"Yes";
      |              ^
Language: C++

#include <bits/stdc++.h>

using namespace std;

#define rep(i, n) for (ll i = 0; i < (n); ++i)
#define fin(ans) cout << (ans) << endl;
#define blank(ans) cout << (ans) << " ";
#define mp(p, q) make_pair(p, q)
#define pb(n) push_back(n)
#define all(a) a.begin(), a.end()

typedef long long ll;
typedef long long lli;
typedef unsigned long long ull;
typedef long double ld;
typedef string str;

typedef vector<char> vc;
typedef vector<bool> vb;
typedef vector<ld> vd;
typedef vector<str> vs;
typedef vector<ll> vll;
typedef vector<pair<ll, ll>> vpll;
typedef vector<pair<ll, str>> vpls;
typedef vector<tuple<str, ll, ll>> vtsl;
typedef vector<vector<ll>> vvll;
typedef vector<vector<char>> vvc;
typedef vector<vector<str>> vvs;

const ld PI = acos(-1.0);
const ll MAX = 9000000000000000000;
const ll MIN = -9000000000000000000;
const ld DMAX = 4500;
const ld DMIN = -4500;
const ll MOD = 1000000007;

//実行部
void Main()
{
  ll a, b; cin >> a >> b;
  ll ans[13] = {0, 1, 3, 1, 2, 1, 2, 1, 1, 2, 1, 2, 1}
  if(ans[a] == ans[b]) fin("Yes")
  else fin("No")
}

//前処理
int main()
{
  //ios::sync_with_stdio(false);
  //cin.tie(0);
  cout << fixed << setprecision(20); //高精度少数表示
  Main();
  return 0;
}


Compiler output:
a.cc: In function 'void Main()':
a.cc:42:3: error: expected ',' or ';' before 'if'
   42 |   if(ans[a] == ans[b]) fin("Yes")
      |   ^~
a.cc:43:3: error: 'else' without a previous 'if'
   43 |   else fin("No")
      |   ^~~~
Language: Java

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

Compiler output:
Main.java:2: error: class practice is public, should be declared in a file named practice.java
public class practice{
       ^
1 error
Language: C

#include <stdio.h>
 
int main()
{
  int b[13] = {0,1,3,1,2,1,2,1,1,2,1,2,1};
  int a[4];
  scanf("%d%d",&a[0],&a[1]);
  else if (b[a[0]] == b[a[1]])
    printf("Yes");
  else
    printf("No");
}

Compiler output:
main.c: In function 'main':
main.c:8:3: error: 'else' without a previous 'if'
    8 |   else if (b[a[0]] == b[a[1]])
      |   ^~~~
Language: C++

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

typedef long long int ll;
#define INF 1999999999
#define MODA 1000000007

int main()
{
    // freopen("input.txt", "r", stdin);
    // freopen("output.txt", "w", stdout);
    ios::sync_with_stdio(false);
    cin.tie(0);
    int x, y;
    cin >> x >> y;
    vector<int> group1 = {1, 3, 5, 7, 8, 10, 12};
    vector<int> group1 = {4, 6, 9, 11};
   
    int count1 = 0;
    for(int i = 0; i < group1.size(); i++)
    {
        if(group1[i] == x || group1[i] == y)
        {
            count1++;
        }
    }

    int count2 = 0;
    for(int i = 0; i < group2.size(); i++)
    {
        if(group2[i] == x || group2[i] == y)
        {
            count2++;
        }
    }

    if(count1 == 2 || count2 == 2)
        cout << "Yes" << endl;
    else
        cout << "No" << endl;

    return 0;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:17:17: error: redeclaration of 'std::vector<int> group1'
   17 |     vector<int> group1 = {4, 6, 9, 11};
      |                 ^~~~~~
a.cc:16:17: note: 'std::vector<int> group1' previously declared here
   16 |     vector<int> group1 = {1, 3, 5, 7, 8, 10, 12};
      |                 ^~~~~~
a.cc:29:24: error: 'group2' was not declared in this scope; did you mean 'group1'?
   29 |     for(int i = 0; i < group2.size(); i++)
      |                        ^~~~~~
      |                        group1
Language: C++

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

typedef long long int ll;
#define INF 1999999999
#define MODA 1000000007

int main()
{
    // freopen("input.txt", "r", stdin);
    // freopen("output.txt", "w", stdout);
    ios::sync_with_stdio(false);
    cin.tie(0);
    int x, y;
    cin >> x >> y;
    vector<int> group1 = {1, 3, 5, 7, 8, 10, 12};
    vector<int> group2 = {4, 6, 9, 11};
   
    int count1 = 0;
    for(int i = 0; i < group1.size(); i++)
    {
        if(group1[i] == x || group1[i] == y)
        {
            count1++;
        }
    }

    int count2 = 0;
    for(int i = 0; i < group2.size(); i++)
    {
        if(group2[i] == x || group2[i] == y)
        {
            count2++;
        }
    }

    if(count1 == 2 || count == 2)
        cout << "Yes" << endl;
    else
        cout << "No" << endl;

    return 0;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:37:29: error: invalid operands of types '<unresolved overloaded function type>' and 'int' to binary 'operator=='
   37 |     if(count1 == 2 || count == 2)
      |                       ~~~~~~^~~~
Language: C++

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

typedef long long int ll;
#define INF 1999999999
#define MODA 1000000007

int main()
{
    // freopen("input.txt", "r", stdin);
    // freopen("output.txt", "w", stdout);
    ios::sync_with_stdio(false);
    cin.tie(0);
    int x, y;
    cin >> x >> y;
    vector<int> group1 = {1, 3, 5, 7, 8, 10, 12};
    vector<int> group1 = {4, 6, 9, 11};
   
    int count1 = 0;
    for(int i = 0; i < group1.size(); i++)
    {
        if(group1[i] == x || group1[i] == y)
        {
            count1++;
        }
    }

    int count2 = 0;
    for(int i = 0; i < group2.size(); i++)
    {
        if(group2[i] == x || group2[i] == y)
        {
            count2++;
        }
    }

    if(count1 == 2 || count == 2)
        cout << "Yes" << endl;
    else
        cout << "No" << endl;

    return 0;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:17:17: error: redeclaration of 'std::vector<int> group1'
   17 |     vector<int> group1 = {4, 6, 9, 11};
      |                 ^~~~~~
a.cc:16:17: note: 'std::vector<int> group1' previously declared here
   16 |     vector<int> group1 = {1, 3, 5, 7, 8, 10, 12};
      |                 ^~~~~~
a.cc:29:24: error: 'group2' was not declared in this scope; did you mean 'group1'?
   29 |     for(int i = 0; i < group2.size(); i++)
      |                        ^~~~~~
      |                        group1
a.cc:37:29: error: invalid operands of types '<unresolved overloaded function type>' and 'int' to binary 'operator=='
   37 |     if(count1 == 2 || count == 2)
      |                       ~~~~~~^~~~
Language: C++

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

Compiler output:
a.cc:5:7: warning: multi-character character constant [-Wmultichar]
    5 | ans = 'No'
      |       ^~~~
a.cc:7:11: warning: multi-character character constant [-Wmultichar]
    7 |     ans = 'Yes'
      |           ^~~~~
a.cc:1:1: error: 'a' does not name a type
    1 | a = [1,3,5,7,8,10,12]
      | ^
Language: C

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

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

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

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

int main() {
  int x, y;
  cin >> x >> y;
  if ((x||y)==2) cout "No";
    
  else if ((x-1)%7%2==(y-1)%7%2) cout "Yes";
  
  else cout "No";
}


Compiler output:
a.cc: In function 'int main()':
a.cc:7:22: error: expected ';' before string constant
    7 |   if ((x||y)==2) cout "No";
      |                      ^~~~~
      |                      ;
a.cc:9:38: error: expected ';' before string constant
    9 |   else if ((x-1)%7%2==(y-1)%7%2) cout "Yes";
      |                                      ^~~~~~
      |                                      ;
a.cc:11:12: error: expected ';' before string constant
   11 |   else cout "No";
      |            ^~~~~
      |            ;
Language: C++

#include <iostream>
#include <vector>
#include <string>
#include <math.h>
#include <algorithm>
#include <set>
#include <iomanip>
#include <stdio.h>
#include <sstream>
#include <string>
using namespace std;
int main(void){
  int x,y;
  cin>>x>>y;
  if(x==2||y==2){
    cout<<"No"<<endl;
  }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)){
      cout<<"Yes"<<endl;
    }else if((x==4||x==6||x==9||x==11)&&(y==4||y==6~~y==9||y==11)){
      cout<<"Yes"<<endl;
    }else{
      cout<<"No"<<endl;
    }
  }
}

Compiler output:
a.cc: In function 'int main()':
a.cc:20:52: error: expected ')' before '~' token
   20 |     }else if((x==4||x==6||x==9||x==11)&&(y==4||y==6~~y==9||y==11)){
      |                                         ~          ^
      |                                                    )
a.cc:22:6: error: expected ')' before 'else'
   22 |     }else{
      |      ^~~~
      |      )
a.cc:20:13: note: to match this '('
   20 |     }else if((x==4||x==6||x==9||x==11)&&(y==4||y==6~~y==9||y==11)){
      |             ^
a.cc:25:3: error: expected primary-expression before '}' token
   25 |   }
      |   ^
Language: C++

#include<iostream>

using namespace std;

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

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

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

#define COUT(x) cout << #x << " = " << (x) << ", "
template<class T> ostream& operator << (ostream &s, vector<T> P)
{ for (int i = 0; i < P.size(); ++i) { if (i > 0) { s << " "; } s << P[i]; } return s; }
typedef long long ll;
const int MOD = 1000000007;

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


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

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

int main() {
    int x, y;
    cin >> x >> y;
    if(x==2 || y==2){
        if(x==y) cout << "Yes" << endl;
        else cout << "No" << endl;
    }
    else if(x==4 || x==6 || x==9 || x==11){
        if(y==4 || y==6 || y==9 || y==11) cout << "Yes" << endl;
        else cout << "No" << endl;
    }
    else{
        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:42: error: expected primary-expression before ')' token
   17 |         if(y==4 || y==6 || y==9 || y==11)) cout << "No" << endl;
      |                                          ^
Language: C++

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

else 
cout <<"No" ;


return 0; 

}

Compiler output:
a.cc:1:19: error: missing terminating > character
    1 | #include <iostream
      |                   ^
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:4:13: error: 'cin' was not declared in this scope
    4 | int x , y ; cin >> x >> y ;
      |             ^~~
a.cc:5:1: error: 'cout' was not declared in this scope
    5 | cout << ( a [ x ] == a [ y ] ? " Yes " : " No ") << endl ;
      | ^~~~
a.cc:5:53: error: 'endl' was not declared in this scope
    5 | cout << ( a [ x ] == a [ y ] ? " Yes " : " No ") << endl ;
      |                                                     ^~~~
Language: C++

#include <iostream>

using namespace std;

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



    return 0;
}
#include <iostream>

using namespace std;

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



    return 0;
}


Compiler output:
a.cc:26:5: error: redefinition of 'int main()'
   26 | int main()
      |     ^~~~
a.cc:5:5: note: 'int main()' previously defined here
    5 | int main()
      |     ^~~~
Language: C++

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


Compiler output:
a.cc: In function 'int main()':
a.cc:8:3: error: 'vectoe' was not declared in this scope
    8 |   vectoe<int> C = {2};
      |   ^~~~~~
a.cc:8:10: error: expected primary-expression before 'int'
    8 |   vectoe<int> C = {2};
      |          ^~~
Language: C++

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

Compiler output:
a.cc: In function 'int main()':
a.cc:5:3: error: expected ',' or ';' before 'cin'
    5 |   cin>>a>>b;
      |   ^~~
a.cc:6:39: error: expected primary-expression before ']' token
    6 |   cout<<(c[a]==c[b]?"Yes":"No")<<endl;]
      |                                       ^
a.cc:6:40: error: expected '}' at end of input
    6 |   cout<<(c[a]==c[b]?"Yes":"No")<<endl;]
      |                                        ^
a.cc:3:11: note: to match this '{'
    3 | int main(){
      |           ^
Language: C++

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

int main() {
  int H,W;
  cin >> H >> W;
  
  vector<string> vec(H);
  
  for(int i=0;i<H;i++){
    cin >> vec.at(i);
  }
  
  cout << string(W+2,#) << endl;
  
  for(int i=0;i<H;i++){
    cout << '#' << vec.at(i) << '#' << endl;
  }
cout << string(W+2,'#') << endl;
}


Compiler output:
a.cc:14:22: error: stray '#' in program
   14 |   cout << string(W+2,#) << endl;
      |                      ^
a.cc: In function 'int main()':
a.cc:14:17: error: expected primary-expression before '(' token
   14 |   cout << string(W+2,#) << endl;
      |                 ^
a.cc:14:23: error: expected primary-expression before ')' token
   14 |   cout << string(W+2,#) << endl;
      |                       ^
Language: C++

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

int main() {
    int i[12] = {a,b,a,c,a,c,a,a,c,a,c,a};
    int x,y;
    cin >> x >> y;
    x--; y--;
    if(i[x] == i[y]) cout << "Yes" << endl;
    else cout << "No" << endl;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:7:18: error: 'a' was not declared in this scope
    7 |     int i[12] = {a,b,a,c,a,c,a,a,c,a,c,a};
      |                  ^
a.cc:7:20: error: 'b' was not declared in this scope
    7 |     int i[12] = {a,b,a,c,a,c,a,a,c,a,c,a};
      |                    ^
a.cc:7:24: error: 'c' was not declared in this scope
    7 |     int i[12] = {a,b,a,c,a,c,a,a,c,a,c,a};
      |                        ^
Language: C++

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

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

Compiler output:
a.cc: In function 'int main()':
a.cc:7:18: error: 'a' was not declared in this scope
    7 |     int i[12] = {a,b,a,c,a,c,a,a,c,a,c,a};
      |                  ^
a.cc:7:20: error: 'b' was not declared in this scope
    7 |     int i[12] = {a,b,a,c,a,c,a,a,c,a,c,a};
      |                    ^
a.cc:7:24: error: 'c' was not declared in this scope
    7 |     int i[12] = {a,b,a,c,a,c,a,a,c,a,c,a};
      |                        ^
Language: C++

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

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

Compiler output:
a.cc: In function 'int main()':
a.cc:10:9: error: expected ',' or ';' before 'if'
   10 |         if(v[x]==v[y]){
      |         ^~
a.cc:13:9: error: 'else' without a previous 'if'
   13 |         else{
      |         ^~~~
Language: C++

#include <bits/stdc++.h>
using namespace std;
 
int main() {
 
  int i,j,,k,H, W;

  cin>>H>>W;
  
  vector<vector<int>> data(H, vector<int>(W));
  

  
  for(i=0;i<H;i++){
  	for(j=0;j<W;j++){
    	cin>>data.at(i).at(j); 
      
    }
  }
  
  for(k=0;k<W+2;k++){
    cout<<"#";
  }
  cout<<endl;
  
  for(i=0;i<H+2;i++){
    
    cout<<"#";    
 
  	for(j=0;j<W+2;j++){
    	
      	cout<<data.at(i).at(j); 
    }
    
    cout<<"#"<<endl;
  }
  
    for(k=0;k<W+2;k++){
    cout<<"#";
  }
  cout<<endl;
  
  
}

Compiler output:
a.cc: In function 'int main()':
a.cc:6:11: error: expected unqualified-id before ',' token
    6 |   int i,j,,k,H, W;
      |           ^
Language: C++

#include <bits/stdc++.h>
using namespace std;
 
int main() {
 
  int i,j,,k,H, W;
  
  vector<vector<int>> data(H, vector<int>(W));
  
  cin>>H>>W;
  
  for(i=0;i<H;i++){
  	for(j=0;j<W;j++){
    	cin>>data.at(i).at(j); 
      
    }
  }
  
  for(k=0;k<W+2;k++){
    cout<<"#";
  }
  cout<<endl;
  
  for(i=0;i<H+2;i++){
    
    cout<<"#";    
 
  	for(j=0;j<W+2;j++){
    	
      	cout<<data.at(i).at(j); 
    }
    
    cout<<"#";
    cout<<endl;
  }
  
    for(k=0;k<W+2;k++){
    cout<<"#";
  }
  cout<<endl;
  
  
}

Compiler output:
a.cc: In function 'int main()':
a.cc:6:11: error: expected unqualified-id before ',' token
    6 |   int i,j,,k,H, W;
      |           ^
Language: C++

#include <bits/stdc++.h>
using namespace std;
 
int main() {
 
  int i,j,H, W;
  
  vector<vector<int>> data(H+2, vector<int>(W+2));
  
  cin>>H>>W;
  
  for(i=0;i<H+2;i++){
  	for(j=0;j<W+2;j++){
    	
      if(i=0||i=H+2||j=0||j=W+2){
        data.at(i).at(j)="#";
      }
      else{
    	cin>>data.at(i).at(j); 
      }
    }
  }
  
  for(i=0;i<H+2;i++){
  	for(j=0;j<W+2;j++){
    	
      	cout<<data.at(i).at(j);
      
    }
    cout<<endl;
  }
  
}

Compiler output:
a.cc: In function 'int main()':
a.cc:15:25: error: lvalue required as left operand of assignment
   15 |       if(i=0||i=H+2||j=0||j=W+2){
      |                        ~^~~
a.cc:16:26: error: invalid conversion from 'const char*' to '__gnu_cxx::__alloc_traits<std::allocator<int>, int>::value_type' {aka 'int'} [-fpermissive]
   16 |         data.at(i).at(j)="#";
      |                          ^~~
      |                          |
      |                          const char*
Language: C++

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

 
int main() {
	ll A,B;
  	cin >> A >> B;
    vector<ll> v={0,1,3,1,2,1,2,1,1,2,1,2,1}
  	if(v[A]==v[B]){
      cout << "Yes" << endl;
    }
  	else{
      cout << "No" <<  endl;
    }
}


Compiler output:
a.cc: In function 'int main()':
a.cc:10:9: error: expected ',' or ';' before 'if'
   10 |         if(v[A]==v[B]){
      |         ^~
a.cc:13:9: 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> vec = {0, 2, 0, 1, 0, 1, 0, 0, 1, 0, 1, 0};
    if(vec[x] == vec[y]) cout << "Yes";
    else cout << "No"

}

Compiler output:
a.cc: In function 'int main()':
a.cc:8:22: error: expected ';' before '}' token
    8 |     else cout << "No"
      |                      ^
      |                      ;
    9 | 
   10 | }
      | ~
Language: C++

#include <iostream>
#include <cstdio>
#include <cstring>
#include <vector>
#include <algorithm>
using namespace std;
int x,y;
int main() {
  	cin>>x>>y;
  	set<int> s1 {1, 3, 5, 7, 8, 10, 12};
  	set<int> s2 {4, 6, 9, 11};
  	if ((s1.find(x) != s1.end() && s1.find(y) != s1.end()) || (s2.find(x) != s2.end() && s2.find(y) != s2.end())) {
    	cout<<"Yes"<<endl;
    } else {
    	cout<<"No"<<endl;
    }
	return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:10:9: error: 'set' was not declared in this scope
   10 |         set<int> s1 {1, 3, 5, 7, 8, 10, 12};
      |         ^~~
a.cc:6:1: note: 'std::set' is defined in header '<set>'; this is probably fixable by adding '#include <set>'
    5 | #include <algorithm>
  +++ |+#include <set>
    6 | using namespace std;
a.cc:10:13: error: expected primary-expression before 'int'
   10 |         set<int> s1 {1, 3, 5, 7, 8, 10, 12};
      |             ^~~
a.cc:11:13: error: expected primary-expression before 'int'
   11 |         set<int> s2 {4, 6, 9, 11};
      |             ^~~
a.cc:12:14: error: 's1' was not declared in this scope
   12 |         if ((s1.find(x) != s1.end() && s1.find(y) != s1.end()) || (s2.find(x) != s2.end() && s2.find(y) != s2.end())) {
      |              ^~
a.cc:12:68: error: 's2' was not declared in this scope
   12 |         if ((s1.find(x) != s1.end() && s1.find(y) != s1.end()) || (s2.find(x) != s2.end() && s2.find(y) != s2.end())) {
      |                                                                    ^~
Language: Java

import java.util.*;

class Main{
  public static void main(String[] args){
    Scanner scan = new Scanner(System.in);
    Integer h = scan.nextInt();
    Integer w = scan.nextInt();
    StringBuilder sb = new StringBuilder();
    for(int i = 0; i < w + 2; i++) {
      sb.append("#");
    }
    System.out.println(sb);
    for(int i = 0; i < h; i++) {
      sb.Clear();
      sb.append("#");
      sb.append(sc.next());
      sb.append("#");
      System.out.println(sb);
    }
    sb.Clear();
    for(int i = 0; i < w + 2; i++) {
      sb.append("#");
    }
    System.out.println(sb);
  }
}

Compiler output:
Main.java:14: error: cannot find symbol
      sb.Clear();
        ^
  symbol:   method Clear()
  location: variable sb of type StringBuilder
Main.java:16: error: cannot find symbol
      sb.append(sc.next());
                ^
  symbol:   variable sc
  location: class Main
Main.java:20: error: cannot find symbol
    sb.Clear();
      ^
  symbol:   method Clear()
  location: variable sb of type StringBuilder
3 errors
Language: Java

import java.util.*;

class Main{
  public static void main(String[] args){
    Scanner scan = new Scanner(System.in);
    Integer h = scan.nextInt();
    Integer w = scan.nextInt();
    StringBuilder sb = new StringBuilder();
    for(int i = 0; i < w + 2; i++) {
      sb.append("#")
    }
    System.out.println(sb);
    for(int i = 0; i < h; i++) {
      sb.Clear();
      sb.append("#");
      sb.append(sc.next());
      sb.append("#");
      System.out.println(sb);
    }
    sb.Clear();
    for(int i = 0; i < w + 2; i++) {
      sb.append("#");
    }
    System.out.println(sb);
  }
}

Compiler output:
Main.java:10: error: ';' expected
      sb.append("#")
                    ^
1 error