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

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

vector<vector<bool>> flg(3, vector<bool>(3, false));

void isHit(vector<vector<int>> vp, int b){
  for(int i = 0; i < 3; i++){
    for(int j = 0; j < 3; j++){
      if(b == vp[i][j]) flg[i][j] = true;
    }
  }
}

int main(){
  vector<vector<int> vp;
  int a, b;
  bool flag = false;
  for(int i = 0; i < 3; i++){
    for(int j = 0; j < 3; j++){
      cin >> a;
      vp.push_back(a);
    }
  }
  for(int i = 0; i < 9; i++){
    cin >> b;
    isHit(vp, b);
  }
  for(int i = 0; i < 3; i++){
    if(flg[i][0] && flg[i][1] && flg[i][2]) flag = true;
    if(flg[0][i] && flg[1][i] && flg[2][i]) flag = true;
  }
  if(flg[0][0] && flg[1][1] && flg[2][2]) flag = true;
  if(flg[2][0] && flg[1][1] && flg[0][2]) flag = true;
  if(flag) cout << "Yes" << endl;
  else cout << "No" << endl;
  return 0;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:15:22: error: template argument 1 is invalid
   15 |   vector<vector<int> vp;
      |                      ^~
a.cc:15:22: error: template argument 2 is invalid
a.cc:21:7: error: 'vp' was not declared in this scope
   21 |       vp.push_back(a);
      |       ^~
a.cc:26:11: error: 'vp' was not declared in this scope
   26 |     isHit(vp, b);
      |           ^~
Language: C++

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

void isHit(vector<vector<pair<int, bool>>> vp, int b){
  for(int i = 0; i < 3; i++){
    for(int j = 0; j < 3; j++){
      if(b == vp[i][j].first) vp[i][j].second = true;
    }
  }
}

int main(){
  vector<vector<pair<int, bool>>> vp;
  int a, b;
  bool flag = false;
  for(int i = 0; i < 3; i++){
    for(int j = 0; j < 3; j++){
      cin >> a;
      vp.push_back(make_pair(a, false));
    }
  }
  for(int i = 0; i < 9; i++){
    cin >> b;
    isHit(vp, b);
  }
  for(int i = 0; i < 3; i++){
    if(vp[i][0].second && vp[i][1].second && vp[i][2].second) flag = true;
    if(vp[0][i].second && vp[1][i].second && vp[2][i].second) flag = true;
  }
  if(vp[0][0].second && vp[1][1].second && vp[2][2].second) flag = true;
  if(vp[2][0].second && vp[1][1].second && vp[0][2].second) flag = true;
  if(flag) cout << "Yes" << endl;
  else cout << "No" << endl;
  return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:19:19: error: no matching function for call to 'std::vector<std::vector<std::pair<int, bool> > >::push_back(std::pair<int, bool>)'
   19 |       vp.push_back(make_pair(a, false));
      |       ~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~
In file included from /usr/include/c++/14/vector:66,
                 from /usr/include/c++/14/functional:64,
                 from /usr/include/x86_64-linux-gnu/c++/14/bits/stdc++.h:53,
                 from a.cc:1:
/usr/include/c++/14/bits/stl_vector.h:1283:7: note: candidate: 'void std::vector<_Tp, _Alloc>::push_back(const value_type&) [with _Tp = std::vector<std::pair<int, bool> >; _Alloc = std::allocator<std::vector<std::pair<int, bool> > >; value_type = std::vector<std::pair<int, bool> >]'
 1283 |       push_back(const value_type& __x)
      |       ^~~~~~~~~
/usr/include/c++/14/bits/stl_vector.h:1283:35: note:   no known conversion for argument 1 from 'std::pair<int, bool>' to 'const std::vector<std::vector<std::pair<int, bool> > >::value_type&' {aka 'const std::vector<std::pair<int, bool> >&'}
 1283 |       push_back(const value_type& __x)
      |                 ~~~~~~~~~~~~~~~~~~^~~
/usr/include/c++/14/bits/stl_vector.h:1300:7: note: candidate: 'void std::vector<_Tp, _Alloc>::push_back(value_type&&) [with _Tp = std::vector<std::pair<int, bool> >; _Alloc = std::allocator<std::vector<std::pair<int, bool> > >; value_type = std::vector<std::pair<int, bool> >]'
 1300 |       push_back(value_type&& __x)
      |       ^~~~~~~~~
/usr/include/c++/14/bits/stl_vector.h:1300:30: note:   no known conversion for argument 1 from 'std::pair<int, bool>' to 'std::vector<std::vector<std::pair<int, bool> > >::value_type&&' {aka 'std::vector<std::pair<int, bool> >&&'}
 1300 |       push_back(value_type&& __x)
      |                 ~~~~~~~~~~~~~^~~
Language: C++

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

int main() {
  vvi bingo(3,vi(3));
  vvi che(3,vi(3));
  rep(i,3){
    rep(j,3){
      cin >> bingo[i][j];
      che[i][j] =0;
    }
  }
  int n; cin >>n;
  
  rep(k,n){
        int b; cin >>b;
    rep(i,3){
      rep(j,3){
        if(bingo[i][j] == b) che[i][j] =1;
        else che[i][j]=0
      }
    }
  }
  rep(i,3){
    if(che[i][1]==che[i][2]==che[i][0]==1 || che[0][i]==che[1][i]==che[2][i]==1){
      cout <<"Yes" <<endl; return 0;
    }
  }
  if(che[0][0]==che[1][1]==che[2][2]==1 || che[0][2]==che[1][1]==che[2][0]==1){
    cout << "Yes" <<endl; return 0;
  }
  cout << "No" <<endl; return 0;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:26:25: error: expected ';' before '}' token
   26 |         else che[i][j]=0
      |                         ^
      |                         ;
   27 |       }
      |       ~
Language: C++

#include<bits/stdc++.h>
using namespace std;
typedef long long ll;
using P = pair<int,int>;
/* ちゃんと考えてわかって実装 */

int main(void){
    int a[3][3];
    bool open[3][3];
    for(int i=0; i<3; i++){
        for(int j=0; j<3; j++){
            cin >> a[i][j];
            open[i][j] = false;
        }
    }

    int n; cin >> n;
    for(int i=0l i<n; i++){
        int b; cin >> b;
        for(int ii=0; ii<3; ii++){
            for(int jj=0; jj<3; jj++){
                if(a[ii][jj] == b) open[ii][jj] = true;
            }
        }
    }

    bool bingo = false;
    if(open[0][0] == true && open[0][1] == true && open[0][2] == true) bingo = true;
    if(open[1][0] == true && open[1][1] == true && open[1][2] == true) bingo = true;
    if(open[2][0] == true && open[2][1] == true && open[2][2] == true) bingo = true;
    if(open[0][0] == true && open[1][0] == true && open[2][0] == true) bingo = true;
    if(open[0][1] == true && open[1][1] == true && open[2][1] == true) bingo = true;
    if(open[0][2] == true && open[1][2] == true && open[2][2] == true) bingo = true;
    if(open[0][0] == true && open[1][1] == true && open[2][2] == true) bingo = true;
    if(open[2][0] == true && open[1][1] == true && open[0][2] == true) bingo = true;

    if(bingo) cout << "Yes" << endl;
    else cout << "No" << endl;
    return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:18:17: error: expected ';' before 'i'
   18 |     for(int i=0l i<n; i++){
      |                 ^~
      |                 ;
Language: Java

import java.util.*;

class Main {
    public static void main(String[] args) {
        new Solver().run();
    }
}

class Solver {

    private void mark(int[][] card, int v) {
        for (int i = 0; i < 3; i++) {
            for (int j = 0; j < 3; j++) {
                if (card[i][j] == v) {
                    card[i][j] = 0;
                }
            }
        }
    }

    private void bingo() {
        System.out.println("Yes");
        System.exit(0);
    }

    public void run() {
        Scanner sc = new Scanner(System.in);
        int[][] card = new int[3][3];

        for (int i = 0; i < 3; i++) {
            for (int j = 0; j < 3; j++) {
                card[i][j] = sc.nextInt();
            }
        }

        int N = sc.nextInt();
        int[] b = new int[N];
        for (int i = 0; i < N; i++) {
            b[i] = sc.nextInt();
            mark(card, b[i]);
        }

        // horizontal check
        for (int i = 0; i < 3; i++) {
            if (card[i][0] == 0 && card[i][1] == 0 && card[i][2] == 0) bingo();
        }

        // vertical check
        for (int j = 0; j < 3; j++) {
            if (card[0][j] == 0 && card[1][j] == 0 && card[2][j] == 0) bingo();
        }

        if (card[0][0] == 0 && card[1][1] == 0 && card[2][2] == 0) bingo();
        if (card[0][2] == 0 && card[1][1] == 0 && card[2][0] == 0) bingo();

        System.out.println("No");

        return;
    }

}
o

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

#include <iostream>
#include <vector>
using namespace std;

int main()
{
    vactor<vactor<int>> a(3, vector<int>(3));
    vactor<vactor<bool>> can(3, vector<bool>(3));
    bool bingo = false;
    int n;
    for (int i=0; i<3; i++) cin >> a.at(i).at(1) >> a.at(i).at(2) >> a.at(i).at(3);
    cin >> n;
    vector<int> b(n);
    for (int i=0; i<n; i++) cin >> b.at(i);
    for (int i=0; i<3; i++) {
        for (int j=0; j<3; j++) {
            can.at(i).at(j) = false;
            for (int k=0; k<n; k++) {
                if (a.at(i).at(j) == b.at(k)) can.at(i).at(j) = true;
            }
        }
    }
    for (int i=0; i<3; i++) if (can.at(i).at(0) && can.at(i).at(1) && can.at(i).at(2)) bingo = true;
    for (int i=0; i<3; i++) if (can.at(1).at(i) && can.at(1).at(i) && can.at(2).at(i)) bingo = true;
    if (can.at(0).at(0) && can.at(1).at(1) && can.at(2).at(2)) bingo = true;
    if (can.at(0).at(2) && can.at(1).at(1) && can.at(2).at(0)) bingo = true;

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

Compiler output:
a.cc: In function 'int main()':
a.cc:7:5: error: 'vactor' was not declared in this scope
    7 |     vactor<vactor<int>> a(3, vector<int>(3));
      |     ^~~~~~
a.cc:7:19: error: expected primary-expression before 'int'
    7 |     vactor<vactor<int>> a(3, vector<int>(3));
      |                   ^~~
a.cc:8:19: error: expected primary-expression before 'bool'
    8 |     vactor<vactor<bool>> can(3, vector<bool>(3));
      |                   ^~~~
a.cc:11:36: error: 'a' was not declared in this scope
   11 |     for (int i=0; i<3; i++) cin >> a.at(i).at(1) >> a.at(i).at(2) >> a.at(i).at(3);
      |                                    ^
a.cc:17:13: error: 'can' was not declared in this scope
   17 |             can.at(i).at(j) = false;
      |             ^~~
a.cc:19:21: error: 'a' was not declared in this scope
   19 |                 if (a.at(i).at(j) == b.at(k)) can.at(i).at(j) = true;
      |                     ^
a.cc:23:33: error: 'can' was not declared in this scope
   23 |     for (int i=0; i<3; i++) if (can.at(i).at(0) && can.at(i).at(1) && can.at(i).at(2)) bingo = true;
      |                                 ^~~
a.cc:24:33: error: 'can' was not declared in this scope
   24 |     for (int i=0; i<3; i++) if (can.at(1).at(i) && can.at(1).at(i) && can.at(2).at(i)) bingo = true;
      |                                 ^~~
a.cc:25:9: error: 'can' was not declared in this scope
   25 |     if (can.at(0).at(0) && can.at(1).at(1) && can.at(2).at(2)) bingo = true;
      |         ^~~
a.cc:26:9: error: 'can' was not declared in this scope
   26 |     if (can.at(0).at(2) && can.at(1).at(1) && can.at(2).at(0)) bingo = true;
      |         ^~~
Language: C++

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

bool bingo(int A[3][3], int N, int B[N]){
    bool sign[3][3];
    int a1,a2,a3,a4,a5,a6;
    for(int j = 0; j<3; j++){
        for(int k = 0;k<3;k++){
            sign[j][k]=false;
        }
    }
    for(int i = 0; i<N; i++){
        for(int j = 0; j<3; j++){
            for(int k = 0;k<3;k++){
                if(B[i] ==A[j][k]){
                    sign[j][k] =true;
                }
            }
        }
    }
    a1=0;
    for(int i=0;i<3;i++) if(sign[i][0]) a1++;
    if(a1==3) return true;
    a2=0;
    for(int i=0;i<3;i++) if(sign[i][1]) a2++;
    if(a2==3) return true;
    a3=0;
    for(int i=0;i<3;i++) if(sign[i][2]) a3++;
    if(a3==3) return true;
    a4=0;
    for(int i=0;i<3;i++) if(sign[0][i]) a4++;
    if(a4==3) return true;
    a5=0;
    for(int i=0;i<3;i++) if(sign[1][i]) a5++;
    if(a5==3) return true;
    a6=0;
    for(int i=0;i<3;i++) if(sign[2][i]) a6++;
    if(a6==3) return true;
    if(sign[0][0]==true and sign[1][1]==true and sign[2][2]==true) return true;
    if(sign[2][0]==true and sign[1][1]==true and sign[0][2]==true) return true;
    
    return false;
}

int main() {
    int N, A[3][3];
    cin >> A[0][0] >> A[0][1] >> A[0][2];
    cin >> A[1][0] >> A[1][1] >> A[1][2];
    cin >> A[2][0] >> A[2][1] >> A[2][2];
    cin >> N;
    int B[N];
    for(int i = 0;i<N;i++){
        cin >> B[i];
    }
    if( bingo(A, N, B)){
        cout << "Yes" << endl;
    }else{
        cout << "No" << endl;
    }
    return 0;
}

Compiler output:
a.cc:4:39: error: use of parameter outside function body before ']' token
    4 | bool bingo(int A[3][3], int N, int B[N]){
      |                                       ^
a.cc: In function 'bool bingo(...)':
a.cc:12:22: error: 'N' was not declared in this scope
   12 |     for(int i = 0; i<N; i++){
      |                      ^
a.cc:15:20: error: 'B' was not declared in this scope
   15 |                 if(B[i] ==A[j][k]){
      |                    ^
a.cc:15:27: error: 'A' was not declared in this scope
   15 |                 if(B[i] ==A[j][k]){
      |                           ^
Language: C++

#include <iostream>
#include<string>

using namespace std;

bool bingo(int A[3][3], int N, int B[N]){
    bool sign[3][3];
    int a1,a2,a3,a4,a5,a6;
    for(int j = 0; j<3; j++){
        for(int k = 0;k<3;k++){
            sign[j][k]=false;
        }
    }
    for(int i = 0; i<N; i++){
        for(int j = 0; j<3; j++){
            for(int k = 0;k<3;k++){
                if(B[i] ==A[j][k]){
                    sign[j][k] =true;
                }
            }
        }
    }
    a1=0;
    for(int i=0;i<3;i++) if(sign[i][0]) a1++;
    if(a1==3) return true;
    a2=0;
    for(int i=0;i<3;i++) if(sign[i][1]) a2++;
    if(a2==3) return true;
    a3=0;
    for(int i=0;i<3;i++) if(sign[i][2]) a3++;
    if(a3==3) return true;
    a4=0;
    for(int i=0;i<3;i++) if(sign[0][i]) a4++;
    if(a4==3) return true;
    a5=0;
    for(int i=0;i<3;i++) if(sign[1][i]) a5++;
    if(a5==3) return true;
    a6=0;
    for(int i=0;i<3;i++) if(sign[2][i]) a6++;
    if(a6==3) return true;
    if(sign[0][0]==true and sign[1][1]==true and sign[2][2]==true) return true;
    if(sign[2][0]==true and sign[1][1]==true and sign[0][2]==true) return true;
    
    return false;
}

int main() {
    int N, A[3][3];
    cin >> A[0][0] >> A[0][1] >> A[0][2];
    cin >> A[1][0] >> A[1][1] >> A[1][2];
    cin >> A[2][0] >> A[2][1] >> A[2][2];
    cin >> N;
    int B[N];
    for(int i = 0;i<N;i++){
        cin >> B[i];
    }
    if( bingo(A, N, B)){
        cout << "Yes" << endl;
    }else{
        cout << "No" << endl;
    }
    return 0;
}

Compiler output:
a.cc:6:39: error: use of parameter outside function body before ']' token
    6 | bool bingo(int A[3][3], int N, int B[N]){
      |                                       ^
a.cc: In function 'bool bingo(...)':
a.cc:14:22: error: 'N' was not declared in this scope
   14 |     for(int i = 0; i<N; i++){
      |                      ^
a.cc:17:20: error: 'B' was not declared in this scope
   17 |                 if(B[i] ==A[j][k]){
      |                    ^
a.cc:17:27: error: 'A' was not declared in this scope
   17 |                 if(B[i] ==A[j][k]){
      |                           ^
Language: C++

#include<iostream>

using namespace std;

int main(){
    int a[3][3];
    int key[3][3];
    int i,j,k;
    for(i=0;i<3;i++){
        for(j=0;j<3;j++){
            cin >> a[i][j];
        }
    }
    int n;
    int b[110];
    cin >> n;
    for(k=0;k<n;k++){
        cin >> b[k];
    }
    for(i=0;i<3;i++){
        for(j=0;j<3;j++){
            for(k=0;k<n;k++){
                if(b[k]==a[i][j]){
                    key[i][j]=1;
                }
            }
        }
    }
    int flg = 0;
    for(i=0;i<3;i++){
        if(key[i][0]==1 && key[i][1]==1 && key[i][2] == 1){
            flg = 1;
        }
    }
    for(j=0;j<3;j++){
        if(key[0][j]==1 && key[1][j]==1 && key[2][j] == 1){
            flg = 1;
        }
    }
    if(key[0][0]==1 && key[1][1]==1 && key[2][2] == 1){
            flg = 1;
    }else(key[0][2]==1 && key[1][1]==1 && key[2][0] == 1){
            flg = 1;
    }
    if(flg == 1){
        cout << "Yes" << endl;
    }else{
        cout << "No" << endl;
    }
    return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:42:58: error: expected ';' before '{' token
   42 |     }else(key[0][2]==1 && key[1][1]==1 && key[2][0] == 1){
      |                                                          ^
      |                                                          ;
Language: Java

import java.util.*;
 
public class Main{
  
  public static void main(String[] args){
    Scanner sc = new Scanner(System.in);
  	int[][] a=new int[3][3];
    for(int i=0;i<3;i++){
      for(int j=0;j<3;j++){
        a[i][j]=sc.nextInt();
      }
    }
    ing n=sc.nextInt();
    int[] g=new int[n];
    for(int i=0;i<n;i++){
      g[i]=sc.nextInt();
      for(int x=0;x<3;x++){
        for(int y=0;y<3;y++){
          if(g[i]==a[x][y]){
            a[x][y]=0;
          }
        }
      }
    }
    
    if((a[0][0]==a[0][1]&&a[0][1]==a[0][2])||(a[1][0]==a[1][1]&&a[1][1]==a[1][2])||(a[2][0]==a[2][1]&&a[2][1]==a[2][2])||(a[0][0]==a[1][0]&&a[1][0]==a[2][0])||(a[0][1]==a[1][1]&&a[2][1]==a[1][1])||(a[0][2]==a[1][2]&&a[1][2]==a[2][2])||(a[0][0]==a[1][1]&&a[1][1]==a[2][2])||(a[0][2]==a[1][1]&&a[1][1]==a[2][0])){
      System.out.print("Yes");
    }else{
      System.out.print("No");
    }
  }
}

Compiler output:
Main.java:13: error: cannot find symbol
    ing n=sc.nextInt();
    ^
  symbol:   class ing
  location: class Main
1 error
Language: Java

import java.util.*;
 
public class Main{
  
  public static void main(String[] args){
    Scanner sc = new Scanner(System.in);
  	int[][] a=new int[3][3];
    for(int i=0;i<3;i++){
      for(int j=0;j<3;j++){
        a[i][j]=sc.nextInt();
      }
    }
    ing n=sc.nextInt();
    int[] g=new int[n];
    for(int i=0;i<n;i++){
      g[i]=sc.nextInt();
      for(int x=0;x<3;x++){
        for(int y=0;y<3;y++){
          if(g[i]==a[x][y]){
            a[x][y]=0;
          }
        }
      }
    }
    
    if((a[0][0]==a[0][1]&&a[0][1]==a[0][2])||(a[1][0]==a[1][1]&&a[1][1]==a[1][2])||(a[2][0]==a[2][1]&&a[2][1]==a[2][2])||(a[0][0]==a[1][0]&&a[1][0]==a[2][0])||(a[0][1]==a[1][1]&&a[2][1]==a[1][1])||(a[0][2]==a[1][2]&&a[1][2]==a[2][2])||(a[0][0]==a[1][1]&&a[1][1]==a[2][2])||(a[0][2]==a[1][1]&&a[1][1]==a[2][0])){
      System.out.print("Yes");
    }else{
      System.out.print("No");
    }
}

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

import java.util.*;

public class Main{
  
  public static void main(String[] args){
    Scanner sc = new Scanner(System.in);
  	int[][] a=new int[3][3];
    for(int i=0;i<3;i++){
      for(int j=0;j<3;j++){
        a[i][j]=sc.nextInt();
      }
    }
    ing n=sc.nextInt();
    int[] g=new int[n];
    for(int i=0;i<n;i++){
      g[i]=sc.nextInt();
      for(int x=0;x<3;x++){
        for(int y=0;y<3;y++){
          if(g[i]==a[x][y]){
            a[x][y]=0;
          }
        }
      }
    }
    
    if((a[0][0]==a[0][1]&&a[0][1]==a[0][2])||(a[1][0]==a[1][1]&&a[1][1]==a[1][2])||(a[2][0]==a[2][1]&&a[2][1]==a[2][2])||(a[0][0]==a[1][0]&&a[1][0]==a[2][0])||(a[0][1]==a[1][1]&&a[2][1]==a[1][1])||(a[0][2]==a[1][2]&&a[1][2]==a[2][2])||(a[0][0]==a[0][1]&&a[0][1]==a[][])||    if((a[0][0]==a[0][1]&&a[0][1]==a[0][2])||(a[1][0]==a[1][1]&&a[1][1]==a[1][2])||(a[2][0]==a[2][1]&&a[2][1]==a[2][2])||(a[0][0]==a[1][0]&&a[1][0]==a[2][0])||(a[0][1]==a[1][1]&&a[2][1]==a[1][1])||(a[0][2]==a[1][2]&&a[1][2]==a[2][2])||(a[0][0]==a[1][1]&&a[1][1]==a[2][2])||(a[0][2]==a[1][1]&&a[1][1]==a[2][0])){
      System.out.print("Yes");
    }else{
      System.out.print("No");
    }
}

Compiler output:
Main.java:26: error: '.class' expected
    if((a[0][0]==a[0][1]&&a[0][1]==a[0][2])||(a[1][0]==a[1][1]&&a[1][1]==a[1][2])||(a[2][0]==a[2][1]&&a[2][1]==a[2][2])||(a[0][0]==a[1][0]&&a[1][0]==a[2][0])||(a[0][1]==a[1][1]&&a[2][1]==a[1][1])||(a[0][2]==a[1][2]&&a[1][2]==a[2][2])||(a[0][0]==a[0][1]&&a[0][1]==a[][])||    if((a[0][0]==a[0][1]&&a[0][1]==a[0][2])||(a[1][0]==a[1][1]&&a[1][1]==a[1][2])||(a[2][0]==a[2][1]&&a[2][1]==a[2][2])||(a[0][0]==a[1][0]&&a[1][0]==a[2][0])||(a[0][1]==a[1][1]&&a[2][1]==a[1][1])||(a[0][2]==a[1][2]&&a[1][2]==a[2][2])||(a[0][0]==a[1][1]&&a[1][1]==a[2][2])||(a[0][2]==a[1][1]&&a[1][1]==a[2][0])){
                                                                                                                                                                                                                                                                            ^
Main.java:26: error: illegal start of expression
    if((a[0][0]==a[0][1]&&a[0][1]==a[0][2])||(a[1][0]==a[1][1]&&a[1][1]==a[1][2])||(a[2][0]==a[2][1]&&a[2][1]==a[2][2])||(a[0][0]==a[1][0]&&a[1][0]==a[2][0])||(a[0][1]==a[1][1]&&a[2][1]==a[1][1])||(a[0][2]==a[1][2]&&a[1][2]==a[2][2])||(a[0][0]==a[0][1]&&a[0][1]==a[][])||    if((a[0][0]==a[0][1]&&a[0][1]==a[0][2])||(a[1][0]==a[1][1]&&a[1][1]==a[1][2])||(a[2][0]==a[2][1]&&a[2][1]==a[2][2])||(a[0][0]==a[1][0]&&a[1][0]==a[2][0])||(a[0][1]==a[1][1]&&a[2][1]==a[1][1])||(a[0][2]==a[1][2]&&a[1][2]==a[2][2])||(a[0][0]==a[1][1]&&a[1][1]==a[2][2])||(a[0][2]==a[1][1]&&a[1][1]==a[2][0])){
                                                                                                                                                                                                                                                                                   ^
Main.java:31: error: reached end of file while parsing
}
 ^
3 errors
Language: C++

#include<iostream>
#include<vector>
#include<string>
using namespace std;
bool apear[3][3];

int main(){
  vector<vector<int>> data(3,vector<int>(3));
  for(int i =0;i<3;i++){
    for(int j =0;j<3;j++){
      cin>>data.at(i).at(j);
    }
  }
  int n;
  cin>>n;
  vector<int> b(n);
  for(int i=0;i<n;i++){
    cin>>b.at(i);
  }
  for(int i =0;i<3;i++){
    for(int j =0;j<3;j++){
      for(int k=0;k<n;k++){
        appear[i][j]=false;
        if(data.at(i).at(j)==b.at(k)) appear[i][j]=true;
      }
    }
  }
  string ans="No";
  for(int i = 0;i<3;i++){
    if(appear[i][0]&&appear[i][1]&&appear[i][2]) ans="Yes";
  }
  for(int i = 0;i<3;i++){
    if(appear[0][i]&&appear[1][i]&&appear[2][i]) ans="Yes";
  }
  if(appear[0][0]&&appear[1][1]&&appear[2][2]) ans="Yes";
  if(appear[0][2]&&appear[1][1]&&appear[2][0]) ans="Yes";
  
  cout<<ans<<endl;
}
  

Compiler output:
a.cc: In function 'int main()':
a.cc:23:9: error: 'appear' was not declared in this scope; did you mean 'apear'?
   23 |         appear[i][j]=false;
      |         ^~~~~~
      |         apear
a.cc:30:8: error: 'appear' was not declared in this scope; did you mean 'apear'?
   30 |     if(appear[i][0]&&appear[i][1]&&appear[i][2]) ans="Yes";
      |        ^~~~~~
      |        apear
a.cc:33:8: error: 'appear' was not declared in this scope; did you mean 'apear'?
   33 |     if(appear[0][i]&&appear[1][i]&&appear[2][i]) ans="Yes";
      |        ^~~~~~
      |        apear
a.cc:35:6: error: 'appear' was not declared in this scope; did you mean 'apear'?
   35 |   if(appear[0][0]&&appear[1][1]&&appear[2][2]) ans="Yes";
      |      ^~~~~~
      |      apear
a.cc:36:6: error: 'appear' was not declared in this scope; did you mean 'apear'?
   36 |   if(appear[0][2]&&appear[1][1]&&appear[2][0]) ans="Yes";
      |      ^~~~~~
      |      apear
Language: C++

#include<iostream>

using namespace std;

const int maxN=15;
int A[3][3];
int b[maxN];
int N;
bool B[3][3];

int main(){
    for(int i=0;i<3;i++){
        for(int j=0;j<3;j++){
            cin >> A[i][j];
        }
    }
    cin >> N;
    for(int i=0;i<N;i++){
        cin >> b[i];
    }
    memset(B,false,sizeof(B));

    for(int i=0;i<N;i++){
        for(int j=0;j<3;j++){
            for(int k=0;k<3;k++){
                if(b[i]==A[j][k]) B[j][k]=true;
            }
        }
    }

    for(int i=0;i<3;i++){
        if(B[i][0]&&B[i][1]&&B[i][2]){
            cout << "Yes" <<endl;
            return 0;
        }
    }
    for(int j=0;j<3;j++){
        if(B[0][j]&&B[1][j]&&B[2][j]){
            cout << "Yes" << endl;
            return 0;
        }
    }
    if((B[0][0]&&B[1][1]&&B[2][2]) || (B[0][2]&&B[1][1]&&B[2][0])){
        cout << "Yes" << endl;
        return 0;
    }

    cout << "No" <<endl;
    return 0;

    
}

Compiler output:
a.cc: In function 'int main()':
a.cc:21:5: error: 'memset' was not declared in this scope
   21 |     memset(B,false,sizeof(B));
      |     ^~~~~~
a.cc:2:1: note: 'memset' is defined in header '<cstring>'; this is probably fixable by adding '#include <cstring>'
    1 | #include<iostream>
  +++ |+#include <cstring>
    2 |
Language: C++

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

int main() {
  vector<vector<int>> a(3, vector<int>(3));
  for (int i = 0; i < 3; i++) {
    for (int j = 0; j < 3; j++) {
      cin >> a.at(i).at(j);
    }
  }
  int n;
  cin >> n;
  vector<vector<int>> con(3, vector<int>(3, 0));
  vector<int> b(N);
  for (int i = 0; i < N; i++) {
    cin >> b.at(i);
  }
  for (int i = 0; i < 3; i++) {
    for (int j = 0; j < 3; j++) {
      for (int k = 0; k < N; k++) {
        if (a.at(i).at(j) == b.at(k)) {
          con.at(i).at(j) = 1;
        }
      }
    }
  }
  bool res = false;
  for (int i = 0; i < 3; i++) {
    if (con.at(i) == {1, 1, 1}) {
      res = true;
    }
    if (con.at(0).at(i) == 1 && con.at(1).at(i) == 1 && con.at(2).at(i) == 1) {
      res = true;
    }
  }
  if (con.at(0).at(0) == 1 && con.at(1).at(1) == 1 && con.at(2).at(2) == 2) {
    res = true;
  }
  if (con.at(0).at(2) == 1 && con.at(1).at(1) == 1 && con.at(2).at(0) == 1) {
    res = true;
  }
  if (res) {
    cout << "Yes" << endl;
  }
  else {
    cout << "No" << endl;
  }
}


Compiler output:
a.cc: In function 'int main()':
a.cc:14:17: error: 'N' was not declared in this scope
   14 |   vector<int> b(N);
      |                 ^
a.cc:29:22: error: expected primary-expression before '{' token
   29 |     if (con.at(i) == {1, 1, 1}) {
      |                      ^
a.cc:29:21: error: expected ')' before '{' token
   29 |     if (con.at(i) == {1, 1, 1}) {
      |        ~            ^~
      |                     )
Language: C++



#include <iostream>
#include <string>
#include <vector>
#include <algorithm>
#include <map>

#define rep(i,n) for(long long i=0;i<n;i++)
using namespace std;



long long main() {
	

	long long  A[3][3];
	cin >> A[0][0] >> A[0][1] >> A[0][2];
	cin >> A[1][0] >> A[1][1] >> A[1][2];
	cin >> A[2][0] >> A[2][1] >> A[2][2];

	long long N;
	cin >> N;

	vector<long long> v_b(N);
	rep(i, N) cin >> v_b[i];

	long long temp[3][3];

	for (long long i = 0; i < 2; i++)
	{
		for (long long j = 0; j < 2; j++)
		{
			temp[i][j] = 0;
		}
	}

	for (long long i = 0; i < 2; i++)
	{
		for (long long j = 0; j < 2; j++)
		{
			rep(k, N)
			{
				if (v_b[k] == A[i][j])
				{
					temp[i][j] += 1;
				}
			}
		}
	}

	long long f = 0;

	for (long long j = 0; j < 2; j++)
	{
		if (temp[j][0] != 0 && temp[j][1] != 0 && temp[j][2] != 0)
		{
			f += 1;
		}
	}

	for (long long i = 0; i < 2;i++)
	{
		if (temp[0][i] != 0 && temp[1][i] != 0 && temp[2][i] != 0)
		{
			f += 1;
		}
	}

	if (temp[1][1] != 0 && temp[2][2] != 0 && temp[0][0] != 0)
	{
		f += 1;
	}

	if (temp[0][2] != 0 && temp[1][1] != 0 && temp[2][0] != 0)
	{
		f += 1;
	}
	
	if (f != 0)
	{
		cout << "Yes" << endl;
	}
	else
	{
		cout << "No" << endl;

	}

	return 0;
}




Compiler output:
cc1plus: error: '::main' must return 'int'
Language: C++

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

int a[3][3];
int d[3][3];
int main() {
  rep(i,3)rep(j,3) cin >> a[i][j];
  int n;
  cin >> n;
  rep(p,n) {
    int b;
    cin >> b;
    rep(i,3)rep(j,3) if(a[i][j]==b) d[i][j]=1;
  }
  bool ans=false;
  rep(i,3) {
    int cnt=0;
    rep(j,3) cnt+=d[i][j];
    if(cnt==3) ans=true;}
  rep(i,3) {
    int cnt=0;
    rep(j,3) cnt+=d[j][i];
    if(cnt==3) ans=true;
  }
  {
int cnt=0;
    rep(j,3) cnt+=d[j][2-j]
      if(cnt==3) ans=true;
  }
  puts(ans?"Yes":"No");
  return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:28:28: error: expected ';' before 'if'
   28 |     rep(j,3) cnt+=d[j][2-j]
      |                            ^
      |                            ;
   29 |       if(cnt==3) ans=true;
      |       ~~
Language: C++

#include<bits/stdc++.h>
using namespace std;
int a[3][3],b[10],n;
bool appear[3][3];
int main(){
  for(int i=0;i<3;i++){
    for(int j=0;j<3;j++){
      cin>>a[i][j];
    }
  }
    cin>>n;
    for(int i=0;i<n;i++){
      cin>>b[i];
    }
    for(int i=0;i<n;i++){
      for(int j=0;j<n;j++){
        appear[i][j]=false;
        for(int k=0;k<n;k++){
          if(appear[i][j]==b[k]){
            appear[i][j]=true;
          }
        }
      }
    string ans="No";
    for(int i=0;i<3;i++){
      if(appear[i][0]&&appear[i][1]&&appear[i][2]){
        ans="Yes";
      }
    }
    for(int i=0;i<3;i++){
      if(appear[0][i]&&appear[1][i]&&appear[2][i]){
        ans="Yes";
      }
    }
      if(appear[0][0]&&appear[1][1]&&appear[2][2]){
        ans="Yes";
      }
      if(appear[0][2]&&appear[1][1]&&appear[2][0]){
        ans="Yes";
      }
      cout<<ans;
      return 0;
   }
    
    
  


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

#include<bits/stdc++.h>
using namespace std;
int a[3][3],b[10],n;
bool appear[3][3];
int main(){
  for(int i=0;i<3;i++){
    for(int j=0;j<3;j++){
      cin>>a[i][j];
    }
    cin>>n;
    for(int i=0;i<n;i++){
      cin>>b[i];
    }
    for(int i=0;i<n;i++){
      for(int j=0;j<n;j++){
        appear[i][j]=false;
        for(int k=0;k<n;k++){
          if(appear[i][j]==b[k]){
            appear[i][j]=true;
          }
        }
      }
    string ans="No";
    for(int i=0;i<3;i++){
      if(appear[i][0]&&appear[i][1]&&appear[i][2]){
        ans="Yes";
      }
    }
    for(int i=0;i<3;i++){
      if(appear[0][i]&&appear[1][i]&&appear[2][i]){
        ans="Yes";
      }
    }
      if(appear[0][0]&&appear[1][1]&&appear[2][2]){
        ans="Yes";
      }
      if(appear[0][2]&&appear[1][1]&&appear[2][0]){
        ans="Yes";
      }
      cout<<ans;
      return 0;
   }
    
    
  


Compiler output:
a.cc: In function 'int main()':
a.cc:42:5: error: expected '}' at end of input
   42 |    }
      |     ^
a.cc:6:23: note: to match this '{'
    6 |   for(int i=0;i<3;i++){
      |                       ^
a.cc:42:5: error: expected '}' at end of input
   42 |    }
      |     ^
a.cc:5:11: note: to match this '{'
    5 | int main(){
      |           ^
Language: C++

#include<bits/stdc++.h>
using namespace std;
int a[3][3],b[10],n;
bool appear[3][3];
int main(){
  for(int i=0;i<3;i++){
    for(int j=0;j<3;j++){
      cin>>a[i][j];
    }
    cin>>n;
    for(int i=0;i<n;i++){
      cin>>b[i];
    }
    for(int i=0;i<n;i++){
      for(int j=0;j<n;j++){
        appear[i][j]=false;
        for(int k=0;k<n;k++){
          if(appear[i][j]==b[k]){
            appear[i][j]=true;
          }
        }
      }
    string ans="No";
    for(int i=0;i<3;i++)
      if(appear[i][0]&&appear[i][1]&&appear[i][2]){
        ans="Yes";
      }
    for(int i=0;i<3;i++){
      if(appear[0][i]&&appear[1][i]&&appear[2][i]){
        ans="Yes";
      }
      if(appear[0][0]&&appear[1][1]&&appear[2][2]){
        ans="Yes";
      }
      if(appear[0][2]&&appear[1][1]&&appear[2][0]){
        ans="Yes";
      }
      cout<<ans;
      return 0;
   }
    
    
  

Compiler output:
a.cc: In function 'int main()':
a.cc:40:5: error: expected '}' at end of input
   40 |    }
      |     ^
a.cc:14:25: note: to match this '{'
   14 |     for(int i=0;i<n;i++){
      |                         ^
a.cc:40:5: error: expected '}' at end of input
   40 |    }
      |     ^
a.cc:6:23: note: to match this '{'
    6 |   for(int i=0;i<3;i++){
      |                       ^
a.cc:40:5: error: expected '}' at end of input
   40 |    }
      |     ^
a.cc:5:11: note: to match this '{'
    5 | int main(){
      |           ^
Language: C++

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

int A[9];
int N;

int main() {

	rep(i, 9)cin >> A[i];
	cin >> N;
	rep(i, N) {
		int b;
		cin >> b;
		rep(i, 9) if (A[i] == b) A[i] = 0;
	}

	int judge = (A[0] + A[1] + A[2]) * (A[3] + A[4] + A[5]) *
		(A[6] + A[7] + A[8]) * (A[0] + A[3] + A[6]) * (A[1] + A[4] + A[7]) *
		(A[2] + A[5] + A[8]) * (A[0] + A[4] + A[8]) * (A[2] + A[4] + A[6]);

	if (judge == 0) cout << "Yes" << endl;
	else cout << "No" << endl;

}


Compiler output:
a.cc: In function 'int main()':
a.cc:9:13: error: 'i' was not declared in this scope
    9 |         rep(i, 9)cin >> A[i];
      |             ^
a.cc:9:9: error: 'rep' was not declared in this scope
    9 |         rep(i, 9)cin >> A[i];
      |         ^~~
Language: C++

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

int main () {
  
vector<vector<int>> bingo(3, vector<int>(3));  
for (int i = 0; i < 3; i++) {
for (int j = 0; j < 3; j++){
cin >> bingo.at(i).at(k);
}
}
  int N;
  cin >> N;
  vector<int> B(N);
  for (int k = 0; k < N; k++) {
  cin >> B[k];
  }
  for (int l = 0; l < N;l++) {
  for (int m = 0; m < 3;m++) {
  for (int n = 0; n < 3;n++) {
  if (B[l] == bingo.at(m).at(n)) {
  bingo.at(m).at(n) = -1;
  }
  }
  }
  }
  if (bingo[1][1] == bingo[1][2] == bingo[1][3] == -1) {
  cout << "Yes" << endl;
  }
  else if (bingo[2][1] == bingo[2][2] == bingo[2][3] == -1) {
  cout << "Yes" << endl;
  }
  else if (bingo[3][1] == bingo[3][2] == bingo[3][3] == -1) {
  cout << "Yes" << endl;
  }
  else if (bingo[1][1] == bingo[2][1] == bingo[3][1] == -1) {
  cout << "Yes" << endl;
  }
  else if (bingo[1][2] == bingo[2][2] == bingo[3][2] == -1) {
  cout << "Yes" << endl;
  }
  else if (bingo[1][3] == bingo[2][3] == bingo[3][3] == -1) {
  cout << "Yes" << endl;
  }
  else if (bingo[1][1] == bingo[2][2] == bingo[3][3] == -1) {
  cout << "Yes" << endl;
  }
  else if (bingo[1][3] == bingo[2][2] == bingo[3][1] == -1) {
  cout << "Yes" << endl;
  }
  else {
  cout << "No" << endl;
  }
}




Compiler output:
a.cc: In function 'int main()':
a.cc:10:23: error: 'k' was not declared in this scope
   10 | cin >> bingo.at(i).at(k);
      |                       ^
Language: C++

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

int main () {
  
vector<vector<int>> bingo(3, vector<int>(3));  
for (int i = 0; i < 3; i++) {
for (int j = 0; j < 3; i++){
cin >> bingo.at(i).at(k)
}
}
  int N;
  cin >> N;
  vector<int> B(N);
  for (int k = 0; k < N; i++) {
  cin >> B[k];
  }
  for (int l = 0; l < N;l++) {
  for (int m = 0; m < 3;m++) {
  for (int n = 0; n < 3;n++) {
  if (B[l] == bingo.at(m).at(n)) {
  bingo.at(m).at(n) = -1
  }
  }
  }
  }
  if (bingo[1][1] == bingo[1][2] == bingo[1][3] == -1) {
  cout << "Yes" << endl;
  }
  else if (bingo[2][1] == bingo[2][2] == bingo[2][3] == -1) {
  cout << "Yes" << endl;
  }
  else if (bingo[3][1] == bingo[3][2] == bingo[3][3] == -1) {
  cout << "Yes" << endl;
  }
  else if (bingo[1][1] == bingo[2][1] == bingo[3][1] == -1) {
  cout << "Yes" << endl;
  }
  else if (bingo[1][2] == bingo[2][2] == bingo[3][2] == -1) {
  cout << "Yes" << endl;
  }
  else if (bingo[1][3] == bingo[2][3] == bingo[3][3] == -1) {
  cout << "Yes" << endl;
  }
  else if (bingo[1][1] == bingo[2][2] == bingo[3][3] == -1) {
  cout << "Yes" << endl;
  }
  else if (bingo[1][3] == bingo[2][2] == bingo[3][1] == -1) {
  cout << "Yes" << endl;
  }
  else {
  cout << "No" << endl;
  }
}


Compiler output:
a.cc: In function 'int main()':
a.cc:10:23: error: 'k' was not declared in this scope
   10 | cin >> bingo.at(i).at(k)
      |                       ^
a.cc:16:26: error: 'i' was not declared in this scope
   16 |   for (int k = 0; k < N; i++) {
      |                          ^
a.cc:23:25: error: expected ';' before '}' token
   23 |   bingo.at(m).at(n) = -1
      |                         ^
      |                         ;
   24 |   }
      |   ~
Language: C

#include <stdio.h>
#include <string.h>
int main(void)
{
        int a[3][3],b[20],m,n,i,j=0,k=0,l=0,p=0;
        char s[1000];

        for(i=0; i<3; i++){
                for(j=0; j<3; j++)
                scanf("%d",&a[i][j]);
        }
        scanf("%d",&n);

        for(i=0; i<n; i++)      scanf("%d",&b[i]);
                
        for(i=0; i<3; i++){ p=0; //ヨコline check
                for(j=0; j<3; j++){ 
                        for(k=0; k<n; k++)
                                if(a[i][j]==b[k]) p++;
                        if(p==3){ printf("Yes\n"); return 0;
                }
        }
        
        for(i=0; i<3; i++){ p=0; //タテline check
                for(j=0; j<3; j++){ 
                        for(k=0; k<n; k++)
                                if(a[j][i]==b[k]) p++;
                        if(p==3){ printf("Yes\n"); return 0;}
                }
        }

                while(a[1][1]==b[i]){ i++;
                        if(i==111){ printf("No\n"); return 0;}
                }

        for(i=0; i<3; i++){
                for(k=0; k<n; k++)
                if(a[i][i]==b[k]) p++;
                if(p==3){ printf("Yes\n"); return 0;}
        }
        for(i=0; i<3; i++){
                for(k=0; k<n; k++)
                if(a[2-i][i]==b[k]) p++;
                if(p==3){ printf("Yes\n");return 0;}
        }

          printf("No\n");
          return 0;
}

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

#include <iostream>
using namespace std;
int main(void){
    bool Bingo[3][3];
  	int Card[3][3];
  	for ( int i = 0; i < 3; i++ ){
    	for ( int j = 0; j < 3; j++ ) Bingo[i][j] = false;
    }
  	cin >> Card[0][0] >> Card[0][1] >> Card[0][2];
    cin >> Card[1][0] >> Card[1][1] >> Card[1][2];
    cin >> Card[2][0] >> Card[2][1] >> Card[2][2];
  	int N, b;
  	cin >> N;
  	for ( int i = 0; i < N; i++ ){
      	cin >> b;
      	for ( int i = 0; i < 3; i++ ){
    		for ( int j = 0; j < 3; j++ ){
            	if ( b == Card[i][j] ) Bingo[i][j] = ture;
           	}
    	}
    }
  	bool Flag = false;
  	if ( Bingo[0][0] && Bingo[0][1] && Bingo[0][2] ) Flag = true;
  	if ( Bingo[1][0] && Bingo[1][1] && Bingo[1][2] ) Flag = true;
  	if ( Bingo[2][0] && Bingo[2][1] && Bingo[2][2] ) Flag = true;
  	if ( Bingo[0][0] && Bingo[1][0] && Bingo[2][0] ) Flag = true;
  	if ( Bingo[0][1] && Bingo[1][1] && Bingo[2][1] ) Flag = true;
  	if ( Bingo[0][2] && Bingo[1][2] && Bingo[2][2] ) Flag = true;
 	if ( Bingo[0][0] && Bingo[1][1] && Bingo[2][2] ) Flag = true;
  	if ( Bingo[0][2] && Bingo[1][1] && Bingo[2][0] ) Flag = true;
  	if ( Flag ) cout << "Yes" << endl;
  	else cout << "No" << endl;
	return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:18:54: error: 'ture' was not declared in this scope
   18 |                 if ( b == Card[i][j] ) Bingo[i][j] = ture;
      |                                                      ^~~~
Language: C++

//C言語では厳しいです。
#include<stdio.h>
int main(void){
  int n,a[3][3],b[10];
  bool appear[3][3];
  for(int loop=0;loop<3;loop++){
    for(int loop2=0;loop2<3;loop2++0){
      scanf("%d",&a[loop][loop2]);
    }
  }
  scanf("%d",&n);
  for(int loop=0;loop<n;loop++){
    scanf("%d",&b[loop]);
  }
  for(int loop=0;loop<n;loop++){
    for(int loop2=0;loop2<n;loop2++){
      appear[loop][loop2]=false;
      for(int loop3=0;loop3<n;loop3++){
        if(a[loop][loop2]==b[loop3]){
          appear[loop][loop2]=true;
        }
      }
    }
  }
  char *ans="No";
  for(int loop=0;loop<3;loop++){
    if(appear[loop][0] && appear[loop][1] && appear[loop][2]){
      ans="Yes";
    }
  }
  for(int loop=0;loop<3;loop++){
    if(appear[0][loop] && appear[1][loop] && appear[2][loop]){
      ans="Yes";
    }
  }
  if(appear[0][0] && appear[1][1] && appear[2][2]){
    ans="Yes";
  }
  if(appear[0][2] && appear[1][1] && appear[2][0]){
    ans="Yes";
  }
  printf("%s\n",ans);
  return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:7:36: error: expected ')' before numeric constant
    7 |     for(int loop2=0;loop2<3;loop2++0){
      |        ~                           ^
      |                                    )
a.cc:7:37: error: expected ';' before ')' token
    7 |     for(int loop2=0;loop2<3;loop2++0){
      |                                     ^
      |                                     ;
a.cc:25:13: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings]
   25 |   char *ans="No";
      |             ^~~~
a.cc:28:11: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings]
   28 |       ans="Yes";
      |           ^~~~~
a.cc:33:11: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings]
   33 |       ans="Yes";
      |           ^~~~~
a.cc:37:9: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings]
   37 |     ans="Yes";
      |         ^~~~~
a.cc:40:9: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings]
   40 |     ans="Yes";
      |         ^~~~~
Language: C

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

Compiler output:
main.c: In function 'main':
main.c:14:15: error: subscripted value is neither array nor pointer nor vector
   14 |    {if(c[j]==b[i]) {d[i]=1;}
      |               ^
Language: C

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

Compiler output:
main.c: In function 'main':
main.c:14:14: error: subscripted value is neither array nor pointer nor vector
   14 |    {if(c[j]=b[i]) {d[i]=1;}
      |              ^
Language: C

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

Compiler output:
main.c: In function 'main':
main.c:14:14: error: subscripted value is neither array nor pointer nor vector
   14 |    {if(c[j]=b[i]) {d[i]=1;}
      |              ^
Language: C

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

Compiler output:
main.c: In function 'main':
main.c:14:15: error: subscripted value is neither array nor pointer nor vector
   14 |    {if(c[j]==b[i]) {d[i]==1;}
      |               ^
Language: C++

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

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

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

Compiler output:
a.cc: In function 'int main()':
a.cc:14:15: error: invalid types 'int[int]' for array subscript
   14 |    {if(c[j]==b[i]) {d[i]=1;}
      |               ^
Language: C

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

Compiler output:
main.c: In function 'main':
main.c:14:15: error: subscripted value is neither array nor pointer nor vector
   14 |    {if(c[j]==b[i]) {d[i]==1;}
      |               ^
Language: C

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

Compiler output:
main.c: In function 'main':
main.c:14:15: error: subscripted value is neither array nor pointer nor vector
   14 |    {if(c[j]==b[i]) d[i]=1;
      |               ^