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

#include <iostream>
#include<string>
#include<algorithm>
#include<vector>
using namespace std;
 
int main(){
  
  int x,y;
  cin>>x>>y;
 else if(x==4||x==6||x==9||x==11){
     if(y==4||y==6||x==9||y==11){
         cout<<"Yes"<<endl;
     }
     else{
         cout<<"No"<<endl;
     }
 }
 else{
     if(y==1||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:11:2: error: 'else' without a previous 'if'
   11 |  else if(x==4||x==6||x==9||x==11){
      |  ^~~~
Language: C++

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

int main(){
  std::vector<int> a={1,3,5,7,8,10,12};
  std::vector<int> b={4,6,9,11};
  std::vector<int> c={2};

  int x, y;
  cin >> x >> y;

  bool xx=false;
  bool yy=false;
  for (int i = 0; i < a.size(); i++) {
    if(a.at(i)==x) xx=true;
    if(a.at(i)==y) yy=true;
  }
  if(xx && yy){
    cout << "Yes" << endl;
    return 0;
  }
  bool xx=false;
  bool yy=false;
  for (int i = 0; i < b.size(); i++) {
    if(a.at(i)==x) xx=true;
    if(a.at(i)==y) yy=true;
  }
  if(xx && yy){
    cout << "Yes" << endl;
    return 0;
  }

  bool xx=false;
  bool yy=false;
  for (int i = 0; i < c.size(); i++) {
    if(a.at(i)==x) xx=true;
    if(a.at(i)==y) yy=true;
  }
  if(xx && yy){
    cout << "Yes" << endl;
    return 0;
  }
  cout << "No" << endl;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:22:8: error: redeclaration of 'bool xx'
   22 |   bool xx=false;
      |        ^~
a.cc:12:8: note: 'bool xx' previously declared here
   12 |   bool xx=false;
      |        ^~
a.cc:23:8: error: redeclaration of 'bool yy'
   23 |   bool yy=false;
      |        ^~
a.cc:13:8: note: 'bool yy' previously declared here
   13 |   bool yy=false;
      |        ^~
a.cc:33:8: error: redeclaration of 'bool xx'
   33 |   bool xx=false;
      |        ^~
a.cc:12:8: note: 'bool xx' previously declared here
   12 |   bool xx=false;
      |        ^~
a.cc:34:8: error: redeclaration of 'bool yy'
   34 |   bool yy=false;
      |        ^~
a.cc:13:8: note: 'bool yy' previously declared here
   13 |   bool yy=false;
      |        ^~
Language: C++

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

Compiler output:
a.cc: In function 'int main()':
a.cc:8:8: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
    8 |   if((a==c&b==c)|(a==d&b==d)|(a==e&b==e))cout<<"Yes";else cout<<"No";}
      |       ~^~~
a.cc:8:13: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
    8 |   if((a==c&b==c)|(a==d&b==d)|(a==e&b==e))cout<<"Yes";else cout<<"No";}
      |            ~^~~
a.cc:8:20: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
    8 |   if((a==c&b==c)|(a==d&b==d)|(a==e&b==e))cout<<"Yes";else cout<<"No";}
      |                   ~^~~
a.cc:8:25: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
    8 |   if((a==c&b==c)|(a==d&b==d)|(a==e&b==e))cout<<"Yes";else cout<<"No";}
      |                        ~^~~
a.cc:8:32: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
    8 |   if((a==c&b==c)|(a==d&b==d)|(a==e&b==e))cout<<"Yes";else cout<<"No";}
      |                               ~^~~
a.cc:8:37: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
    8 |   if((a==c&b==c)|(a==d&b==d)|(a==e&b==e))cout<<"Yes";else cout<<"No";}
      |                                    ~^~~
Language: C++

#include<iostream>
using namespace std;

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

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

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

char checkGroup(int a){
    switch(a){
        case 1:
        case 3:
        case 5:
        case 7:
        case 8:
        case 10:
        case 12:
            return 'a';
            break;
        case 4:
        case 6:
        case 9:
        case 11:
            return 'b';
            break;
        default:
            return 'c';
            break;
    }
}

int main(void){
    int x,y; cin >> x >> y;
    if(checkGroup(x)==checkGroup(b)) cout << "Yes" << endl;
    else cout << "No" << endl;

    return 0;

}

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

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

 
int main(){
  int x,y;
  cin >>x>>y;
  
  if(x==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==1||y==3||y==5||y==7||y==8||y==10||y==12){
      cout<<"YES"<<endl;
    }
    else cout<<"NO"<<endl;
  }
}
  
}

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

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

