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

#include <iostream>
#include <map>
#include <queue>
#include <vector>
#include <set>
#include <cstdlib>
#include <algorithm>
#include <stack>
#include <cmath>
#define INF 1000000007
using namespace std ;

int main(int argc, char const *argv[])
{


	
	vector<vector<int> > mat(3,vector<int>(3,0)) ;
	map<int,int> row,col,daig1,diag2;
	map<int,pair<int,int> > m ;

	for(int i = 0 ; i < 3 ; i++) for(int j = 0 ; j < 3 ; j++){ cin>>mat[i][j] ; m[mat[i][j]] = make_pair(i,j) ; } 

	int n;
 	cin>>n ;

 	for(int i = 0 ; i < n ; i++)
 	{
 		int temp ;
 		cin>>temp ;

 		if(m.find(temp) != m.end())
 		{
 			row[m[temp].first]++ ;
 			if(row[m[temp].first] == 3) {cout<<"Yes"<<endl ; return 0 ;}
 			col[m[temp].second]++ ;
 			if(col[m[temp].second] == 3) {cout<<"Yes"<<endl ; return 0 ;} 
 			daig1[m[temp].first - m[temp].second]++ ;

 			if(daig1[m[temp].first - m[temp].second]){cout<<"Yes"<<endl ; return 0 ;}
 			daig2[m[temp].first + m[temp].second]++ ;
 			if(daig2[m[temp].first + m[temp].second]) {cout<<"Yes"<<endl ; return 0 ;}

 		}

 	}

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

Compiler output:
a.cc: In function 'int main(int, const char**)':
a.cc:41:25: error: 'daig2' was not declared in this scope; did you mean 'diag2'?
   41 |                         daig2[m[temp].first + m[temp].second]++ ;
      |                         ^~~~~
      |                         diag2
Language: C++

#include <iostream>
#include <string>
#include <vector>
#include <algorithm>
#include <math.h>
#include <map>
#include <set>

using namespace std;

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

  int N;
  cin >> N;

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

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

  for (int i = 0; i < 3; ++i)
  {
    for (int j = 0; j < 3; ++j)
    {
      if (hit[i][0] == true && hit[i][1] == true && hit[i][2] == true) break;
      else if (hit[0][j] == true && hit[1][j] == true && hit[2][j] == true) break;
      else if (hit[0][0] == true && hit[1][1] == true && hit[2][2] == true) break;
      else if (hit[0][2] == true && hit[1][1] == true && hit[3][0] == true) break;
    }
    if (i == 2)
    {
      cout << "No" << endl;
      return;
    }
  }
  cout << "Yes" << endl;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:49:7: error: return-statement with no value, in function returning 'int' [-fpermissive]
   49 |       return;
      |       ^~~~~~
Language: C

#include <iostream>

using namespace std;

int b[3][3];

int main(){
	int tmp;
	for(int i=0;i<3;i++){
		for(int j=0;j<3;j++){
			cin >>tmp;
			b[i][j]=tmp;
		}			
	}
	int n;
	cin >> n;
	int ris=0;
	for(int i=0;i<n;i++){
		cin >> tmp;
		for(int i=0;i<3;i++){
			for(int j=0;j<3;j++){
				if(b[i][j]==tmp){
					b[i][j]=0;
				}
			}			
		}	
	}
	int j=0;
	for(int i=0;i<3;i++){
		bool isc=true;
		for(j=0;j<3;j++){
			if(b[i][j]!=0){
				isc=false;
			}
		}
		if(isc){
			printf("Yes\n");
			return 0;
		}	
	}	
	
	for(int i=0;i<3;i++){
		bool isc=true;
		for(j=0;j<3;j++){
			if(b[j][i]!=0){
				isc=false;
			}
		}
		if(isc){
			printf("Yes\n");
						return 0;
		}	
	}	

	if(b[1][1]==0){
		if(b[0][0]==0&&b[2][2]==b[0][0]){printf("Yes\n");return 0;}
		if(b[0][2]==0&&b[2][0]==b[0][2]){printf("Yes\n");return 0;}
	}

	printf("No\n");

}

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

#include "bits/stdc++.h"

using namespace std;

int b[3][3];

int main(){
	int tmp;
	for(int i=0;i<3;i++){
		for(int j=0;j<3;j++){
			cin >>tmp;
			b[i][j]=tmp;
		}			
	}
	int n;
	cin >> n;
	int ris=0;
	for(int i=0;i<n;i++){
		cin >> tmp;
		for(int i=0;i<3;i++){
			for(int j=0;j<3;j++){
				if(b[i][j]==tmp){
					b[i][j]=0;
				}
			}			
		}	
	}
	int j=0;
	for(int i=0;i<3;i++){
		bool isc=true;
		for(j=0;j<3;j++){
			if(b[i][j]!=0){
				isc=false;
			}
		}
		if(isc){
			printf("Yes\n");
			return 0;
		}	
	}	
	
	for(int i=0;i<3;i++){
		bool isc=true;
		for(j=0;j<3;j++){
			if(b[j][i]!=0){
				isc=false;
			}
		}
		if(isc){
			printf("Yes\n");
						return 0;
		}	
	}	

	if(b[1][1]==0){
		if(b[0][0]==0&&b[2][2]==b[0][0]){printf("Yes\n");return 0;}
		if(b[0][2]==0&&b[2][0]==b[0][2]){printf("Yes\n");return 0;}
	}

	printf("No\n");

}

Compiler output:
main.c: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 b[3][3];

int main(){
	int tmp;
	for(int i=0;i<3;i++){
		for(int j=0;j<3;j++){
			cin >>tmp;
			b[i][j]=tmp;
		}			
	}
	int n;
	cin >> n;
	int ris=0;
	for(int i=0;i<n;i++){
		cin >> tmp;
		for(int i=0;i<3;i++){
			for(int j=0;j<3;j++){
				if(b[i][j]==tmp){
					b[i][j]=0;
				}
			}			
		}	
	}
	int j=0;
	for(int i=0;i<3;i++){
		bool isc=true;
		for(j=0;j<3;j++){
			if(b[i][j]!=0){
				isc=false;
			}
		}
		if(isc){
			printf("Yes\n");
			return 0;
		}	
	}	
	
	for(int i=0;i<3;i++){
		bool isc=true;
		for(j=0;j<3;j++){
			if(b[j][i]!=0){
				isc=false;
			}
		}
		if(isc){
			printf("Yes\n");
						return 0;
		}	
	}	

	if(b[1][1]==0){
		if(b[0][0]==0&&b[2][2]==b[0][0]){printf("Yes\n");return 0;}
		if(b[0][2]==0&&b[2][0]==b[0][2]){printf("Yes\n");return 0;}
	}

	printf("No\n");

}

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

#include<iostream>
#include<bits/stdc++.h>
using namespace std;
int main()
{
    int a[3][3]; bool c[3][3];
    for(int i=0;i<3;i++)
      {
          for(int j=0;j<3;j++)
            {
                int x;
                cin>>x;
                a[i][j]=x;
                c[i][j]=false;
            }
      }
      int n;
      cin>>n;
      int b[n];
      for(int i=0;i<n;i++)
        {
            int x;
            cin>>x;
            b[i]=x;
        }
      
    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])
                         {c[j][k]=true;}
                  }
                
            }
          
      }
    int d=0,e=0,f=0,g=0,h=0,k=0,l=0,m=0;
    for(int i=0;i<3;i++)
    {
     for(int j=0;j<3;j++)
        {
            if(i==0&&c[i][j])
                d++;
             if(i==1&&c[i][j])
                e++;
             if(i==2&&c[i][j])
                f++;
             if(j==0&&c[i][j])
                g++;
             if(j==1&&c[i][j])
                h++;
             if(j==2&&c[i][j])
                k++;
             if(i==j&&c[i][j])
                l++;
             if((i+j)==(n-1)&&c[i][j])
                m++;
        }}
    if(d==3||e==3||f==3||g==3||h==3||k==3||l==3||m==3)
      cout<<"Yes";
      else
      cout<<"No";
}
#include<iostream>
#include<bits/stdc++.h>
using namespace std;
int main()
{
    int a[3][3]; bool c[3][3];
    for(int i=0;i<3;i++)
      {
          for(int j=0;j<3;j++)
            {
                int x;
                cin>>x;
                a[i][j]=x;
                c[i][j]=false;
            }
      }
      int n;
      cin>>n;
      int b[n];
      for(int i=0;i<n;i++)
        {
            int x;
            cin>>x;
            b[i]=x;
        }
      
    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])
                         {c[j][k]=true;}
                  }
                
            }
          
      }
    int d=0,e=0,f=0,g=0,h=0,k=0,l=0,m=0;
    for(int i=0;i<3;i++)
    {
     for(int j=0;j<3;j++)
        {
            if(i==0&&c[i][j])
                d++;
             if(i==1&&c[i][j])
                e++;
             if(i==2&&c[i][j])
                f++;
             if(j==0&&c[i][j])
                g++;
             if(j==1&&c[i][j])
                h++;
             if(j==2&&c[i][j])
                k++;
             if(i==j&&c[i][j])
                l++;
             if((i+j)==(n-1)&&c[i][j])
                m++;
        }}
    if(d==3||e==3||f==3||g==3||h==3||k==3||l==3||m==3)
      cout<<"Yes";
      else
      cout<<"No";
}


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

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

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

