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

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

static const int SIZE=3;
static const int MAX_A=100;
static const int MAX_N=10;

struct bingo{
    int val;
    bool flag;
};

int get_input( bingo A[SIZE][SIZE],int *N,int *b){
    int i=0,j=0,k=-1;
    int val;

    while(cin >> val){
        if(i<SIZE){
            A[i][j]={val,false};
            if(j<2){
                j++;
            }else{
                i++;
                j=0;
            }
            continue;
        }else if(k==-1){
            *N=val;
            k++;
        }else{
            b[k]=val;
            k++;
            if(k>MAX_N) return -1;
        }
    }
    
    return 0;
}

int chk_num( bingo A[SIZE][SIZE],int num){
    int i,j;
    
    for(i=0;i<SIZE;i++){
        for(j=0;j<SIZE;j++){
            if(A[i][j].val==num){
                A[i][j].flag=true;
                return 0;
            }
        }
    }
    return -1;
}

void set_flag( bingo A[SIZE][SIZE],int N,int *b){
    int i;

    for(i=0;i<N;i++){
        chk_num(A,b[i]);
    }
}

int chk_bingo(bingo A[SIZE][SIZE]){
    int i,j;
    
    // よこ
    for(i=0;i<SIZE;i++){
        for(j=0;j<SIZE;j++){
            if(A[i][j].flag == false) break;
        }
        if(j==SIZE) return 0; // ビンゴ
    }
    
    // たて
    for(i=0;i<SIZE;i++){
        for(j=0;j<SIZE;j++){
            if(A[j][i].flag == false) break;
        }
        if(j==SIZE) return 0; // ビンゴ
    }
    
    //ななめ
    for(i=0;i<SIZE;i++){
        if(A[i][i].flag == false) break;
    }
    if(i==SIZE) return 0; // ビンゴ
    for(i=0;i<SIZE;i++){
        if(A[i][SIZE-i-1].flag == false) break;
    }
    if(i==SIZE) return 0; // ビンゴ
    
    return -1; //ビンゴではない
}

void disp( bingo A[SIZE][SIZE],int N,int *b){
    int i,j;
    
    for(i=0;i<SIZE;i++){
        for(j=0;j<SIZE;j++){
            printf("A[%d][%d]=(%d,%d) ",i,j,A[i][j].val,A[i][j].flag);
        }
        printf("\n");
    }
    
    printf("N=%d\n",N);
    
    for(i=0;i<N;i++){
        printf("%d\n",b[i]);
    }
}

int main(void){
    bingo A[SIZE][SIZE];
    int N;
    int b[MAX_N];
    int rtn;
    
    rtn=get_input(A,&N,b);
    if(rtn==-1){
        std::cout << "NG : get_input" << endl;
        return -1;
    }

//    disp(A,N,b);
    set_flag(A,N,b);
//printf("=================\n");
//    disp(A,N,b);

    rtn=chk_bingo(A);
    if(rtn==0) printf("Yes\n");
    else printf("No\n");

    return 0;
}

Compiler output:
main.c:1:10: fatal error: iostream: No such file or directory
    1 | #include <iostream>
      |          ^~~~~~~~~~
compilation terminated.
Language: C

