criyle/codenet-compile-errors huggingface dataset:
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++){
        int[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:9: error: ']' expected
        int[i][j] = sc.nextInt();
            ^
Main.java:9: error: ';' expected
        int[i][j] = sc.nextInt();
             ^
Main.java:9: error: not a statement
        int[i][j] = sc.nextInt();
               ^
Main.java:9: error: ';' expected
        int[i][j] = sc.nextInt();
                ^
4 errors
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++){
        int[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:9: error: ']' expected
        int[i][j] = sc.nextInt();
            ^
Main.java:9: error: ';' expected
        int[i][j] = sc.nextInt();
             ^
Main.java:9: error: not a statement
        int[i][j] = sc.nextInt();
               ^
Main.java:9: error: ';' expected
        int[i][j] = sc.nextInt();
                ^
Main.java:37: error: ';' expected
        return "Yes"
                    ^
Main.java:40: error: ';' expected
        return "Yes"
                    ^
Main.java:44: error: ';' expected
      return "Yes"
                  ^
Main.java:47: error: ';' expected
      return "Yes"
                  ^
Main.java:49: error: ';' expected
    return "No"
               ^
9 errors
Language: C++

#include <bits/stdc++.h>

using namespace std;

int main() {
    int a[3][3];
    for(int i = 0; i < 3; i++) {
        for(int j = 0; j < 3; j++) {
            cin >> a[i][j];
        }
    } 
    int n = 0;
    cin >> n;
    vector<int> b(n);
    const unsigned int BINGO = (1<<1) | (1<<2) | (1<<3);
    for(int i = 0; i < n; i++) cin >> b.at(i);
    for (int i = 0; i < 3; i++) {
        int h = 0;
        int w = 0;
        for (decltype(b.size()) j = 0; j < b.size(); j++) {
            if (a[i][0] == b.at(j)) h |= (1<<1);
            if (a[i][1] == b.at(j)) h |= (1<<2);
            if (a[i][2] == b.at(j)) h |= (1<<3);
            if (a[0][i] == b.at(j)) w |= (1<<1);
            if (a[1][i] == b.at(j)) w |= (1<<2);
            if (a[2][i] == b.at(j)) w |= (1<<3);
        }
        if ((h & BINGO) || (w & BINGO)|) {
            cout << "Yes" << endl;
            return 0;
        }
    }
    int hw1 = 0;
    int hw2 = 0;
    for (decltype(b.size()) j = 0; j < b.size(); j++) {
        if (a[0][0] == b.at(j)) hw1 |= (1<<1);
        if (a[1][1] == b.at(j)) hw1 |= (1<<2);
        if (a[2][2] == b.at(j)) hw1 |= (1<<3);
        if (a[0][2] == b.at(j)) hw2 |= (1<<1);
        if (a[1][1] == b.at(j)) hw2 |= (1<<2);
        if (a[2][0] == b.at(j)) hw2 |= (1<<3);
    }
    if ((hw1 & BINGO) || (hw2 & BINGO)) {
        cout << "Yes" << endl;
        return 0;
    }
    cout << "No" << endl;
    return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:28:40: error: expected primary-expression before ')' token
   28 |         if ((h & BINGO) || (w & BINGO)|) {
      |                                        ^
Language: C++

#include <iostream>

int a[3][3];
int c[3][3];

void solve() {
	for (int i = 0; i < 3; i++)
		for (int j = 0; j < 3; j++)
			std::cin >> a[i][j];

	int n;
	int b;
	std::cin >> n;
	
	for (int i = 0; i < n; i++) {
		std::cin >> b;
		for (int j = 0; j < 3; j++) {
			for (int k = 0; k < 3; k++) {
				if (b == a[j][k]) {
					c[j][k] = 1;
					break;
				}
			}
		}
	}
	bool exist = false;
	// 横方向
	for (int i = 0; i < 3; ++i) {
		int cnt = 0;
		for (int j = 0; j < 3; ++j) {
			if (c[i][j] == 1) cnt++;
		}
		if (cnt == 3) ans = true;
	}
	// 縦方向
	for (int i = 0; i < 3; ++i) {
		int cnt = 0;
		for (int j = 0; j < 3; ++j) {
			if (c[j][i] == 1) cnt++;
		}
		if (cnt == 3) ans = true;
	}
	// 左上から左下
	for (int i = 0; i < 1; ++i) {
		int cnt = 0;
		for (int j = 0; j < 3; ++j) {
			if (c[j][j] == 1) cnt++;	
		}
		if (cnt == 3) ans = true;
	}
	// 右上から左下
	for (int i = 0; i < 1; ++i) {
		int cnt = 0;
		for (int j = 0; j < 3; ++j) {
			if (c[j][2-j] == 1) cnt++;
		}
		if (cnt == 3) ans = true;
	}
	std::cout << (ans?"Yes":"No") << std::endl;
}

int main() {
	solve();
	return 0;
}


Compiler output:
a.cc: In function 'void solve()':
a.cc:33:31: error: 'ans' was not declared in this scope; did you mean 'abs'?
   33 |                 if (cnt == 3) ans = true;
      |                               ^~~
      |                               abs
a.cc:41:31: error: 'ans' was not declared in this scope; did you mean 'abs'?
   41 |                 if (cnt == 3) ans = true;
      |                               ^~~
      |                               abs
a.cc:49:31: error: 'ans' was not declared in this scope; did you mean 'abs'?
   49 |                 if (cnt == 3) ans = true;
      |                               ^~~
      |                               abs
a.cc:57:31: error: 'ans' was not declared in this scope; did you mean 'abs'?
   57 |                 if (cnt == 3) ans = true;
      |                               ^~~
      |                               abs
a.cc:59:23: error: 'ans' was not declared in this scope; did you mean 'abs'?
   59 |         std::cout << (ans?"Yes":"No") << std::endl;
      |                       ^~~
      |                       abs
Language: C++

a = [list(map(int, input().split())) for _ in range(3)]

n = int(input())

bingo = [[0] * 3 for _ in range(3)]

for _ in range(n):
    b = int(input())
    for i in range(3):
        for j in range(3):
            if a[i][j] == b:
                bingo[i][j] = 1

ok = False

for i in range(3):
    count = 0
    for j in range(3):
        count += bingo[i][j]
        if count == 3:
            ok = True
for i in range(3):
    count = 0
    for j in range(3):
        count += bingo[j][i]
        if count == 3:
            ok = True
count = 0
for i in range(3):
    count += bingo[i][i]
    if count == 3:
        ok = True
count = 0
for i in range(3):
    count += bingo[2-i][i]
    if count == 0:
        ok = True

print("Yes" if ok else "No")


Compiler output:
a.cc:1:1: error: 'a' does not name a type
    1 | a = [list(map(int, input().split())) for _ in range(3)]
      | ^
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++){
          cin >> bingo.at(i).at(j);
      }
  }
  int n;
  cin >> n;
  vector<int> vec(n);
  for(int i=0;i<n;i++){
      cin >> vec.at(i);
  }
 vector<vector<int>>ok(3,vector<int>(3,0));
  for(int k: vec){
    for(int i=0;i<3;i++){
       for(int j=0;j<3;j++){
          if (bingo.at(i).at(j) == k){
            ok.at(i).at(j) = 1;
          }
      }
    }
    bool ans =false;
    
    //よこ
    for(int i=0;i<3;i++){
        if (ok.at(i).at(0) == ok.at(i).at(1) && ok.at(i).at(1) == ok.at(i).at(2))ans =true;
    }
    for(int i=0;i<3;i++){
        if (ok.at(0).at(i) == ok.at(1).at(i) && ok.at(1).at(i) == ok.at(2).at(i))ans =true;
  }
  
  if ((ok.at(0).at(0) == ok.at(1).at(1) && ok.at(1).at(1) == ok.at(2).at(2))ans =true;
  
  else if ((ok.at(0).at(2) == ok.at(1).at(1) && ok.at(1).at(1) == ok.at(2).at(0))ans =true;

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


Compiler output:
a.cc: In function 'int main()':
a.cc:5:44: error: expected ',' or ';' before ')' token
    5 |  vector<vector<int>>bingo(3,vector<int>(3)));
      |                                            ^
a.cc:36:77: error: expected ';' before 'ans'
   36 |   if ((ok.at(0).at(0) == ok.at(1).at(1) && ok.at(1).at(1) == ok.at(2).at(2))ans =true;
      |                                                                             ^~~
      |                                                                             ;
a.cc:38:3: error: expected primary-expression before 'else'
   38 |   else if ((ok.at(0).at(2) == ok.at(1).at(1) && ok.at(1).at(1) == ok.at(2).at(0))ans =true;
      |   ^~~~
a.cc:36:87: error: expected ')' before 'else'
   36 |   if ((ok.at(0).at(0) == ok.at(1).at(1) && ok.at(1).at(1) == ok.at(2).at(2))ans =true;
      |      ~                                                                                ^
      |                                                                                       )
   37 | 
   38 |   else if ((ok.at(0).at(2) == ok.at(1).at(1) && ok.at(1).at(1) == ok.at(2).at(0))ans =true;
      |   ~~~~                                                                                 
a.cc:42:4: error: expected '}' at end of input
   42 |   }
      |    ^
a.cc:4:12: note: to match this '{'
    4 | int main() {
      |            ^
Language: C

#include<stdio.h>

int main(){
    int temp[9];

    int A[9],N,i,j;
    for(i=0;i<9;i++){
        scanf("%d",&A[i]);
    }

    scanf("%d",&N);
    int B[N];
    for(i=0;i<N;i++){
        scanf("%d",&B[i]);
        for(j=0;j<9;j++){
            if(A[j]==B[i])temp[j]=1;
        }
    }

    if(temp[0]==temp[1]==temp[2]==1||temp[3]==temp[4]==temp[5]==1||temp[6]==temp[7]==temp[8]==1||temp[0]==temp[3]==temp[6]==1||temp[1]==temp[4]==temp[7]==1||temp[2]==temp[5]==temp[8]==1||temp[0]==temp[4]==temp[8]==1||temp[2]==temp[4]==temp[6]==1||temp[3]==temp[4]==temp[5]==1||temp[6]==temp[7]==temp[8]==1||){
        printf("Yes\n");
    }else{printf("No\n");}

    return 0;
}

Compiler output:
main.c: In function 'main':
main.c:20:308: error: expected expression before ')' token
   20 |     if(temp[0]==temp[1]==temp[2]==1||temp[3]==temp[4]==temp[5]==1||temp[6]==temp[7]==temp[8]==1||temp[0]==temp[3]==temp[6]==1||temp[1]==temp[4]==temp[7]==1||temp[2]==temp[5]==temp[8]==1||temp[0]==temp[4]==temp[8]==1||temp[2]==temp[4]==temp[6]==1||temp[3]==temp[4]==temp[5]==1||temp[6]==temp[7]==temp[8]==1||){
      |                                                                                                                                                                                                                                                                                                                    ^
Language: C++

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

int main() {
  vector<vector<int>> a(3,vector<int>(3));
  for (int i=0;i<3;i++){
    for(int j=0;j<3;j++){
      cin >> a[i][j];
    }
  }
  int n;cin>>n;
  vector<int> tate(3);
  vector<int> yoko(3);
  vector<int> naname(2);
  int ans=0;
  int tmp;
  for(int k=0;k<n;k++){
    cin >> tmp;
    for (int i=0;i<3;i++){
      for(int j=0;j<3;j++){
        if(tmp == a[i][j]){
          tate[i]++;
          yoko[j]++;
          if(i==j){
            naname[0]++;
            if(naname[0]==3)ans++;
          }
          if(i==(2-j)){
            naname[1]++;
            if(naname[1]==3)ans++;
          }
          if(tate[i]==3)ans++;
          if(yoko[j]==3)ans++;
        }
      
    }
  }
  
  if(ans>0){
    cout << "Yes" << endl;
  } else {
    cout << "No" << endl;
  }

}


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

import java.io.*;
import java.util.*;
import java.math.*;

public class Main
{
    public static void main(String[]args)throws IOException
    {
         Scanner sc=new Scanner(System.in);
         int a[][]=new int[3][3];
         boolean b[][] = new boolean[3][3];
         for(int i=0;i<3;i++)
         {
              for(int j=0;j<3;j++)
              {
                   a[i][j]=sc.nextInt();
                   b[i][j]=false;
              }
         }
         int n = sc.nextInt();
         for(int i=1;i<=n;i++)
         {
              int x=sc.nextInt();
              for(int k=0;k<3;k++)
               {
                    for(int j=0;j<3;j++)
                    {
                         if(a[k][j]==x)
                         {
                             b[k][j]=true;
                             break;
                         }
                    }
               }
         }
         int flag=0;
         if(b[0][0]==true && b[1][1]==true && b[2][2]==true)
         {
               flag=1;
         }
         if(b[0][2]==true && b[1][1]==true && b[2][0]==true)
         {
              flag==1;
         }
         if(flag==0)
         {
             for(int i=0;i<3;i++)
             {
                  if(b[0][i]==true && b[1][i]==true && b[2][i]==true)
                  {
                         flag=1;
                         break;
                  }
             }
         }
      
         if(flag==0)
         {
              for(int i=0;i<3;i++)
               {
                    if(b[i][0]==true && b[i][1]==true && b[i][2]==true)
                    {
                           flag=1;
                           break;
                    }
               }
         }
          if(flag==1)
          {
               System.out.println("Yes");
          }
          else
          {
               System.out.println("No");
          }
    }
}
      
      
         
         

Compiler output:
Main.java:43: error: not a statement
              flag==1;
                  ^
1 error
Language: C++

#include <iostream>

using namespace std;

#define X 9

int main(int argc, char** argv){

	int N = 0;
	int Card[X] = {0};
	bool BINGO[X] = {false};
	int temp = 0;

	for(int i=0,i<X;i++)
		cin >> Card[i];
	cin >> N;

	while(N != 0){
		cin >> temp;
		for(int i=0;i<X;i++){
			if (Card[i] == temp){
				BINGO[i] = true;
				break;
			}
		}
		N--;
	}

	{
		int count = 0;
		//yoko
		for(int i=0; i<3; i++){
			if(BINGO[i*3] && BINGO[(i+1)*3] && BINGO[(i+2)*3]) count++; //yoko
			if(BINGO[i] && BINGO[i+3] && BINGO[i+6]) count++; //tate
		}
		if(BINGO[1] && BINGO[5] && BINGO[9]) count++; //naname
		if(BINGO[3] && BINGO[5] && BINGO[7]) count++; //naname

		//naname
		if(count>0) cout << "Yes" << endl;
		else cout << "No" << endl;
	}
	return 0;
}

Compiler output:
a.cc: In function 'int main(int, char**)':
a.cc:14:22: error: expected ';' before '<' token
   14 |         for(int i=0,i<X;i++)
      |                      ^
      |                      ;
a.cc:14:22: error: expected primary-expression before '<' token
Language: Java

import java.io.*;
import java.util.*;
import javafx.util.Pair;
import static java.lang.System.*;
import static java.lang.Math.*;

public class Main
{
	public static void main(String []args)throws IOException
	{
		BufferedReader br=new BufferedReader(new InputStreamReader(System.in));
		int A[][]=new int[3][3];
		HashMap<Integer, Pair<Integer, Integer>> map = new HashMap<Integer, Pair<Integer, Integer>>();
		
		boolean flag=false;
		for(int i=0;i<3;i++)
		{
			String []s=br.readLine().split(" ");
			A[i][0]=Integer.parseInt(s[0]);
			map.put(A[i][0], new Pair<Integer, Integer>(i,0)); //store the integer and its row and column values in the map
			A[i][1]=Integer.parseInt(s[1]);
			map.put(A[i][1], new Pair<Integer, Integer>(i,1));
			A[i][2]=Integer.parseInt(s[2]);
			map.put(A[i][2], new Pair<Integer, Integer>(i,2));
		}
		
		int N = Integer.parseInt(br.readLine());
		
		for(int i=0;i<N;i++)
		{
			int x=Integer.parseInt(br.readLine());
			if(map.containsKey(x))//present in the grid
			{
				//mark that position in the grid with a dummy value
				
				int row = map.get(x).getKey();
				int col = map.get(x).getValue();
				
				//dummy value
				A[row][col]=-1;	
			}
			
		}
		
		//check if bingo
		//row, col, diagonal
		for(int i=0;i<3;i++) //row
			if((A[i][0]==A[i][1]) && (A[i][1]==A[i][2])) //success
				flag=true;

		for(int i=0;i<3;i++) //column
			if((A[0][i]==A[1][i]) && (A[1][i]==A[2][i])) //success
				flag=true;
		
		if(((A[0][0]==A[1][1]) && (A[1][1]==A[2][2])) || ((A[0][2]==A[1][1]) && (A[1][1]==A[2][0]))) //diagonal
			flag=true;
			
		if(flag==true)
			out.println("Yes");
		else
			out.println("No");

	}
	
	
}




Compiler output:
Main.java:3: error: package javafx.util does not exist
import javafx.util.Pair;
                  ^
Main.java:13: error: cannot find symbol
		HashMap<Integer, Pair<Integer, Integer>> map = new HashMap<Integer, Pair<Integer, Integer>>();
		                 ^
  symbol:   class Pair
  location: class Main
Main.java:13: error: cannot find symbol
		HashMap<Integer, Pair<Integer, Integer>> map = new HashMap<Integer, Pair<Integer, Integer>>();
		                                                                    ^
  symbol:   class Pair
  location: class Main
Main.java:20: error: cannot find symbol
			map.put(A[i][0], new Pair<Integer, Integer>(i,0)); //store the integer and its row and column values in the map
			                     ^
  symbol:   class Pair
  location: class Main
Main.java:22: error: cannot find symbol
			map.put(A[i][1], new Pair<Integer, Integer>(i,1));
			                     ^
  symbol:   class Pair
  location: class Main
Main.java:24: error: cannot find symbol
			map.put(A[i][2], new Pair<Integer, Integer>(i,2));
			                     ^
  symbol:   class Pair
  location: class Main
6 errors
Language: C

                                #include <stdio.h>
                                 
                                int main(void){
                                  int i, j, k, n, A[3][3], b[10];
                                  char ans[4];
                                  int appear[3][3];
                                  for(i=1; i<=3; i++){
                                    for(j=1; j<=3; j++){
                                      scanf("%d", &A[i][j]); 
                                    }
                                  }
                                  scanf("%d", &n);
                                  for(k=1; k<=n; k++){
                                    scanf("%d\n", &b[k]);
                                  }
                                  for(i=1; i<=3; i++){
                                    for(j=1; j<=3; j++){
                                  		appear[i][j]=0;
                                  			for(k=1; k<=n; k++){
                                        		if(A[i][j]==b[k]){
                                            		appear[i][j]=1;
                                                }
                                            }
                                    }
                                  }
                                  ans = "No";
                                  for(i=1; i<=3; i++){
                                    if(appear[i][1] && appear[i][2] && appear[i][3] == 1){
                                      ans = "Yes";
                                    }
                                  }for(i=1; i<=3; i++){
                                    if(appear[1][i] && appear[2][i] && appear[3][i] == 1){
                                      ans = "Yes";
                                    }
                                  }
                                  if(appear[1][1] && appear[2][2] && appear[3][3] == 1){ans = "Yes";}
                                  printf("%s", ans);
                                  return 0;
                                }

Compiler output:
main.c: In function 'main':
main.c:26:39: error: assignment to expression with array type
   26 |                                   ans = "No";
      |                                       ^
main.c:29:43: error: assignment to expression with array type
   29 |                                       ans = "Yes";
      |                                           ^
main.c:33:43: error: assignment to expression with array type
   33 |                                       ans = "Yes";
      |                                           ^
main.c:36:93: error: assignment to expression with array type
   36 |                                   if(appear[1][1] && appear[2][2] && appear[3][3] == 1){ans = "Yes";}
      |                                                                                             ^
Language: C

                            #include <stdio.h>
                             
                            int main(void){
                              int i, j, k, n, A[3][3], b[10];
                              char ans[];
                              int appear[3][3];
                              for(i=1; i<=3; i++){
                                for(j=1; j<=3; j++){
                                  scanf("%d", &A[i][j]); 
                                }
                              }
                              scanf("%d", &n);
                              for(k=1; k<=n; k++){
                                scanf("%d\n", &b[k]);
                              }
                              for(i=1; i<=3; i++){
                                for(j=1; j<=3; j++){
                              		appear[i][j]=0;
                              			for(k=1; k<=n; k++){
                                    		if(A[i][j]==b[k]){
                                        		appear[i][j]=1;
                                            }
                                        }
                                }
                              }
                              ans[] = "No";
                              for(i=1; i<=3; i++){
                                if(appear[i][1] && appear[i][2] && appear[i][3] == 1){
                                  ans[] = "Yes";
                                }
                              }for(i=1; i<=3; i++){
                                if(appear[1][i] && appear[2][i] && appear[3][i] == 1){
                                  ans[] = "Yes";
                                }
                              }
                              if(appear[1][1] && appear[2][2] && appear[3][3] == 1){ans[] = "Yes";}
                              printf("%s", ans);
                              return 0;
                            }

Compiler output:
main.c: In function 'main':
main.c:5:36: error: array size missing in 'ans'
    5 |                               char ans[];
      |                                    ^~~
main.c:26:35: error: expected expression before ']' token
   26 |                               ans[] = "No";
      |                                   ^
main.c:29:39: error: expected expression before ']' token
   29 |                                   ans[] = "Yes";
      |                                       ^
main.c:33:39: error: expected expression before ']' token
   33 |                                   ans[] = "Yes";
      |                                       ^
main.c:36:89: error: expected expression before ']' token
   36 |                               if(appear[1][1] && appear[2][2] && appear[3][3] == 1){ans[] = "Yes";}
      |                                                                                         ^
Language: C

                        #include <stdio.h>
                         
                        int main(void){
                          int i, j, k, n, A[3][3], b[10];
                          char ans[3];
                          int appear[3][3];
                          for(i=1; i<=3; i++){
                            for(j=1; j<=3; j++){
                              scanf("%d", &A[i][j]); 
                            }
                          }
                          scanf("%d", &n);
                          for(k=1; k<=n; k++){
                            scanf("%d\n", &b[k]);
                          }
                          for(i=1; i<=3; i++){
                            for(j=1; j<=3; j++){
                          		appear[i][j]=0;
                          			for(k=1; k<=n; k++){
                                		if(A[i][j]==b[k]){
                                    		appear[i][j]=1;
                                        }
                                    }
                            }
                          }
                          ans = "No";
                          for(i=1; i<=3; i++){
                            if(appear[i][1] && appear[i][2] && appear[i][3] == 1){
                              ans = "Yes";
                            }
                          }for(i=1; i<=3; i++){
                            if(appear[1][i] && appear[2][i] && appear[3][i] == 1){
                              ans = "Yes";
                            }
                          }
                          if(appear[1][1] && appear[2][2] && appear[3][3] == 1){ans = "Yes";}
                          printf("%s", ans);
                          return 0;
                        }

Compiler output:
main.c: In function 'main':
main.c:26:31: error: assignment to expression with array type
   26 |                           ans = "No";
      |                               ^
main.c:29:35: error: assignment to expression with array type
   29 |                               ans = "Yes";
      |                                   ^
main.c:33:35: error: assignment to expression with array type
   33 |                               ans = "Yes";
      |                                   ^
main.c:36:85: error: assignment to expression with array type
   36 |                           if(appear[1][1] && appear[2][2] && appear[3][3] == 1){ans = "Yes";}
      |                                                                                     ^
Language: C

                    #include <stdio.h>
                     
                    int main(void){
                      int i, j, k, n, A[3][3], b[10];
                      char ans[3];
                      int appear[3][3];
                      for(i=1; i<=3; i++){
                        for(j=1; j<=3; j++){
                          scanf("%d", &A[i][j]); 
                        }
                      }
                      scanf("%d", &n);
                      for(k=1; k<=n; k++){
                        scanf("%d\n", &b[k]);
                      }
                      for(i=1; i<=3; i++){
                        for(j=1; j<=3; j++){
                      		appear[i][j]=0;
                      			for(k=1; k<=n; k++){
                            		if(A[i][j]==b[k]){
                                		appear[i][j]=1;
                                    }
                                }
                        }
                      }
                      ans = "No";
                      for(i=1; i<=3; i++){
                        if(appear[i][1] && appear[i][2] && appear[i][3] == 1){
                          ans = "Yes";
                        }
                      }for(i=1; i<=3; i++){
                        if(appear[1][i] && appear[2][i] && appear[3][i] == 1){
                          ans = "Yes";
                        }
                      }
                      if(appear[1][1] && [2][2] && [3][3] == 1){ans = "Yes";}
                      printf("%s", &ans);
                      return 0;
                    }

Compiler output:
main.c: In function 'main':
main.c:26:27: error: assignment to expression with array type
   26 |                       ans = "No";
      |                           ^
main.c:29:31: error: assignment to expression with array type
   29 |                           ans = "Yes";
      |                               ^
main.c:33:31: error: assignment to expression with array type
   33 |                           ans = "Yes";
      |                               ^
main.c:36:42: error: expected expression before '[' token
   36 |                       if(appear[1][1] && [2][2] && [3][3] == 1){ans = "Yes";}
      |                                          ^
main.c:36:69: error: assignment to expression with array type
   36 |                       if(appear[1][1] && [2][2] && [3][3] == 1){ans = "Yes";}
      |                                                                     ^
Language: C

#include <stdio.h>

int main(void){
  int i, j, k, n, A[3][3], b[10];
  char ans[3];
  bool appear[3][3];
  for(i=0; i<3, i++;){
    for(j=0, j<3, j++;){
      scanf("%d", A[i][j]); 
    }
  }
  scanf("%d", &n);
  for(k=0; k<n, k++;){
    scanf("%d\n", &b[k]);
  }
  for(i=0; i<3, i++;){
    for(j=0, j<3, j++;){
  		appear[i][j]=false;
  			for(k=0; k<n; k++;){
        		if(A[i][j]==b[k]){
            		appear[i][j]=true;
                }
            }
    }
  }
  ans = "No";
  for(i=0; i<3; i++;){
    if(appear[i][0] && appear[i][1] && appear[i][2] == true){
      ans = "Yes";
    }
  }for(i=0; i<3; i++;){
    if(appear[0][i] && appear[1][i] && appear[2][i] == true){
      ans = "Yes";
    }
  }
  if(appear[1][1] && [2][2] && [3][3]){ans = "Yes";}
  printf("%s", &ans);
  return 0;
}


Compiler output:
main.c: In function 'main':
main.c:6:3: error: unknown type name 'bool'
    6 |   bool appear[3][3];
      |   ^~~~
main.c:2:1: note: 'bool' is defined in header '<stdbool.h>'; this is probably fixable by adding '#include <stdbool.h>'
    1 | #include <stdio.h>
  +++ |+#include <stdbool.h>
    2 | 
main.c:8:23: error: expected expression before ')' token
    8 |     for(j=0, j<3, j++;){
      |                       ^
main.c:17:23: error: expected expression before ')' token
   17 |     for(j=0, j<3, j++;){
      |                       ^
main.c:18:30: error: 'false' undeclared (first use in this function)
   18 |                 appear[i][j]=false;
      |                              ^~~~~
main.c:18:30: note: 'false' is defined in header '<stdbool.h>'; this is probably fixable by adding '#include <stdbool.h>'
main.c:18:30: note: each undeclared identifier is reported only once for each function it appears in
main.c:19:42: error: expected ')' before ';' token
   19 |                         for(k=0; k<n; k++;){
      |                            ~             ^
      |                                          )
main.c:21:38: error: 'true' undeclared (first use in this function)
   21 |                         appear[i][j]=true;
      |                                      ^~~~
main.c:21:38: note: 'true' is defined in header '<stdbool.h>'; this is probably fixable by adding '#include <stdbool.h>'
main.c:26:7: error: assignment to expression with array type
   26 |   ans = "No";
      |       ^
main.c:27:20: error: expected ')' before ';' token
   27 |   for(i=0; i<3; i++;){
      |      ~             ^
      |                    )
main.c:29:11: error: assignment to expression with array type
   29 |       ans = "Yes";
      |           ^
main.c:31:21: error: expected ')' before ';' token
   31 |   }for(i=0; i<3; i++;){
      |       ~             ^
      |                     )
main.c:33:11: error: assignment to expression with array type
   33 |       ans = "Yes";
      |           ^
main.c:36:22: error: expected expression before '[' token
   36 |   if(appear[1][1] && [2][2] && [3][3]){ans = "Yes";}
      |                      ^
main.c:36:44: error: assignment to expression with array type
   36 |   if(appear[1][1] && [2][2] && [3][3]){ans = "Yes";}
      |                                            ^
Language: C++

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

 
int main() {
    vector<vector<int>> vec(3,vector<int>(3));
    for(int i=0;i<3;i++){
        for(int j=0;j<3;j++) cin >> vec.at(i).at(j);
            }
    vector<vector<int>> bol(3,vector<int>(3,0));

    int N,t;
    cin >> N;
    for(int i=0;i<N;i++){
        cin >> t;
        for(int j=0;j<3;j++){
            for(int k=0;k<3;k++){
                if(vec.at(j).at(k)==t) bol.at(j).at(k) =1;
            }
        }

    }
    int m;
    bool C=false;
 for(int i=0;i<3;i++){
     m=0;
     for(int j=0;j<3;j++){
       m += bol.at(i).at(j);
     }
     if (m==3) C=true;
      }
       
    for(int i=0;i<3;i++){
     m=0;
     for(int j=0;j<3;j++){
       m += bol.at(j).at(i);
     }
     if (m==3) C=true;
      }

    if(bol.at(1).at(1)==1){
    int x=0;
    for(int i=0;i<3;i++) x+=bol.at(i).at(i);
    if(x==3) C=true;

    int y=bol.at(0).at(2)+bol.at(2).at(0);
    if(y==2) C=true;
 }

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

#include <bits/stdc++.h>
typedef long long ll;
typedef long double ld;

using namespace std;
const ll LINF = LLONG_MAX;
const int INF = INT_MAX;
const int MOD = 998244353;

int main() {
    ios::sync_with_stdio(false);
    cin.tie();
    vector<vector<int>> a(3, vector<int> 3);
    for (int i = 0; i < 3; i++){
        for (int j = 0; j < 3; j++){
            cin >> a[i][j];
        }
    }
    set<int> s;
    int n;
    cin >> n;
    for (int i = 0; i < n; i++){
        int x;
        cin >> x;
        s.insert(x);
    }
    for (int i = 0; i < 3; i++){
        if (s.count(a[i][0]) && s.count(a[i][1]) && s.count(a[i][2])){
            cout << "Yes";
            return 0;
        }
    }
    for (int i = 0; i < 3; i++){
        if (s.count(a[0][i]) && s.count(a[1][i]) && s.count(a[2][i])){
            cout << "Yes";
            return 0;
        }
    }
    if (s.count(a[0][0]) && s.count(a[1][1]) && s.count(a[2][2])){
        cout << "Yes";
        return 0;
    }
    if (s.count(a[2][0]) && s.count(a[1][1]) && s.count(a[0][2])){
        cout << "Yes";
        return 0;
    }
    cout << "No";
}

Compiler output:
a.cc: In function 'int main()':
a.cc:13:42: error: expected primary-expression before numeric constant
   13 |     vector<vector<int>> a(3, vector<int> 3);
      |                                          ^
Language: C++

#include <bits/stdc++.h>
 
using namespace std;
 
int main() {
  int a[10];
  for (int i = 0; i < 10; ++i) {
    cin >> a[i];
  }
  int n; 
  for (int i = 0; i < n; ++i) {
    int s;
    cin >> s;
    if (a[i] == s) a[i] = 0;
  }
  if (a[0] + a[1] + a[2] = 0 || a[3] + a[4] + a[5] = 0 || a[6] + a[7] + a[8] = 0 ||
      a[2] + a[5] + a[8] = 0 || a[1] + a[4] + a[7] = 0 || a[0] + a[3] + a[6] = 0 ||
      a[0] + a[4] + a[8] = 0;) {
    cout << "Yes" << "\n";
  } else cout << "No" << "\n";
  return 0;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:17:82: error: lvalue required as left operand of assignment
   17 |       a[2] + a[5] + a[8] = 0 || a[1] + a[4] + a[7] = 0 || a[0] + a[3] + a[6] = 0 ||
      |                                                                                ~~^~
   18 |       a[0] + a[4] + a[8] = 0;) {
      |       ~~~~~~~~~~~~~~~~~~                                                          
a.cc:18:30: error: expected primary-expression before ')' token
   18 |       a[0] + a[4] + a[8] = 0;) {
      |                              ^
Language: C++

#include <bits/stdc++.h>
 
using namespace std;
 
int main() {
  int a[10];
  for (int i = 0; i < 10; ++i) {
    cin >> a[i];
  }
  int n; 
  for (int i = 0; i < n; ++i) {
    int s;
    cin >> s;
    if (a[i] == s) a[i] = 0;
  }
  if (a[0] + a[1] + a[2] = 0; || a[3] + a[4] + a[5] = 0; || a[6] + a[7] + a[8] = 0; ||
      a[2] + a[5] + a[8] = 0; || a[1] + a[4] + a[7] = 0; || a[0] + a[3] + a[6] = 0; ||
      a[0] + a[4] + a[8] = 0;) {
    cout << "Yes" << "\n";
  } else cout << "No" << "\n";
  return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:16:19: error: lvalue required as left operand of assignment
   16 |   if (a[0] + a[1] + a[2] = 0; || a[3] + a[4] + a[5] = 0; || a[6] + a[7] + a[8] = 0; ||
      |       ~~~~~~~~~~~~^~~~~~
a.cc:16:31: error: expected primary-expression before '||' token
   16 |   if (a[0] + a[1] + a[2] = 0; || a[3] + a[4] + a[5] = 0; || a[6] + a[7] + a[8] = 0; ||
      |                               ^~
a.cc:16:56: error: expected ')' before ';' token
   16 |   if (a[0] + a[1] + a[2] = 0; || a[3] + a[4] + a[5] = 0; || a[6] + a[7] + a[8] = 0; ||
      |      ~                                                 ^
      |                                                        )
a.cc:16:58: error: expected primary-expression before '||' token
   16 |   if (a[0] + a[1] + a[2] = 0; || a[3] + a[4] + a[5] = 0; || a[6] + a[7] + a[8] = 0; ||
      |                                                          ^~
a.cc:16:85: error: expected primary-expression before '||' token
   16 |   if (a[0] + a[1] + a[2] = 0; || a[3] + a[4] + a[5] = 0; || a[6] + a[7] + a[8] = 0; ||
      |                                                                                     ^~
a.cc:17:31: error: expected primary-expression before '||' token
   17 |       a[2] + a[5] + a[8] = 0; || a[1] + a[4] + a[7] = 0; || a[0] + a[3] + a[6] = 0; ||
      |                               ^~
a.cc:17:58: error: expected primary-expression before '||' token
   17 |       a[2] + a[5] + a[8] = 0; || a[1] + a[4] + a[7] = 0; || a[0] + a[3] + a[6] = 0; ||
      |                                                          ^~
a.cc:17:85: error: expected primary-expression before '||' token
   17 |       a[2] + a[5] + a[8] = 0; || a[1] + a[4] + a[7] = 0; || a[0] + a[3] + a[6] = 0; ||
      |                                                                                     ^~
a.cc:18:30: error: expected primary-expression before ')' token
   18 |       a[0] + a[4] + a[8] = 0;) {
      |                              ^
a.cc:20:5: error: 'else' without a previous 'if'
   20 |   } else cout << "No" << "\n";
      |     ^~~~
Language: C++

#include <bits/stdc++.h>
using namespace std;
int main() {
  int a[3][3];
  for (int i = 0; i < 3; ++i) {
   	 for (int j = 0; j < 3; ++j) {
    	cin >> a[i][j];	 
   	}
  }
  int n;
  cin >> n;
  for (int i = 0; i < n; ++i) {
     int s;
     cin >> s;
    for (int i = 0; i < 3; ++i) {
      for (int j = 0; j < 3; ++j) { 
      	if (a[i][j] == b) a[i][j] = 0;
      }
    }
  }
  if (mx[0][0]+mx[0][1]+mx[0][2] == 0
        || mx[0][0]+mx[1][0]+mx[2][0] == 0
        || mx[0][2]+mx[1][2]+mx[2][2] == 0
        || mx[2][0]+mx[2][1]+mx[2][2] == 0
        || mx[1][0]+mx[1][1]+mx[1][2] == 0
        || mx[0][1]+mx[1][1]+mx[2][1] == 0
        || mx[0][0]+mx[1][1]+mx[2][2] == 0
        || mx[0][2]+mx[1][1]+mx[2][0] == 0) {
            cout << "Yes";
  }
    else cout << "No";
 return 0;  
}

Compiler output:
a.cc: In function 'int main()':
a.cc:17:24: error: 'b' was not declared in this scope
   17 |         if (a[i][j] == b) a[i][j] = 0;
      |                        ^
a.cc:21:7: error: 'mx' was not declared in this scope
   21 |   if (mx[0][0]+mx[0][1]+mx[0][2] == 0
      |       ^~
Language: C++

#include <bits/stdc++.h>
using namespae std;
int main() {
  int a[3][3];
  for (int i = 0; i < 3; ++i) {
   	 for (int j = 0; j < 3; ++j) {
    	cin >> a[i][j];	 
   	}
  }
  int n;
  cin >> n;
  for (int i = 0; i < n; ++i) {
     int s;
     cin >> s;
    for (int i = 0; i < 3; ++i) {
      for (int j = 0; j < 3; ++j) { 
      	if (a[i][j] == b) a[i][j] = 0;
      }
    }
  }
  if (mx[0][0]+mx[0][1]+mx[0][2] == 0
        || mx[0][0]+mx[1][0]+mx[2][0] == 0
        || mx[0][2]+mx[1][2]+mx[2][2] == 0
        || mx[2][0]+mx[2][1]+mx[2][2] == 0
        || mx[1][0]+mx[1][1]+mx[1][2] == 0
        || mx[0][1]+mx[1][1]+mx[2][1] == 0
        || mx[0][0]+mx[1][1]+mx[2][2] == 0
        || mx[0][2]+mx[1][1]+mx[2][0] == 0) {
            cout << "Yes";
  }
    else cout << "No";
 return 0;  
}  

Compiler output:
a.cc:2:7: error: expected nested-name-specifier before 'namespae'
    2 | using namespae std;
      |       ^~~~~~~~
a.cc: In function 'int main()':
a.cc:7:9: error: 'cin' was not declared in this scope; did you mean 'std::cin'?
    7 |         cin >> a[i][j];
      |         ^~~
      |         std::cin
In file included from /usr/include/x86_64-linux-gnu/c++/14/bits/stdc++.h:146,
                 from a.cc:1:
/usr/include/c++/14/iostream:62:18: note: 'std::cin' declared here
   62 |   extern istream cin;           ///< Linked to standard input
      |                  ^~~
a.cc:11:3: error: 'cin' was not declared in this scope; did you mean 'std::cin'?
   11 |   cin >> n;
      |   ^~~
      |   std::cin
/usr/include/c++/14/iostream:62:18: note: 'std::cin' declared here
   62 |   extern istream cin;           ///< Linked to standard input
      |                  ^~~
a.cc:17:24: error: 'b' was not declared in this scope
   17 |         if (a[i][j] == b) a[i][j] = 0;
      |                        ^
a.cc:21:7: error: 'mx' was not declared in this scope
   21 |   if (mx[0][0]+mx[0][1]+mx[0][2] == 0
      |       ^~
a.cc:29:13: error: 'cout' was not declared in this scope; did you mean 'std::cout'?
   29 |             cout << "Yes";
      |             ^~~~
      |             std::cout
/usr/include/c++/14/iostream:63:18: note: 'std::cout' declared here
   63 |   extern ostream cout;          ///< Linked to standard output
      |                  ^~~~
a.cc:31:10: error: 'cout' was not declared in this scope; did you mean 'std::cout'?
   31 |     else cout << "No";
      |          ^~~~
      |          std::cout
/usr/include/c++/14/iostream:63:18: note: 'std::cout' declared here
   63 |   extern ostream cout;          ///< Linked to standard output
      |                  ^~~~
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 a[3][3];

int main(){
 rep(i,3)rep(j,3) cin >> a[i][j];
 int n;
 cin >> n;
 int b[n];
 rep(i,n) cin >> b[i];
 rep(k,n){
   rep(i,3){
     rep(j,3){
       if(b[k] == a[i][j]){
         a[i][j] = 0;
       }
     }
   }
 }
 int count = 0;
 if(a[0]b[0]==a[0]b[1]==a[0]b[2]==0) count++;
 if(a[1]b[0]==a[1]b[1]==a[1]b[2]==0) count++;
 if(a[2]b[0]==a[2]b[1]==a[2]b[2]==0) count++;
 if(a[0]b[0]==a[1]b[0]==a[2]b[0]==0) count++;
 if(a[0]b[1]==a[1]b[1]==a[2]b[1]==0) count++;
 if(a[0]b[2]==a[1]b[2]==a[2]b[2]==0) count++;
 if(a[0]b[0]==a[1]b[1]==a[2]b[2]==0) count++;
 if(a[2]b[0]==a[1]b[1]==a[0]b[2]==0) count++;
 if(count == 0) puts("No");
 else puts("Yes");
 return 0;
}
 


Compiler output:
a.cc: In function 'int main()':
a.cc:25:9: error: expected ')' before 'b'
   25 |  if(a[0]b[0]==a[0]b[1]==a[0]b[2]==0) count++;
      |    ~    ^
      |         )
a.cc:26:9: error: expected ')' before 'b'
   26 |  if(a[1]b[0]==a[1]b[1]==a[1]b[2]==0) count++;
      |    ~    ^
      |         )
a.cc:27:9: error: expected ')' before 'b'
   27 |  if(a[2]b[0]==a[2]b[1]==a[2]b[2]==0) count++;
      |    ~    ^
      |         )
a.cc:28:9: error: expected ')' before 'b'
   28 |  if(a[0]b[0]==a[1]b[0]==a[2]b[0]==0) count++;
      |    ~    ^
      |         )
a.cc:29:9: error: expected ')' before 'b'
   29 |  if(a[0]b[1]==a[1]b[1]==a[2]b[1]==0) count++;
      |    ~    ^
      |         )
a.cc:30:9: error: expected ')' before 'b'
   30 |  if(a[0]b[2]==a[1]b[2]==a[2]b[2]==0) count++;
      |    ~    ^
      |         )
a.cc:31:9: error: expected ')' before 'b'
   31 |  if(a[0]b[0]==a[1]b[1]==a[2]b[2]==0) count++;
      |    ~    ^
      |         )
a.cc:32:9: error: expected ')' before 'b'
   32 |  if(a[2]b[0]==a[1]b[1]==a[0]b[2]==0) count++;
      |    ~    ^
      |         )
Language: Java

public class Solution(){
  public static void main(String[] args){
    Scanner sc=new Scanner(System.in);
    int[][] a=new int[3][3];
    for(int i=0;i<3;i++)
      for(int j =0;j<3;j++)
      {
        a[i][j]=sc.nextInt();
      }
    int q=sc.nextInt();
    int x=0;
    for(int i=0;i<q;i++)
    {
      int n=sc.nextInt();
      for(int i=0;i<3;i++)
      for(int j =0;j<3;j++)
      {
       if( a[i][j]==n)
         a[i][j]==1;
      }
      if(a[0][0]==1 && a[1][1]==1 && a[2][2]==1)
      {x=1;
       break;
      }
      if(a[0][0]==1 && a[0][1]==1 && a[0][2]==1)
      {x=1;
       break;
      }
      if(a[0][1]==1 && a[1][1]==1 && a[2][1]==1)
      {x=1;
       break;
      }
       
      
      if(a[0][2]==1 && a[1][2]==1 && a[2][2]==1)
      {x=1;
       break;
      }
      
      if(a[1][0]==1 && a[1][1]==1 && a[1][2]==1)
      {x=1;
       break;
      }
      
      if(a[2][0]==1 && a[2][1]==1 && a[2][2]==1)
      {x=1;
       break;
      }
      
      if(a[0][0]==1 && a[1][0]==1 && a[2][0]==1)
      {x=1;
       break;
      }
      
      if(a[0][2]==1 && a[1][1]==1 && a[2][0]==1)
      {x=1;
       break;
      }
    

            

    }
    if(x==1)
      System.out.println("Yes");
    else
      System.out.println("No");
        
  }
  

}

Compiler output:
Main.java:1: error: '{' expected
public class Solution(){
                     ^
Main.java:19: error: not a statement
         a[i][j]==1;
                ^
2 errors
Language: C++

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

bool check(int a,vector<int> vec) {
  bool ok = false;
  for (int i = 0;i<vec.size();i++) {
    if (a==vec.at(i)) ok = true;
  }
  return ok;
}

int main() {
  int aa,ab,ac,ba,bb,bc,ca,cb,cc;
  cin >> aa >> ab >> ac >> ba >> bb >> bc >> ca >> cb >> cc;
  int N;
  cin >> N;
  vector<int> vec;
  for (int i = 0;i<N;i++) {
    cin >> vec.at(i);
  }
  
  bool ans = false;
  bool AA = check(aa,vec);
  bool AB = check(ab,vec);
  bool AA = check(ac,vec);
  bool BA = check(ba,vec);
  bool BB = check(bb,vec);
  bool BC = check(bc,vec);
  bool CA = check(ca,vec);
  bool CB = check(cb,vec);
  bool CC = check(cc,vec);
  
  if (AA & AB & AC) ans = true;
  if (BA & BB & BC) ans = true;
  if (CA & CB & CC) ans = true;
  if (AA & BA & CA) ans = true;
  if (BA & BB & BC) ans = true;
  if (CA & CB & CC) ans = true;
  if (AA & BB & CC) ans = true;
  if (AC & BB & CA) ans = true;
  if (ans) cout << "Yes" << endl;
  else cout << "No" << endl;
  

}



Compiler output:
a.cc: In function 'int main()':
a.cc:26:8: error: redeclaration of 'bool AA'
   26 |   bool AA = check(ac,vec);
      |        ^~
a.cc:24:8: note: 'bool AA' previously declared here
   24 |   bool AA = check(aa,vec);
      |        ^~
a.cc:34:17: error: 'AC' was not declared in this scope; did you mean 'CC'?
   34 |   if (AA & AB & AC) ans = true;
      |                 ^~
      |                 CC
a.cc:41:7: error: 'AC' was not declared in this scope; did you mean 'CC'?
   41 |   if (AC & BB & CA) ans = true;
      |       ^~
      |       CC