criyle/codenet-compile-errors huggingface dataset:
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;
  vector<vector<bool>>judge(3,vector<bool>(3,false));
  for(int i=0;i<n;i++){
    int b;
    cin >> b;
    for(int i=0;i<3;i++){
      for(int j=0;j<3;j++){
        if(a[i][j]==b){
          judge[i][j]=true;
        }
      }
    }
  }
  bool ans=false;
  for(int i-0;i<3;i++){
    if(judge[0][i]&&judge[1][i]&&judge[2][i]){
      ans=true;
    }
    if(judge[i][0]&&judge[i][1]&&judge[i][2]){
      ans=true;
    }
  }
  if(judge[0][0]&&judge[1][1]&&judge[2][2]){
    ans=true;
  }
  if(judge[0][2]&&judge[1][1]&&judge[2][0]){
    ans = true;
  }
  if(ans){
    cout << "Yes" << endl;
  }
  else{
    cout << "No" << endl;
  }
}
  

Compiler output:
a.cc: In function 'int main()':
a.cc:26:12: error: expected ';' before '-' token
   26 |   for(int i-0;i<3;i++){
      |            ^
      |            ;
a.cc:26:18: error: expected ')' before ';' token
   26 |   for(int i-0;i<3;i++){
      |      ~           ^
      |                  )
a.cc:26:19: error: 'i' was not declared in this scope
   26 |   for(int i-0;i<3;i++){
      |                   ^
Language: C++

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

using namespace std;
using p=pair<int,int>;
typedef long long ll;

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

  return 0;

}

Compiler output:
a.cc: In function 'int main()':
a.cc:24:20: error: expected primary-expression before ';' token
   24 |           c[i][j]+=;
      |                    ^
a.cc:31:5: error: break statement not within loop or switch
   31 |     break;
      |     ^~~~~
a.cc:35:5: error: break statement not within loop or switch
   35 |     break;
      |     ^~~~~
a.cc:39:5: error: break statement not within loop or switch
   39 |     break;
      |     ^~~~~
a.cc:43:5: error: break statement not within loop or switch
   43 |     break;
      |     ^~~~~
a.cc:47:5: error: break statement not within loop or switch
   47 |     break;
      |     ^~~~~
a.cc:51:5: error: break statement not within loop or switch
   51 |     break;
      |     ^~~~~
a.cc:55:5: error: break statement not within loop or switch
   55 |     break;
      |     ^~~~~
a.cc:59:5: error: break statement not within loop or switch
   59 |     break;
      |     ^~~~~
Language: C++

#include<bits/stdc++.h>

using namespace std;

#define ll long long
#define ini(arr, val) memset(arr, (val), sizeof(arr))
#define loop(i,n)  for(ll i=0; i<n; i++)
#define loop1(i,n)  for(ll i=1; i<=n; i++)

#define all(a)      (a).begin(),(a).end()
#define dupli(a)     unique(all(a)),(a).end()
#define exist(s,e)  (s.find(e)!=s.end())
#define dbg(x)  cout << #x << " is " << x << endl;
#define pt(x) cout<<x<<"\n"
#define pts(x) cout<<x<<" "

#define mp make_pair
#define pb push_back
#define F first
#define S second


#define inf (int)1e9
#define eps 1e-9
#define PI 3.1415926535897932384626433832795
#define mod 1000000007


#define fast    ios_base::sync_with_stdio(0);cin.tie(0);cout.tie(0);
#define test   int t; cin>>t; while(t--)

typedef pair<int, int> pii;
typedef vector<int> vi;
typedef vector<string> vs;
typedef vector<pii> vpii;
typedef vector<vi> vvi;
typedef map<int,int> mii;
typedef set<int> si;

typedef pair<ll, ll> pll;
typedef vector<ll> vl;
typedef vector<string> vs;
typedef vector<pll> vpll;
typedef vector<vl> vvl;
typedef map<ll,ll> mll;
typedef set<ll> sl;


//////////////////////////////////////////////////////////////////////////////////////////
//                      main starts
//////////////////////////////////////////////////////////////////////////////////////////
int const lmt=1e5+5;


int main(){

 //    #ifndef ONLINE_JUDGE
 //    freopen("../input.txt", "r", stdin);
 //    freopen("../output.txt", "w", stdout);
	// #endif
 //    fast

    ll n;
    ll a[3];
    loop(i,3){
    	loop(j,3){
    		cin>>a[i];
    	}
    }
    cin>>n;
    ll b[n];
    loop(i,n) cin>>b[i];
    bool vis[3][3];
    loop(i,3){
    	loop(j,3){
    		vis[i][j]=0;
    		loop(k,n){
    			if(a[i][j]==b[k]) vis[i][j]=1;
    		}
    	}
    }
    int c=0;
    
    loop(i,n){
    	if(vis[i][0] && vis[i][1] && vis[i][2]) {c=1;break;}
    }
    loop(j,n){
    	if(vis[0][j] && vis[1][j] && vis[2][j]) {c=1;break;}
	}
	if(vis[0][0] && vis[1][1] && vis[2][2]) c=1;
	if(vis[3][3] && vis[2][j] && vis[2][j]) c=1;

	if(c) pt("Yes");
	else pt("No");

}


/*

// 

*/

Compiler output:
a.cc: In function 'int main()':
a.cc:78:32: error: invalid types 'long long int[long long int]' for array subscript
   78 |                         if(a[i][j]==b[k]) vis[i][j]=1;
      |                                ^
a.cc:91:32: error: 'j' was not declared in this scope
   91 |         if(vis[3][3] && vis[2][j] && vis[2][j]) c=1;
      |                                ^
Language: Java

mport java.util.Scanner;

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

		Scanner scanner = new Scanner(System.in);

		int[]bingo = new int[9];

		for(int i = 0; i < 9; i++) {
			String[] temp = scanner.nextLine().split(" ");
			bingo[i] 	 = Integer.parseInt(temp[0]);
			bingo[i + 1] = Integer.parseInt(temp[1]);
			bingo[i + 2] = Integer.parseInt(temp[2]);

			i += 2;
		}

		int n = Integer.parseInt(scanner.nextLine());
		int b = 0;

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

			b = Integer.parseInt(scanner.nextLine());

			for(int j = 0; j < 9; j++) {

				if(bingo[j] == b) bingo[j] = 0;

			}
		}


		for(int i = 0; i < 9; i++) {
			if(bingo[i] + bingo[i + 1] + bingo[i + 2] == 0) {

				System.out.println("Yes");
				return;

			}
			i += 2;
		}

		for(int i = 0; i < 3; i++) {
			if(bingo[i] + bingo[i + 3] + bingo[i + 6] == 0) {

				System.out.println("Yes");
				return;

			}
		}

		if(bingo[0] + bingo[4] + bingo[8] == 0) {

			System.out.println("Yes");
			return;

		}

		if(bingo[2] + bingo[4] + bingo[6] == 0) {

			System.out.println("Yes");
			return;

		}

		System.out.println("No");
	}
}