int main() {
	int x,y;
	cin>>x>>y;
	string ans ="No";
	seti g1={1,3,5,7,8,10,12},g2={4,6,9,11},g3 ={2};
	if(g1.count(x)&&g1.count(y))ans="Yes";
	else if(g2.count(x)&&g2.count(y))ans="Yes";
	else if(g3.count(x)&&g3.count(y))ans="Yes";
	cout<<ans<<endl;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:8:9: error: 'seti' was not declared in this scope
    8 |         seti g1={1,3,5,7,8,10,12},g2={4,6,9,11},g3 ={2};
      |         ^~~~
a.cc:8:34: error: expected primary-expression before ',' token
    8 |         seti g1={1,3,5,7,8,10,12},g2={4,6,9,11},g3 ={2};
      |                                  ^
a.cc:8:35: error: 'g2' was not declared in this scope
    8 |         seti g1={1,3,5,7,8,10,12},g2={4,6,9,11},g3 ={2};
      |                                   ^~
a.cc:8:49: error: 'g3' was not declared in this scope
    8 |         seti g1={1,3,5,7,8,10,12},g2={4,6,9,11},g3 ={2};
      |                                                 ^~
a.cc:9:12: error: 'g1' was not declared in this scope; did you mean 'y1'?
    9 |         if(g1.count(x)&&g1.count(y))ans="Yes";
      |            ^~
      |            y1
Language: Java

#include<iostream>
#include <cstdio>
#include <cstdlib>
#include <cmath>
#include <string>
#include <algorithm>
#include <vector>
#include <set>
#include <map>
#include <list>
    using namespace std;

typedef long long ll;

#define MOD 1000000007
#define p(x) cout << x << endl;
#define el cout << endl;
#define rep(i, n) for (int i = 0; i < (int)(n); i++)

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

    int x, y;
    cin >> x >> y;

    int num[] = {0, 1, 3, 1, 2, 1, 2, 1, 1, 2, 1, 2, 1};
    if(num[x] == num[y]) p("Yes")
    else p("No");
}

Compiler output:
Main.java:1: error: illegal character: '#'
#include<iostream>
^
Main.java:2: error: illegal character: '#'
#include <cstdio>
^
Main.java:3: error: illegal character: '#'
#include <cstdlib>
^
Main.java:4: error: illegal character: '#'
#include <cmath>
^
Main.java:5: error: illegal character: '#'
#include <string>
^
Main.java:6: error: illegal character: '#'
#include <algorithm>
^
Main.java:7: error: illegal character: '#'
#include <vector>
^
Main.java:8: error: illegal character: '#'
#include <set>
^
Main.java:9: error: illegal character: '#'
#include <map>
^
Main.java:10: error: illegal character: '#'
#include <list>
^
Main.java:13: error: class, interface, enum, or record expected
typedef long long ll;
^
Main.java:15: error: illegal character: '#'
#define MOD 1000000007
^
Main.java:15: error: class, interface, enum, or record expected
#define MOD 1000000007
        ^
Main.java:16: error: illegal character: '#'
#define p(x) cout << x << endl;
^
Main.java:17: error: illegal character: '#'
#define el cout << endl;
^
Main.java:17: error: class, interface, enum, or record expected
#define el cout << endl;
        ^
Main.java:18: error: illegal character: '#'
#define rep(i, n) for (int i = 0; i < (int)(n); i++)
^
Main.java:18: error: class, interface, enum, or record expected
#define rep(i, n) for (int i = 0; i < (int)(n); i++)
        ^
Main.java:18: error: class, interface, enum, or record expected
#define rep(i, n) for (int i = 0; i < (int)(n); i++)
                                  ^
Main.java:18: error: class, interface, enum, or record expected
#define rep(i, n) for (int i = 0; i < (int)(n); i++)
                                                ^
Main.java:23: error: class, interface, enum, or record expected
    ios::sync_with_stdio(false);
    ^
Main.java:25: error: class, interface, enum, or record expected
    int x, y;
    ^
Main.java:26: error: class, interface, enum, or record expected
    cin >> x >> y;
    ^
Main.java:28: error: class, interface, enum, or record expected
    int num[] = {0, 1, 3, 1, 2, 1, 2, 1, 1, 2, 1, 2, 1};
    ^
Main.java:29: error: class, interface, enum, or record expected
    if(num[x] == num[y]) p("Yes")
    ^
Main.java:31: error: class, interface, enum, or record expected
}
^
26 errors
Language: C++

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

struct uf{
    vector<int> t;
    uf(int n):t(n,-1){}
    int r(int x){
        while(t[x] >= 0 && t[t[x]] >= 0){
            t[x] = t[t[x]]
            x = t[x];
        }
        return x;
    }
    int f(int x,int y){return r(x)==r(y);}
    int u(int x,int y){x=r(x);y=r(y);if(t[x]>t[y])swap(x,y);t[x]+=t[y];t[y]=x;}
    template<class F,class... R>
    int u(F f,R... r){for(auto i:initializer_list<int>{r...})u(f,i);}
};

int main(){
    uf uf1(13);
    uf1.u(1,3,5,7,8,10,12);
    uf1.u(4,6,9,11);
    int a, b;
    cin >> a >> b;
    puts(uf1.f(a, b) ? "Yes" : "No");
}


Compiler output:
a.cc: In member function 'int uf::r(int)':
a.cc:10:13: error: expected ';' before 'x'
   10 |             x = t[x];
      |             ^
a.cc: In member function 'int uf::u(int, int)':
a.cc:15:79: warning: no return statement in function returning non-void [-Wreturn-type]
   15 |     int u(int x,int y){x=r(x);y=r(y);if(t[x]>t[y])swap(x,y);t[x]+=t[y];t[y]=x;}
      |                                                                               ^
a.cc: In member function 'int uf::u(F, R ...)':
a.cc:17:69: warning: no return statement in function returning non-void [-Wreturn-type]
   17 |     int u(F f,R... r){for(auto i:initializer_list<int>{r...})u(f,i);}
      |                                                                     ^
Language: Java

import java.io.*;
import java.util.function.*;
import java.util.stream.*;