#include<stdio.h>
int main()
{
  int a[3][3],b[n],i,j,p,flag=0;
  for(i=0;i<3;i++)
    for(j=0;j<3;j++)
      scanf("%d",&a[i][j]);
  scanf("%d",&n);
  for(p=0;p<n;p++)
    scanf("%d",&b[p]);
  for(i=0;i<3;i++)
  {
    for(j=0;j<3;j++)
    {
      for(p=o;p<n;p++)
      {
        if(b[p]==a[i][j])
             flag=1;
      }
    }
  }
  if(flag==1)
    printf("Yes");
  else
    printf("N0");
  return 0;
           

Compiler output:
main.c: In function 'main':
main.c:4:17: error: 'n' undeclared (first use in this function)
    4 |   int a[3][3],b[n],i,j,p,flag=0;
      |                 ^
main.c:4:17: note: each undeclared identifier is reported only once for each function it appears in
main.c:15:13: error: 'o' undeclared (first use in this function)
   15 |       for(p=o;p<n;p++)
      |             ^
main.c:26:3: error: expected declaration or statement at end of input
   26 |   return 0;
      |   ^~~~~~
Language: C++

#include<iostream>
#include<map>
#include<cstring>
using namespace std;
typedef long long ll;
int main()
{
    int a[5][5];
    int n;
    for(int i=1; i<=3; i++)
    {
        for(int j=1; j<=3; j++)
        {
            cin>>a[i][j];
        }
    }
    cin>>n;
    int k;
    int temp=0;
    for(int s=0; s<n; i++)
    {
        cin>>k;
        for(int i=1; i<=3; i++)
        {
            for(int j=1; j<=3; j++)
            {
                if(a[i][j]==k)
                    a[i][j]=0;
            }
        }
    }
    for(int i=1; i<=3; i++)
    {
        if(a[i][1]==0&&a[i][2]==0&&a[i][3]==0)
        {
            temp=1;
            break;
        }
        if(a[1][i]==0&&a[i][2]==0&&a[i][3]==0)
        {
            temp=1;
            break;
        }
    }
    if(a[1][1]==0&&a[2][2]==0&&a[3][3]==0)
        temp=1;
    if(a[1][3]==0&&a[2][2]==0&&a[3][1]==0)
        temp=1;
    if(temp==1)
        cout<<"Yes"<<endl;
    else
        cout<<"No"<<endl;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:20:23: error: 'i' was not declared in this scope
   20 |     for(int s=0; s<n; i++)
      |                       ^
Language: C++

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

int main()
{
  int ar[3][3];
  map<int,pair<int,int>> m;
  for(int i=0;i<3;i++)
  {
    for(int j=0;j<3;j++)
    {
      cin >> ar[i][j];
      m[ar[i][j]] = {i,j};
    }
  }
  int n;
  cin >> n;
  v[3][3] = {false};
  for(int i=0;i<n;i++)
  {
    int x;
    cin >> x;
    if(m.count(x))
    {
      v[m[x].first][m[x].second] = true;
    }
  }
  bool hit = false;
  // row
    if(v[0][0] && v[0][1] && v[0][2]) hit = true;
    if(v[1][0] && v[1][1] && v[1][2]) hit = true;
    if(v[2][0] && v[2][1] && v[2][2]) hit = true;
  // col
    if(v[0][0] && v[1][0] && v[2][0]) hit = true;
    if(v[0][1] && v[1][1] && v[2][1]) hit = true;
    if(v[0][2] && v[1][2] && v[2][2]) hit = true;
  // diag
  	if(v[0][0] && v[1][1] && v[2][2]) hit = true;
  	if(v[2][0] && v[1][1] && v[0][2]) hit = true;
  
  if(hit) cout << "Yes";
  else cout << "No";
  
}
  

Compiler output:
a.cc: In function 'int main()':
a.cc:18:3: error: 'v' was not declared in this scope
   18 |   v[3][3] = {false};
      |   ^
Language: C++

#include<stdio.h>
int main(int argc, char *argv[])
{
	int n,m,i,j,k,l;
	int ara[3][3];
	int str[10];
	for(i=0;i<3;i++){
			for(j=0;j<3;j++){
				scanf("%d",&ara[i][j]);
			}
	}
	scanf("%d",&n);
	for(k=0;k<n;k++){
		scanf("%d",&str[k]);
		for(i=0;i<3;i++){
			for(j=0;j<3;j++){
				if(ara[i][j]==str[k])ara[i][j]=0;
			}
		}
	}
	
    if(ara[0][0]==0 && ara[0][1]==0 && ara[0][2]==0)printf("yes");
    
    else  if(ara[1][0]==0 && ara[1][1]==0 && ara[1][2]==0)printf("yes");
    
    else  if(ara[2][0]==0 && ara[2][1]==0 && ara[2][2]==0)printf("yes");
    
    else  if(ara[0][0]==0 && ara[1][0]==0 && ara[2][0]==0)printf("yes");
    
    else  if(ara[0][1]==0 && ara[1][1]==0 && ara[2][1]==0)printf("yes");
    
    else  if(ara[0][2]==0 && ara[1][2]==0 && ara[2][2]==0)printf("yes");
    
    else  if(ara[0][0]==0 && ara[1][1]==0 && ara[2][2]==0)printf("yes");
    
    else  if(ara[0][2]==0 && ara[1][1]==0 && ara[2][0]==0)printf("Yes");
    
	else printf("No");
		


Compiler output:
a.cc: In function 'int main(int, char**)':
a.cc:38:27: error: expected '}' at end of input
   38 |         else printf("No");
      |                           ^
a.cc:3:1: note: to match this '{'
    3 | {
      | ^
Language: C++

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

int main(){
 vector <int> vec(9);
 int N;
 int x;
    
 for(int i = 0; i<9 ; i++){
   cin >> vec.at(i);
 }
    cin >> N;
 for(int i = 0; i<N ;i++){
   cin >> x;
   for(int j = 0; j < 9 ;j++){
     if(x == vec.at(j)){
       vec.at(j) = 'a';
     }
   }
 }
    if(vec.at(1) == 'a' && vec.at(2) == 'a' && vec.at(3) == 'a'){
        cout << "Yes" << endl;
    }
    
    else if(vec.at(4) == 'a' && vec.at(5) == 'a' && vec.at(6) == 'a'){
     cout << "Yes" << endl;
    }
    
    else if(vec.at(7) == 'a' && vec.at(8) == 'a' && vec.at(9) == 'a'){
        cout << "Yes" << endl;
    }
    
    else if(vec.at(1) == 'a' && vec.at(4) == 'a' && vec.at(7) == 'a'){
        cout << "Yes" << endl;
    }
    
    else if(vec.at(2) == 'a' && vec.at(5) == 'a' && vec.at(8) == 'a'){
        cout << "Yes" << endl;
    }
    
    else if(vec.at(3) == 'a' && vec.at(6) == 'a' && vec.at(9) == 'a'){
        cout << "Yes" << endl;
    }
    
    else if(vec.at(1) == 'a' && vec.at(5) == 'a' && vec.at(9) == 'a'){
        cout << "Yes" << endl;
    }
    else if(vec.at(3) == 'a' && vec.at(5) == 'a' && vec.at(7) == 'a'){
        cout << "Yes" << endl;
    }
    else {
        cout << "No" << endl;
    }
}


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

#include <bits/stdc++.h>

using namespace std;

int main() {
  int a, b, c;
  int d, e, f;
  int g, h, i;
  
  int N;
  
  cin >> a >> b >> c;
  cin >> d >> e >> f;
  cin >> g >> h >> i;
  
  cin >> N;
  
  for(int i = 0 ; i < N ; i++) {
    int x;
    cin >> x;
  }
  
  int x;
  if (b != x && d != x && e != x && f != x && h != x) {
    cout << "No" << endl;
    
  else if(a == x && b == x && c == x) {
    cout << "Yes" << endl;
  }
  
  else if(d == x && e == x && f == x) {
    cout << "Yes" << endl;
  }
  
  else if(g == x && h == x && i == x) {
    cout << "Yes" << endl;
  }
  
  else if(a == x && d == x && g == x) {
    cout << "Yes" << endl;
  }
  
  else if(b == x && e == x && h == x) {
    cout << "Yes" << endl;
  }
  
  else if(c == x && f == x && i == x) {
    cout << "Yes" << endl;
  }
  
  else if(a == x && e == x && i == x) {
    cout << "Yes" << endl;
  }
  
  else if(c == x && e == x && g == x) {
    cout << "Yes" << endl;
  }
}


Compiler output:
a.cc: In function 'int main()':
a.cc:27:3: error: expected '}' before 'else'
   27 |   else if(a == x && b == x && c == x) {
      |   ^~~~
a.cc:24:55: note: to match this '{'
   24 |   if (b != x && d != x && e != x && f != x && h != x) {
      |                                                       ^
Language: C++

#include <bits/stdc++.h>

using namespace std;

int main() {
  int a, b, c;
  int d, e, f;
  int g, h, i;
  
  int N;
  
  cin >> a >> b >> c;
  cin >> d >> e >> f;
  cin >> g >> h >> i;
  
  cin >> N;
  
  for(int i = 0 ; i < N ; i++) {
    int x;
    cin >> x;
  }
  
  if(a == x && b == x && c == x) {
    cout << "Yes" << endl;
  }
  
  if(d == x && e == x && f == x) {
    cout << "Yes" << endl;
  }
  
  if(g == x && h == x && i == x) {
    cout << "Yes" << endl;
  }
  
  if(a == x && d == x && g == x) {
    cout << "Yes" << endl;
  }
  
  if(b == x && e == x && h == x) {
    cout << "Yes" << endl;
  }
  
  if(c == x && f == x && i == x) {
    cout << "Yes" << endl;
  }
  
  if(a == x && e == x && i == x) {
    cout << "Yes" << endl;
  }
  
  if(c == x && e == x && g == x) {
    cout << "Yes" << endl;
  }
  
  else {
    cout << "No" << endl;
  }
}


Compiler output:
a.cc: In function 'int main()':
a.cc:23:11: error: 'x' was not declared in this scope
   23 |   if(a == x && b == x && c == x) {
      |           ^
a.cc:27:11: error: 'x' was not declared in this scope
   27 |   if(d == x && e == x && f == x) {
      |           ^
a.cc:31:11: error: 'x' was not declared in this scope
   31 |   if(g == x && h == x && i == x) {
      |           ^
a.cc:35:11: error: 'x' was not declared in this scope
   35 |   if(a == x && d == x && g == x) {
      |           ^
a.cc:39:11: error: 'x' was not declared in this scope
   39 |   if(b == x && e == x && h == x) {
      |           ^
a.cc:43:11: error: 'x' was not declared in this scope
   43 |   if(c == x && f == x && i == x) {
      |           ^
a.cc:47:11: error: 'x' was not declared in this scope
   47 |   if(a == x && e == x && i == x) {
      |           ^
a.cc:51:11: error: 'x' was not declared in this scope
   51 |   if(c == x && e == x && g == x) {
      |           ^
Language: C++

#include <bits/stdc++.h>

using namespace std;

int main() {
  int a, b, c;
  int d, e, f;
  int g, h, i;
  
  int N;
  
  cin >> a >> b >> c;
  cin >> d >> e >> f;
  cin >> g >> h >> i;
  
  cin >> N;
  
  for(int i = 0 ; i < N ; i++) {
    int x;
    cin >> x;
  }
  
  if(a = x && b = x && c = x) {
    cout << "Yes" << endl;
  }
  
  if(d = x && e = x && f = x) {
    cout << "Yes" << endl;
  }
  
  if(g = x && h = x && i = x) {
    cout << "Yes" << endl;
  }
  
  if(a = x && d = x && g = x) {
    cout << "Yes" << endl;
  }
  
  if(b = x && e = x && h = x) {
    cout << "Yes" << endl;
  }
  
  if(c = x && f = x && i = x) {
    cout << "Yes" << endl;
  }
  
  if(a = x && e = x && i = x) {
    cout << "Yes" << endl;
  }
  
  if(c = x && e = x && g = x) {
    cout << "Yes" << endl;
  }
  
  else {
    cout << "No" << endl;
  }
}


Compiler output:
a.cc: In function 'int main()':
a.cc:23:10: error: 'x' was not declared in this scope
   23 |   if(a = x && b = x && c = x) {
      |          ^
a.cc:27:10: error: 'x' was not declared in this scope
   27 |   if(d = x && e = x && f = x) {
      |          ^
a.cc:31:10: error: 'x' was not declared in this scope
   31 |   if(g = x && h = x && i = x) {
      |          ^
a.cc:35:10: error: 'x' was not declared in this scope
   35 |   if(a = x && d = x && g = x) {
      |          ^
a.cc:39:10: error: 'x' was not declared in this scope
   39 |   if(b = x && e = x && h = x) {
      |          ^
a.cc:43:10: error: 'x' was not declared in this scope
   43 |   if(c = x && f = x && i = x) {
      |          ^
a.cc:47:10: error: 'x' was not declared in this scope
   47 |   if(a = x && e = x && i = x) {
      |          ^
a.cc:51:10: error: 'x' was not declared in this scope
   51 |   if(c = x && e = x && g = x) {
      |          ^
Language: C++

#include <bits/stdc++.h>

using namespace std;

int main() {
  int a, b, c;
  int d, e, f;
  int g, h, i;
  
  int N;
  
  cin >> a >> b >> c;
  cin >> d >> e >> f;
  cin >> g >> h >> i;
  
  cin >> N;
  
  for(int i = 0 ; i < N ; i++) {
    int x;
    cin >> x;
  }
  
  if(a = x && b = X && c = x) {
    cout << "Yes" << endl;
  }
  
  if(d = x && e = X && f = x) {
    cout << "Yes" << endl;
  }
  
  if(g = x && h = x && i = x) {
    cout << "Yes" << endl;
  }
  
  if(a = x && d = x && g = x) {
    cout << "Yes" << endl;
  }
  
  if(b = x && e = x && h = x) {
    cout << "Yes" << endl;
  }
  
  if(c = x && f = x && i = x) {
    cout << "Yes" << endl;
  }
  
  if(a = x && e = x && i = x) {
    cout << "Yes" << endl;
  }
  
  if(c = x && e = x && g = x) {
    cout << "Yes" << endl;
  }
  
  else {
    cout << "No" << endl;
  }
}


Compiler output:
a.cc: In function 'int main()':
a.cc:23:10: error: 'x' was not declared in this scope
   23 |   if(a = x && b = X && c = x) {
      |          ^
a.cc:23:19: error: 'X' was not declared in this scope
   23 |   if(a = x && b = X && c = x) {
      |                   ^
a.cc:27:10: error: 'x' was not declared in this scope
   27 |   if(d = x && e = X && f = x) {
      |          ^
a.cc:27:19: error: 'X' was not declared in this scope
   27 |   if(d = x && e = X && f = x) {
      |                   ^
a.cc:31:10: error: 'x' was not declared in this scope
   31 |   if(g = x && h = x && i = x) {
      |          ^
a.cc:35:10: error: 'x' was not declared in this scope
   35 |   if(a = x && d = x && g = x) {
      |          ^
a.cc:39:10: error: 'x' was not declared in this scope
   39 |   if(b = x && e = x && h = x) {
      |          ^
a.cc:43:10: error: 'x' was not declared in this scope
   43 |   if(c = x && f = x && i = x) {
      |          ^
a.cc:47:10: error: 'x' was not declared in this scope
   47 |   if(a = x && e = x && i = x) {
      |          ^
a.cc:51:10: error: 'x' was not declared in this scope
   51 |   if(c = x && e = x && g = x) {
      |          ^
Language: C++

#include <bits/stdc++.h>

using namespace std;

int main() {
  int a, b, c;
  int d, e, f;
  int g, h, i;
  
  int N;
  
  cin >> a >> b >> c;
  cin >> d >> e >> f;
  cin >> g >> h >> i;
  
  cin >> N;
  
  for(int i = 0 ; i < N ; i++) {
    int x;
    cin >> x;
  }
  
  if(a = x && b = X && c = x) {
    cout << "Yes" << endl;
  }
  
  if(d = x && e = X && f = x) {
    cout << "Yes" << endl;
  }
  
  if(g = x && h = X && i = x) {
    cout << "Yes" << endl;
  }
  
  if(a = x && d = X && g = x) {
    cout << "Yes" << endl;
  }
  
  if(b = x && e = X && h = x) {
    cout << "Yes" << endl;
  }
  
  if(c = x && f = X && i = x) {
    cout << "Yes" << endl;
  }
  
  if(a = x && e = X && i = x) {
    cout << "Yes" << endl;
  }
  
  if(c = x && e = X && g = x) {
    cout << "Yes" << endl;
  }
  
  else {
    cout << "No" << endl;
  }
}


Compiler output:
a.cc: In function 'int main()':
a.cc:23:10: error: 'x' was not declared in this scope
   23 |   if(a = x && b = X && c = x) {
      |          ^
a.cc:23:19: error: 'X' was not declared in this scope
   23 |   if(a = x && b = X && c = x) {
      |                   ^
a.cc:27:10: error: 'x' was not declared in this scope
   27 |   if(d = x && e = X && f = x) {
      |          ^
a.cc:27:19: error: 'X' was not declared in this scope
   27 |   if(d = x && e = X && f = x) {
      |                   ^
a.cc:31:10: error: 'x' was not declared in this scope
   31 |   if(g = x && h = X && i = x) {
      |          ^
a.cc:31:19: error: 'X' was not declared in this scope
   31 |   if(g = x && h = X && i = x) {
      |                   ^
a.cc:35:10: error: 'x' was not declared in this scope
   35 |   if(a = x && d = X && g = x) {
      |          ^
a.cc:35:19: error: 'X' was not declared in this scope
   35 |   if(a = x && d = X && g = x) {
      |                   ^
a.cc:39:10: error: 'x' was not declared in this scope
   39 |   if(b = x && e = X && h = x) {
      |          ^
a.cc:39:19: error: 'X' was not declared in this scope
   39 |   if(b = x && e = X && h = x) {
      |                   ^
a.cc:43:10: error: 'x' was not declared in this scope
   43 |   if(c = x && f = X && i = x) {
      |          ^
a.cc:43:19: error: 'X' was not declared in this scope
   43 |   if(c = x && f = X && i = x) {
      |                   ^
a.cc:47:10: error: 'x' was not declared in this scope
   47 |   if(a = x && e = X && i = x) {
      |          ^
a.cc:47:19: error: 'X' was not declared in this scope
   47 |   if(a = x && e = X && i = x) {
      |                   ^
a.cc:51:10: error: 'x' was not declared in this scope
   51 |   if(c = x && e = X && g = x) {
      |          ^
a.cc:51:19: error: 'X' was not declared in this scope
   51 |   if(c = x && e = X && g = x) {
      |                   ^
Language: C++

#include <bits/stdc++.h>
using namespace std;
 
int main() {
	int a[3][3];
  	for (i=0 ; i < 3; i++){
      for(j = 0; j < 3 ; j++){
        cin >> a[i][j];
      }
    }
  int N;
  cin >> N;
  
  bool b[3][3];
  int x;
  for (i=0 ; i < 3; i++){
      for(j = 0; j < 3 ; j++){
        cin >> x;
        if(a[i][j]==x)
          b[i][j] = true;
        else
          b[i][j] = false;
      }
    }
  
  string answer = "No";
  bool  judge = true;
  for ( j = 0; j < 3; j++){
 	for (i = 0; i<3; i++){
    	judge = (judge == b[i][j])
  	}
    if(judge == true)
      answer = "Yes";
  }
  judge = true;
  
  for ( j = 0; j < 3; j++){
 	for (i = 0; i<3; i++){
    	judge = (judge == b[j][i])
  	}
    if(judge == true)
      answer = "Yes";
  }
   
  if(b[0][0] && b[1][1] && b[2][2])
    answer = "Yes";
  
  if(b[0][2] && b[1][1] && b[2][0])
    answer  = "Yes";
  cout << answer << endl;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:6:14: error: 'i' was not declared in this scope
    6 |         for (i=0 ; i < 3; i++){
      |              ^
a.cc:7:11: error: 'j' was not declared in this scope
    7 |       for(j = 0; j < 3 ; j++){
      |           ^
a.cc:16:8: error: 'i' was not declared in this scope
   16 |   for (i=0 ; i < 3; i++){
      |        ^
a.cc:17:11: error: 'j' was not declared in this scope
   17 |       for(j = 0; j < 3 ; j++){
      |           ^
a.cc:28:9: error: 'j' was not declared in this scope
   28 |   for ( j = 0; j < 3; j++){
      |         ^
a.cc:29:14: error: 'i' was not declared in this scope
   29 |         for (i = 0; i<3; i++){
      |              ^
a.cc:37:9: error: 'j' was not declared in this scope
   37 |   for ( j = 0; j < 3; j++){
      |         ^
a.cc:38:14: error: 'i' was not declared in this scope
   38 |         for (i = 0; i<3; i++){
      |              ^
Language: C++

#include <bits/stdc++.h>
using namespace std;
 
int main() {
	int a[3][3];
  	for (i=0 ; i < 3; i++){
      for(j = 0; j < 3 ; j++;){
        cin >> a[i][j];
      }
    }
  int N;
  cin >> N;
  
  bool b[3][3];
  int x;
  for (i=0 ; i < 3; i++){
      for(j = 0; j < 3 ; j++;){
        cin >> x;
        if(a[i][j]==x)
          b[i][j] = true;
        else
          b[i][j] = false;
      }
    }
  
  string answer = "No";
  bool  judge = true;
  for ( j = 0; j < 3; j++){
 	for (i = 0; i<3; i++){
    	judge = (judge == b[i][j])
  	}
    if(judge == true)
      answer = "Yes";
  }
  judge = true;
  
  for ( j = 0; j < 3; j++){
 	for (i = 0; i<3; i++){
    	judge = (judge == b[j][i])
  	}
    if(judge == true)
      answer = "Yes";
  }
   
  if(b[0][0] && b[1][1] && b[2][2])
    answer = "Yes";
  
  if(b[0][2] && b[1][1] && b[2][0])
    answer  = "Yes";
  cout << answer << endl;
}
             
    
  

Compiler output:
a.cc: In function 'int main()':
a.cc:6:14: error: 'i' was not declared in this scope
    6 |         for (i=0 ; i < 3; i++){
      |              ^
a.cc:7:11: error: 'j' was not declared in this scope
    7 |       for(j = 0; j < 3 ; j++;){
      |           ^
a.cc:7:29: error: expected ')' before ';' token
    7 |       for(j = 0; j < 3 ; j++;){
      |          ~                  ^
      |                             )
a.cc:7:30: error: expected primary-expression before ')' token
    7 |       for(j = 0; j < 3 ; j++;){
      |                              ^
a.cc:16:8: error: 'i' was not declared in this scope
   16 |   for (i=0 ; i < 3; i++){
      |        ^
a.cc:17:11: error: 'j' was not declared in this scope
   17 |       for(j = 0; j < 3 ; j++;){
      |           ^
a.cc:17:29: error: expected ')' before ';' token
   17 |       for(j = 0; j < 3 ; j++;){
      |          ~                  ^
      |                             )
a.cc:17:30: error: expected primary-expression before ')' token
   17 |       for(j = 0; j < 3 ; j++;){
      |                              ^
a.cc:28:9: error: 'j' was not declared in this scope
   28 |   for ( j = 0; j < 3; j++){
      |         ^
a.cc:29:14: error: 'i' was not declared in this scope
   29 |         for (i = 0; i<3; i++){
      |              ^
a.cc:37:9: error: 'j' was not declared in this scope
   37 |   for ( j = 0; j < 3; j++){
      |         ^
a.cc:38:14: error: 'i' was not declared in this scope
   38 |         for (i = 0; i<3; i++){
      |              ^
Language: C++

#include<iostream>
#include<cstdio>
using namespace std;
int main(){
  int A[3][3];
  int N;
  int b;
  for(int i=0;i<3;i++)
    for(int j=0;j<3;j++)
      cin>>A[i][j];
  cin>>N;
  for(int k=0;k<N;k++){
    cin>>b;
    for(int i=0;i<3;i++)
      for(int j=0;j<3;j++)
        if(A[i][j]==b)
          A[i][j]=0;
    if(A[0][0]+A[0][1]+A[0][2]=0||A[1][0]+A[1][1]+A[1][2]=0||A[2][0]+A[2][1]+A[2][2]=0||A[0][0]+A[1][0]+A[2][0]=0||A[0][1]+A[1][1]+A[2][1]=0||A[0][2]+A[1][2]+A[2][2]=0||A[0][0]+A[1][1]+A[2][2]=0||A[0][2]+A[1][1]+A[2][0]=0)
      cout<<"Yes"<<endl;
    else
      cout<<"No"<<endl;
  }
}

Compiler output:
a.cc: In function 'int main()':
a.cc:18:195: error: lvalue required as left operand of assignment
   18 |     if(A[0][0]+A[0][1]+A[0][2]=0||A[1][0]+A[1][1]+A[1][2]=0||A[2][0]+A[2][1]+A[2][2]=0||A[0][0]+A[1][0]+A[2][0]=0||A[0][1]+A[1][1]+A[2][1]=0||A[0][2]+A[1][2]+A[2][2]=0||A[0][0]+A[1][1]+A[2][2]=0||A[0][2]+A[1][1]+A[2][0]=0)
      |                                                                                                                                                                                                  ~^~~~~~~~~~~~~~~~~~~~~~~~~
Language: C

#include <stdio.h>



int main()
{
	int y,x,z,b,N,A[3][3], B[3][3];
	
	for (x = 0; x <= 2; x++)
	{
		scanf("%d %d %d", &A[x][0], &A[x][1], &A[x][2]);
	}
	scanf("%d", &N);
	for (y = 1; y <= N; y++) 
	{
		scanf("%d", &b);
		for (x = 0; x <= 2; x++)
		{
			for (z = 0; z <= 2; z++)
			{
				if (b == A[x][z]) 
				{
					B[x][z] = 1;
				}
			}
		}
	}
	for (x = 0; x <= 2; x++)
	{
		if (B[x][0] & B[x][1] & B[x][2] == 1 or B[0][x] & B[1][x] & B[2][x] == 1 or

			B[0][0] & B[1][1] & B[2][2] == 1 or B[0][2] & B[1][1] & B[2][1] == 1) 
		{
			printf("Yes");
			N = 0;
			break;
			
		}
		
		
	}
	if (N != 0)printf("No");
	


	
	return 0;
}

Compiler output:
main.c: In function 'main':
main.c:30:53: error: expected ')' before 'or'
   30 |                 if (B[x][0] & B[x][1] & B[x][2] == 1 or B[0][x] & B[1][x] & B[2][x] == 1 or
      |                    ~                                ^~~
      |                                                     )
Language: C

#include <stdio.h>



int main()
{
	int y,x,z,b,N,A[3][3];
	bool B[3][3];
	for (x = 0; x <= 2; x++)
	{
		scanf("%d %d %d", &A[x][0], &A[x][1], &A[x][2]);
	}
	scanf("%d", &N);
	for (y = 1; y <= N; y++) 
	{
		scanf("%d", &b);
		for (x = 0; x <= 2; x++)
		{
			for (z = 0; z <= 2; z++)
			{
				if (b == A[x][z]) 
				{
					B[x][z] = true;
				}
			}
		}
	}
	for (x = 0; x <= 2; x++)
	{
		if (B[x][0] & B[x][1] & B[x][2] == true or B[0][x] & B[1][x] & B[2][x] == true or

			B[0][0] & B[1][1] & B[2][2] == true or B[0][2] & B[1][1] & B[2][1] == true) 
		{
			printf("Yes");
			break;
			
		}
		
	}
	printf("No");


	
	return 0;
}

Compiler output:
main.c: In function 'main':
main.c:8:9: error: unknown type name 'bool'
    8 |         bool B[3][3];
      |         ^~~~
main.c:2:1: note: 'bool' is defined in header '<stdbool.h>'; this is probably fixable by adding '#include <stdbool.h>'
    1 | #include <stdio.h>
  +++ |+#include <stdbool.h>
    2 | 
main.c:23:51: error: 'true' undeclared (first use in this function)
   23 |                                         B[x][z] = true;
      |                                                   ^~~~
main.c:23:51: note: 'true' is defined in header '<stdbool.h>'; this is probably fixable by adding '#include <stdbool.h>'
main.c:23:51: note: each undeclared identifier is reported only once for each function it appears in
main.c:30:56: error: expected ')' before 'or'
   30 |                 if (B[x][0] & B[x][1] & B[x][2] == true or B[0][x] & B[1][x] & B[2][x] == true or
      |                    ~                                   ^~~
      |                                                        )
Language: C

#include <stdio.h>



int main()
{
	int y,x,z,b,N,A[3][3];
	bool B[3][3];
	for (x = 0; x <= 2; x++)
	{
		scanf("%d %d %d", &A[x][0], &A[x][1], &A[x][2]);
	}
	scanf("%d", &N);
	for (y = 1; y <= N; y++) 
	{
		scanf("%d", &b);
		for (x = 0; x <= 2; x++)
		{
			for (z = 0; z <= 2; z++)
			{
				if (b == A[x][z]) 
				{
					B[x][z] = true;
				}
			}
		}
	}
	for (x = 0; x <= 2; x++)
	{
		if (B[x][0] & B[x][1] & B[x][2] == true or B[0][x] & B[1][x] & B[2][x] == true or

			B[0][0] & B[1][1] & B[2][2] == true or B[0][2] & B[1][1] & B[2][1] == true) 
		{
			printf("Yes");
			break;
			return 0;
		}
		
	}
	printf("No");


	
	return 0;
}

Compiler output:
main.c: In function 'main':
main.c:8:9: error: unknown type name 'bool'
    8 |         bool B[3][3];
      |         ^~~~
main.c:2:1: note: 'bool' is defined in header '<stdbool.h>'; this is probably fixable by adding '#include <stdbool.h>'
    1 | #include <stdio.h>
  +++ |+#include <stdbool.h>
    2 | 
main.c:23:51: error: 'true' undeclared (first use in this function)
   23 |                                         B[x][z] = true;
      |                                                   ^~~~
main.c:23:51: note: 'true' is defined in header '<stdbool.h>'; this is probably fixable by adding '#include <stdbool.h>'
main.c:23:51: note: each undeclared identifier is reported only once for each function it appears in
main.c:30:56: error: expected ')' before 'or'
   30 |                 if (B[x][0] & B[x][1] & B[x][2] == true or B[0][x] & B[1][x] & B[2][x] == true or
      |                    ~                                   ^~~
      |                                                        )
Language: C++

#include <bits/stdc++.h>

using namespace std;
typedef long long ll;
#define FOR(i,a,b) for (ll i=(a),__last_##i=(b);i<__last_##i;i++)
#define RFOR(i,a,b) for (ll i=(b)-1,__last_##i=(a);i>=__last_##i;i--)
#define REP(i,n) FOR(i,0,n)
#define RREP(i,n) RFOR(i,0,n)
#define __GET_MACRO3(_1, _2, _3, NAME, ...) NAME
#define rep(...) __GET_MACRO3(__VA_ARGS__, FOR, REP)(__VA_ARGS__)
#define rrep(...) __GET_MACRO3(__VA_ARGS__, RFOR, RREP)(__VA_ARGS__)
template<typename T> istream &operator>>(istream &is, vector<T> &v){ for (auto &x : v) is >> x; return is; }
template<typename T> ostream& operator<<(ostream& os, const vector<T>& v) {
    REP(i,v.size()){if(i)os<<" ";os<<v[i];}return os;}
template<typename T> ostream& operator<<(ostream& os, const vector<vector<T>>& v) {
    REP(i,v.size()){if(i)os<<endl;os<<v[i];}return os;}
#define vi vector<int>
#define vii vector<vector<int>>
#define mii map<int,int>
#define Sort(v) sort(v.begin(),v.end())
#define Reverse(v) reverse(v.begin(),v.end())
#define ALL(a)  (a).begin(),(a).end()
#define pb push_back
#define mp make_pair
//#define int ll

const int md = 1000000007;
const int INF = 1<<30;

int main(){
    vector<vector<int>> a(3,vector<int>(3,0));

    rep(i,3) cin >> a[i];

    int n; cin >> n;

    vi b(n);
    cin >> b;

    bool bo[3][3];

    rep(i,3){
        rep(j,3){
            bool f = false;
            rep(k,n){
                if(b[k] == a[i][j]) f = true;
            }
            bo[i][j] = f;
        }
    }
    //rep(i,3) rep(j,3) cout << bo[i][j] << ( j < 2 ? ' ' : '\n');

    bool ans = false;

    rep(i,3){
        if(a[i][0] and a[i][1] and a[i][2]) ans = true;
        if(a[0][i] and a[1][i] and a[2][i]) ans = true;
    }

    if(a[0][0] and a[1][1] and a[2][2]) ans = true;
    if(a[2][0] amd a[1][1] and a[0][2]) ans = true;

    if(ans) cout << "Yes" << endl;
    else cout << "No" << endl;

    return 0;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:61:15: error: expected ')' before 'amd'
   61 |     if(a[2][0] amd a[1][1] and a[0][2]) ans = true;
      |       ~       ^~~~
      |               )
Language: C++

#include <iostream>
#include <string>
using namespace std;
int N, A[3][3], b[10];
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];44
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(A[i][j] == b[k]) appear[i][j] = true;
        }
    }
}
string ANS = "No";
for(int i = 0; i < 3; i++) {
    if(appear[i][0] and appear[i][1] and appear[i][2]) ANS = "Yes";
}
for(int i = 0; i < 3; i++) {
    if(appear[0][i] and appear[1][i] and appear[2][i]) ANS = "Yes";
}
if(appear[0][0] and appear[1][1] and appear[2][2]) ANS = "Yes";
if(appear[0][2] and appear[1][1] and appear[2][0]) ANS = "Yes";
cout << ANS << endl;
    return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:11:42: error: expected ';' before 'for'
   11 | for(int i = 0; i < N; i++) cin >> b[i];44
      |                                          ^
      |                                          ;
   12 | for(int i = 0; i < N; i++) {
      | ~~~                                       
a.cc:12:16: error: 'i' was not declared in this scope
   12 | for(int i = 0; i < N; i++) {
      |                ^
Language: C++

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

int main(){
    int array[3][3];
    int b[10];
    int x;
    int n;
    int bb;
    for(int i=0;i<2;i++){
        for(int j=0;j<2;j++){
            cin >> array[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(array[i][j]==b[k]) appear[i][j] = true;
            }
        }
    }
    string ANS = "No";
    for(int i=0;i<3;i++){
        if(appear[i][1] and appear[i][2] and app[i][3]) ANS = "Yes";
    }
    for(int i=0;i<3;i++){
        if(appear[1][i] and appear[2][i] and app[3][i]) ANS = "Yes";
    }
    if(appear[1][1] and appear[2][2] and app[3][3]) ANS = "Yes";
    if(appear[1][3] and appear[2][2] and app[3][1]) ANS = "Yes";
    cout << ANS;

    return 0;


}

Compiler output:
a.cc: In function 'int main()':
a.cc:31:46: error: 'app' was not declared in this scope
   31 |         if(appear[i][1] and appear[i][2] and app[i][3]) ANS = "Yes";
      |                                              ^~~
a.cc:34:46: error: 'app' was not declared in this scope
   34 |         if(appear[1][i] and appear[2][i] and app[3][i]) ANS = "Yes";
      |                                              ^~~
a.cc:36:42: error: 'app' was not declared in this scope
   36 |     if(appear[1][1] and appear[2][2] and app[3][3]) ANS = "Yes";
      |                                          ^~~
a.cc:37:42: error: 'app' was not declared in this scope
   37 |     if(appear[1][3] and appear[2][2] and app[3][1]) ANS = "Yes";
      |                                          ^~~
Language: C++

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

#define fst first
#define scd second
#define PB push_back
#define MP make_pair
#define all(a) a.begin(),a.end()
#define rall(a) a.rbegin(),a.rend()
#define omajinai ios::sync_with_stdio(false);cin.tie(0)
#define rep(i,x) for(int i=0;i<(int)(x);++i)
#define rep1(i,x) for(int i=1;i<=(int)(x);++i)
#define rrep(i,x) for(int i=(int)x-1;i>=0;--i)
#define rrep1(i,x) for(int i=(int)x;i>=1;--i)

using ll=long long;
using ld=long double;
using vi=vector<int>;
using vvi=vector<vi>;
using pii=pair<int, int>;
using vpii=vector<pii>;

template<class T,class U>ostream&operator<<(ostream&os,const pair<T,U>p){os<<"("<<p.fst<<", "<<p.scd<<")";return os;}
template<class T>ostream&operator<<(ostream&os,const vector<T>v){rep(i,v.size()){if(i)os<<", ";os<<v[i];}return os;}
template<typename T>T&max(T&a,T&b){if(a>=b)return a;return b;}
template<typename T>T&min(T&a,T&b){if(a < b)return a;return b;}
template<typename T>bool chmax(T&a,T b){if(a < b){a=b;return true;}return false;}
template<typename T>bool chmin(T&a,T b){if(a > b){a=b;return true;}return false;}

constexpr int inf = 1e9;
constexpr ll linf = 3e18;
constexpr double eps = 1e-9;

int N;
int A[3][3];
bool B[3][3];

bool check() {
    rep(i, 3) {
        if (B[i][0] && B[i][1] && B[i][2]) return true;
        if (B[0][i] && B[1][i] && B[2][i]) return true;
    }
    if (B[0][0] && B[1][1] && B[2][2]) return true;
    if (B[0][2] && B[1][1] && B[2][0]) return true;

    return false;
}

signed main()
{
    rep(i, 3) rep(j, 3) {
        cin >> A[i][j];
    }

    cin >> N;

    rep(i, N) {
        cin >> b;
        rep(j, 3) (k, 3) if (A[j][k] == b) B[j][k] = true;
    }

    bool f = check();

    cout << (f ? "Yes" : "No") << endl;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:58:16: error: 'b' was not declared in this scope
   58 |         cin >> b;
      |                ^
a.cc:59:20: error: 'k' was not declared in this scope
   59 |         rep(j, 3) (k, 3) if (A[j][k] == b) B[j][k] = true;
      |                    ^
Language: C++

package main

import "fmt"

func main() {
	var a [3][3]int
	var d [3][3]int
	for i := 0; i < 3; i++ {
		for j := 0; j < 3; j++ {
			fmt.Scan(&a[i][j])
		}
	}
	var n int
	fmt.Scan(&n)
	for i := 0; i < n; i++ {
		var v int
		fmt.Scan(&v)
		for i := 0; i < 3; i++ {
			for j := 0; j < 3; j++ {
				if a[i][j] == v {
					d[i][j] = 1
				}
			}
		}
	}
	ok := false
	var cnt int
	for i := 0; i < 3; i++ {
		cnt = 0
		for j := 0; j < 3; j++ { // 横一列揃っているかチェック
			cnt += d[i][j]
		}
		if cnt == 3 {
			ok = true
		}
	}
	for i := 0; i < 3; i++ {
		cnt = 0
		for j := 0; j < 3; j++ { // 縦一列揃っているかチェック
			cnt += d[j][i]
		}
		if cnt == 3 {
			ok = true
		}
	}
	cnt = 0
	for j := 0; j < 3; j++ {
		cnt += d[j][j] // 斜めビンゴチェック - 左上から右下
	}
	if cnt == 3 {
		ok = true
	}
	for j := 0; j < 3; j++ {
		cnt += d[j][2-j] // 斜めビンゴチェック - 右上から左下
	}
	if cnt == 3 {
		ok = true
	}
	if ok {
		fmt.Println("Yes")
	} else {
		fmt.Println("No")
	}
}


Compiler output:
a.cc:1:1: error: 'package' does not name a type
    1 | package main
      | ^~~~~~~
Language: C

#include<stdio.h>

int main() {
	
	int A[3][3], N, b[10], flag = 0, flag_buff = 0;
	int bingo_buff[8] = { 7,56,73,84,146,273,292,448 };


	for (int i = 0; i < 3; i++)
		scanf_s("%d%d%d", &A[i][0], &A[i][1], &A[i][2]);

	scanf_s("%d", &N);

	for (int n = 0; n < N; n++) {
		scanf_s("%d", &b[n]);
		flag_buff = 0;
		for (int i = 0; i < 3; i++)
			for (int j = 0; j < 3; j++) {
				if (b[n] == A[i][j]) {
					flag_buff = 3 * i + j;
					break;
				}
				if (flag_buff != 0)break;
			}
		flag |= 1 << flag_buff;
	}

	if (flag == 1) {
		printf("No");
		return 0;
	}

	for (int i = 0; i < 8; i++) {
		if ((flag&bingo_buff[i]) == bingo_buff[i]) {
			printf("Yes");
			return 0;
		}
	}

}

Compiler output:
main.c: In function 'main':
main.c:10:17: error: implicit declaration of function 'scanf_s'; did you mean 'scanf'? [-Wimplicit-function-declaration]
   10 |                 scanf_s("%d%d%d", &A[i][0], &A[i][1], &A[i][2]);
      |                 ^~~~~~~
      |                 scanf
Language: C++

#include<bits/stdc++.h>
#DEFINE rep(i,n) for(int i=0;i<n;i++)
using namespace std;
int main(){
  vector<vector<int>> vec(3,vector<int>(3));
  rep(i,3){
    rep(j,3) cin>>vec[i][j];
  }
  int n,a;
  cin>>n;
  while(cin>>a){
    rep(i,3){
      rep(j,3){
        if(vec[i][j]==a) vec[i][j]=0;
      }
    }
  }
  bool flag=0;
  rep(i,3){
    if(vec[i][0]==0&&vec[i][1]==0&&vec[i][2]==0) flag=1;
    else if(vec[0][i]==0&&vec[1][i]==0&&vec[2][i]==0) flag=1;
  }
  if(vec[0][0]==0&&vec[1][1]==0&&vec[2][2]==0) flag=1;
  if(vec[0][2]==0&&vec[1][1]==0&&vec[2][0]==0) flag=1;
  cout<<flag?"Yes":"No"<<endl;
}

Compiler output:
a.cc:2:2: error: invalid preprocessing directive #DEFINE
    2 | #DEFINE rep(i,n) for(int i=0;i<n;i++)
      |  ^~~~~~
a.cc: In function 'int main()':
a.cc:6:7: error: 'i' was not declared in this scope
    6 |   rep(i,3){
      |       ^
a.cc:6:3: error: 'rep' was not declared in this scope
    6 |   rep(i,3){
      |   ^~~
a.cc:25:24: error: invalid operands of types 'const char [3]' and '<unresolved overloaded function type>' to binary 'operator<<'
   25 |   cout<<flag?"Yes":"No"<<endl;
      |                    ~~~~^~~~~~
Language: C++

#include<iostream>
#include<string>
#include<vector>
#include<algorithm>
#include<iomanip>
#define _USE_MATH_DEFINES
#include <math.h>

using namespace std;

int main() {
	int A[3][3];
	int b[100];
	bool appear[3][3];

	for (int i = 0; i < 3; i++) {
		for (int j = 1; i < 3; j++) {
			cin >> A[i][j];
		}
	}
	int N;
	cin >> N;

	for (int i = 0; i < N; i++) {
		cin >> b[i];
	}


	for (int k = 0; k < N; k++) {
		for (int i = 0; i < 3; i++) {
			for (int j = 0; j < 3; j++) {
				appear[i][j] == false;
				if (b[k] == A[i][j]) 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 = "Yse";

	cout << ans << endl;


	return 0;


Compiler output:
a.cc: In function 'int main()':
a.cc:51:18: error: expected '}' at end of input
   51 |         return 0;
      |                  ^
a.cc:11:12: note: to match this '{'
   11 | int main() {
      |            ^
Language: Java

import java.util.Scanner;
 
public class Main {
  public static void main(String[] args){
    Scanner scanner =  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] = scanner.nextInt();
      }
    }
    
    boolean appears[][] = new boolean[3][3];
    
    int N = scanner.nextInt();
    int b[] = new int[N];
    for(int i = 0;i < N;i++) b[i] = scanner.nextInt();
    
    for(int i = 0;i < 3;i++){
      for(int j = 0;j < 3;j++){
        for(int k = 0;k < N;k++){
        	if(card[i][j] == b[k]) appears[i][j] = true;
        }
      }
    }
    
    String bingo = "No";
	for(int i = 0;i < 3;i++){
      if(appears[i][0] && appears[i][1] && appears[i][2]) bingo = "Yes";
      if(appears[0][i] && appears[1][i] && appears[2][i]) bingo = "Yes";
    }
    
    if(appears[0][0] && appears[1][1] && appears[2][2]) bingo = "Yes";
    if(appeas[2][0] && appears[1][1] && appears[0][0]) bingo = "Yes";
    
   
    System.out.println(bingo);
  }
}

Compiler output:
Main.java:34: error: cannot find symbol
    if(appeas[2][0] && appears[1][1] && appears[0][0]) bingo = "Yes";
       ^
  symbol:   variable appeas
  location: class Main
1 error
Language: Java

import java.util.Scanner;

public class Main {
	public static void main(String[] args) {
		Scanner sc = new Scanner(System.in);
		boolean judge = false;

		//ビンゴ作成
		int[][] bingo = new int[3][3];
		for (int i = 0; i < 3; i++) {
			for (int j = 0; j < 3; j++) {
				bingo[i][j] = sc.nextInt();
			}
		}

		//ビンゴを回す
		final int N = sc.nextInt();
		for (int z = N; z > 0; z--) {
			int b = sc.nextInt();
			for (int i = 0; i < 3; i++) {
				for (int j = 0; j < 3; j++) {
					if (b == bingo[i][j]) {
						bingo[i][j] = 0;
					}
				}
			}
		}

		//ビンゴ判定

		int sum = 0;
		int sum2 = 0;
		int sum3 = 0;

		if ((bingo[0][2] + bingo[1][1] + bingo[2][0]) == 0) {
			judge = true;
		}
		check: for (int i = 0; i < 3; i++) {
			sum = 0;
			sum2 = 0;
			sum3 = 0;
			for (int j = 0; j < 3; j++) {

				sum += bingo[i][j];
				sum2 += bingo[j][i];
				sum3 += bingo[j][j];
			}
			if (sum == 0 || sum2 == 0 || sum3 == 0) {
				judge = true;
				break check;
			}
		}
		if (judge) {
			System.out.println("Yes");
		} else {
			System.out.println("No");
		}
		//チェック用
//		for (int i = 0; i < 3; i++) {
//			for (int j = 0; j < 3; j++) {
//				System.out.print(bingo[i][j] + " ");
//			}
//			System.out.println("");
		}
	}
}

Compiler output:
Main.java:66: error: class, interface, enum, or record expected
}
^
1 error
Language: C++

t=[]
for i in range(3):
	t.append([int(i) for i in input().split()])
n = int(input())
lst = []
for i in range(n):lst+=[int(input())]
def ligne(i):
	for j in range(3):
		if not t[i][j] in lst:
			return False
    return True
def col(j):
	for i in range(3):
		if not t[i][j] in lst:
			retur False
    return True
def diag1():
	for i in range(3):
		if not t[i][i] in lst:
			return False
    return True
def diag2():
	for i in range(3):
		if not t[2-i][i] in lst:
			return False
    return True
ans = False
for i in range(3):
	ans = ans or ligne(i)
    ans = ans or col(i)
ans  = ans or diag1() or diag2()
if ans :
	print("Yes")
else:
	print("No")

Compiler output:
a.cc:1:1: error: 't' does not name a type
    1 | t=[]
      | ^
Language: Java

import java.util.Scanner;
public class Main{
  public static void main(String[] args){
    Scanner scan = new Scanner(System.in);
    int[] a = new int[9];
    for(int i = 0; i < 9; i ++){
      a[i] = scan.nextInt();
    }
    int n = scan.nextInt();
    for(int i = 0; i < n; i ++){
      int b = scan.nextInt();
      for(int j = 0; j < 9; j ++){
        if(a[i] == b) a[i] = -1;
      }
    }
    String answer = "No"
    for(int i = 0; i < 3; i ++){
      if(a[i] == a[i+3] && a[i+3] == a[i+6]) answer = "Yes";
    }
    for(int i = 0; i < 8; i += 3){
      if(a[i] == a[i+1] && a[i+1] == a[i+2]){
        answer = "Yes";
      }
    }
    if(a[0] + a[4] + a[8] == -3 || a[2] + a[4] + a[6] == -3){
      answer = "Yes";
    }
    System.out.println(answer);
  }
}

Compiler output:
Main.java:16: error: ';' expected
    String answer = "No"
                        ^
1 error
Language: C

#include <stdio.h>

int main(void){
    int N;
    int i,j,k;
    int bingo[3][3];
    for(i=0 ;i<3 ;i++){
        for(j=0 ; j<3 ; j++){
            bingo[i][j]=0;
        }
    }
    int Aar[3][3];
    for(i=0 ;i<3 ;i++){
        for(j=0 ; j<3 ; j++){
            scanf("%d",&Aar[i][j]);
        }
    }
    scanf("%d",&N);
    int bar[N];
    for(k=0; k<N ;k++){
        scanf("%d",&bar[k]);
    } 

    for(k=0;k < N ;k++){
        for(i=0 ;i<3 ;i++){
            for(j=0 ; j<3 ; j++){
                if(Aar[i][j] == bar[k]){
                    bingo[i][j] =1;
                }
            }
        }
    }
    k=0;
    for(i=0 ; i<3 ;i++){
    k +=bingo[i][0] * bingo[i][1] *bingo[i][2];
    k +=bingo[0][i] * bingo[1][i] *bingo[2][i];
    }
    k +=bingo[0][0]*bingo[1][1]*bingo[2][2];
    k +=bingo[0][2]*bingo[1][1]*bingo[2][0]
    if(k==0){
    printf("No");
    }
    else{
    printf("Yes");
    }
    return 0;
}


Compiler output:
main.c: In function 'main':
main.c:39:44: error: expected ';' before 'if'
   39 |     k +=bingo[0][2]*bingo[1][1]*bingo[2][0]
      |                                            ^
      |                                            ;
   40 |     if(k==0){
      |     ~~
Language: C++

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

#include<stdio.h>
#include<stdlib.h>

#define rep(i,n) for(ll i = 0; i < (ll)n; i++)
#define swap(a,b) a^=b;b^=a;a^=b;
#define chmax(a,b) {if(a < b) a = b;}
#define chmin(a,b) {if(a > b) a = b;}

using namespace std;
typedef long long ll;
ll gcd(ll, ll);
vector<bool> to_binary(int);
ll nCr(ll n, ll r);

const ll INF = 1LL << 60;

typedef tuple<ll, ll> mtupl;

/*

bool mycomp(mtupl x, mtupl y) {
	return get<1>(x) < get<1>(y);
}

int vsum(vector<int> v) {
	int res = 0;
	for (auto it = v.begin(); it != v.end(); it++)
		res += *it;
	return res;
}

int vmin(vector<int> v) {
	int min = INT32_MAX;
	for (auto it = v.begin(); it != v.end(); it++)
		min = std::min(min, *it);
	return min;
}

int vmax(vector<int> v) {
	int max = INT32_MIN;
	for (auto it = v.begin(); it != v.end(); it++)
		max = std::max(max, *it);
	return max;
}

ll gcd(ll A, ll B) {
	if (A == 0 || B == 0) return max(A, B);
	int r = A % B;
	while (r != 0) {
		A = B;
		B = r;
		r = A % B;
	}
	return B;
}

vector<ll> prime_factor(int64_t n) {
	//map< ll, ll > ret;
	vector<ll> ret;
	for (ll i = 2; i * i <= n; i++) {
		while (n % i == 0) {
			//ret[i]++;
			ret.push_back(i);
			n /= i;
		}
	}
	if (n != 1)ret.push_back(n);// ret[n] = 1;
	return ret;
}

const int MAX = 1000000;
const int MOD = 1000000007;
ll fac[MAX], finv[MAX], inv[MAX];

void COMinit() {
	fac[0] = fac[1] = 1;
	finv[0] = finv[1] = 1;
	inv[1] = 1;
	for (int i = 2; i < MAX; i++) {
		fac[i] = fac[i - 1] * i % MOD;
		inv[i] = MOD - inv[MOD % i] * (MOD / i) % MOD;
		finv[i] = finv[i - 1] * inv[i] % MOD;
	}
}
ll COM(int n, int k) {
	if (n < k) return 0;
	if (n < 0 || k < 0) return 0;
	return fac[n] * (finv[k] * finv[n - k] % MOD) % MOD;
}

struct edge {
	ll to;
	ll cost;
};

*/

int main(void) {
	cin.tie(0);
	ios::sync_with_stdio(false);
	//Program Start	

	int A[3][3];
	rep(i, 3) {
		rep(j, 3) {
			cin >> A[i][j];
		}
	}

	int ap[3][3];
	rep(i, 3) rep(j, 3) ap[i][j] = 0;
	int n;
	cin >> n;
	rep(i, n) {
		int tmp;
		cin >> tmp;
		rep(i, 3)rep(j, 3) if (A[i][j] == tmp) ap[i][j] = 1;
	}

	bool ans = false;
	rep(i, 3) {
		int c = 0;
		rep(j, 3) {
			c += ap[i][j];
		}
		if (c == 3) ans = true;
	}
	rep(i, 3) {
		int c = 0;
		rep(j, 3) {
			c += ap[j][i];
		}
		if (c == 3) ans = true;
	}
	int c = 0;
	rep(i, 3) c += ap[i][i];
	if (c == 3)ans = true;

	rep(i, 3) c += ap[2 - i][i];
	if (c == 3)ans = true;

	cout << ans ? "Yes" : "No" << endl;


ProgramEndPointLabel:;

	//Program End
#ifndef DEBUG
	system("pause");
#endif // !DEBUG


	return 0;
}




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

#include<iostream>

using namespace std;

int main()
{
	int A[3][3];
  	for(int i = 0; i < 3; i++)
      for(int j = 0; j < 3; j++)
      {
      	cin >> A[i][j];
      }
  	int N;
  	cin >> N;
  	int row[3] = {0, 0, 0};
  	int col[3] = {0, 0, 0};
  	int d1 = 0, d2 = 0;
  	while(N--)
    {
    	cin >> b;
      	for(int i = 0; i < 3; i++)
          for(int j = 0; j < 3; j++)
          {
          	if(A[i][j] == b)
            {
            	row[i]++;
              	col[j]++;
              	if(i == j) d1++;
              	if(i + j == 2) d2++;
                break;
            }
          }
    }
  	if(d1 == 3 || d2 == 3 || row[0] == 3 || row[1] == 3 || row[2] == 3 || 
      col[0] == 3 || col[1] == 3 || col[3] == 3)
      	cout << "YES";
  	else
    	cout << "NO";
}

Compiler output:
a.cc: In function 'int main()':
a.cc:20:16: error: 'b' was not declared in this scope
   20 |         cin >> b;
      |                ^