Compiler output:
Main.java:1: error: class, interface, enum, or record expected
mport java.util.Scanner;
^
1 error
Language: Java

import java.util.*;
 
public class Main {
 	public static void main(String[] args){
    	Scanner sc = new Scanner(System.in);
		int[][] A = new int[3][3];
		for(int i=0; i<3; i++){
			for(int j=0; j<3; j++){
				A[i][j] = sc.nextInt();
            }
        }
		int N = sc.nextInt();
		//int[] B = new int[N];
		for(int i=0; i<N; i++){
			int b = sc.nextInt();
			for(int i=0; i<3; i++){
				for(int j=0; j<3; j++){
					if(b == A[i][j]){
						A[i][j] = 0;
                    }
				}
			}
        }

		if(A[0][0]==0){
			if(A[0][1]==0&&A[0][2]==0){
				System.out.println("Yes");
				return;
			}else if(A[1][1]==0&&A[2][2]==0){
				System.out.println("Yes");
				return;
			}else if(A[1][0]==0&&A[2][0]==0){
				System.out.println("Yes");
				return;
			}
		}else if(A[0][1]==0&&A[1][1]==0&&A[2][1]==0){
			System.out.println("Yes");
				return;
		}else if(A[1][0]==0&&A[1][1]==0&&A[1][2]==0){
			System.out.println("Yes");
				return;
		}else if(A[0][2]==0&&A[1][1]==0&&A[2][0]==0){
			System.out.println("Yes");
				return;
		}else if(A[2][2]==0){
			if(A[2][1]==0&&A[2][0]==0){
				System.out.println("Yes");
				return;
			}else if(A[1][2]==0&&A[0][2]==0){
				System.out.println("Yes");
				return;
			}
		}else{
			System.out.println("No");
        }
	}
}


Compiler output:
Main.java:16: error: variable i is already defined in method main(String[])
			for(int i=0; i<3; i++){
			        ^
1 error
Language: C++

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


#define ll long long
#define MOD 1000000007
#define PI 3.1415


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

     for(int i=0;i<3;i++){
         for(int j=0;j<3;j++){
             cin>>a.at(i).at(j);
         }
     }

     int n;
     cin>>n;
     int v;
     for(int i=0;i<n;i++){
         cin>>v;
         for(int j=0;j<3;j++){
             for(int k=0;k<3;k++){
                 if(v==a.at(j).at(k))a.at(j).at(k)=0;
             }
         }
     }

     int j=0;
     for(int i=0;i<3;i++){
        if(a.at(i).at(0)==a.at(i).at(1)&&a.at(xi).at(1)==a.at(i).at(2))j=1;
    }
    for(int i=0;i<3;i++){
        if(a.at(0).at(i)==a.at(1).at(i)&&a.at(1).at(i)==a.at(2).at(i))j=1;
    }
    if(a.at(0).at(0)==a.at(1).at(1)&&a.at(1).at(1)==a.at(2).at(2))j=1;
    if(a.at(0).at(2)==a.at(1).at(1)&&a.at(1).at(1)==a.at(2).at(0))j=1;

    if(j==0){
        cout<<"No"<<endl;
    }else{
        cout<<"Yes"<<endl;
    }

}



Compiler output:
a.cc: In function 'int main()':
a.cc:33:47: error: 'xi' was not declared in this scope; did you mean 'i'?
   33 |         if(a.at(i).at(0)==a.at(i).at(1)&&a.at(xi).at(1)==a.at(i).at(2))j=1;
      |                                               ^~
      |                                               i
Language: C++


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

void Main() {
    // input
    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 k = 0; k < N; k++) {
        int B;
        cin >> B;
        for (auto it: A) {
            cout << *it << endl;
            if (*it == B) {
                *it = -1;
                // cout << *it << endl;
            }
        }
    }

    if (A[0][0] == A[0][1] && A[0][1] == A[0][2]) {
        cout << "Yes" << endl;
        return;
    }
    if (A[1][0] == A[1][1] && A[1]][1] == A[1][2]) {
        cout << "Yes" << endl;
        return;
    }
    if (A[2][0] == A[2][1] && A[2][1] == A[2][2]) {
        cout << "Yes" << endl;
        return;
    }
    if (A[0][0] == A[1][0] && A[1][0] == A[2][0]) {
        cout << "Yes" << endl;
        return;
    }
    if (A[0][1] == A[1][1] && A[1][1] == A[2][1]) {
        cout << "Yes" << endl;
        return;
    }
    if (A[0][2] == A[1][2] && A[1][2] == A[2][2]) {
        cout << "Yes" << endl;
        return;
    }
    if (A[0][0] == A[1][1] && A[1][1] == A[2][2]) {
        cout << "Yes" << endl;
        return;
    }
    if (A[0][2] == A[1][1] && A[1][1] == A[2][0]) {
        cout << "Yes" << endl;
        return;
    }
    cout << "No" << endl;
}