class Wandbox
{
    /**
     * ABC 062 B: Picture Frame
     *     (周囲1ピクセルを'#'で囲む)
     */ 
    public static void main(String[] args) throws IOException
    {
        // 入力
        BufferedReader br = new BufferedReader(
                new InputStreamReader(System.in));
        int[] HW = Stream.of(br.readLine().split(" ")).mapToInt(
                item -> new Integer(item)).toArray();
        Stream<String> lines = br.lines();
        
        // データ部分を抽出
        Stream<String> a = lines.filter(item -> item.indexOf(" ") < 0);

        // 枠線を決める
        // Streamは同じインスタンスで2度処理を実行できないため、Supplierを通す
        Supplier<Stream<String>> frame = () ->
                Stream.of(new String(new char[HW[1]]).replace("\0", "#"));
        Stream<String> frameS = frame.get();
        Stream<String> frameE = frame.get();
        Stream<String> out = Stream.concat(frame.get(), Stream.concat(a, frame.get())).map(
                item -> "#" + item + "#") ;        

        // 出力(末尾は改行を入れない)
        System.out.print(out.collect(Collectors.joining("\n")).replaceFirst("\n$", ""));
    }
}


Compiler output:
Main.java:17: warning: [removal] Integer(String) in Integer has been deprecated and marked for removal
                item -> new Integer(item)).toArray();
                        ^
1 warning
Language: C++

#include <iostream>
#include <string>
#include <vector>
# define rep(i, n) for (int i = 0; i < (int)(n); i++)
using namespace std;


string solve(int x, int y) {
    vector<int> a = {4, 6, 9, 11};

    auto ax = find(a.begin(), a.end(), x);
    auto ay = find(a.begin(), a.end(), y);

    if (x == 2 and y == 2) {
        return "Yes";
    }
    else if ((x == 2 and y != 2) or (x != 2 and y == 2)) {
        return "No";
    }
    else if (ax == a.end() and ay == a.end()) {
        return "Yes";
    }
    else if (ax != a.end() and ay != a.end()) {
        return "Yes";
    }
    else {
        return "No";
    }
}

int main() {
    int x, y;
    cin >> x >> y;
    cout << solve(x, y) << endl;
    return 0;
}



Compiler output:
a.cc: In function 'std::string solve(int, int)':
a.cc:11:19: error: no matching function for call to 'find(std::vector<int>::iterator, std::vector<int>::iterator, int&)'
   11 |     auto ax = find(a.begin(), a.end(), x);
      |               ~~~~^~~~~~~~~~~~~~~~~~~~~~~
In file included from /usr/include/c++/14/bits/locale_facets.h:48,
                 from /usr/include/c++/14/bits/basic_ios.h:37,
                 from /usr/include/c++/14/ios:46,
                 from /usr/include/c++/14/ostream:40,
                 from /usr/include/c++/14/iostream:41,
                 from a.cc:1:
/usr/include/c++/14/bits/streambuf_iterator.h:435:5: note: candidate: 'template<class _CharT2> typename __gnu_cxx::__enable_if<std::__is_char<_CharT2>::__value, std::istreambuf_iterator<_CharT> >::__type std::find(istreambuf_iterator<_CharT>, istreambuf_iterator<_CharT>, const _CharT2&)'
  435 |     find(istreambuf_iterator<_CharT> __first,
      |     ^~~~
/usr/include/c++/14/bits/streambuf_iterator.h:435:5: note:   template argument deduction/substitution failed:
a.cc:11:19: note:   '__gnu_cxx::__normal_iterator<int*, std::vector<int> >' is not derived from 'std::istreambuf_iterator<_CharT>'
   11 |     auto ax = find(a.begin(), a.end(), x);
      |               ~~~~^~~~~~~~~~~~~~~~~~~~~~~
a.cc:12:19: error: no matching function for call to 'find(std::vector<int>::iterator, std::vector<int>::iterator, int&)'
   12 |     auto ay = find(a.begin(), a.end(), y);
      |               ~~~~^~~~~~~~~~~~~~~~~~~~~~~
/usr/include/c++/14/bits/streambuf_iterator.h:435:5: note: candidate: 'template<class _CharT2> typename __gnu_cxx::__enable_if<std::__is_char<_CharT2>::__value, std::istreambuf_iterator<_CharT> >::__type std::find(istreambuf_iterator<_CharT>, istreambuf_iterator<_CharT>, const _CharT2&)'
  435 |     find(istreambuf_iterator<_CharT> __first,
      |     ^~~~
/usr/include/c++/14/bits/streambuf_iterator.h:435:5: note:   template argument deduction/substitution failed:
a.cc:12:19: note:   '__gnu_cxx::__normal_iterator<int*, std::vector<int> >' is not derived from 'std::istreambuf_iterator<_CharT>'
   12 |     auto ay = find(a.begin(), a.end(), y);
      |               ~~~~^~~~~~~~~~~~~~~~~~~~~~~
a.cc:29:1: warning: control reaches end of non-void function [-Wreturn-type]
   29 | }
      | ^
Language: C++

#include <bits/stdc++.h> 
 
#define INF (1<<31) - 1 //INT_MAX/2
#define MOD 1000000007
#define PI  acos(-1)

using ll  = long long;
using ull = unsigned long long;
using P = std::pair<int, int>;

int main(int argc, char *argv[])
{
    int x, y;
    std::cin >> x >> y;

    a[12] = {1, 2, 1, 3, 1, 3, 1, 1, 3, 1, 3, 1};
    if (a[x-1] == a[y-1]) {
        std::cout << "Yes" << std::endl;
    } else {
        std::cout << "No" << std::endl;
    }
    return 0;
}

Compiler output:
a.cc: In function 'int main(int, char**)':
a.cc:16:5: error: 'a' was not declared in this scope
   16 |     a[12] = {1, 2, 1, 3, 1, 3, 1, 1, 3, 1, 3, 1};
      |     ^
Language: C++

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

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


Compiler output:
a.cc: In function 'int main()':
a.cc:6:37: error: expected ';' before 'int'
    6 |   line = {0,1,3,1,2,1,2,1,1,2,1,2,1}
      |                                     ^
      |                                     ;
    7 | 
    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 ;
      |               ^
Language: C++

#include <bits/stdc++.h>
using namespace std;
typedef long long ll;
#define __TRUE "yes"
#define __FALSE "no"

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

Compiler output:
a.cc: In function 'int main()':
a.cc:11:3: error: expected ',' or ';' before 'cout'
   11 |   cout << (a[x] == a[y] ? "Yes" : "No") << endl;
      |   ^~~~
Language: Java

import java.util.*;

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

Compiler output:
Main.java:17: error: reached end of file while parsing
    }
     ^