Compiler output:
a.cc: In function 'int main()':
a.cc:42:23: error: expected ';' before '}' token
   42 |   puts(w ? "Yes":"No")
      |                       ^
      |                       ;
   43 | }
      | ~
Language: C++

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

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

Compiler output:
a.cc: In function 'int main()':
a.cc:14:8: error: expected ';' before 'b'
   14 |     cin b;
      |        ^~
      |        ;
a.cc:42:23: error: expected ';' before '}' token
   42 |   puts(w ? "Yes":"No")
      |                       ^
      |                       ;
   43 | }
      | ~
Language: C++

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

int main(){
  int a[3][3];
  int d[3][3];
  rep(i,3)rep(j,3) cin >> a[i][j];
  int n;
  cin >> n;
  
  rep(i,n) {
    int b;
    cin b;
    rep(i,n)rep(j,n) if(a[i][j] == b) d[i][j] = 1;
  }
  
  rep(i,3){
    int ans = 0;
    rep(j,3) ans += d[i][j];
    if(ans == 3) cout << "Yes" << endl;
    return 0;
  }
  
  rep(i,3){
    int ans = 0;
    rep(j,3) ans += d[j][i];
    if(ans == 3) cout << "Yes" << endl;
    return 0;
  }
  
  rep(i,3){
    int ans = 0;
    ans += d[i][i];
    if(ans == 3) cout << "Yes" << endl;
    return 0;
  }
  
  rep(i,3){
    int ans = 0;
    ans += d[i][2-i];
    if(ans == 3) cout << "Yes" << endl;
    return 0;
  }
  
}

Compiler output:
a.cc: In function 'int main()':
a.cc:14:8: error: expected ';' before 'b'
   14 |     cin b;
      |        ^~
      |        ;
Language: C++

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