int main() {
    std::cout << std::fixed << std::setprecision(15);
    Main();
    return 0;
}


Compiler output:
a.cc: In function 'void Main()':
a.cc:33:35: error: expected ')' before ']' token
   33 |     if (A[1][0] == A[1][1] && A[1]][1] == A[1][2]) {
      |        ~                          ^
      |                                   )
a.cc:33:35: error: expected primary-expression before ']' token
Language: C++

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

int main()
{
  int a[3][3];
  rep(i,3){
    rep(j,3){
      cin >> a[i][j];
    }
    
  return 0;
}

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

1 #include <bits/stdc++.h>
2 using namespace std;
3 int N, A[3][3], b[10];
4 bool appear[3][3];
5 int main() {
6 for(int i = 0; i < 3; i++) {
7 for(int j = 0; j < 3; j++) cin >> A[i][j];
8 }
9 cin >> N;
10 for(int i = 0; i < N; i++) cin >> b[i];
11 for(int i = 0; i < N; i++) {
12 for(int j = 0; j < N; j++) {
13 appear[i][j] = false;
14 for(int k = 0; k < N; k++) {
15 if(A[i][j] == b[k]) appear[i][j] = true;
16 }
17 }
18 }
19 string ANS = "No";
20 for(int i = 0; i < 3; i++) {
21 if(appear[i][0] and appear[i][1] and appear[i][2]) ANS = "Yes";
22 }
23 for(int i = 0; i < 3; i++) {
24 if(appear[0][i] and appear[1][i] and appear[2][i]) ANS = "Yes";
25 }
26 if(appear[0][0] and appear[1][1] and appear[2][2]) ANS = "Yes";
27 if(appear[0][2] and appear[1][1] and appear[2][0]) ANS = "Yes";
28 cout << ANS << endl;
29 return 0;
}

Compiler output:
a.cc:1:3: error: stray '#' in program
    1 | 1 #include <bits/stdc++.h>
      |   ^
a.cc:1:1: error: expected unqualified-id before numeric constant
    1 | 1 #include <bits/stdc++.h>
      | ^
a.cc:3:1: error: expected unqualified-id before numeric constant
    3 | 3 int N, A[3][3], b[10];
      | ^
a.cc:4:1: error: expected unqualified-id before numeric constant
    4 | 4 bool appear[3][3];
      | ^
a.cc:5:1: error: expected unqualified-id before numeric constant
    5 | 5 int main() {
      | ^
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++) {
    cin >> bingo[i][0] >> bingo[i][1] >> bingo[i][2];   
  }
  int N;
  cin >> N;
  vector<int> val(N);
  for (int i=0; i<N; i++){
    cin >> val[i];
  }
  
  vector<vector<bool>> ans(3, vector<bool>(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] == val[k]) {
          ans[i][j] = 1;
        }
      }
    }
  }
  bool A = 0;
  for (int i=0; i<3; i++){
    if (ans[i][0]==1 && ans[i][1]==1 && ans[i][2]==1){
      A = 1;
    }
    
    if (ans[0][i]==1 && ans[1][i]==1 && ans[2][i]==1){
      A = 1;
    }
  }
  if (ans[0][0] ==1 && ans[1][1] ==1 && ans[2][2] ==1){
    A = 1;
  }
  
  if (ans[0][2] ==1 && ans[1][1] ==1 && ans[2][0] ==1){
    A = 1;
  }
  
  if (A){
    cout << "Yes" << endl;
  }
  
  else{
    cout << "No" << endl;
  }
}

Compiler output:
a.cc: In function 'int main()':
a.cc:16:48: error: expected ',' or ';' before '=' token
   16 |   vector<vector<bool>> ans(3, vector<bool>(3)) = 0;
      |                                                ^
a.cc:17:18: error: expected ';' before '<' token
   17 |   for (int i=0, i<3; i++){
      |                  ^
      |                  ;
a.cc:17:18: error: expected primary-expression before '<' token
a.cc:18:20: error: expected ';' before '<' token
   18 |     for (int j=0, j<3; j++){
      |                    ^
      |                    ;
a.cc:18:20: error: expected primary-expression before '<' token
Language: Java

import java.util.Scanner;
public class Main {
    public static void main(String[] args) {
    
    Scanner sc = new Scanner(System.in);
      
      //入力
      int N =sc.nextInt();//商品の種類
      int M =sc.nextInt();//選択する個数
      
      int item[] = new int[N];
      int sum =0;
      int count =0;
      
      //各商品の投票数を配列へ
      for(int i=0; i<N; i++){
        	item [i] = sc.nextInt();
             sum += item[i];//総投票数
      }
      
      for(int i=0; i<N; i++){
        
        //選択されるための最低投票数
      		int min = sum/(4*M);
        
        //各投票数が最低投票数を超えているか
        if(item[i]>=min){
          count++;
          
          
          	if(count>=M){
              System.out.println("Yes");
            
            }
            else{
              System.out.println("No");
              
            }import java.util.Scanner;
public class Main {
    public static void main(String[] args) {
    
    Scanner sc = new Scanner(System.in);
      
      //入力
      int N =sc.nextInt();//商品の種類
      int M =sc.nextInt();//選択する個数
      
      int item[] = new int[N];
      int sum =0;
      int count =0;
      
      //各商品の投票数を配列へ
      for(int i=0; i<N; i++){
        	item [i] = sc.nextInt();
             sum += item[i];//総投票数
      }
      
      for(int i=0; i<N; i++){
        
        //選択されるための最低投票数
      		int min = sum/(4*M);
        
        //各投票数が最低投票数を超えているか
        if(item[i]>=min){
          count++;
          
          
          	if(count>=M){
              System.out.println("Yes");
            
            }
            else{
              System.out.println("No");
              
            }
        }
        //System.out.println("No");
      }
    }
}
        }
        //System.out.println("No");
      }
    }
}

Compiler output:
Main.java:38: error: illegal start of expression
            }import java.util.Scanner;
             ^
Main.java:38: error: not a statement
            }import java.util.Scanner;
                             ^