1 error
Language: Java


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

Compiler output:
Main.java:4: error: cannot find symbol
        Scanner sc = new Scanner(System.in);
        ^
  symbol:   class Scanner
  location: class Main
Main.java:4: error: cannot find symbol
        Scanner sc = new Scanner(System.in);
                         ^
  symbol:   class Scanner
  location: class Main
2 errors
Language: Java


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

Compiler output:
Main.java:4: error: cannot find symbol
        Scanner sc = new Scanner(System.in);
        ^
  symbol:   class Scanner
  location: class Main
Main.java:4: error: cannot find symbol
        Scanner sc = new Scanner(System.in);
                         ^
  symbol:   class Scanner
  location: class Main
Main.java:9: error: package Syste does not exist
        Syste.out.print("Yes");
             ^
Main.java:11: error: package Syste does not exist
		 Syste.out.print("Yes");
		      ^
Main.java:13: error: package Syste does not exist
         Syste.out.print("No");
              ^
5 errors
Language: Java

import java.util.*;
 
class Main {
    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        int x = sc.nextInt();
        int y = sc.nextInt();
      String s = acababaababa;
      
      if(s.substring(x-1,x).equals(s.substring(y-1,y)))

    }
}

Compiler output:
Main.java:12: error: illegal start of statement
    }
    ^
1 error
Language: Java

import java.util.*;
 
class Main {
    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        int x = sc.nextInt();
        int y = sc.nextInt();
      String s = acababaababa;
      
      if(s.substring(int x-1,int x).equals(s.substring(int y-1,int y)))

    }
}

Compiler output:
Main.java:10: error: '.class' expected
      if(s.substring(int x-1,int x).equals(s.substring(int y-1,int y)))
                         ^
Main.java:10: error: not a statement
      if(s.substring(int x-1,int x).equals(s.substring(int y-1,int y)))
                          ^
Main.java:10: error: ';' expected
      if(s.substring(int x-1,int x).equals(s.substring(int y-1,int y)))
                            ^
Main.java:10: error: ';' expected
      if(s.substring(int x-1,int x).equals(s.substring(int y-1,int y)))
                                  ^
Main.java:10: error: '.class' expected
      if(s.substring(int x-1,int x).equals(s.substring(int y-1,int y)))
                                                           ^
Main.java:10: error: not a statement
      if(s.substring(int x-1,int x).equals(s.substring(int y-1,int y)))
                                                            ^
Main.java:10: error: ';' expected
      if(s.substring(int x-1,int x).equals(s.substring(int y-1,int y)))
                                                              ^
Main.java:10: error: ';' expected
      if(s.substring(int x-1,int x).equals(s.substring(int y-1,int y)))
                                                                    ^
8 errors
Language: Java

import java.util.*;
 
class Main {
    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        int x = sc.nextInt();
        int y = sc.nextInt();
      
      
      if(x==2||y==2){
        System.out.print("No");
      }else if(x==4||x==6||x==9||x==11){
        if(y==4||y==6||y==9||y==11){
           System.out.print("Yes");
        }
      }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||==y8||y==10||y==12){
           System.out.print("Yes");
        }
      }else{
         System.out.print("No");
      }

      
    }
}

Compiler output:
Main.java:17: error: illegal start of expression
        if(y==1||y==3||y==5||y==7||==y8||y==10||y==12){
                                   ^
1 error
Language: Java

import java.util.*;
 
class Main {
    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        int x = sc.nextInt();
        int y = sc.nextInt();
      
      
      if(x==2||y==2){
        System.out.print("No");
      }else if(x==4||x==6||x==9||x==11){
        if(y==4||y==6||y==9||y==11){
           System.out.print("Yes");
        }
      }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){
           System.out.print("Yes");
        }
      }else{
         System.out.print("No");
      }

      
    }
}

Compiler output:
Main.java:17: error: illegal start of expression
        if(y==1||y==3||y==5||y==7||=y=8||y==10||y==12){
                                   ^
1 error
Language: C++

#include <iostream>
using namespace std;
int A[0,1,3,1,2,1,2,1,1,2,1,2,1],a,b;

int main(){
  cin >> a >> b;
  cout << (A[a]==A[b]? "Yes":"No") << endl;
}

Compiler output:
a.cc:3:8: error: expected ']' before ',' token
    3 | int A[0,1,3,1,2,1,2,1,1,2,1,2,1],a,b;
      |        ^
      |        ]
a.cc:3:9: error: expected unqualified-id before numeric constant
    3 | int A[0,1,3,1,2,1,2,1,1,2,1,2,1],a,b;
      |         ^
a.cc: In function 'int main()':
a.cc:6:10: error: 'a' was not declared in this scope
    6 |   cin >> a >> b;
      |          ^
