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

#include <iostream>
using namespace std;
int bingo[30][30];
bool bbingo[30][30];
int number[100];
int main(){
    int total;
    for(int i=0;i<3;i++){
        for(int j=0;j<3;j++){
            cin >> bingo[i][j];
            bbingo[i][j] = false;
        }
    }
    cin >> total;
    for(int a = 0;a < total;.a++){
        cin >> number[a];
    }
    for(int i=0;i<3;i++){
        for(int j=0;j<3;j++){
            for(int a = 0;a < total;a++){
                if(bingo[i][j] == number[a]){
                    bbingo[i][j] = true;
                }
            }
        }
    }
    if(1==1){
        for(int i=0;i<3;i++){
            if(bbingo[i][0]==bbingo[i][1] && bbingo[i][0]==bbingo[i][2] && bbingo[i][0]==true){
                cout << "Yes" << endl;
                return 0;
            }
        }
    }
    else if(1==1){
        for(int j=0;j<3;j++){
            if(bbingo[0][j]==bbingo[1][j] && bbingo[0][j]==bbingo[2][j] && bbingo[0][j]==true){
                cout << "Yes" << endl;
                return 0;
            }   
        }
    }
    else if (bbingo[0][0]==bbingo[1][1] && bbingo[0][0]==bbingo[2][2] && bbingo[0][0]==true){
        cout << "Yes" << endl;
        return 0;
    }
    else if(bbingo[0][2]==bbingo[1][1] && bbingo[0][2]==bbingo[2][0] && bbingo[0][2]==true){
        cout << "Yes" << endl;
        return 0;
    }
    else {
        cout << "No" << endl;
        return 0;
    }
}