Main.java:39: error: illegal start of expression
public class Main {
^
Main.java:83: error: class, interface, enum, or record expected
      }
      ^
4 errors
Language: C++

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

#define pb 		push_back
#define mp 		make_pair
#define prior   priority_queue
#define MOD 	1000000007
#define INF64 	(long long)1e18
#define INF 	(int)1e9
#define PI 		3.1415926535897932384626433832795 
#define ll      long long
#define ld		long double
#define ret     return
#define NUM 	1000001
const int SIZE = 2e5+4;
void fastio(){
	ios_base::sync_with_stdio(false);
	cin.tie(0);
	cout.tie(0);
}


void solveTest(){
	
}

int main(){
	fastio();
	input();

	/*int t;
	cin>>t;
	while(t--){
		solveTest();
	}*/

	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;
	bool flag[3][3];
	for(int i=0;i<n;i++){
		int x;
		cin>>x;
		for(int j=0;j<3;j++){
			for(int k=0;k<3;k++){
				if(a[j][k]==x){
					flag[j][k]=true;
				}
			}
		}
	}
	cout << ((flag[0][0] && flag[0][1] && flag[0][2]) ||\
          (flag[1][0] && flag[1][1] && flag[1][2]) ||\
          (flag[2][0] && flag[2][1] && flag[2][2]) ||\
          (flag[0][0] && flag[1][0] && flag[2][0]) ||\
          (flag[0][1] && flag[1][1] && flag[2][1]) ||\
          (flag[0][2] && flag[1][2] && flag[2][2]) ||\
          (flag[0][0] && flag[1][1] && flag[2][2]) ||\
          (flag[2][0] && flag[1][1] && flag[0][2]) ? "Yes" : "No") << endl;
	
	return 0;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:29:9: error: 'input' was not declared in this scope; did you mean 'int'?
   29 |         input();
      |         ^~~~~
      |         int
Language: C++

#include <bits/stdc++.h>
#include <math.h>
using namespace std;
#define rep(i,n) for (int i = 0; i < (int)(n); ++i)
#define be(v) v.begin(), v.end()
typedef long long ll;
typedef vector<int> vint;
#define scout cout << fixed << setprecision(5) 
ll INF = 1e9;
ll mod = 1e9+7;

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

Compiler output:
a.cc: In function 'int main()':
a.cc:22:20: error: 'A' was not declared in this scope
   22 |                 if(A[i][j] == b[k]) ap[i][j] = true;
      |                    ^
Language: C++

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

bool is_palindrome(string s){
    string t(s.rbegin(),s.rend());
    return s == t;
}
 
int main(){
    int a[3][3];
    rep(i,3) rep(j,3) cin >> a[i][j];
    int n; cin >> n;
    int b[n];
    rep(i,n) cin >> b[i];
    bool aa[3][3];
    rep(i,3){
    	rep(j,3) aa[i][j] = false; rep(k,n) {
    	if(a[i][j]==b[k]) aa[i][j] = true; goto H;
    	}
    	H: continue;
    }
    bool ok = false;
    if(aa[0][0]&&aa[0][1]&&aa[0][2]) ok = true;
    else if(aa[1][0]&&aa[1][1]&&aa[1][2]) ok = true;
    else if(aa[2][0]&&aa[2][1]&&aa[2][2]) ok = true;
    else if(aa[0][0]&&aa[1][0]&&aa[2][0]) ok = true;
    else if(aa[0][0]&&aa[1][0]&&aa[2][0]) ok = true;
    else if(aa[0][1]&&aa[1][1]&&aa[2][1]) ok = true;
    else if(aa[0][2]&&aa[1][2]&&aa[2][2]) ok = true;
    else if(aa[0][0]&&aa[1][1]&&aa[2][2]) ok = true;
    else if(aa[0][2]&&aa[1][1]&&aa[2][0]) ok = true;
    if(ok) cout << "Yes" << endl;
    else cout << "No" << endl;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:22:17: error: 'j' was not declared in this scope
   22 |         if(a[i][j]==b[k]) aa[i][j] = true; goto H;
      |                 ^
Language: C++

#include <iostream>
#include <vector>

using namespace std;

int main() {
  vector<int> A(9, 0), B(9, 0);
  bool flg = false;
  for(int i = 0; i < 9; i++) cin >> A[i];
  int N; cin >> N;
  for(int i = 0; i < N; i++) {
    cin >> b;
    for(int j = 0; j < 9; j++) {
      if(A[j] == b) B[j] = 1;
    }
  }
  for(int i = 0; i < 3; i++) {
    if(B[i] == 1 && B[i + 1] == 1 && B[i + 2] == 1) flg = true;
    if(B[i] == 1 && B[i + 3] == 1 && B[i + 6] == 1) flg = true;
  }
  if(B[0] == 1 && B[4] == 1 && B[8] == 1 || B[2] == 1 && B[4] == 1 && B[6] == 1) flg = true;
  if(flg) cout << "Yes" << endl;
  else cout << "No" << endl;
  return 0;
}

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

#include <bits/stdc++.h>
using namespace std;
int main(){
  int data[3][3];
  int ans[3][3]
  for(int i=0; i<3; i++){
    for(int j=0; j<3; j++){
      cin >> data[i][j];
      ans[i][j] = 0;
    }
  }
  int n; cin >> n;
  int num;
  for(int k=0; k<n; k++){
    cin >> num;
    for(int i=0; i<3; i++)
    	for(int j=0; j<3; j++)
          if(data[i][j] = num) 
            ans[i][j] = 1;
  }
  if(data[0][0]*data[1][0]==1*data[2][0]==1||
     data[0][1]*data[1][1]==1*data[2][1]==1||
     data[0][2]*data[1][2]==1*data[2][2]==1||
     data[0][0]*data[0][1]==1*data[0][2]==1||
     data[1][0]*data[1][1]==1*data[1][2]==1||
     data[2][0]*data[2][1]==1*data[2][2]==1||
     data[0][0]*data[1][1]==1*data[2][2]==1||
     data[2][0]*data[1][1]==1*data[0][2]==1)
    cout << "Yes" << endl;
  else cout << "No" << endl;
}
          
      

Compiler output:
a.cc: In function 'int main()':
a.cc:6:3: error: expected initializer before 'for'
    6 |   for(int i=0; i<3; i++){
      |   ^~~
a.cc:6:16: error: 'i' was not declared in this scope
    6 |   for(int i=0; i<3; i++){
      |                ^
a.cc:19:13: error: 'ans' was not declared in this scope; did you mean 'abs'?
   19 |             ans[i][j] = 1;
      |             ^~~
      |             abs
Language: C++

#include<iostream>
using namespace std;
int main()
{
    int a[3][3];
    for(int i=0;i<3;i++)
        for(int j=0;j<3;j++)
            cin>>a[i][j];
    int n;
    cin>>n;
    int b[n];
    for(int i=0;i<n;i++)
        cin>>b[i];
    for(int k=0;k<n;k++)
        for(int i=0;i<3;i++)
            for(int j=0;j<3;j++)
                if(a[i][j]==b[k]){
                    a[i][j]=0;
    int ans=0;
    for(int i=0;i<3;i++)
        if(a[i][0]+a[i][1]+a[i][2]==0)
            ans=1;
    for(int i=0;i<3;i++)
        if(a[0][i]+a[1][i]+a[2][i]==0)
            ans=1;
    if(a[0][0]+a[1][1]+a[2][2]==0)
        ans=1;
    if(a[0][2]+a[1][1]+a[2][0]==0)
        ans=1;
    if(ans==1)
        cout<<"Yes\n";
    else
        cout<<"No\n";
}

Compiler output:
a.cc: In function 'int main()':
a.cc:34:2: error: expected '}' at end of input
   34 | }
      |  ^
a.cc:4:1: note: to match this '{'
    4 | {
      | ^
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;
  int b[N];
  for(int i=0;i<N;i++){
    cin>>b[i];
  }
  for(int i=0;i<N;i++){
    for(int j=0;j<3;j++){
      for(int k=0;k<3;k++){
        if(a[j][k]==b[i]){
          a[j][k]==0;
        }
      }
    }
  }
  bool ans=false;
  if(a[0][0]==a[0][1]&&a[0][0]a[0][2]||a[1][0]==a[1][1]&&a[1][0]==a[1][2]||a[2][0]==a[2][1]&&a[2][0]==a[2][2]){
    ans=true;
  }
  else if(a[0][0]==a[1][0]&&a[0][0]==a[2][0]||a[0][1]==a[1][1]&&a[0][1]==a[2][1]||a[0][2]==a[1][2]&&a[0][2]==a[2][2]){
    ans=true;
  }
  else if(a[0][0]==a[1][1]&&a[0][0]==a[2][2]||a[0][2]==a[1][1]&&a[0][2]==a[2][0]){
    ans=true;
  }
  
  if(ans){
    cout<<"Yes"<<endl;
  }
  else{
    cout<<"No"<<endl;
  }
}

Compiler output:
a.cc: In function 'int main()':
a.cc:26:31: error: expected ')' before 'a'
   26 |   if(a[0][0]==a[0][1]&&a[0][0]a[0][2]||a[1][0]==a[1][1]&&a[1][0]==a[1][2]||a[2][0]==a[2][1]&&a[2][0]==a[2][2]){
      |     ~                         ^
      |                               )
Language: C++

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

int main() {
  vector<vetcor<int>> A(3,vector<int>(3));
  for(int i=0;i<3;i++){
    for(int j=0;j<3;j++){
      cin >> A.at(i).at(j);
    }
  }
  
  // 一致したときのiとjをpair<int,int>とかに格納しておいて最後にビンゴチェックする！
  
}


Compiler output:
a.cc: In function 'int main()':
a.cc:5:10: error: 'vetcor' was not declared in this scope
    5 |   vector<vetcor<int>> A(3,vector<int>(3));
      |          ^~~~~~
a.cc:5:20: error: template argument 1 is invalid
    5 |   vector<vetcor<int>> A(3,vector<int>(3));
      |                    ^~
a.cc:5:20: error: template argument 2 is invalid
a.cc:5:41: error: expression list treated as compound expression in initializer [-fpermissive]
    5 |   vector<vetcor<int>> A(3,vector<int>(3));
      |                                         ^
a.cc:5:27: error: cannot convert 'std::vector<int>' to 'int' in initialization
    5 |   vector<vetcor<int>> A(3,vector<int>(3));
      |                           ^~~~~~~~~~~~~~
      |                           |
      |                           std::vector<int>
a.cc:8:16: error: request for member 'at' in 'A', which is of non-class type 'int'
    8 |       cin >> A.at(i).at(j);
      |                ^~
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> b(n);
  for(int i=0; i<n; i++){
    cin >> b[i];
  }
  vector<vector<bool>> c(3,vector<bool>(3,false));
  for(int i=0; i<n; i++){
    for(int j=0; j<3; j++){
      for(int k=0; k<3; k++){
        if(b[i] == a[i][j]) c[i][j] = true;
      }
    }
  }
  bool ans = false;
  
    for(int i=0; i<3; i++){
      if(c[i][0] && c[i][1] && c[i][2]){
        ans = true;
        break;
      }
      if(c[0][i] && c[1][i] && c[2][i]){
        ans = true;
        break;
      }
    }
  
  if(!ans){
    if(c[0][0] && c[1][1] && c[2][2]) ans = true;
    if(c[0][2] && c[1][i] && c[2][0]) ans = true;
  }
  if(ans) cout << "Yes" << endl;
  else cout << "No" << endl;
}
    
        

Compiler output:
a.cc: In function 'int main()':
a.cc:38:24: error: 'i' was not declared in this scope
   38 |     if(c[0][2] && c[1][i] && c[2][0]) ans = true;
      |                        ^
Language: C++

#include "iostream"
using namespace std;
int main()
{
    int grid[4][4];
    bool marked[4][4];
    memset(marked, false, sizeof(marked));
    for(int i=1;i<4;i++)
    { for(int j=1;j<4;j++)
        {
            cin>>grid[i][j];
        }
    }
    
    int n;
    cin>>n;
    int arr[n+1];
    for(int i=1;i<=n;i++)
    {
        cin>>arr[i];
    }
    
    for(int i=1;i<4;i++)
    { for(int j=1;j<4;j++)
        {

            for(int k=1;k<n;k++)
            {
                if(grid[i][j]==arr[k])
                {
                    marked[i][j]=true;
                }
            }
            
            
    
        }}
    
    string ans="No";
    
    for(int i=1;i<=3;i++)
    {
        if(marked[i][1] && marked[i][2] && marked[i][3])
            ans="Yes";
        
    }
    
    for(int i=1;i<=3;i++)
    {
        if(marked[1][i] && marked[2][i] && marked[3][i])
            ans="Yes";
        
    }
    
    if(marked[1][1] && marked[2][2] && marked[3][3]) ans = "Yes";
     if(marked[3][1] && marked[2][2] && marked[1][3]) ans = "Yes";
    
    cout<<ans<<endl;
    
    
    
}


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

#include <bits/stdc++.h>
using namespace std;
using Graph = vector<vector<int>>;
#define rep(s,t) for (int s = 0; s < t; ++s);
using ll = long long;


int main() {
  int a[3][3];
  
  int i,j,k,n,x,y;

  rep(i,3){
    rep(j,3){
      cin >> x;
      x = a[i][j];
    }
  }

  cin >> n;

  int b[10];

  rep(i,n){
    cin >> y;
    y = b[i];
  }

  rep(i,3){
    rep(j,3){
      rep(k,n){
        if( a[i][j] == b[k]){
          a[i][j] = 0;
        }
      }
    }
  }
  if ((a[0][0] + a[1][0] + a[2][0] == 0) || 
      (a[0][1] + a[1][1] + a[2][1] == 0) ||
      (a[0][2] + a[1][2] + a[2][2] == 0) ||
      (a[0][0] + a[0][1] + a[0][2] == 0) ||
      (a[1][0] + a[1][1] + a[1][2] == 0) ||
      (a[2][0] + a[2][1] + a[2][2] == 0) ||
      (a[0][0] + a[1][1] + a[2][2] == 0) ||
      (a[0][2] + a[1][1] + a[2][0] == 0)){
    cout << "Yes" << endl;
  }

  else {
    cout << "No" << endl;
  }

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

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

int main() {
  vector<vector<int>> A(3, vector<int>(3));
  int N;
 
  for(int i=0;i<3;i++){
    for(int j=0;j<3;j++){
      cin>>A.at(i).at(j);
    }
  }
  cin>>N;
  vector<int> B(N);
  for(int i=0;i<N;i++){
    cin>>B.at(i);
  }
  vector<vector<int>> C(3,vector<int>(3,0));
    for(int k=0;k<N;k++){
      for(int i=0;i<3;i++){
        for(int j=0;j<3;j++){
          if(B.at(k)==A.at(i).(j)){
            C.at(i).at(j)=A.at(i).(j);
          }
        }
      }
    }
  for(int i=0;i<3;i++){
    if(C.at(i).at(0)!=0 && C.at(i).at(1)!=0 && C.at(i).at(2)!=0){
      cout<<"yes"<<endl;
      return 0;
    }
    if(C.at(0).at(i)!=0 && C.at(1).at(i)!=0 && C.at(2).at(i)!=0){
      cout<<"yes"<<endl;
      return 0;
    }
    if(C.at(0).at(0)!=0 && C.at(1).at(1)!=0 && C.at(2).at(2)!=0)){
      cout<<"yes"<<endl;
      return 0;
    }
    if(C.at(2).at(0)!=0 && C.at(1).at(1)!=0 && C.at(0).at(2)!=0){
      cout<<"yes"<<endl;
      return 0;
    }
  }
  cout<<"no"<<endl;
}
      
      
  

     
        
 

Compiler output:
a.cc: In function 'int main()':
a.cc:22:31: error: expected unqualified-id before '(' token
   22 |           if(B.at(k)==A.at(i).(j)){
      |                               ^
a.cc:23:35: error: expected unqualified-id before '(' token
   23 |             C.at(i).at(j)=A.at(i).(j);
      |                                   ^
a.cc:37:65: error: expected primary-expression before ')' token
   37 |     if(C.at(0).at(0)!=0 && C.at(1).at(1)!=0 && C.at(2).at(2)!=0)){
      |                                                                 ^
Language: C++

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

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


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

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

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


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

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

    N = int(input())

    # b = [int(input()) for _ in range(N)]

    result = [[False for i in range(3)] for j in range(3)]

    for i in range(N):
        b = int(input())
        for j in range(3):
            for k in range(3):
                if b == a[j][k]:
                    result[j][k] = True

    ans = "No"

    for i in range(3):
        if result[i][0] and result[i][1] and result[i][2] is True:
            ans = "Yes"

    for i in range(3):
        if result[0][i] and result[1][i] and result[2][i] is True:
            ans = "Yes"

    if result[0][0] and result[1][1] and result[2][2] is True:
        ans = "Yes"

    if result[2][0] and result[1][1] and result[0][2] is True:
        ans = "Yes"

    print(ans)


if __name__ == "__main__":
    main()


Compiler output:
a.cc:6:7: error: invalid preprocessing directive #b
    6 |     # b = [int(input()) for _ in range(N)]
      |       ^
a.cc:1:1: error: 'def' does not name a type
    1 | def main():
      | ^~~
Language: C++

#include "bits/stdc++.h" 
using namespace std;
typedef long long ll;
#define REP(i, a, b) for(ll i = ll(a); i <= ll(b); i++)
int main()
{
    ll N;
    ll board[4][4];
    bool appear [4][4];
    REP(i,1,3)
        REP(j,1,3)
            cin>>board[i][j];
    cin>>N;
    ll b[N+1];
    REP(i,1,N)    
        cin>>b[i];  
    for(int i = 0; i < N; i++) {
    for(int j = 0; j < N; j++) {
    appear[i][j] = false;
    for(int k = 0; k < N; k++) {
    if(A[i][j] == b[k]) appear[i][j] = true;
                    }
            }
        }
    string s="No";
    if(appear[1][1] && appear[2][2] && appear[3][3])
    {
        s="Yes";
    }
    if(appear[1][3] && appear[2][2] && appear[3][1])
    {
        s="Yes";
    }
    REP(i,1,3)
    {
        if(appear[1][i] && appear[2][i] && appear[3][i] && 0)
        s="Yes";
    }
    REP(i,1,3)
    {
        if(appear[i][1] && appear[i][2] && appear[i][3] && 0)
        s="Yes";
    }   
    cout<<s;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:21:8: error: 'A' was not declared in this scope
   21 |     if(A[i][j] == b[k]) appear[i][j] = true;
      |        ^
Language: C++

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

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

Compiler output:
a.cc: In function 'int main()':
a.cc:26:240: error: expected primary-expression before ')' token
   26 |     if((b[0][0]&&b[0][1]&&b[0][2])||(b[1][0]&&b[1][1]&&b[1][2])||(b[2][0]&&b[2][1]&&b[2][2])||(b[0][0]&&b[0][1]&&b[0][2])||(b[0][1]&&b[1][1]&&b[2][1])||(b[0][2]&&b[1][2]&&b[2][2])||(b[0][0]&&b[1][1]&&b[2][2])||(b[2][0]&&b[1][1]&&b[0][2])||){
      |                                                                                                                                                                                                                                                ^
Language: C++

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

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

Compiler output:
a.cc: In function 'int main()':
a.cc:3:18: error: expected ',' or ';' before 'for'
    3 | #define rep(i,n) for (int i=0;i < (n); ++i)
      |                  ^~~
a.cc:12:5: note: in expansion of macro 'rep'
   12 |     rep(i,3){
      |     ^~~
a.cc:12:9: error: 'i' was not declared in this scope
   12 |     rep(i,3){
      |         ^
a.cc:3:31: note: in definition of macro 'rep'
    3 | #define rep(i,n) for (int i=0;i < (n); ++i)
      |                               ^
a.cc:26:240: error: expected primary-expression before ')' token
   26 |     if((b[0][0]&&b[0][1]&&b[0][2])||(b[1][0]&&b[1][1]&&b[1][2])||(b[2][0]&&b[2][1]&&b[2][2])||(b[0][0]&&b[0][1]&&b[0][2])||(b[0][1]&&b[1][1]&&b[2][1])||(b[0][2]&&b[1][2]&&b[2][2])||(b[0][0]&&b[1][1]&&b[2][2])||(b[2][0]&&b[1][1]&&b[0][2])||){
      |                                                                                                                                                                                                                                                ^
Language: C++

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

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

Compiler output:
a.cc: In function 'int main()':
a.cc:3:18: error: expected ',' or ';' before 'for'
    3 | #define rep(i,n) for (int i=0;i < (n); ++i)
      |                  ^~~
a.cc:12:5: note: in expansion of macro 'rep'
   12 |     rep(i,3){
      |     ^~~
a.cc:12:9: error: 'i' was not declared in this scope
   12 |     rep(i,3){
      |         ^
a.cc:3:31: note: in definition of macro 'rep'
    3 | #define rep(i,n) for (int i=0;i < (n); ++i)
      |                               ^
a.cc:26:240: error: expected primary-expression before ')' token
   26 |     if((b[0][0]&&b[0][1]&&b[0][2])||(b[1][0]&&b[1][1]&&b[1][2])||(b[2][0]&&b[2][1]&&b[2][2])||(b[0][0]&&b[0][1]&&b[0][2])||(b[0][1]&&b[1][1]&&b[2][1])||(b[0][2]&&b[1][2]&&b[2][2])||(b[0][0]&&b[1][1]&&b[2][2])||(b[2][0]&&b[1][1]&&b[0][2])||){
      |                                                                                                                                                                                                                                                ^
Language: C++

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

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

Compiler output:
a.cc: In function 'int main()':
a.cc:3:18: error: expected ',' or ';' before 'for'
    3 | #define rep(i,n) for (int i=0;i < (n); ++i)
      |                  ^~~
a.cc:12:5: note: in expansion of macro 'rep'
   12 |     rep(i,3) rep(j,3) cin >> a[i][j];
      |     ^~~
a.cc:12:9: error: 'i' was not declared in this scope
   12 |     rep(i,3) rep(j,3) cin >> a[i][j];
      |         ^
a.cc:3:31: note: in definition of macro 'rep'
    3 | #define rep(i,n) for (int i=0;i < (n); ++i)
      |                               ^
a.cc:12:18: error: 'j' was not declared in this scope
   12 |     rep(i,3) rep(j,3) cin >> a[i][j];
      |                  ^
a.cc:3:31: note: in definition of macro 'rep'
    3 | #define rep(i,n) for (int i=0;i < (n); ++i)
      |                               ^
a.cc:22:240: error: expected primary-expression before ')' token
   22 |     if((b[0][0]&&b[0][1]&&b[0][2])||(b[1][0]&&b[1][1]&&b[1][2])||(b[2][0]&&b[2][1]&&b[2][2])||(b[0][0]&&b[0][1]&&b[0][2])||(b[0][1]&&b[1][1]&&b[2][1])||(b[0][2]&&b[1][2]&&b[2][2])||(b[0][0]&&b[1][1]&&b[2][2])||(b[2][0]&&b[1][1]&&b[0][2])||){
      |                                                                                                                                                                                                                                                ^
Language: C++

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

//マクロ
//forループ関係
//引数は、(ループ内変数,動く範囲)か(ループ内変数,始めの数,終わりの数)、のどちらか
//Dがついてないものはループ変数は1ずつインクリメントされ、Dがついてるものはループ変数は1ずつデクリメントされる
#define REP(i,n) for(ll i=0;i<(ll)(n);i++)
#define REPD(i,n) for(ll i=n-1;i>=0;i--)
#define FOR(i,a,b) for(ll i=a;i<=(ll)(b);i++)
#define FORD(i,a,b) for(ll i=a;i>=(ll)(b);i--)
//xにはvectorなどのコンテナ
#define ALL(x) (x).begin(),(x).end() //sortなどの引数を省略したい
#define SIZE(x) ((ll)(x).size()) //sizeをsize_tからllに直しておく
#define MAX(x) *max_element(ALL(x)) //最大値を求める
#define MIN(x) *min_element(ALL(x)) //最小値を求める
//定数
#define INF 1000000000000 //10^12:極めて大きい値,∞
#define MOD 1000000007 //10^9+7:合同式の法
#define MAXR 100000 //10^5:配列の最大のrange(素数列挙などで使用)
#define PI 3.14159265359 //πの値
//略記
#define PB push_back //vectorヘの挿入
#define MP make_pair //pairのコンストラクタ
#define F first //pairの一つ目の要素
#define S second //pairの二つ目の要素

 
int main() {
cin.tie(0);
ios::sync_with_stdio(false);
  ll A, N;
  bool judge = false;
  vector<vector<ll>> bingo(3,vector<ll>(3));
  REP(i,3) REP(j,3) cin >> bingo[i][j];
  cin >> N;
  REP(i,N) {
    cin >> A;
    if(bingo[i][j] == A) bingo[i][j] = 0;
  }
  REP(i,3) if(bingo[0][i]==0&&bingo[1][i]==0&&bingo[2][i]==0) judge = true;
  REP(i,3) if(bingo[i][0]==0&&bingo[i][1]==0&&bingo[i][2]==0) judge = true;
  if(bingo[0][0]==0&&bingo[1][1]==0&&bingo[2][2]==0) judge = true;
  if(bingo[0][2]==0&&bingo[1][1]==0&&bingo[2][0]==0) judge = true;
  
  if(judge) cout << "Yes";
  else cout << "No";
}

Compiler output:
a.cc: In function 'int main()':
a.cc:41:17: error: 'j' was not declared in this scope
   41 |     if(bingo[i][j] == A) bingo[i][j] = 0;
      |                 ^
Language: C++

#include <iostream>
using namespace std;

int main() {
  int N;
  int* Aij = new[] int[9];
  for(int j = 0; j < 3; j++) {
    cin >> Aij[0 + (j * 3)] >> Aij[1 + (j * 3)] >> Aij[2 + (j * 3)];
  }
  cin >> N;
  for(int j = 0; j < N; j++) {
    int num = 0;
    cin >> num;
    for(int i = 0; i < 9; i++) {
      if(Aij[i] == num) Aij[i] = 0;
    }
  }
  bool res = false;
  if(!res && !Aij[0] && !Aij[1] && !Aij[2]) res = true;
  if(!res && !Aij[3] && !Aij[4] && !Aij[5]) res = true;
  if(!res && !Aij[6] && !Aij[7] && !Aij[8]) res = true;
  if(!res && !Aij[0] && !Aij[3] && !Aij[6]) res = true;
  if(!res && !Aij[1] && !Aij[4] && !Aij[7]) res = true;
  if(!res && !Aij[2] && !Aij[5] && !Aij[8]) res = true;
  if(!res && !Aij[0] && !Aij[4] && !Aij[8]) res = true;
  if(!res && !Aij[2] && !Aij[4] && !Aij[6]) res = true;
  delete Aij;
  if(res) cout << "Yes" << endl;
  else cout << "No" << endl;
  return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:6:17: error: expected type-specifier before '[' token
    6 |   int* Aij = new[] int[9];
      |                 ^
Language: C++

#include <iostream>
using namespace std;

int main() {
  int N;
  int* Aij = new int[9];
  for(int j = 0; j < 3; j++) {
    cin >> A[0 + (j * 3)] >> A[1 + (j * 3)] >> A[2 + (j * 3)];
  }
  cin >> N;
  for(int j = 0; j < N; j++) {
    int num = 0;
    cin >> num;
    for(int i = 0; i < 9; i++) {
      if(Aij[i] == num) Aij[i] = 0;
    }
  }
  bool res = false;
  if(!res && !Aij[0] && !Aij[1] && !Aij[2]) res = true;
  if(!res && !Aij[3] && !Aij[4] && !Aij[5]) res = true;
  if(!res && !Aij[6] && !Aij[7] && !Aij[8]) res = true;
  if(!res && !Aij[0] && !Aij[3] && !Aij[6]) res = true;
  if(!res && !Aij[1] && !Aij[4] && !Aij[7]) res = true;
  if(!res && !Aij[2] && !Aij[5] && !Aij[8]) res = true;
  if(!res && !Aij[0] && !Aij[4] && !Aij[8]) res = true;
  if(!res && !Aij[2] && !Aij[4] && !Aij[6]) res = true;
  delete Aij;
  if(res) cout << "Yes" << endl;
  else cout << "No" << endl;
  return 0;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:8:12: error: 'A' was not declared in this scope
    8 |     cin >> A[0 + (j * 3)] >> A[1 + (j * 3)] >> A[2 + (j * 3)];
      |            ^