a.cc:6:15: error: 'b' was not declared in this scope
    6 |   cin >> a >> b;
      |               ^
a.cc:7:12: error: 'A' was not declared in this scope
    7 |   cout << (A[a]==A[b]? "Yes":"No") << endl;
      |            ^
Language: C++

x,y=map(int,input().split())
a=[2,1,8,1,0,1,0,1,1,0,1,0,1]
if a[x]==a[y]:
    print("Yes")
else:
    print("No")


Compiler output:
a.cc:1:1: error: 'x' does not name a type
    1 | x,y=map(int,input().split())
      | ^
Language: C++

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

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

Compiler output:
a.cc:7:3: error: 'cin' does not name a type
    7 |   cin >> x >> y;
      |   ^~~
a.cc:8:3: error: expected unqualified-id before 'if'
    8 |   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))
      |   ^~
a.cc:12:3: error: expected unqualified-id before 'else'
   12 |   else if((x == 4 || x == 6 || x == 9 || x == 11) && (y == 4 || y == 6 || y == 9 || y == 11))
      |   ^~~~
a.cc:16:2: error: expected unqualified-id before 'else'
   16 |  else
      |  ^~~~
a.cc:20:1: error: expected declaration before '}' token
   20 | }
      | ^
Language: C++

#include<iostream>
using namespace std;

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

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

#include<iostream>
using namespace std;

int main(){
  int A,B;
  
  cin>>A>>B;
  
  if(A==2&&B==2){
	cout<<"Yes"<<endl;
  }
  else if(A==4&&A==6&&A==9&&A==11){
    if(B==4&&B==6&&B==9&&B==11){
      cout<<"Yes"<<endl;
    }
    else{
      cout<<"No"<<enld;
      
    }
  }else{
    cout<<"No"<<endl;
  }
}

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

#include<iostream>
using namespace std;

int main(){
  int A,B;
  
  cin>>A>>B;
  
  if(A==2&&B==2){
	cout<<"Yes"<<endl;
  }
  else if(A==4&&A==6&&A==9&&A==11){
    if(B==4&&B==6&&B==9&&B==11){
      cput<<"Yes"<<endl;
    }
    else{
      cout<<"No"<<enld;
      
    }
  }else{
    cout<<"No"<<endl;
  }
}

Compiler output:
a.cc: In function 'int main()':
a.cc:14:7: error: 'cput' was not declared in this scope
   14 |       cput<<"Yes"<<endl;
      |       ^~~~
a.cc:17:19: error: 'enld' was not declared in this scope
   17 |       cout<<"No"<<enld;
      |                   ^~~~
Language: C++

#include<bits/stdc++.h>
2.using namespace std;
3.typedef long long ll;
4.typedef unsigned long long ull;
5.const int N=10001;
6.char a[N][N];
7.int main()
8.{
9. 	int x,y,i,j;
10. 	cin>>x>>y;
11. 	for(i=1;i<=x;i++)
12. 	{
13. 		for(j=1;j<=y;j++)
14. 		{
15. 			cin>>a[i][j];
16.		 }
17.	 }
18.	 for(i=1;i<=y+2;i++)
19.	 {
20.	 	cout<<'#'; 
21.	 }
22.	 cout<<endl;
23.	 for(i=1;i<=x;i++)
24.	 {
25.	 	cout<<"#";
26.	 	for(j=1;j<=y;j++)
27.	 	{
28.	 		cout<<a[i][j];
29.		 }
30.		 cout<<"#";
31.		 cout<<endl;
32.	 }
33.	 for(i=1;i<=y+2;i++)
34.	 {
35.	 	cout<<'#'; 
36.	 }
37.	 return 0;
38.}


Compiler output:
a.cc:2:1: error: expected unqualified-id before numeric constant
    2 | 2.using namespace std;
      | ^~~~~~~
a.cc:3:1: error: expected unqualified-id before numeric constant
    3 | 3.typedef long long ll;
      | ^~~~~~~~~
a.cc:4:1: error: expected unqualified-id before numeric constant
    4 | 4.typedef unsigned long long ull;
      | ^~~~~~~~~
a.cc:5:1: error: expected unqualified-id before numeric constant
    5 | 5.const int N=10001;
      | ^~~~~~~
a.cc:6:1: error: expected unqualified-id before numeric constant
    6 | 6.char a[N][N];
      | ^~~~~~
a.cc:7:1: error: expected unqualified-id before numeric constant
    7 | 7.int main()
      | ^~~~~
Language: C++

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

Compiler output:
a.cc: In function 'int main()':
a.cc:3:5: error: 'cin' was not declared in this scope
    3 |     cin>>a>>b;
      |     ^~~
a.cc:6:9: error: 'cout' was not declared in this scope
    6 |         cout<<"No"<<endl;
      |         ^~~~
a.cc:6:21: error: 'endl' was not declared in this scope
    6 |         cout<<"No"<<endl;
      |                     ^~~~
a.cc:9:13: error: 'cout' was not declared in this scope
    9 |             cout<<"Yes"<<endl;
      |             ^~~~
a.cc:9:26: error: 'endl' was not declared in this scope
    9 |             cout<<"Yes"<<endl;
      |                          ^~~~
a.cc:11:13: error: 'cout' was not declared in this scope
   11 |             cout<<"No"<<endl;
      |             ^~~~
a.cc:11:25: error: 'endl' was not declared in this scope
   11 |             cout<<"No"<<endl;
      |                         ^~~~
a.cc:14:13: error: 'cout' was not declared in this scope
   14 |             cout<<"No"<<endl;
      |             ^~~~