Compiler output:
a.cc: In function 'int main()':
a.cc:15:29: error: expected primary-expression before '.' token
   15 |     for(int a = 0;a < total;.a++){
      |                             ^
Language: Java

import java.util.*;
class Main{
	public static void main() {
		int[][] A={{0,0,0},{0,0,0},{0,0,0}};
		Scanner scan = new Scanner(System.in);
		for(int i=0;i<9;i++){
			A[i][0]=scan.nextInt();
	}	
	int N;
		int b;
		N=scan.nextInt();
		for(int i=0;i<N;i++){
			b=scan.nextInt();
		}
		for(int i=0;i<9;i++){
			if(b==A[i][0]){
				A[i][1]=1;
		}	
	}
	for(int i=0;i<3;i++){
		int c=1;
		for(int j=0;j<3;j++){
			c*=A[i+3*j][1];
		}
		if((boolean)c){
			System.out.println("Yes");
			return;
		}
	}
	for(int i=0;i<3;i++){
		int c=1;
		for(int j=0;j<3;j++){
			c*=A[3*i+j][1];
		}
		if((boolean)c){
			System.out.println("Yes");
			return;
		}
	}
	if((boolean)(A[0][1]*A[4][1]*A[8][1])||(boolean)(A[2][1]*A[4][1]*A[6][1])){
		System.out.println("Yes");
		return;
	}
	System.out.println("No");
	}
}

Compiler output:
Main.java:25: error: incompatible types: int cannot be converted to boolean
		if((boolean)c){
		            ^
Main.java:35: error: incompatible types: int cannot be converted to boolean
		if((boolean)c){
		            ^
Main.java:40: error: incompatible types: int cannot be converted to boolean
	if((boolean)(A[0][1]*A[4][1]*A[8][1])||(boolean)(A[2][1]*A[4][1]*A[6][1])){
	            ^
Main.java:40: error: incompatible types: int cannot be converted to boolean
	if((boolean)(A[0][1]*A[4][1]*A[8][1])||(boolean)(A[2][1]*A[4][1]*A[6][1])){
	                                                ^
4 errors
Language: C++

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

Compiler output:
a.cc: In function 'int main()':
a.cc:21:25: error: expected unqualified-id before '=' token
   21 |                 for(int =1;ij=3;ij+)
      |                         ^
a.cc:21:24: error: expected ';' before '=' token
   21 |                 for(int =1;ij=3;ij+)
      |                        ^~
      |                        ;
a.cc:21:25: error: expected primary-expression before '=' token
   21 |                 for(int =1;ij=3;ij+)
      |                         ^
a.cc:21:28: error: 'ij' was not declared in this scope; did you mean 'i'?
   21 |                 for(int =1;ij=3;ij+)
      |                            ^~
      |                            i
a.cc:21:32: error: expected ')' before ';' token
   21 |                 for(int =1;ij=3;ij+)
      |                    ~           ^
      |                                )
a.cc:21:33: error: 'ij' was not declared in this scope; did you mean 'i'?
   21 |                 for(int =1;ij=3;ij+)
      |                                 ^~
      |                                 i
a.cc:21:36: error: expected primary-expression before ')' token
   21 |                 for(int =1;ij=3;ij+)
      |                                    ^
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++)
      {  int z=b[i];
          for(int j=0;j<n;j++)
            {
                for(int k=0;k<n;k++)
                  {  
                      if(b[i]==a[i][j])
                         {c[i][j]=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()

Compiler output:
a.cc:71:11: error: expected initializer at end of input
   71 | int main()
      |           ^
Language: Java

import java.util.*;
class Main{
	public static void main() {
		int[][] A={{0,0,0},{0,0,0},{0,0,0}};
		Scanner scan = new Scanner(System.in);
		for(int i=0;i<9;i++){
			A[i][0]=scan.nextInt();
	}	
	int N;
		int b;
		N=scan.nextInt();
		for(int i=0;i<N;i++){
			b=scan.nextInt();
		for(int i=0;i<9;i++){
			if(b==A[i][0]){
				A[i][1]=1;
			}	
		}	
	}
	for(int i=0;i<3;i++){
		int c=1;
		for(int j=0;j<3;j++){
			c*=A[i+3*j][1];
		}
		if(c){
			System.out.println("Yes");
			return;
		}
	}
	for(int i=0;i<3;i++){
		int c=1;
		for(int j=0;j<3;j++){
			c*=A[3*i+j][1];
		}
		if(c){
			System.out.println("Yes");
			return;
		}
	}
	if(A[0][1]*A[4][1]*A[8][1]||A[2][1]*A[4][1]*A[6][1]){
		System.out.println("Yes");
		return;
	}
	System.out.println("No");
	}
}

Compiler output:
Main.java:14: error: variable i is already defined in method main()
		for(int i=0;i<9;i++){
		        ^
Main.java:25: error: incompatible types: int cannot be converted to boolean
		if(c){
		   ^
Main.java:35: error: incompatible types: int cannot be converted to boolean
		if(c){
		   ^
Main.java:40: error: bad operand types for binary operator '||'
	if(A[0][1]*A[4][1]*A[8][1]||A[2][1]*A[4][1]*A[6][1]){
	                          ^
  first type:  int
  second type: int
4 errors
Language: Java

import java.util.*;
class Main{
	public static void main() {
		int[][] A={{0,0,0},{0,0,0},{0,0,0}};
		Scanner scan = new Scanner(System.in);
		for(int i=0;i<9;i++){
			A[i][0]=scan.nextInt();
	}	
	int N;
		int b;
		N=scan.nextInt();
		for(int i=0;i<N;i++){
			b=scan.nextInt();
		for(int i=0;i<9;i++){
			if(b==A[i][0]){
				A[i][1]=1;
			}	
		}	
	}
	for(int i=0;i<3;i++){
		int c=1;
		for(int j=0;j<3;j++){
			c*=A[i+3*j][1];
		}
		if(c){
			System.out.println("Yes");
			return 0;
		}
	}
	for(int i=0;i<3;i++){
		int c=1;
		for(int j=0;j<3;j++){
			c*=A[3*i+j][1];
		}
		if(c){
			System.out.println("Yes");
			return 0;
		}
	}
	if(A[0][1]*A[4][1]*A[8][1]||A[2][1]*A[4][1]*A[6][1]){
		System.out.println("Yes");
		return 0;
	}
	System.out.println("No");
	}
}

Compiler output:
Main.java:14: error: variable i is already defined in method main()
		for(int i=0;i<9;i++){
		        ^
Main.java:25: error: incompatible types: int cannot be converted to boolean
		if(c){
		   ^
Main.java:27: error: incompatible types: unexpected return value
			return 0;
			       ^
Main.java:35: error: incompatible types: int cannot be converted to boolean
		if(c){
		   ^
Main.java:37: error: incompatible types: unexpected return value
			return 0;
			       ^
Main.java:40: error: bad operand types for binary operator '||'
	if(A[0][1]*A[4][1]*A[8][1]||A[2][1]*A[4][1]*A[6][1]){
	                          ^
  first type:  int
  second type: int
Main.java:42: error: incompatible types: unexpected return value
		return 0;
		       ^
7 errors
Language: Java

class Main{
	public static void main() {
		int[][] A={{0,0,0},{0,0,0},{0,0,0}};
		Scanner scan = new Scanner(System.in);
		for(int i=0;i<9;i++){
			A[i][0]=scan.nextInt();
	}	
	int N;
		int b;
		N=scan.nextInt();
		for(int i=0;i<N;i++){
			b=scan.nextInt();
		for(int i=0;i<9;i++){
			if(b==A[i][0]){
				A[i][1]=1;
			}	
		}	
	}
	for(int i=0;i<3;i++){
		int c=1;
		for(int j=0;j<3;j++){
			c*=A[i+3*j][1];
		}
		if(c){
			System.out.println("Yes");
			return 0;
		}
	}
	for(int i=0;i<3;i++){
		int c=1;
		for(int j=0;j<3;j++){
			c*=A[3*i+j][1];
		}
		if(c){
			System.out.println("Yes");
			return 0;
		}
	}
	if(A[0][1]*A[4][1]*A[8][1]||A[2][1]*A[4][1]*A[6][1]){
		System.out.println("Yes");
		return 0;
	}
	System.out.println("No");
	}
}

Compiler output:
Main.java:4: error: cannot find symbol
		Scanner scan = new Scanner(System.in);
		^
  symbol:   class Scanner
  location: class Main
Main.java:4: error: cannot find symbol
		Scanner scan = new Scanner(System.in);
		                   ^
  symbol:   class Scanner
  location: class Main
Main.java:13: error: variable i is already defined in method main()
		for(int i=0;i<9;i++){
		        ^
Main.java:24: error: incompatible types: int cannot be converted to boolean
		if(c){
		   ^
Main.java:26: error: incompatible types: unexpected return value
			return 0;
			       ^
Main.java:34: error: incompatible types: int cannot be converted to boolean
		if(c){
		   ^
Main.java:36: error: incompatible types: unexpected return value
			return 0;
			       ^
Main.java:39: error: bad operand types for binary operator '||'
	if(A[0][1]*A[4][1]*A[8][1]||A[2][1]*A[4][1]*A[6][1]){
	                          ^
  first type:  int
  second type: int
Main.java:41: error: incompatible types: unexpected return value
		return 0;
		       ^
9 errors
Language: Java

public class 157b {
	public static void main() {
		int[][] A={{0,0,0},{0,0,0},{0,0,0}};
	for(int i=0;i<9;i++){
		scanf("%d",&A[i][0]);	
	}	
	int N;
	int b;
	scanf("%d",&N);
	for(int i=0;i<N;i++){
		scanf("%d",&b);
		for(int i=0;i<9;i++){
			if(b==A[i][0]){
				A[i][1]=1;
			}	
		}	
	}
	for(int i=0;i<3;i++){
		int c=1;
		for(int j=0;j<3;j++){
			c*=A[i+3*j][1];
		}
		if(c){
			System.out.println("Yes");
			return 0;
		}
	}
	for(int i=0;i<3;i++){
		int c=1;
		for(int j=0;j<3;j++){
			c*=A[3*i+j][1];
		}
		if(c){
			System.out.println("Yes");
			return 0;
		}
	}
	if(A[0][1]*A[4][1]*A[8][1]||A[2][1]*A[4][1]*A[6][1]){
		System.out.println("Yes");
		return 0;
	}
	System.out.println("No");
	}
}

Compiler output:
Main.java:1: error: <identifier> expected
public class 157b {
            ^
Main.java:5: error: illegal start of expression
		scanf("%d",&A[i][0]);	
		           ^
Main.java:9: error: illegal start of expression
	scanf("%d",&N);
	           ^
Main.java:11: error: illegal start of expression
		scanf("%d",&b);
		           ^
4 errors
Language: Java

public class Main {
	public static void main(String[] args) {

	    Scanner sc = new Scanner(System.in);
	    int A11 = sc.nextInt();
	    int A12 = sc.nextInt();
	    int A13 = sc.nextInt();
	    int A21 = sc.nextInt();
	    int A22 = sc.nextInt();
	    int A23 = sc.nextInt();
	    int A31 = sc.nextInt();
	    int A32 = sc.nextInt();
	    int A33 = sc.nextInt();

	    HashMap<Integer, Integer> map = new HashMap<>();
	    map.put(A11, 0);
	    map.put(A12, 0);
	    map.put(A13, 0);
	    map.put(A21, 0);
	    map.put(A22, 0);
	    map.put(A23, 0);
	    map.put(A31, 0);
	    map.put(A32, 0);
	    map.put(A33, 0);


	    int N = sc.nextInt();
	    for(int i = 0; i < N; i++) {
	    	int b = sc.nextInt();
	    	map.get(b);
	    	map.put(b, 1);
	    }


	    boolean flg = false;
	    // 縦
	    if(map.get(A11)==1 && map.get(A21)==1 && map.get(A31)==1) {flg = true;}
	    if(map.get(A12)==1 && map.get(A22)==1 && map.get(A32)==1) {flg = true;}
	    if(map.get(A13)==1 && map.get(A23)==1 && map.get(A33)==1) {flg = true;}

	    // 横
	    if(map.get(A11)==1 && map.get(A12)==1 && map.get(A13)==1) {flg = true;}
	    if(map.get(A21)==1 && map.get(A22)==1 && map.get(A23)==1) {flg = true;}
	    if(map.get(A31)==1 && map.get(A32)==1 && map.get(A33)==1) {flg = true;}

	    // 斜め
	    if(map.get(A11)==1 && map.get(A22)==1 && map.get(A33)==1) {flg = true;}
	    if(map.get(A31)==1 && map.get(A22)==1 && map.get(A13)==1) {flg = true;}

	    if (flg) {
	    	System.out.println("Yes");
	    } else {
	    	System.out.println("No");
	    }
	    
	}
}

Compiler output:
Main.java:4: error: cannot find symbol
	    Scanner sc = new Scanner(System.in);
	    ^
  symbol:   class Scanner
  location: class Main
Main.java:4: error: cannot find symbol
	    Scanner sc = new Scanner(System.in);
	                     ^
  symbol:   class Scanner
  location: class Main
Main.java:15: error: cannot find symbol
	    HashMap<Integer, Integer> map = new HashMap<>();
	    ^
  symbol:   class HashMap
  location: class Main
Main.java:15: error: cannot find symbol
	    HashMap<Integer, Integer> map = new HashMap<>();
	                                        ^
  symbol:   class HashMap
  location: class Main
4 errors
Language: C++

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

int main() {
    vector<vector<int>> a(3, vector<int>(3));
    rep(i, 3)rep(j, 3) {
        cin >> a[i][j];
    }
    int n;
    cin >> n;
    vector<int> b(n);
    rep(i, n) cin >> b[i];
    vector<vector<bool>> appear(3, vector<bool>(3));
    rep(i, 3)rep(j, 3) {
        appear[i][j] = false;
        rep(k, n) {
            if (a[i][j] == b[k]) appear[i][j] = true;
        }
    }
    string ans = "No";
    rep(i, 3) {
        if (appear[i][0] && appear[i][1] && appear[i][2]) ans = "Yes";
    }
    rep(i, 3) {
        if (appear[0][i] && appear[1][i] && 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:30:56: error: 'ANS' was not declared in this scope
   30 |     if(appear[0][0] and appear[1][1] and appear[2][2]) ANS = "Yes";
      |                                                        ^~~
a.cc:31:56: error: 'ANS' was not declared in this scope
   31 |     if(appear[0][2] and appear[1][1] and appear[2][0]) ANS = "Yes";
      |                                                        ^~~
Language: C++

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

int main() {
    int n, temp;
    bool flag = false;
    vector<vector<int>> bingo(3, vector<int>(3)), check(3, vector<int>(3, 0));
    rep(i, 3) rep(j, 3) cin >> bingo.at(i).at(j);
    cin >> n;
    rep(i, n) {
        cin >> temp;
        rep(j, 3) rep(k, 3) if(temp == bingo.at(j).at(k)) check.at(j).at(k) = 1;
    }
    rep(i, 3) {
        int r = 1, c = 1;
        rep(j, 3) r &= check.at(i).at(j);
        rep(j, 3) c &= check.at(j).at(i);
        if(t | c) flag = true;
    }
    int s = 1, t = 1;
    rep(i, 3) {
        s &= check.at(i).at(i);
        t &= check.at(i).at(2 - i);
    }
    if(s | t) flag = true;
    if(flag) cout << "Yes" << endl;
    else cout << "No" << endl;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:19:12: error: 't' was not declared in this scope
   19 |         if(t | c) flag = true;
      |            ^
Language: C++

#include<bits/stdc++.h>
using namespace std;
int main()
{
	int a[3][3];
    int b[9];
	for(int i=0;i<=3;i++)
	{
		for(int j=0;j<=n;j++)
		{
		    cin>>a[i][j];	
		}
	}
	int x=0;
	for(int i=0;i<=3;i++)
	{
		for(int j=0;j<=n;j++)
		{
			x++;
		    b[x]=a[i][j];	
		}
	}
	int n,y;
	while(n!=0)
	{
		cin>>y;
		for(int i=0;i<=9;i++)
		{
			if(b[i]==y)
			{
				cout<<"Yes";
				return 0;
			}
		}
		n--;	
	}	
	cout<<"No";
	return 0;
}

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

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

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

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

#include <stdio.h>

int	mian()
{
	int A[20],N,b[20],i,l,n,c;

	scanf("%d %d %d %d %d %d %d %d %d",
	A[0],A[1],A[2],A[3],A[4],A[5],A[6],A[7],A[8]);

	scanf("%d",&N);

	n = N;
	while(N)
	{
		scanf("%d",b[i]);
		N--;
	}

	i = 0;
	l = 0;
	while(n)
	{
		while(A[l] != '\0')
		{
			if(A[l] == b[i])
			{
				A[l] = 0;
				c++;
			}

			i++;
			l++;
		}
		n--;
	}

	if((A[0] == 0 && A[1] == 0 && A[2])||
		(A[0] == 0 && A[3] == 0 && A[6] == 0)||
		(A[0] == 0 && A[4] == 0 && A[8] == 0)||
		(A[1] == 0 && A[4] == 0 && A[7] == 0)||
		(A[2] == 0 && A[5] == 0 && A[8] == 0)||
		(A[2] == 0 && A[4] == 0 && A[6] == 0)||
		(A[3] == 0 && A[4] == 0 && A[5] == 0)||
		(A[6] == 0 && A[7] == 0 && A[8] == 0))
		{
			printf("Yes");
			return 0
		}

	printf("No");
	return 0;


Compiler output:
main.c: In function 'mian':
main.c:47:33: error: expected ';' before '}' token
   47 |                         return 0
      |                                 ^
      |                                 ;
   48 |                 }
      |                 ~                
main.c:51:9: error: expected declaration or statement at end of input
   51 |         return 0;
      |         ^~~~~~
Language: C++

#include <iostream>
using namespace std;


int main(){
    int bingo[3][3];
    for(int i=0;i!=3;++i){
        for(int j=0;j!=3;++j){
            cin>>bingo[i][j];
        }
    }
    int N;
    cin>>N;
    int b[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){
            for(int k=0;k!=N;++k){
                if(bingo[i][j]==b[k]){
                    bingo[i][j]=101;
                    break;
                }
            }
        }
    }
    /*
    for(int i=0;i!=3;++i){
        for(int j=0;j!=3;++j){
            cout<<bingo[i][j];
        }
        cout<<endl;
    }
    */
    
   
  
    bool ans=true;
    for(int i=0;i!=3;++i){
        for(int j=0;j!=3;++j){
            if(bingo[i][j]!=110){
                ans=false;
                break;
            }
            
        }
        if(ans==true){
            cout<<"Yes"<<endl;
            return 0;
        }
        
    }
    ans =true;
    for(int i=0;i!=3;++i){
          for(int j=0;j!=3;++j){
              if(bingo[j][i]!=110){
                  ans=false
                  break;
              }
              
          }
          if(ans==true){
              cout<<"Yes"<<endl;
              return 0;
          }
          
      }
    
    ans =true;
    for(int i=0;i!=3;++i){
        if(bingo[i][i]!=101){
            ans=false;
            break;
        }
    }
    if(ans==true){
        cout<<"Yes"<<endl;
    }
    
    ans =true;
    for(int i=0;i!=3;++i){
           if(bingo[i][2-i]!=101){
               ans=false;
               break;
           }
    }
    if(ans==true){
           cout<<"Yes"<<endl;
    }
    
    cout<<"No"<<endl;
    return 0;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:60:28: error: expected ';' before 'break'
   60 |                   ans=false
      |                            ^
      |                            ;
   61 |                   break;
      |                   ~~~~~
Language: C++

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

int main(){
  vector<int> A(9);
  
  for (int i = 0; i < 9; i++){
    cin >> A.at(i);
  }
  
  int N;
  cin >> N;
  
  for (int j = 0; j < N; j++){
    int B;
    cin >> B;

Compiler output:
a.cc: In function 'int main()':
a.cc:16:14: error: expected '}' at end of input
   16 |     cin >> B;
      |              ^
a.cc:14:30: note: to match this '{'
   14 |   for (int j = 0; j < N; j++){
      |                              ^
a.cc:16:14: error: expected '}' at end of input
   16 |     cin >> B;
      |              ^
a.cc:4:11: note: to match this '{'
    4 | int main(){
      |           ^
Language: C++

#include <stdio.h>
int a[5][5],n,b[12];bool t[5][5],ok=1;
main(){
    for(register int i=1;i<=3;i++) for(register int j=1;j<=3;j++) scanf("%d",&a[i][j]);scanf("%d",&n);
    for(register int k=1;k<=n;k++){scanf("%d",&b[i]);}return printf("Yes\n"),0;
}

Compiler output:
a.cc:3:1: warning: ISO C++ forbids declaration of 'main' with no type [-Wreturn-type]
    3 | main(){
      | ^~~~
a.cc: In function 'int main()':
a.cc:4:22: warning: ISO C++17 does not allow 'register' storage class specifier [-Wregister]
    4 |     for(register int i=1;i<=3;i++) for(register int j=1;j<=3;j++) scanf("%d",&a[i][j]);scanf("%d",&n);
      |                      ^
a.cc:4:53: warning: ISO C++17 does not allow 'register' storage class specifier [-Wregister]
    4 |     for(register int i=1;i<=3;i++) for(register int j=1;j<=3;j++) scanf("%d",&a[i][j]);scanf("%d",&n);
      |                                                     ^
a.cc:5:22: warning: ISO C++17 does not allow 'register' storage class specifier [-Wregister]
    5 |     for(register int k=1;k<=n;k++){scanf("%d",&b[i]);}return printf("Yes\n"),0;
      |                      ^
a.cc:5:50: error: 'i' was not declared in this scope
    5 |     for(register int k=1;k<=n;k++){scanf("%d",&b[i]);}return printf("Yes\n"),0;
      |                                                  ^
Language: Java

import java.util.Scanner;

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

        // 標準入力から値を取得してinput_lineに入れる
        String line1 = sc.nextLine();
        String num1 = line1.substring(0,line1.indexOf(" "));
        String num2 = num1.substring(0,line1.indexOf(" "));
        String num3 = num2.substring(0);
        String line2 = sc.nextLine();
        String num4 = line2.substring(0,line2.indexOf(" "));
        String num5 = num4.substring(0,line2.indexOf(" "));
        String num6 = num5.substring(0);
        String line3 = sc.nextLine();
        String num7 = line3.substring(0,line3.indexOf(" "));
        String num8 = num7.substring(0,line3.indexOf(" "));
        String num9 = num8.substring(0);
        String num1c = "";
        String num2c = "";
        String num3c = "";
        String num4c = "";
        String num5c = "";
        String num6c = "";
        String num7c = "";
        String num8c = "";
        String num9c = "";


        // ArrayList<String> input = new ArrayList<String>();
        // 入力をすべて受け取る
        while(sc.hasNextLine()){
         String inta = sc.nextLine();
        //   if(inta.equals(null)){
        //       break;
        //   }
         	if(inta.equals(num1)) {
         		num1c = "check";
         	}
         	if(inta.equals(num2)) {
         		num2c = "check";
         	}
         	if(inta.equals(num3)) {
         		num3c = "check";
         	}
         	if(inta.equals(num4)) {
         		num4c = "check";
         	}
         	if(inta.equals(num5)) {
         		num5c = "check";
         	}
         	if(inta.equals(num6)) {
         		num6c = "check";
         	}
         	if(inta.equals(num7)) {
         		num7c = "check";
         	}
         	if(inta.equals(num8)) {
         		num8c = "check";
         	}
         	if(inta.equals(num9)) {
         		num9c = "check";
         	}
        }
        if(num1c.equals("check") && num2c.equals("check") && num3c.equals("check")) {
        	System.out.println("Yes");
        } else if(num1c.equals("check") && num4c.equals("check") && num7c.equals("check")) {
        	System.out.println("Yes");
        } else if(num1c.equals("check") && num5c.equals("check") && num9c.equals("check")) {
        	System.out.println("Yes");
        } else if(num2c.equals("check") && num5c.equals("check") && num8c.equals("check")) {
        	System.out.println("Yes");
        } else if(num3c.equals("check") && num5c.equals("check") && num7c.equals("check")) {
        	System.out.println("Yes");
        } else if(num3c.equals("check") && num6c.equals("check") && num9c.equals("check")) {
        	System.out.println("Yes");
        } else if(num4c.equals("check") && num5c.equals("check") && num6c.equals("check")) {
        	System.out.println("Yes");
        } else if(num7c.equals("check") && num8c.equals("check") && num9c.equals("check")) {
        	System.out.println("Yes");
        } else {
        	System.out.println("No");
        }

}
}

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

/******************************************************************************

                              Online C++ Compiler.
               Code, Compile, Run and Debug C++ program online.
Write your code in this editor and press "Run" button to compile and execute it.

*******************************************************************************/

#include <iostream>
#include <bits/stdc++.h>


using namespace std;

int main()
{
    int a = 0, b = 0, n = 0,it = 0; 
    vector<int> num;
    vector<int> val;
    for(int i = 0; i < 9; i++){
        cin >> a;
        num.push_back(a);
    }
    cin >> n; 
    for(int i = 0; i < n; i++){
        cin >> b;
        val.push_back(b);
    }
    
    for(int i = 0; i < val.size(); i++){
       if(find(num.begin(), num.end(), val[i]) != num.end()){
           it = *(find(num.begin(), num.end(), val[i]));
           num[it] = -1; 
       }
    }
    if(num[0] == -1 && num[1] = -1 && num[2] == -1){
        cout << "Yes";
        return 0;
    }else if(num[3] == -1 && num[4] = -1 && num[5] == -1){
        cout << "Yes";
        return 0;
    }else if(num[6] == -1 && num[7] = -1 && num[8] == -1){
        cout << "Yes";
        return 0;
    }else if(num[0] == -1 && num[3] = -1 && num[6] == -1){
        cout << "Yes";
        return 0;
    }else if(num[1] == -1 && num[4] = -1 && num[7] == -1){
        cout << "Yes";
        return 0;
    }else if(num[2] == -1 && num[5] = -1 && num[8] == -1){
        cout << "Yes";
        return 0;
    }else if(num[0] == -1 && num[4] = -1 && num[8] == -1){
        cout << "Yes";
        return 0;
    }else if(num[2] == -1 && num[4] = -1 && num[6] == -1){
        cout << "Yes";
        return 0;
    }else{
        cout << "No";
    }
    

    return 0;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:36:21: error: lvalue required as left operand of assignment
   36 |     if(num[0] == -1 && num[1] = -1 && num[2] == -1){
a.cc:39:27: error: lvalue required as left operand of assignment
   39 |     }else if(num[3] == -1 && num[4] = -1 && num[5] == -1){
a.cc:42:27: error: lvalue required as left operand of assignment
   42 |     }else if(num[6] == -1 && num[7] = -1 && num[8] == -1){
a.cc:45:27: error: lvalue required as left operand of assignment
   45 |     }else if(num[0] == -1 && num[3] = -1 && num[6] == -1){
a.cc:48:27: error: lvalue required as left operand of assignment
   48 |     }else if(num[1] == -1 && num[4] = -1 && num[7] == -1){
a.cc:51:27: error: lvalue required as left operand of assignment
   51 |     }else if(num[2] == -1 && num[5] = -1 && num[8] == -1){
a.cc:54:27: error: lvalue required as left operand of assignment
   54 |     }else if(num[0] == -1 && num[4] = -1 && num[8] == -1){
a.cc:57:27: error: lvalue required as left operand of assignment
   57 |     }else if(num[2] == -1 && num[4] = -1 && num[6] == -1){
Language: C++

#include <iostream>
#include <string>
using namespace std;
int main()
{
  int A[3][3];
  int b;
  int c;
  string ans="No";
  int i;
  for(i=0;i<3;i++){
    for(j=0;j<3;j++){
      cin >> A[i][j];
    }
  }
  cin >> b;
  for(i=0;i<b;i++){
    cin >> c;
    for(i=0;i<3;i++){
      for(j=0;j<3;j++){
        if(c == A[i][j]){
          ans ="Yes";
        }
      }
    }
  }
  cout <<ans;
}



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

#include<stdio.h>
int main()
{
  int N[3][3];
  int B[3][3];
  int nb, n;
  int i, j, k;
  i = 0;
  j = 0;
  while (j < 3)
  {    
  	k = 0;
  	while (k < 3)
  	{
      B[j][k] = 0;
      k++;
     }
     j++;
  }
  i = 0
  while (i < 3)
  {
    scanf("%d %d %d", &N[i][0], &N[i][1], &N[i][2]);
    i++;
  }
  scanf("%d", &nb);
  i = 0;
  while (i < nb)
  {
    scanf("%d", &n);
    j = 0;
    while (j < 3)
    {
      k = 0;
      while (k < 3)
      {
        if (n == N[j][k])
        {
          B[j][k] = 1;
        }
        k++;
      }
      j++;
    }
    i++;
  }
  //行
  i = 0;
  while (i < 3)
  {
    if (B[i][0] + B[i][1] + B[i][2] == 3)
    {
      printf("Yes");
      return (0);
    }
    i++;
  }
  //列
  i = 0;
  while (i < 3)
  {
    if (B[0][i] + B[1][i] + B[2][i] == 3)
    {
      printf("Yes");
      return (0);
    }
    i++;
  }
  //斜め
  if (B[0][0] + B[1][1] + B[2][2] == 3)
    {
      printf("Yes");
      return (0);
    }
  else if (B[2][0] + B[1][1] + B[0][2] == 3)
    {
      printf("Yes");
      return (0);
    }
  printf("No");
  return (0);
}

Compiler output:
main.c: In function 'main':
main.c:20:8: error: expected ';' before 'while'
   20 |   i = 0
      |        ^
      |        ;
   21 |   while (i < 3)
      |   ~~~~~
Language: C++

#include <iostream>
#include <string>
using namespace std;
int main()
{
  int A[3][3];
  int b;
  int c;
  string ans=;
  int i;
  for(i=0;i<3;i++){
    for(j=0;j<3;j++){
      cin >> A[i][j];
    }
  }
  cin >> b;
  for(i=0;i<b;i++){
    cin >> c;
    for(i=0;i<3;i++){
      for(j=0;j<3;j++){
        if(c == A[i][j]){
          ans ="No";
        }
      }
    }
  }
  cout <<ans;
}



Compiler output:
a.cc: In function 'int main()':
a.cc:9:14: error: expected primary-expression before ';' token
    9 |   string ans=;
      |              ^
a.cc:12:9: error: 'j' was not declared in this scope
   12 |     for(j=0;j<3;j++){
      |         ^
a.cc:20:11: error: 'j' was not declared in this scope
   20 |       for(j=0;j<3;j++){
      |           ^
Language: C++

#include <iostream>
#include <string>
using namespace std;
int main()
{
  int A[3][3];
  int b;
  int c;
  string ans=;
  int i;
  for(i=0;i<3;i++){
    for(j=0;j<3;j++){
      cin >> A[i][j];
    }
  }
  cin >> b;
  for(i=0;i<b;i++){
    cin >> c;
    for(i=0;i<3;i++){
      for(j=0;j<3;j++){
        if(c == A[i][j]){
          ans ="No"
        }
      }
    }
  }
  cout <<ans
}



Compiler output:
a.cc: In function 'int main()':
a.cc:9:14: error: expected primary-expression before ';' token
    9 |   string ans=;
      |              ^
a.cc:12:9: error: 'j' was not declared in this scope
   12 |     for(j=0;j<3;j++){
      |         ^
a.cc:20:11: error: 'j' was not declared in this scope
   20 |       for(j=0;j<3;j++){
      |           ^
a.cc:22:20: error: expected ';' before '}' token
   22 |           ans ="No"
      |                    ^
      |                    ;
   23 |         }
      |         ~           
a.cc:27:13: error: expected ';' before '}' token
   27 |   cout <<ans
      |             ^
      |             ;
   28 | }
      | ~
Language: C++

#include <bits/stdc++.h>
using namespace std;
bool myComparison(const pair<string,int> &a,const pair<string,int> &b)
{
       return a.second<b.second;
}
long long val(char x){
    if(x=='7'|| x=='9')
    return 4;
    else
    return 3;
}
void man()
{
    int A[3][3],i,j;
	for(i=0;i<3;++i)
	{
		for(j=0;j<3;++j)
		{
			cin>>A[i][j];
		}
	}
 
	int N;
	cin>>N;
 
	int B[N];
	for(i=0;i<N;++i)
	{
		cin>>B[i];
	}
 
	int c=0,f=0;
	for(i=0;i<N;++i)
	{
		for(int k=0;k<3;++k)
		{
			for(j=0;j<3;++j)
			{
				if(B[i]==A[k][j])
				{
					A[k][j]=0;
                  B[i]=0;
					c++;
					f=1;
				}
			}
		}
	}
 
	    if((A[0][0]==0&&A[1][1]==0&&A[2][2]==0))
	    {
	    	cout<<"Yes"<<endl;
	    }
	    else if((A[0][2]==0&&A[1][1]==0&&A[2][0]==0))
	    {
	    	cout<<"Yes"<<endl;
	    }
	    else if((A[0][1]==0&&A[0][2]==0&&A[0][3]==0))
	    {
	    	cout<<"Yes"<<endl;
	    }
	    else if((A[1][1]==0&&A[1][2]==0&&A[1][0]==0))
	    {
	    	cout<<"Yes"<<endl;
	    }
	    else if((A[2][1]==0&&A[2][2]==0&&A[2][0]==0))
	    {
	    	cout<<"Yes"<<endl;
	    }
	    else if((A[1][1]==0&&A[0][1]==0&&A[2][1]==0))
	    {
	    	cout<<"Yes"<<endl;
	    }
	    else if((A[1][2]==0&&A[0][2]==0&&A[2][2]==0))
	    {
	    	cout<<"Yes"<<endl;
	    }
	    else if((A[0][0]==0&&A[1][0]==0&&A[2][0]==0))
	    {
	    	cout<<"Yes"<<endl;
	    }
	    else
	    {
	    	cout<<"No"<<endl;
	    }
	}
}

    
    
    
    
    
    
    
    
    
    
    
    












int main() {
   // int t;
   // cin>>t;
   // while(t--)
   {
      man();
    }
	// your code goes here
	return 0;
}

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

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

int main(){
  int n;
  cin >> n;
  int a[3][3];
  rep(i,3){
  	rep(j,3){
  		cin >> a[i][j];
  	}
  }
  int b[n];
  rep(i,n){
  	cin >> b[i];
  }
  
  bool can = false;
  rep(i,3){
  	rep(j,3){
  		rep(k,n){
  			if(a[i][j] == b[k]){
  				a[i][j] = 0;
  			}
  		}
  	}
  }
  if(a[0][0] + a[0][1] + a[0][2] == 0) can = true
  if(a[1][0] + a[1][1] + a[1][2] == 0) can = true
  if(a[2][0] + a[2][1] + a[2][2] == 0) can = true
  if(a[0][0] + a[1][0] + a[2][0] == 0) can = true
  if(a[0][1] + a[1][1] + a[2][1] == 0) can = true
  if(a[0][2] + a[1][2] + a[2][2] == 0) can = true
  if(a[0][0] + a[1][1] + a[2][2] == 0) can = true
  if(a[2][0] + a[1][1] + a[0][2] == 0) can = true
  if(can) cout << "Yes" << endl;
  else cout << "No" << endl;
  return 0;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:32:50: error: expected ';' before 'if'
   32 |   if(a[0][0] + a[0][1] + a[0][2] == 0) can = true
      |                                                  ^
      |                                                  ;
   33 |   if(a[1][0] + a[1][1] + a[1][2] == 0) can = true
      |   ~~
Language: C++

r<int> vec1(3) , vec2(3) ,vec3(3);
  int N , S;
  
  cin >> vec1.at(0) >> vec1.at(1) >> vec1.at(2);
  cin >> vec2.at(0) >> vec2.at(1) >> vec2.at(2);
  cin >> vec3.at(0) >> vec3.at(1) >> vec3.at(2);

  cin >> N;
  
   for( int i = 0; i < N; i++){
     int bi = 0;
     cin >> bi;
     if( bi == vec1.at(0)) vec1.at(0) = 0;
     if( bi == vec1.at(1)) vec1.at(1) = 0;
     if( bi == vec1.at(2)) vec1.at(2) = 0;
     if( bi == vec2.at(0)) vec2.at(0) = 0; 
     if( bi == vec2.at(1)) vec2.at(1) = 0; 
     if( bi == vec2.at(2)) vec2.at(2) = 0;
     if( bi == vec3.at(0)) vec3.at(0) = 0;  
     if( bi == vec3.at(1)) vec3.at(1) = 0; 
     if( bi == vec3.at(2)) vec3.at(2) = 0;     
   }
  if((vec1.at(0) == 0 && vec1.at(1) == 0 && vec1.at(2) == 0) || 
     (vec2.at(0) == 0 && vec2.at(1) == 0 && vec2.at(2) == 0) ||
     (vec3.at(0) == 0 && vec3.at(1) == 0 && vec3.at(2) == 0) || 
     (vec1.at(0) == 0 && vec2.at(0) == 0 && vec3.at(0) == 0) || 
     (vec1.at(1) == 0 && vec2.at(1) == 0 && vec3.at(1) == 0) || 
     (vec1.at(2) == 0 && vec2.at(2) == 0 && vec3.at(2) == 0) || 
     (vec1.at(0) == 0 && vec2.at(1) == 0 && vec3.at(2) == 0) || 
     (vec1.at(2) == 0 && vec2.at(1) == 0 && vec3.at(0) == 0) )
    cout << "Yes" ;
  else cout << "No";
}

Compiler output:
a.cc:1:1: error: 'r' does not name a type
    1 | r<int> vec1(3) , vec2(3) ,vec3(3);
      | ^
a.cc:4:3: error: 'cin' does not name a type
    4 |   cin >> vec1.at(0) >> vec1.at(1) >> vec1.at(2);
      |   ^~~
a.cc:5:3: error: 'cin' does not name a type
    5 |   cin >> vec2.at(0) >> vec2.at(1) >> vec2.at(2);
      |   ^~~
a.cc:6:3: error: 'cin' does not name a type
    6 |   cin >> vec3.at(0) >> vec3.at(1) >> vec3.at(2);
      |   ^~~
a.cc:8:3: error: 'cin' does not name a type
    8 |   cin >> N;
      |   ^~~
a.cc:10:4: error: expected unqualified-id before 'for'
   10 |    for( int i = 0; i < N; i++){
      |    ^~~
a.cc:10:20: error: 'i' does not name a type
   10 |    for( int i = 0; i < N; i++){
      |                    ^
a.cc:10:27: error: 'i' does not name a type
   10 |    for( int i = 0; i < N; i++){
      |                           ^
a.cc:23:3: error: expected unqualified-id before 'if'
   23 |   if((vec1.at(0) == 0 && vec1.at(1) == 0 && vec1.at(2) == 0) ||
      |   ^~
a.cc:32:3: error: expected unqualified-id before 'else'
   32 |   else cout << "No";
      |   ^~~~
a.cc:33:1: error: expected declaration before '}' token
   33 | }
      | ^
Language: C++

#include <bits/stdc++.h>
using namespace std;
 
int main() {
  int a[8];
  int N;
  int b[N-1];
  int c[8];
  
  for(int i=0;i<3;i++) {
    cin >> a[0 + 3*i] a[1 + 3*i] a[2 + 3*i];
  }
  
  cin >> N;
  
  for(int i=0;i<N;i++) {
    cin >> b[i];
  }
  
  for(int i=0;i<9;i++) {
    for(int j=0;j<N;j++) {
      if( a[i] == b[j] ) {
        c[i] = 1;
        break;
      } else {
        c[i] = 0;
      }
    }
  }
  
  if(c[0] == 1 && c[1] == 1 && c[2] == 1) {
      cout << "Yes" <<endl;
  } else if(c[3] == 1 && c[4] == 1 && c[5] == 1) {
      cout << "Yes" <<endl;
  } else if(c[6] == 1 && c[7] == 1 && c[8] == 1) {
      cout << "Yes" <<endl;
  } else if(c[0] == 1 && c[3] == 1 && c[6] == 1) {
      cout << "Yes" <<endl;
  } else if(c[1] == 1 && c[4] == 1 && c[7] == 1) {
      cout << "Yes" <<endl;
  } else if(c[2] == 1 && c[5] == 1 && c[8] == 1) {
      cout << "Yes" <<endl;
  } else if(c[0] == 1 && c[4] == 1 && c[8] == 1) {
      cout << "Yes" <<endl;
  } else if(c[2] == 1 && c[4] == 1 && c[6] == 1) {
      cout << "Yes" <<endl;
  } else {
    cout << "No" <<endl;
  }
}
  


Compiler output:
a.cc: In function 'int main()':
a.cc:11:22: error: expected ';' before 'a'
   11 |     cin >> a[0 + 3*i] a[1 + 3*i] a[2 + 3*i];
      |                      ^~
      |                      ;
Language: C++

#include<stdio.h>

int main(void){
  int bingo[3][3];
  
  for(int i = 0; i < 3; i++){
    for(int j = 0; j < 3; j++){
      scanf("%d", &bingo[i][j]);
    }
  }
  
  int N;
  scanf("%d", &N);
  
  int random[N];
  for(int k = 0; k < N; k++){
    scanf("%d", &random[k]);
  }
  
  int check[3][3] = {0};
  for(int i = 0; i < 3; i++){
    for(int j = 0; j < 3; j++){
      for(int k = 0; k < N; k++){
        if(bingo[i][j] == random[k]){
          check[i][j] = 1;
        }
      }
    }
  }
  
  int x = 0;
  if(check[0][0] == 1 && check[0][1] == 1 && check[0][2] == 1){
    x = 1;
  }
  if(check[1][0] == 1 && check[1][1] == 1 && check[1][2] == 1){
    x = 1;
  }
  if(check[2][0] == 1 && check[2][1] == 1 && check[2][2] == 1){
    x = 1;
  }
  if(check[0][0] == 1 && check[1][0] == 1 && check[2][0] == 1){
    x = 1;
  }
  if(check[0][1] == 1 && check[1][1] == 1 && check[2][1] == 1){
    x = 1;
  }
  if(check[0][2] == 1 && check[1][2] == 1 && check[2][2] == 1){
    x = 1;
  }
  if(check[0][0] == 1 && check[1][1] == 1 && check[2][2] == 1){
    x = 1;
  }
  if(check[0][2] == 1 && check[1][1] == 1 && check[2][0] == 1){
    x = 1;
  }
  
  char no[] = "NO";
  char yes[] = "YES";
  char moji[4];
  if(x == 1){   
    moji = yes;
  }
  else if(x == 0){
    moji = no;
  }
  
  printf("%s", moji);
  return 0;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:61:10: error: invalid array assignment
   61 |     moji = yes;
      |     ~~~~~^~~~~
a.cc:64:10: error: incompatible types in assignment of 'char [3]' to 'char [4]'
   64 |     moji = no;
      |     ~~~~~^~~~
Language: C++

#pragma GCC target("avx2")
#pragma GCC optimize("O3", "unroll-loops")

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

#define int long long

#define fastIO() ios_base::sync_with_stdio(false); cin.tie(0); cout.tie(0)
#define RANDOM() random_device __rd; \
                 mt19937 __gen = mt19937(__rd()); \
                 uniform_int_distribution<int> __dis(0, MAXN); \
                 auto rnd = bind(__dis, __gen);

const int MAXN = 1E6;

int32_t main() {
    fastIO();
    
    int n, tmp;
    bool arr[3][3];
    map<int, int> tab;
    for (int i = 0; i < 3; ++i) {
        for (int j = 0; j < 3; ++j) {
            arr[i][j] = 0;
            cin >> tmp;
            tab[tmp] = 3*i + j + 1;
        }
    }
    
    cin >> n;
    while (n--) {
        cin >> tmp;
        if (tab[tmp]) arr[(tab[tmp]-1) / 3][(tab[tmp]-1) % 3] = 1;
    }
    
    for (int i = 0; i < 3; ++i) {
        int cnt = 0;
        for (int j = 0; j < 3; ++j) cnt += arr[i][j] == 1;
        if (cnt == 3) return cout << "Yes", 0;
    }
    
    for (int i = 0; i < 3; ++i) {
        int cnt = 0;
        for (int j = 0; j < 3; ++j) cnt += arr[j][i] == 1;
        if (cnt == 3) return cout << "Yes", 0;
    }
    
    if (arr[0][0] and arr[1][1] and arr[2][2]) return cout << "Yes", 0;
    if (arr[0][2] and arr[1][1] and arr[2][0]) return cout << "Yes", 0;
    
    return cout << "No", 0;
}

Compiler output:
In file included from /usr/include/c++/14/string:43,
                 from /usr/include/c++/14/bitset:52,
                 from /usr/include/x86_64-linux-gnu/c++/14/bits/stdc++.h:52,
                 from a.cc:4:
/usr/include/c++/14/bits/allocator.h: In destructor 'std::_Rb_tree<long long int, std::pair<const long long int, long long int>, std::_Select1st<std::pair<const long long int, long long int> >, std::less<long long int>, std::allocator<std::pair<const long long int, long long int> > >::_Rb_tree_impl<std::less<long long int>, true>::~_Rb_tree_impl()':
/usr/include/c++/14/bits/allocator.h:182:7: error: inlining failed in call to 'always_inline' 'std::allocator< <template-parameter-1-1> >::~allocator() noexcept [with _Tp = std::_Rb_tree_node<std::pair<const long long int, long long int> >]': target specific option mismatch
  182 |       ~allocator() _GLIBCXX_NOTHROW { }
      |       ^
In file included from /usr/include/c++/14/map:62,
                 from /usr/include/x86_64-linux-gnu/c++/14/bits/stdc++.h:152:
/usr/include/c++/14/bits/stl_tree.h:658:16: note: called from here
  658 |         struct _Rb_tree_impl
      |                ^~~~~~~~~~~~~
Language: C++

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


int main(){
 
 int bingo[3][3];
 int b[3][3];

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

 for(int i = 0;i < 3;i++){
     for(int j = 0;j < 3;j++){
         for(int k = 0;k <N;k++){
             cin>>ba;
             if(bingo[i][j]==ba)b[i][j] = 1;
         }
     } 
 }
 bool flag = false;
 for(int i = 0;i < 3;i++){
     for(int j = 0;j < 3;j++){
         if((b[i][j]*b[i][j+1]*b[i][j+2]==1)||(b[i][j]*b[i+1][j]*b[i+2][j]==1)||(b[i][j]*b[i+1][j+1]*b[i+2][j+2]==1)){
           flag = true;  
         }
     }
 }
 if(flag)cout<<"Yes";
 else cout<<"No";
}

Compiler output:
a.cc: In function 'int main()':
a.cc:20:2: error: expected initializer before 'for'
   20 |  for(int i = 0;i < 3;i++){
      |  ^~~
a.cc:20:16: error: 'i' was not declared in this scope
   20 |  for(int i = 0;i < 3;i++){
      |                ^
Language: C++

#include<iostream>
#include<vector>
using namespace std;
int main()
{
  vector<vector<int>>v(3,vector<int>(3));
  for(int i=0;i<3;i++)
  {
    for(int j=0;j<3;j++)
    {
      cin>>v[i][j];
    }
  }
  int n;
  cin>>n;
  vector<int>a(n);
  int d=0;
  for(int i=0;i<n;i++)
  {
    cin>>a[i];
    for(int j=0;j<3;j++)
    {
      int c=0;
      for(int k=0;k<3;k++)
      {
        if(a[i]==v[i][j]){
          v[i][j]=0;
          c=1;
          d+=1;
          break;
        }
      }
      if(c==1)
        break;
    }
  }
  if(d>=5)
    cout<<"Yes";
  else if(d>=3)
  {
    for(int i=0;i<3;i++)
    {
      int c=0;
      for(int j=0;j<3;j++)
      {
        if(v[i][j]==0)
          c+=1;
      }
      if(c==3)
      {
        cout<<"Yes";
        return 0;
      }
    }
    for(int j=0;j<3;j++)
    {
      int c=0;
      for(int i=0;i<3;i++)
      {
        if(v[i][j]==0)
          c+=1;
      }
      if(c==3)
      {
        cout<<"Yes";
        return 0;
      }
    }
    if(v[1][1]==0&&v[2][2]==0&&v[3][3]==0)
      cout<<"Yes";
    else if(v[0][2]==0&&v[1][1]==0&&[2][0]==0)
      cout<<"Yes";
    else
      cout<<"No";
  }
  else
    cout<<"No";
  return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:71:38: error: expected identifier before numeric constant
   71 |     else if(v[0][2]==0&&v[1][1]==0&&[2][0]==0)
      |                                      ^
a.cc: In lambda function:
a.cc:71:40: error: expected '{' before '[' token
   71 |     else if(v[0][2]==0&&v[1][1]==0&&[2][0]==0)
      |                                        ^
a.cc: In function 'int main()':
a.cc:71:40: error: no match for 'operator[]' (operand types are 'main()::<lambda()>' and 'int')
Language: C++

#include <bits/stdc++.h>
using namespace std;
bool find(int b[],int len, int des) {
    for (int i = 0; i < len; i++) {
        if (b[i] == des) {
            return i+1;
        }
    }
    return 0;
}

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

Compiler output:
a.cc: In function 'int main()':
a.cc:27:16: error: cannot resolve overloaded function 'find' based on conversion to type 'bool'
   27 |         if(find)cout<<"Yes";
      |                ^