int main() {
  int vector<vector<int>> a(3, vector<int>(3));
  rep(i,3){
    rep(j,3) {
      cin >> a.at(i).at(j);
    }
  }
  
  vector<vector<bool>> c(3,vector<bool>(3,false));
  
  int n;
  cin >> n;
  int b;
  rep(i,n) {
    cin >> b;
    rep(j,3) {
      rep(k,3) {
        if (b == a.at(j).at(k)) {
          c.at(j).at(k) = true;
        }
      }
    }
  }
  
  rep(i,3) {
    if (c.at(i).at(0) && c.at(i).at(1) && c.at(i).at(2)) {
      cout << "Yes" << endl;
      return 0;
    }
    if (c.at(0).at(i) && c.at(0).at(i) && c.at(0).at(i)) {
      cout << "Yes" << endl;
      return 0;
    }
  }
  cout << "No" << endl;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:6:27: error: invalid declarator before 'a'
    6 |   int vector<vector<int>> a(3, vector<int>(3));
      |                           ^
a.cc:9:14: error: 'a' was not declared in this scope
    9 |       cin >> a.at(i).at(j);
      |              ^
a.cc:22:18: error: 'a' was not declared in this scope
   22 |         if (b == a.at(j).at(k)) {
      |                  ^
Language: C++

#include <bits/stdc++.h>
 
using namespace std;
 
int arr[5][5];
 
int main()
{
  
  for(int i=1;i<=3;i++)for(int j=1;j<=3;j++)cin >> arr[i][j];
  
  int n ;
  cin >> n;
  while(n--)
  {
    int x;
    cin >> x;
    for(int i=1;i<=3;i++)for(int j=1;j<=3;j++)if(cell[i][j]==x)cell[i][j]=-1;
  }
  
  for(int i=1;i<=3;i++)
  {
    for(int j=1;j<=3;j++)
    {
      if(arr[i][j]==arr[i][j-1]==arr[i][j+1])
      {
        cout << "Yes";
        return 0;
      }
      if(arr[i][j]==arr[i-1][j]==arr[i+1][j])
      {
        cout << "Yes";
        return 0;
      }
      if(arr[i][j]==arr[i-1][j-1]==arr[i+1][j+1])
      {
        cout << "Yes";
        return 0;
      }
    }
  }
  
  cout << "No";
  
  
}

Compiler output:
a.cc: In function 'int main()':
a.cc:18:50: error: 'cell' was not declared in this scope; did you mean 'ceill'?
   18 |     for(int i=1;i<=3;i++)for(int j=1;j<=3;j++)if(cell[i][j]==x)cell[i][j]=-1;
      |                                                  ^~~~
      |                                                  ceill
Language: C++

#include <bits/stdc++.h>
using namespace std;
int a[3][3], n , b[10];
bool appear[3][3];

int main(){
    int count = 0;
    for(int i = 0; i < 3; i++){
        for(int j = 0; j < 3; i++){
            cin >> a[i][j];
        }
    }
    cin >> n;
    for(int i = 0; i < n; i++){
        cin >> b[i];
    }
    for(int i = 0; i < 3; i++){
        for(int j = 0; j < 3; j++){
            appear[i][j] = false;
            for(int k=0;k < n;k++){
                if(b[k]==a[i][j])   appear[i][j] = true;
        }
     }
    }
    for(int i = 0;i < 3;i++){
        if(appear[i][0]==appear[i][1]&&appear[i][0]==appear[i][2]){
             count = 1;
             break;
        }
    }
    for(int i = 0;i < 3;i++){
        if(appear[0][i]==appear[1][i]&&appear[0][i]==appear[2][i]){
        count = 1;
        break;
        }
    }
    if(appear[0][2]==appear[1][1]&&appear[1][1]==appear[2][0]){
     count = 1;
     break;
    }
    if(count == 0){
        cout << "No" <<endl;
    }else{
     cout << "Yes" << endl;
    }
}

Compiler output:
a.cc: In function 'int main()':
a.cc:39:6: error: break statement not within loop or switch
   39 |      break;
      |      ^~~~~
Language: C++

#include <bits/stdc++.h>
using namespace std;
int a[3][3], n , b[10];
bool appear[3][3];

int main(){
    int count = 0;
    for(int i = 0; i < 3; i++){
        for(int j = 0; j < 3; i++){
            cin >> a[i][j];
        }
    }
    cin >> n;
    for(int i = 0; i < n; i++){
        cin >> b[i];
    }
    for(int i = 0; i < 3; i++){
        for(int j = 0; j < 3; j++){
            appear[i][j] = false;
            for(int k=0;k < n;k++){
                if(b[k]==a[i][j])   appear[i][j] = true;
        }
     }
    }
    for(int i = 0;i < 3;i++){
        if(appear[i][0]==appear[i][1]&&appear[i][0]==appear[i][2]){
             count = 1;
             break;
        }
    }
    for(int i = 0;i < 3;i++){
        if(appear[0][i]==appear[1][i]&&appear[0][i]==appear[2][i]){
        count = 1;
        break;
    }
    if(appear[0][2]==appear[1][1]&&appear[1][1]==appear[2][0]){
     count = 1;
     break;
    }
    if(count == 0){
        cout << "No" <<endl;
    }else{
     cout << "Yes" << endl;
    }
}

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

#include <bits/stdc++.h>
using namespace std;
int a[3][3], n , b[10];
bool appear[3][3];

int main(){
    int count = 0;
    for(int i = 0; i < 3; i++){
        for(int j = 0; j < 3; i++){
            cin >> a[i][j];
        }
    }
    cin >> n;
    for(int i = 0; i < n; i++){
        cin >> b[i];
    }
    for(int i = 0; i < 3; i++){
        for(int j = 0; j < 3; j++){
            appear[i][j] = false;
            for(int k=0;k < n;k++){
                if(b[k]==a[i][j])   appear[i][j] = true;
        }
     }
    }
    for(int i = 0;i < 3;i++){
        if(appear[i][0]==appear[i][1]&&appear[i][0]==appear[i][2]) count = 1 break;
    }
    for(int i = 0;i < 3;i++){
        if(appear[0][i]==appear[1][i]&&appear[0][i]==appear[2][i]) count = 1 break;
    }
    if(appear[0][2]==appear[1][1]&&appear[1][1]==appear[2][0]) count = 1 break;
    if(count == 0){
        cout << "No" <<endl;
    }else{
     cout << "Yes" << endl;
    }
}

Compiler output:
a.cc: In function 'int main()':
a.cc:26:77: error: expected ';' before 'break'
   26 |         if(appear[i][0]==appear[i][1]&&appear[i][0]==appear[i][2]) count = 1 break;
      |                                                                             ^~~~~~
      |                                                                             ;
a.cc:29:77: error: expected ';' before 'break'
   29 |         if(appear[0][i]==appear[1][i]&&appear[0][i]==appear[2][i]) count = 1 break;
      |                                                                             ^~~~~~
      |                                                                             ;
a.cc:31:73: error: expected ';' before 'break'
   31 |     if(appear[0][2]==appear[1][1]&&appear[1][1]==appear[2][0]) count = 1 break;
      |                                                                         ^~~~~~
      |                                                                         ;
Language: C++

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

int main(){
    int a[3][3], n , b[11];
    bool appear[3][3];
    int count = 0;
    for(int i = 0; i < 3; i++){
        for(int j = 0; j < 3; i++){
            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 < 3; j++){
            appear[i][j] = false;
            for(int k=0;k < n;k++){
                if(b[k]==a[i][j])   appear[i][j] = true;
        }
     }
    }
    for(int i = 0;i < 3;i++){
        if(appear[i][0]==appear[i][1]&&appear[i][0]==appear[i][2]){
            count = 1;
        }
    }
    for(int i = 0;i < 3;i++){
        if(appear[0][i]==appear[1][i]&&appear[0][i]==appear[2][i]){
             count = 1;
            }
    }
         if(appear[0][2]==appear[1][1]&&appear[1][1]==appear[2][0]) count = 1;
        
    }
    if(count == 0){
        cout << "No" <<endl;
    }else{
     cout << "Yes" << endl;
    }
}

Compiler output:
a.cc:38:5: error: expected unqualified-id before 'if'
   38 |     if(count == 0){
      |     ^~
a.cc:40:6: error: expected unqualified-id before 'else'
   40 |     }else{
      |      ^~~~
a.cc:43:1: error: expected declaration before '}' token
   43 | }
      | ^
Language: C++

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

int main(){
    int a[3][3], n , b[11];
    bool appear[3][3];
    int count = 0;
    for(int i = 0; i < 3; i++){
        for(int j = 0; j < 3; i++){
            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 < 3; j++){
            appear[i][j] = false;
            for(int k=0;k < n;k++){
                if(b[k]==a[i][j])   appear[i][j] = true;
        }
     }
    }
    for(int i = 0;i < 3;i++){
        if(apper[i][0]==apper[i][1]&&apper[i][0]==appear[i][2]){
            count = 1;
        }
    }
    for(int i = 0;i < 3;i++){
        if(apper[0][i]==apper[1][i]&&apper[0][i]==appear[2][i]){
             count = 1;
            }
        }
    for(int i = 0;i < 3;i++){
        if(apper[0][0]==apper[1][1]&&apper[1][1]==appear[2][2]){
             count = 1;
         }
         if(apper[0][3]==apper[1][1]&&apper[1][1]==appear[3][0]){
             count = 1;
        }
    }
    if(count == 0)cout << "No" <<endl;
    else cout << "Yes" << endl;

Compiler output:
a.cc: In function 'int main()':
a.cc:26:12: error: 'apper' was not declared in this scope; did you mean 'appear'?
   26 |         if(apper[i][0]==apper[i][1]&&apper[i][0]==appear[i][2]){
      |            ^~~~~
      |            appear
a.cc:31:12: error: 'apper' was not declared in this scope; did you mean 'appear'?
   31 |         if(apper[0][i]==apper[1][i]&&apper[0][i]==appear[2][i]){
      |            ^~~~~
      |            appear
a.cc:36:12: error: 'apper' was not declared in this scope; did you mean 'appear'?
   36 |         if(apper[0][0]==apper[1][1]&&apper[1][1]==appear[2][2]){
      |            ^~~~~
      |            appear
a.cc:39:13: error: 'apper' was not declared in this scope; did you mean 'appear'?
   39 |          if(apper[0][3]==apper[1][1]&&apper[1][1]==appear[3][0]){
      |             ^~~~~
      |             appear
a.cc:44:32: error: expected '}' at end of input
   44 |     else cout << "Yes" << endl;
      |                                ^
a.cc:4:11: note: to match this '{'
    4 | int main(){
      |           ^
Language: C++

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

int main(){
    int a[3][3], n , b[11];
    bool appear[3][3];
    int count = 0;
    for(int i = 0; i < 3; i++){
        for(int j = 0; j < 3; i++){
            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 < 3; j++){
            appear[i][j] = false;
            for(int k=0;k < n;k++){
                if(b[k]==a[i][j])   appear[i][j] = true;
            }
        }
     }
        }
        for(int i = 0;i < 3;i++){
            if(apper[i][0]==apper[i][1]&&apper[i][0]==appear[i][2]){
             count = 1;
            }
        }
        for(int i = 0;i < 3;i++){
            if(apper[0][i]==apper[1][i]&&apper[0][i]==appear[2][i]){
             count = 1;
            }
        }
        for(int i = 0;i < 3;i++){
            if(apper[0][0]==apper[1][1]&&apper[1][1]==appear[2][2]){
             count = 1;
            }
             if(apper[0][3]==apper[1][1]&&apper[1][1]==appear[3][0]){
             count = 1;
            }
        }
    if(count == 0)cout << "No" <<endl;
    else cout << "Yes" << endl;
}

Compiler output:
a.cc:26:9: error: expected unqualified-id before 'for'
   26 |         for(int i = 0;i < 3;i++){
      |         ^~~
a.cc:26:23: error: 'i' does not name a type
   26 |         for(int i = 0;i < 3;i++){
      |                       ^
a.cc:26:29: error: 'i' does not name a type
   26 |         for(int i = 0;i < 3;i++){
      |                             ^
a.cc:31:9: error: expected unqualified-id before 'for'
   31 |         for(int i = 0;i < 3;i++){
      |         ^~~
a.cc:31:23: error: 'i' does not name a type
   31 |         for(int i = 0;i < 3;i++){
      |                       ^
a.cc:31:29: error: 'i' does not name a type
   31 |         for(int i = 0;i < 3;i++){
      |                             ^
a.cc:36:9: error: expected unqualified-id before 'for'
   36 |         for(int i = 0;i < 3;i++){
      |         ^~~
a.cc:36:23: error: 'i' does not name a type
   36 |         for(int i = 0;i < 3;i++){
      |                       ^
a.cc:36:29: error: 'i' does not name a type
   36 |         for(int i = 0;i < 3;i++){
      |                             ^
a.cc:44:5: error: expected unqualified-id before 'if'
   44 |     if(count == 0)cout << "No" <<endl;
      |     ^~
a.cc:45:5: error: expected unqualified-id before 'else'
   45 |     else cout << "Yes" << endl;
      |     ^~~~
a.cc:46:1: error: expected declaration before '}' token
   46 | }
      | ^
Language: C

#include <stdio.h>

int main(void) {
	int A[3][3];
	int _A[3][3] = { {false,false,false}, {false,false,false} };
	for (int i = 0; i < 3; ++i) {// make bingo sheet
		scanf("%d %d %d", &A[i][0], &A[i][1], &A[i][2]);
	}

	// let's bingo
	int n, b;
	scanf("%d", &n);
	for (int i = 0; i < n; ++i) {
		scanf("%d", &b);

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

	}
	//judge
	//line and low
	int jg = 0;
	for (int i = 0; i < 3;  ++i) {
		if ((_A[1][i] && _A[1][i] && _A[1][i])|| (_A[i][1] && _A[i][i] && _A[i][1])) {
			jg = 1;
			break;
		}
	}
	//cross
	if (jg==1&&(_A[0][0] && _A[1][1] && _A[2][2]) || (_A[0][2] && _A[1][1] && _A[2][0])) {
		jg == 1;

	}
	printf(jg == 1 ? "Yes" : "No");


	return 0;
}

Compiler output:
main.c: In function 'main':
main.c:5:27: error: 'false' undeclared (first use in this function)
    5 |         int _A[3][3] = { {false,false,false}, {false,false,false} };
      |                           ^~~~~
main.c:2:1: note: 'false' 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:5:27: note: each undeclared identifier is reported only once for each function it appears in
    5 |         int _A[3][3] = { {false,false,false}, {false,false,false} };
      |                           ^~~~~
main.c:19:52: error: 'true' undeclared (first use in this function)
   19 |                                         _A[j][k] = true;
      |                                                    ^~~~
main.c:19:52: note: 'true' is defined in header '<stdbool.h>'; this is probably fixable by adding '#include <stdbool.h>'
Language: C++

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

int main(){
    int a[3][3], n , b[11];
    bool appear[3][3];
    int count = 0;
    for(int i = 0; i < 3; i++){
        for(int j = 0; j < 3; i++){
            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 < 3; j++){
            appear[i][j] = false;
            for(int k=0;k < n;k++){
                if(b[k]==a[i][j])   appear[i][j] = true;
            }
        }
     }
        }
        for(int i = 0;i < 3;i++){
            if(apper[i][0]==apper[i][1]&&apper[i][0]==appear[i][2]){
             count == 1;
            }
        }
        for(int i = 0;i < 3;i++){
            if(apper[0][i]==apper[1][i]&&apper[0][i]==appear[2][i]){
             count == 1;
            }
        }
        for(int i = 0;i < 3;i++){
            if(apper[0][0]==apper[1][1]&&apper[1][1]==appear[2][2]){
             count == 1;
            }
             if(apper[0][3]==apper[1][1]&&apper[1][1]==appear[3][0]){
             count == 1;
            }
        }
    if(count == 0)cout << "No" <<endl;
    else cout << "Yes" << endl;
}

Compiler output:
a.cc:26:9: error: expected unqualified-id before 'for'
   26 |         for(int i = 0;i < 3;i++){
      |         ^~~
a.cc:26:23: error: 'i' does not name a type
   26 |         for(int i = 0;i < 3;i++){
      |                       ^
a.cc:26:29: error: 'i' does not name a type
   26 |         for(int i = 0;i < 3;i++){
      |                             ^
a.cc:31:9: error: expected unqualified-id before 'for'
   31 |         for(int i = 0;i < 3;i++){
      |         ^~~
a.cc:31:23: error: 'i' does not name a type
   31 |         for(int i = 0;i < 3;i++){
      |                       ^
a.cc:31:29: error: 'i' does not name a type
   31 |         for(int i = 0;i < 3;i++){
      |                             ^
a.cc:36:9: error: expected unqualified-id before 'for'
   36 |         for(int i = 0;i < 3;i++){
      |         ^~~
a.cc:36:23: error: 'i' does not name a type
   36 |         for(int i = 0;i < 3;i++){
      |                       ^
a.cc:36:29: error: 'i' does not name a type
   36 |         for(int i = 0;i < 3;i++){
      |                             ^
a.cc:44:5: error: expected unqualified-id before 'if'
   44 |     if(count == 0)cout << "No" <<endl;
      |     ^~
a.cc:45:5: error: expected unqualified-id before 'else'
   45 |     else cout << "Yes" << endl;
      |     ^~~~
a.cc:46:1: error: expected declaration before '}' token
   46 | }
      | ^
Language: C

#include <stdio.h>

int main(void) {
	int A[3][3];
	bool _A[3][3] = { {false,false,false}, {false,false,false} };
	for (int i = 0; i < 3; ++i) {// make bingo sheet
		scanf("%d %d %d", &A[i][0], &A[i][1], &A[i][2]);
	}

	// let's bingo
	int n, b;
	scanf("%d", &n);
	for (int i = 0; i < n; ++i) {
		scanf("%d", &b);

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

	}
	//judge
	//line and low
	int jg = 0;
	for (int i = 0; i < 3;  ++i) {
		if ((_A[1][i] && _A[1][i] && _A[1][i])|| (_A[i][1] && _A[i][i] && _A[i][1])) {
			jg = 1;
			break;
		}
	}
	//cross
	if (jg==1&&(_A[0][0] && _A[1][1] && _A[2][2]) || (_A[0][2] && _A[1][1] && _A[2][0])) {
		jg == 1;

	}
	printf(jg == 1 ? "Yes" : "No");


	return 0;
}

Compiler output:
main.c: In function 'main':
main.c:5:9: error: unknown type name 'bool'
    5 |         bool _A[3][3] = { {false,false,false}, {false,false,false} };
      |         ^~~~
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:5:28: error: 'false' undeclared (first use in this function)
    5 |         bool _A[3][3] = { {false,false,false}, {false,false,false} };
      |                            ^~~~~
main.c:5:28: note: 'false' is defined in header '<stdbool.h>'; this is probably fixable by adding '#include <stdbool.h>'
main.c:5:28: note: each undeclared identifier is reported only once for each function it appears in
main.c:19:52: error: 'true' undeclared (first use in this function)
   19 |                                         _A[j][k] = true;
      |                                                    ^~~~
main.c:19:52: note: 'true' is defined in header '<stdbool.h>'; this is probably fixable by adding '#include <stdbool.h>'
Language: C

#include<stdio.h>

int main(void)
{
    int a1,a2,a3,b1,b2,b3,c1,c2,c3;
    int num;
    int k,n;
    int i=0;
    int x,y;
    int a=0;
    int bin=0;

    scanf("%d%d%d%d%d%d%d%d%d",&a1,&a2,&a3,&b1,&b2,&b3,&c1,&c2,&c3);
    int bingo[3][3]={{a1,a2,a3},{b1,b2,b3},{c1,c2,c3}};
    scanf("%d", &num);
    n=num;
    while(i<n){
        n=num;
        i++;
        scanf("%d",&k);

        for(x=0;x<3;x++){
            for(y=0;y<3;y++){
                if(bingo[x][y] == k)
                    bingo[x][y] = 0;
            }

        }



    }
    for(a=0;a<3;a++){
        if(bingo[0][0] == 0 && bingo[1][1] == 0 && bingo[2][2] == 0)
            bin=1;
        if(bingo[a][0] == 0 && bingo[a][1] == 0 && bingo[a][2] == 0)
            bin=1;
        if(bingo[0][a] == 0 && bingo[1][a] == 0 && bingo[2][a] == 0)
            bin=1;
        if(bingp[0][2] == 0 && bingo[1][1] == 0 && bingo[2][0] == 0)
            bin=1;
    }
    if(bin == 1)
        printf("Yes");
    else
        printf("No");
    return 0;

}

Compiler output:
main.c: In function 'main':
main.c:40:12: error: 'bingp' undeclared (first use in this function); did you mean 'bingo'?
   40 |         if(bingp[0][2] == 0 && bingo[1][1] == 0 && bingo[2][0] == 0)
      |            ^~~~~
      |            bingo
main.c:40:12: note: each undeclared identifier is reported only once for each function it appears in
Language: C++

#include <iostream>
using namespace std;
int main(void){
    // Your code here!
    int bingo[3][3];
    cin >> bingo[0][0] >> bingo[0][1] >> bingo[0][2] ;
    cin >> bingo[1][0]>> bingo[1][1] >> bingo[1][2];
    cin >> bingo[2][0]>> bingo[2][1] >> bingo[2][2];
    int b;
    cin >> b;
    int num[b];
    for(int i=0;i<b;i++){
        cin >> num[i];
        for(int j=0;j<3;j++){
            for(int k=0;k<3;k++){
                if(bingo[j][k] == num[i]){
                    bingo[j][k] = 0;
                }
            }
        }
    }
    int sum = 1;
    for(int u=0;u<3;u++){
        if(sum==0){
            break;
        }
        sum *= bingo[u][0]+bingo[u][1]+bingo[u][2];
        sum *= bingo[0][u]+bingo[1][u] + bingo[2][u];
        sum *= bingo[0][0] + bingo[1][1] + bingo[2][2];
        sum *= bingo[2][0] + bingo[1][1] + bingo[0][2]; 
        
        
    }
    
    if(sum==0){
        cout << "Yes";
    }else{
        cout <<"No";
    }
    
}
#include <iostream>
using namespace std;
int main(void){
    // Your code here!
    int bingo[3][3];
    cin >> bingo[0][0] >> bingo[0][1] >> bingo[0][2] ;
    cin >> bingo[1][0]>> bingo[1][1] >> bingo[1][2];
    cin >> bingo[2][0]>> bingo[2][1] >> bingo[2][2];
    int b;
    cin >> b;
    int num[b];
    for(int i=0;i<b;i++){
        cin >> num[i];
        for(int j=0;j<3;j++){
            for(int k=0;k<3;k++){
                if(bingo[j][k] == num[i]){
                    bingo[j][k] = 0;
                }
            }
        }
    }
    int sum = 1;
    for(int u=0;u<3;u++){
        if(sum==0){
            break;
        }
        sum *= bingo[u][0]+bingo[u][1]+bingo[u][2];
        sum *= bingo[0][u]+bingo[1][u] + bingo[2][u];
        sum *= bingo[0][0] + bingo[1][1] + bingo[2][2];
        sum *= bingo[2][0] + bingo[1][1] + bingo[0][2]; 
        
        
    }
    
    if(sum==0){
        cout << "Yes";
    }else{
        cout <<"No";
    }
    
}

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

#include<iostream>
#include<string>
#include<vector>
#include<iomanip>
#include<algorithm>
#include<queue>
#include<stack>
#include<list>
#include<map>
#include<deque>
using namespace std;
#define ll long long
int main(){
	int A[9];
    int i;
    for(i=0;i<9;i++){
        cin >> A[i];
    }
    int N,b;
    cin >> N;
    for(i=0;i<N;i++){
        cin >> b;
        for(j=0;j<9;j++){
            if(A[j]==b)A[j]=0;
        }
    }
    bool flag=false;
    if(A[0]==0 && A[3]==0&&A[6]==0)flag=true;
    if(A[1]==0 && A[4]==0&&A[7]==0)flag=true;
    if(A[2]==0 && A[5]==0&&A[8]==0)flag=true;
    if(A[0]==0 && A[1]==0&&A[2]==0)flag=true;
    if(A[3]==0 && A[4]==0&&A[5]==0)flag=true;
    if(A[6]==0 && A[7]==0&&A[8]==0)flag=true;
    if(A[0]==0 && A[4]==0&&A[8]==0)flag=true;
    if(A[2]==0 && A[4]==0&&A[6]==0)flag=true;
    if(flag)cout << "Yes";else cout << "No";
    return 0;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:23:13: error: 'j' was not declared in this scope
   23 |         for(j=0;j<9;j++){
      |             ^
Language: C

#include<stdio.h>
int main(void){
  int i,n,j,a[3],b[3],c[3];
  scanf("%d%d%d",&a[0],&a[1],&a[2]);
  scanf("%d%d%d",&b[0],&b[1],&b[2]);
   scanf("%d%d%d",&c[0],&c[1],&c[2]);
  scanf("%d",&n);
  for(i=0;i<n;i++){
    scanf("%d",&k);
    for(j=0;j<3;j++) if(a[i]==k) a[i]=-1;
     for(j=0;j<3;j++) if(b[i]==k) b[i]=-1;
     for(j=0;j<3;j++) if(c[i]==k) c[i]=-1;
  }
  if((a[0]==-1&&a[1]==-1&&a[2]==-1)||(b[0]==-1&&b[1]==-1&&b[2]==-1)||(c[0]==-1&&c[1]==-1&&c[2]==-1)||
     (a[0]==-1&&b[0]==-1&&c[0]==-1)||(a[1]==-1&&b[1]==-1&&c[1]==-1)||(a[2]==-1&&b[2]==-1&&c[2]==-1)||
     (a[0]==-1&&b[1]==-1&&c[2]==-1)||(a[2]==-1&&b[1]==-1&&c[0]==-1)) printf("Yes");
  else printf("No");
  return 0;
}

Compiler output:
main.c: In function 'main':
main.c:9:17: error: 'k' undeclared (first use in this function)
    9 |     scanf("%d",&k);
      |                 ^
main.c:9:17: note: each undeclared identifier is reported only once for each function it appears in
Language: C

#include<stdio.h>
int main(void){
  int i,n,k,a[3],b[3],c[3];
  for(i=0;i<3;i++) scanf("%d",&a[i]);
  for(i=0;i<3;i++) scanf("%d",&b[i]);
  for(i=0;i<3;i++) scanf("%d",&c[i]);
  scanf("%d",&n);
  for(i=0;i<n;i++){
    scanf("%d",&k);
    for(j=0;j<3;j++) if(a[i]==k) a[i]=-1;
     for(j=0;j<3;j++) if(b[i]==k) b[i]=-1;
     for(j=0;j<3;j++) if(c[i]==k) c[i]=-1;
  }
  if((a[0]==-1&&a[1]==-1&&a[2]==-1)||(b[0]==-1&&b[1]==-1&&b[2]==-1)||(c[0]==-1&&c[1]==-1&&c[2]==-1)||
     (a[0]==-1&&b[0]==-1&&c[0]==-1)||(a[1]==-1&&b[1]==-1&&c[1]==-1)||(a[2]==-1&&b[2]==-1&&c[2]==-1)||
     (a[0]==-1&&b[1]==-1&&c[2]==-1)||(a[2]==-1&&b[1]==-1&&c[0]==-1)) printf("Yes");
  else printf("No");
  return 0;
}
    

Compiler output:
main.c: In function 'main':
main.c:10:9: error: 'j' undeclared (first use in this function)
   10 |     for(j=0;j<3;j++) if(a[i]==k) a[i]=-1;
      |         ^
main.c:10:9: note: each undeclared identifier is reported only once for each function it appears in
Language: C++

#include<iostream>
#include<string>
#include<vector>
#include<iomanip>
#include<algorithm>
#include<queue>
#include<stack>
#include<list>
#include<map>
#include<deque>
using namespace std;
#define ll long long
int main(){
	int A[9];
    int i;
    for(i=0;i<9;i++){
        cin >> A[i];
    }
    int N,b;
    cin >> N;
    for(i=0;i<N;i++){
        cin >> b;
        for(j=0;j<9;j++){
            if(A[j]==b)A[j]=0;
        }
    }
    bool flag=false;
    if(A[0]==0 && A[3]==0;A[6]==0)flag=true;
    if(A[1]==0 && A[4]==0;A[7]==0)flag=true;
    if(A[2]==0 && A[5]==0;A[8]==0)flag=true;
    if(A[0]==0 && A[1]==0;A[2]==0)flag=true;
    if(A[3]==0 && A[4]==0;A[5]==0)flag=true;
    if(A[6]==0 && A[7]==0;A[8]==0)flag=true;
    if(A[0]==0 && A[4]==0;A[8]==0)flag=true;
    if(A[2]==0 && A[4]==0;A[6]==0)flag=true;
    if(flag)cout << "Yes";else cout << "No";
    return 0;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:23:13: error: 'j' was not declared in this scope
   23 |         for(j=0;j<9;j++){
      |             ^
Language: C++

#include <bits/stdc++.h>
using namespace std;
typedef long long LL;
#define rep(i, n) for (int i = 0; i < (int)(n); i++)
#define all(x) (x).begin(),(x).end()

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

  int n; cin >> n;
  int t;
  for (int b = b; i < n; b ++) {
    cin >> t;
    for (int i = 0; i < 3; i ++) {
      for (int j = 0; j < 3; j ++) {
        if (a[i][j] == t) check[i][j] = true;
      }
    }
  }

  string ans = "No";
  for (int i = 0; i < 3; i ++) {
    if (check[i][0] && check[i][1] && check[i][2]) ans = "Yes";
    if (check[0][i] && check[1][i] && check[2][i]) ans = "Yes";
  }
  if (check[2][0] && check[1][1] && check[0][2]) ans = "Yes";
  if (check[0][0] && check[1][1] && check[2][0]) ans = "Yes";

  cout << ans << endl;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:19:19: error: 'i' was not declared in this scope
   19 |   for (int b = b; i < n; b ++) {
      |                   ^
Language: Java

import java.util.*;
public class Main{
  public static void main(String[] args){
    Scanner sc=new Scanner (System.in);
    int B[][]=new int[3][3];
    for(int i=0;i<3;i++){
      for(int j=0;j<3;j++){
        B[i][j]=sc.nextInt();}}
    int N =sc.nextInt();
    int M[]=new int[N];
    Integer[] P=new Integer[10];
    int x=0;
    for(int k=0;k<N;k++){
      M[k]=sc.nextInt();
      loop:for(int l=0;l<3;l++){
        for(int m=0;m<3;m++){
          if(M[k]==B[l][m]){P[k]=3*l+m+1;x=x+1break loop;}}}
      if(x>2){
    if(Arrays.asList(P).contains(1)){
        if(Arrays.asList(P).contains(2)&&Arrays.asList(P).contains(3)){System.out.println("Yes");System.exit(0);}
        else if(Arrays.asList(P).contains(4)&&Arrays.asList(P).contains(7)){System.out.println("Yes");System.exit(0);}
        else if(Arrays.asList(P).contains(5)&&Arrays.asList(P).contains(9)){System.out.println("Yes");System.exit(0);}}
      if(Arrays.asList(P).contains(5)){
        if(Arrays.asList(P).contains(2)&&Arrays.asList(P).contains(8)){System.out.println("Yes");System.exit(0);}
        if(Arrays.asList(P).contains(3)&&Arrays.asList(P).contains(7)){System.out.println("Yes");System.exit(0);}
        if(Arrays.asList(P).contains(4)&&Arrays.asList(P).contains(6)){System.out.println("Yes");System.exit(0);}}
      if(Arrays.asList(P).contains(9)){
        if(Arrays.asList(P).contains(3)&&Arrays.asList(P).contains(6)){System.out.println("Yes");System.exit(0);}
        if(Arrays.asList(P).contains(7)&&Arrays.asList(P).contains(8)){System.out.println("Yes");System.exit(0);}}}}
    System.out.println("No");}
}

Compiler output:
Main.java:17: error: ';' expected
          if(M[k]==B[l][m]){P[k]=3*l+m+1;x=x+1break loop;}}}
                                              ^
1 error
Language: Java

import java.util.*;
public class Main{
  public static void main(String[] args){
    Scanner sc=new Scanner (System.in);
    int B[]=new int[9];
    for(int i=0;i<9;i++){
        B[i]=sc.nextInt();}}
    int N =sc.nextInt();
    int M[]=new int[N];
    Integer[] P=new Integer[10];
    for(int k=0;k<N;k++){
      M[k]=sc.nextInt();
      loop:for(int l=0;l<9;l++){
          if(M[k]==B[l]){P[k]=l+1;break loop;}}
    if(Arrays.asList(P).contains(1)){
        if(Arrays.asList(P).contains(2)&&Arrays.asList(P).contains(3)){System.out.println("Yes");System.exit(0);}
        else if(Arrays.asList(P).contains(4)&&Arrays.asList(P).contains(7)){System.out.println("Yes");System.exit(0);}
        else if(Arrays.asList(P).contains(5)&&Arrays.asList(P).contains(9)){System.out.println("Yes");System.exit(0);}}
      if(Arrays.asList(P).contains(5)){
        if(Arrays.asList(P).contains(2)&&Arrays.asList(P).contains(8)){System.out.println("Yes");System.exit(0);}
        if(Arrays.asList(P).contains(3)&&Arrays.asList(P).contains(7)){System.out.println("Yes");System.exit(0);}
        if(Arrays.asList(P).contains(4)&&Arrays.asList(P).contains(6)){System.out.println("Yes");System.exit(0);}}
      if(Arrays.asList(P).contains(9)){
        if(Arrays.asList(P).contains(3)&&Arrays.asList(P).contains(6)){System.out.println("Yes");System.exit(0);}
        if(Arrays.asList(P).contains(7)&&Arrays.asList(P).contains(8)){System.out.println("Yes");System.exit(0);}}}
    System.out.println("No");}
}

Compiler output:
Main.java:11: error: illegal start of type
    for(int k=0;k<N;k++){
    ^
Main.java:11: error: > or ',' expected
    for(int k=0;k<N;k++){
                   ^
Main.java:11: error: <identifier> expected
    for(int k=0;k<N;k++){
                     ^
Main.java:26: error: <identifier> expected
    System.out.println("No");}
                      ^
Main.java:26: error: illegal start of type
    System.out.println("No");}
                       ^
Main.java:27: error: class, interface, enum, or record expected
}
^
6 errors
Language: C++

#include <iostream>

using namespace std;

int main()
{
	int A[3][3];
	int N, bingo[8] = {0};
	for (int i = 0; i < 3; i++) {
		for (int j = 0; j < 3; j++) {
			cin >> A[i][j];
		}
	}
	cin >> N;
	vector<int> b(N);
	for (int i = 0; i < N; i++) cin >> b[i];

	for (int bn = 0; bn < N; bn++) {
		for (int i = 0; i < 3; i++) {
			for (int j = 0; j < 3; j++) {
				if (A[i][j] == b[bn]) A[i][j] = -1;
			}
		}
	}

	bool flg = false;
	for (int i = 0; i < 3; i++) {
		for (int j = 0; j < 3; j++) {
			if (A[i][0] + A[i][1] + A[i][2] == -3) flg = true;
			if (A[0][j] + A[1][j] + A[2][j] == -3) flg = true;
		}
	}

	if (A[0][0] + A[1][1] + A[2][2] == -3) flg = true;
	if (A[2][2] + A[1][1] + A[0][0] == -3) flg = true;
	
	flg ? cout << "Yes" : cout << "No";

	return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:15:9: error: 'vector' was not declared in this scope
   15 |         vector<int> b(N);
      |         ^~~~~~
a.cc:2:1: note: 'std::vector' is defined in header '<vector>'; this is probably fixable by adding '#include <vector>'
    1 | #include <iostream>
  +++ |+#include <vector>
    2 | 
a.cc:15:16: error: expected primary-expression before 'int'
   15 |         vector<int> b(N);
      |                ^~~
a.cc:16:44: error: 'b' was not declared in this scope
   16 |         for (int i = 0; i < N; i++) cin >> b[i];
      |                                            ^
a.cc:21:48: error: 'b' was not declared in this scope
   21 |                                 if (A[i][j] == b[bn]) A[i][j] = -1;
      |                                                ^
Language: C++

#include <bits/stdc++.h>
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++) {
      int A;
      cin >> A;
      bingo.at(i),at(j) = A;
    }
  }
  int N;
  cin >> N;
  for (int i = 0; i < N; i++) {
    int b;
    cin >> b;
    for (int j = 0; j < 3; j++) {
      for (int k = 0; k < 3; k++) {
        if (bingo.at(j).at(k) == b) {
          bingo.at(j).at(k) = 0;
        }
      }
    }
  }
  bool ok = false;
  for (int i = 0; i < 3; i++) {
    if (bingo.at(i).at(0) == 0 && bingo.at(i).at(1) == 0 && bingo.at(i).at(2) == 0) {
      ok = true;
    }
    if (bingo.at(0).at(i) == 0 && bingo.at(1).at(i) == 0 && bingo.at(2).at(i) == 0) {
      ok = true;
    }
  }
  if (bingo.at(0).at(0) == 0 && bingo.at(1).at(1) == 0 && bingo.at(2).at(2) == 0) {
    ok = true;
  }
  if (bingo.at(0).at(2) == 0 && bingo.at(1).at(1) == 0 && bingo.at(2).at(0) == 0) {
    ok = true;
  }
  if (ok) cout << "Yes" << endl;
  else cout << "No" << endl;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:10:19: error: 'at' was not declared in this scope
   10 |       bingo.at(i),at(j) = A;
      |                   ^~
Language: C++

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

int main(){
    int a[2][2], n , b[100];
    int count = 0;
    for(int i = 0; i < 3; i++){
        for(int j = 0; j < 3; i++){
            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; i < 3; i++){
            for(int k = 0; j < 3; i++){
                 if(b[i]== a[j][k]){
                     a[j][k] = 0;
                 }
            }
        }
     }
     for(int i = 0; i < n; i++){
            cin >> b[i];
        }
     for(int i = 0; i < n; i++){
        for(int j = 0; i < 3; i++){
            for(int k = 0; j < 3; i++){
                 if((a[j][k]==a[j+1][k] && a[j][k]==a[j+2][k] && a[j][k]==0)
                 ||(a[j][k]==a[j][k+1] && a[j][k]==a[j][k+2] && a[j][k]==0))
                 cout++;
                 break;
            }
        }
     }
     if(count == 0)cout << "No" <<endl;
     else cout << "Yes" << endl;

}

Compiler output:
a.cc: In function 'int main()':
a.cc:33:22: error: no 'operator++(int)' declared for postfix '++' [-fpermissive]
   33 |                  cout++;
      |                  ~~~~^~
Language: Java

import java.util.Scanner;
class Main{
  public static void main(String[] args){
    Scanner sc = new Scanner(System.in);
    
    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();
      }
    }
    
    int num = sc.nextInt();
    
    int[] readout = new int[num];
    for(int i = 0; i < n; i++){
      readout[i] = sc.nextInt();
    }
    int[][] punched = punch(bingo,num,readout);
    System.out.println(row(punched));
  }
  public static int[][] punch(int[][] bingo, int num, int[] readout){
    for(int i = 0; i < num; i++){
      for(int j = 0; j <3; j++){
        for(int k = 0; k < 3; k++){
          if(bingo[j][k] == readout[i]){
            bingo[j][k] = 0;
          }
        }
      }
    }
    return bingo;
  }
  public static String row(int[][] bunched){
    for(int i = 0; i < 3; i++){
      if(bunched[i][0] + bunched[i][0] + bunched [i][2] == 0){
        return "Yes";
      }
      if(bunched[0][i] + bunched [1][i] + bunched[2][i] == 0){
        return "Yes";
      }
    }
    if(bunched[0][0] + bunched[1][1] + bunched[2][2] == 0){
      return "Yes";
    }
    if(bunched[0][2] + bunched[1][1] + bunched[2][0] == 0){
      return "Yes";
    }
    return "No";
  }
}

Compiler output:
Main.java:16: error: cannot find symbol
    for(int i = 0; i < n; i++){
                       ^
  symbol:   variable n
  location: class Main
1 error