a.cc:14:25: error: 'endl' was not declared in this scope
   14 |             cout<<"No"<<endl;
      |                         ^~~~
a.cc:16:13: error: 'cout' was not declared in this scope
   16 |             cout<<"Yes"<<endl;
      |             ^~~~
a.cc:16:26: error: 'endl' was not declared in this scope
   16 |             cout<<"Yes"<<endl;
      |                          ^~~~
Language: C++

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

int main()
{
    vector<int> group[2] = {
        {1, 3, 5, 7, 8, 10, 12},
        {4, 6, 9, 11}
    };
    string anss[2] = {"No", "Yes"};
    int x, y, ans;
    cin >> x >> y;
    ans = (int)count_if(group[0].begin(), group[0].end(), [x, y](int i) { return i == x || i == y; }) / 2;
    ans = max(count_if(group[1].begin(), group[1].end(), [x, y](int i) { return i == x || i == y; }) / 2, ans);
    cout << anss[ans] << endl;

    return 0;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:15:14: error: no matching function for call to 'max(std::__iterator_traits<__gnu_cxx::__normal_iterator<int*, std::vector<int> >, void>::difference_type, int&)'
   15 |     ans = max(count_if(group[1].begin(), group[1].end(), [x, y](int i) { return i == x || i == y; }) / 2, ans);
      |           ~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
In file included from /usr/include/c++/14/algorithm:60,
                 from /usr/include/x86_64-linux-gnu/c++/14/bits/stdc++.h:51,
                 from a.cc:1:
/usr/include/c++/14/bits/stl_algobase.h:257:5: note: candidate: 'template<class _Tp> constexpr const _Tp& std::max(const _Tp&, const _Tp&)'
  257 |     max(const _Tp& __a, const _Tp& __b)
      |     ^~~
/usr/include/c++/14/bits/stl_algobase.h:257:5: note:   template argument deduction/substitution failed:
a.cc:15:14: note:   deduced conflicting types for parameter 'const _Tp' ('long int' and 'int')
   15 |     ans = max(count_if(group[1].begin(), group[1].end(), [x, y](int i) { return i == x || i == y; }) / 2, ans);
      |           ~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/usr/include/c++/14/bits/stl_algobase.h:303:5: note: candidate: 'template<class _Tp, class _Compare> constexpr const _Tp& std::max(const _Tp&, const _Tp&, _Compare)'
  303 |     max(const _Tp& __a, const _Tp& __b, _Compare __comp)
      |     ^~~
/usr/include/c++/14/bits/stl_algobase.h:303:5: note:   candidate expects 3 arguments, 2 provided
In file included from /usr/include/c++/14/algorithm:61:
/usr/include/c++/14/bits/stl_algo.h:5706:5: note: candidate: 'template<class _Tp> constexpr _Tp std::max(initializer_list<_Tp>)'
 5706 |     max(initializer_list<_Tp> __l)
      |     ^~~
/usr/include/c++/14/bits/stl_algo.h:5706:5: note:   candidate expects 1 argument, 2 provided
/usr/include/c++/14/bits/stl_algo.h:5716:5: note: candidate: 'template<class _Tp, class _Compare> constexpr _Tp std::max(initializer_list<_Tp>, _Compare)'
 5716 |     max(initializer_list<_Tp> __l, _Compare __comp)
      |     ^~~
/usr/include/c++/14/bits/stl_algo.h:5716:5: note:   template argument deduction/substitution failed:
a.cc:15:14: note:   mismatched types 'std::initializer_list<_Tp>' and 'long int'
   15 |     ans = max(count_if(group[1].begin(), group[1].end(), [x, y](int i) { return i == x || i == y; }) / 2, ans);
      |           ~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Language: C++

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

int main()
{
    vector<int> group[2] = {
        {1, 3, 5, 7, 8, 10, 12},
        {4, 6, 9, 11}
    };
    string anss[2] = {"No", "Yes"};
    int x, y, ans;
    cin >> x >> y;
    ans = count_if(group[0].begin(), group[0].end(), [x, y](int i) { return i == x || i == y; }) / 2;
    ans = max(count_if(group[1].begin(), group[1].end(), [x, y](int i) { return i == x || i == y; }) / 2, ans);
    cout << anss[ans] << endl;

    return 0;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:14:14: error: no matching function for call to 'max(std::__iterator_traits<__gnu_cxx::__normal_iterator<int*, std::vector<int> >, void>::difference_type, int&)'
   14 |     ans = max(count_if(group[1].begin(), group[1].end(), [x, y](int i) { return i == x || i == y; }) / 2, ans);
      |           ~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
In file included from /usr/include/c++/14/algorithm:60,
                 from /usr/include/x86_64-linux-gnu/c++/14/bits/stdc++.h:51,
                 from a.cc:1:
/usr/include/c++/14/bits/stl_algobase.h:257:5: note: candidate: 'template<class _Tp> constexpr const _Tp& std::max(const _Tp&, const _Tp&)'
  257 |     max(const _Tp& __a, const _Tp& __b)
      |     ^~~
/usr/include/c++/14/bits/stl_algobase.h:257:5: note:   template argument deduction/substitution failed:
a.cc:14:14: note:   deduced conflicting types for parameter 'const _Tp' ('long int' and 'int')
   14 |     ans = max(count_if(group[1].begin(), group[1].end(), [x, y](int i) { return i == x || i == y; }) / 2, ans);
      |           ~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/usr/include/c++/14/bits/stl_algobase.h:303:5: note: candidate: 'template<class _Tp, class _Compare> constexpr const _Tp& std::max(const _Tp&, const _Tp&, _Compare)'
  303 |     max(const _Tp& __a, const _Tp& __b, _Compare __comp)
      |     ^~~
/usr/include/c++/14/bits/stl_algobase.h:303:5: note:   candidate expects 3 arguments, 2 provided
In file included from /usr/include/c++/14/algorithm:61:
/usr/include/c++/14/bits/stl_algo.h:5706:5: note: candidate: 'template<class _Tp> constexpr _Tp std::max(initializer_list<_Tp>)'
 5706 |     max(initializer_list<_Tp> __l)
      |     ^~~
/usr/include/c++/14/bits/stl_algo.h:5706:5: note:   candidate expects 1 argument, 2 provided
/usr/include/c++/14/bits/stl_algo.h:5716:5: note: candidate: 'template<class _Tp, class _Compare> constexpr _Tp std::max(initializer_list<_Tp>, _Compare)'
 5716 |     max(initializer_list<_Tp> __l, _Compare __comp)
      |     ^~~
/usr/include/c++/14/bits/stl_algo.h:5716:5: note:   template argument deduction/substitution failed:
a.cc:14:14: note:   mismatched types 'std::initializer_list<_Tp>' and 'long int'
   14 |     ans = max(count_if(group[1].begin(), group[1].end(), [x, y](int i) { return i == x || i == y; }) / 2, ans);
      |           ~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Language: Java

import java.util.Arrays;
import java.util.List;
import java.util.Scanner;

public class Main {
    public static void main(String[] args) {
        try (Scanner sc = new Scanner(System.in);) {
            solve(sc);
        }
    }

    public static void solve(Scanner sc) {
        int a = sc.nextInt();
        int b = sc.nextInt();
        List<Integer> aa = Arrays.asList(new Int[]{a, b})

        List<Integer> c = Arrays.asList(new Int[]{1, 3, 5, 7, 8, 10, 12});
        List<Integer> d = Arrays.asList(new Int[]{2});
        List<Integer> e = Arrays.asList(new Int[]{4, 6, 9, 11});

        if (c.containsAll(aa) || d.containsAll(aa) || e.containsAll(aa)) {
            System.out.println("Yes");
        } else {
            System.out.println("No");
        }
    }
}

Compiler output:
Main.java:15: error: ';' expected
        List<Integer> aa = Arrays.asList(new Int[]{a, b})
                                                         ^
1 error
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 ;
      |                                                     ^~~~
a.cc:5:59: error: expected '}' at end of input
    5 | cout << ( a [ x ] == a [ y ] ? " Yes " : " No ") << endl ;
      |                                                           ^
a.cc:1:13: note: to match this '{'
    1 | int main () {
      |             ^
Language: C++

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

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

Compiler output:
a.cc:4:1: error: extended character 　 is not valid in an identifier
    4 | int　main(){
      | ^
a.cc:4:1: error: ISO C++ forbids declaration of 'int\U00003000main' with no type [-fpermissive]
    4 | int　main(){
      | ^~~~~~~~~
a.cc: In function 'int int\U00003000main()':
a.cc:10:1: warning: no return statement in function returning non-void [-Wreturn-type]
   10 | }
      | ^
Language: C++

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

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

#include<iostream>
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;
  out<<(a[x]==a[y]?"Yes":"No")<<endl;
}


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

#include <iostream>
using namespace std;

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

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

#include<stdio.h>

int main(){
  int x, y, x_group, y_group;
  
  scanf("%d %d", &x, &y);
  
  if(x == 2){
    x_group = 3;
  } else if(x == 4 || x == 6 || x == 9 || x == 11){
    x_group = 2;
  } else {
    x_group = 1;
  }
  if(y == 2){
    y_group = 3;
  } else if(y == 4 || y == 6 || y == 9 || y == 11){
    y_group = 2;
  } else {
    y_group = 1;
  }
  
  if(x_group == y_group){
    printf("Yes\n");
  } else {
    printf("No\n");
  }

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

#include <iostream>
using namespace std;

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

Compiler output:
a.cc: In function 'int main()':
a.cc:9:3: error: expected ',' or ';' before 'if'
    9 |   if (a[x] == a[y]) cout << "Yes";
      |   ^~
a.cc:10:3: error: 'else' without a previous 'if'
   10 |   else cout << "No";
      |   ^~~~
Language: C

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

Compiler output:
main.c: In function 'main':
main.c:13:53: error: expected expression before ';' token
   13 |                                 for (int j = 0; j < ; ++j)
      |                                                     ^
Language: C

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

Compiler output:
main.c: In function 'main':
main.c:6:9: error: expected ',' or ';' before 'int'
    6 |         int d[]={4,6,9,11}
      |         ^~~
main.c:13:53: error: expected expression before ';' token
   13 |                                 for (int j = 0; j < ; ++j)
      |                                                     ^
main.c:24:32: error: 'd' undeclared (first use in this function)
   24 |                         if (a==d[k])
      |                                ^
main.c:24:32: note: each undeclared identifier is reported only once for each function it appears in
Language: C++

#include<iostream>
#include<cstdio>
#include<vector>
#include<algorithm>
#define ALL(obj) (obj).begin(),(obj).end()
using vi = vector<int>;
using namespace std;
int main(){
  int a,b;
  vi c = {1,3,5,7,8,10,12};
  vi d = {4,6,9,11};
  vi e = {2};
  cin >> a >> b;
  bool flag = false;
  if(find(ALL(c),a) != c.end() && find(ALL(c),b) != c.end()) flag = true;
  if(find(ALL(d),a) != d.end() && find(ALL(d),b) != d.end()) flag = true;
  if(find(ALL(e),a) != e.end() && find(ALL(e),b) != e.end()) flag = true;
  if(flag) puts("Yes");
  else puts("No");
}


Compiler output:
a.cc:6:12: error: 'vector' does not name a type
    6 | using vi = vector<int>;
      |            ^~~~~~
a.cc: In function 'int main()':
a.cc:10:3: error: 'vi' was not declared in this scope
   10 |   vi c = {1,3,5,7,8,10,12};
      |   ^~
a.cc:11:5: error: expected ';' before 'd'
   11 |   vi d = {4,6,9,11};
      |     ^~
      |     ;
a.cc:12:5: error: expected ';' before 'e'
   12 |   vi e = {2};
      |     ^~
      |     ;
a.cc:15:15: error: 'c' was not declared in this scope
   15 |   if(find(ALL(c),a) != c.end() && find(ALL(c),b) != c.end()) flag = true;
      |               ^
a.cc:5:19: note: in definition of macro 'ALL'
    5 | #define ALL(obj) (obj).begin(),(obj).end()
      |                   ^~~
a.cc:16:15: error: 'd' was not declared in this scope
   16 |   if(find(ALL(d),a) != d.end() && find(ALL(d),b) != d.end()) flag = true;
      |               ^
a.cc:5:19: note: in definition of macro 'ALL'
    5 | #define ALL(obj) (obj).begin(),(obj).end()
      |                   ^~~
a.cc:17:15: error: 'e' was not declared in this scope
   17 |   if(find(ALL(e),a) != e.end() && find(ALL(e),b) != e.end()) flag = true;
      |               ^
a.cc:5:19: note: in definition of macro 'ALL'
    5 | #define ALL(obj) (obj).begin(),(obj).end()
      |                   ^~~
Language: C++

#include<cstdio>

int main(){
	int x,y;
	scanf("%d %d",&x,&y);
	if(x == 1||x == 3||x == 5||x == 7||x == 8 || x == 10||x == 12&&y == 1||y == 3||y == 5||y == 7||y == 8||y == 10||y == 12) printf("Yes\n");
	else if(x == 4||x == 6|| x == 9 || x == 11&&y == 4||y ==6 ||y == 9|| y == 11)printf("Yes\n");
	else printf("No\n");
		}
	}

Compiler output:
a.cc:10:9: error: expected declaration before '}' token
   10 |         }
      |         ^
Language: C

#include <stdio.h>
int main(){
int a,b;
scaanf("%d %d",&a,&b);

if((a==4||a==6||a==9||a==11)&&(b==4||b==6||b==9||b==11))
puts("Yes");
if((a==7||a==5||a==3||a==1||a==8||a==10||a==12)&&(b==7||b==5||b==3||b==1||b==8||b==10||b==12))
puts("Yes");
else
puts("No");

return 0;  
}

Compiler output:
main.c: In function 'main':
main.c:4:1: error: implicit declaration of function 'scaanf'; did you mean 'scanf'? [-Wimplicit-function-declaration]
    4 | scaanf("%d %d",&a,&b);
      | ^~~~~~
      | scanf
Language: C

#include <stdio.h>
int main(){
int a,b;
scaanf("%d %d",&a,&b);

if(a==2&&b==2) puts("Yes");
else
if((a==4||a==6||a==9||a==11)&&(b==4||b==6||b==9||b==11))
puts("Yes");
if((a==7||a==5||a==3||a==1||a==8||a==10||a==12)&&(b==7||b==5||b==3||b==1||b==8||b==10||b==12))
puts("Yes");
else
puts("No");

return 0;  
}

Compiler output:
main.c: In function 'main':
main.c:4:1: error: implicit declaration of function 'scaanf'; did you mean 'scanf'? [-Wimplicit-function-declaration]
    4 | scaanf("%d %d",&a,&b);
      | ^~~~~~
      | scanf
Language: C++

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

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


Compiler output:
a.cc: In function 'int main()':
a.cc:6:5: error: expected initializer before 'cin'
    6 |     cin >> x >> y;
      |     ^~~
a.cc:12:12: error: 'y' was not declared in this scope
   12 |         if(y==num1[i]) n1++;
      |            ^
a.cc:16:12: error: 'y' was not declared in this scope
   16 |         if(y==num2[i]) n2++;
      |            ^
Language: C++

#include <iostream>
#include <cstdlib>
#include <vector>
#include <algorithm>
#include <cstring>
using namespace std;

int main(int argc, char *argv[])
{
	int x, y;
	char aqua[] = {'0', 'a', 'c', 'a', 'b', 'a', 'b', 'a', 'a', 'b', 'a', 'b', 'a'}
	cin >> x >> y;

	if (aqua[x] == aqua[y]) 
		cout << "Yes";
	else
		cout << "No";

	cout << endl;

	return 0;
}


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

#include<stdio.h>

int main(){
int h,w,i,j;
char a[100][101];
scanf("%d%d",&h,&w);
for(i=0;i<h;i++)scanf("%s",a[i]);
for(i=-1;i<=h;i++){
if(i==-1||i==h){
for(j=0;j<n+2;j++)printf("#");
puts("");
}
else{
printf("#%s#",a[i]);
}
}
return 0;
}

Compiler output:
main.c: In function 'main':
main.c:10:11: error: 'n' undeclared (first use in this function)
   10 | for(j=0;j<n+2;j++)printf("#");
      |           ^
main.c:10:11: note: each undeclared identifier is reported only once for each function it appears in