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

#include "bits/stdc++.h"
using namespace std;
int main() {
  int b[3][3];
  for (int i = 0; i < 3; i++)
    for (int j = 0; j < 3; j++) 
      cin >> b[i][j];
  bool mark[3][3];
  for (int i = 0; i < 3; i++)
    for (int j = 0; j < 3; j++)
      mark[i][j] = false;
  int n; cin >> n;
  for (int i = 0; i < n; i++) {
    int x; cin >> x;
    for (int a = 0; a < 3; a++) {
      for (int b = 0; b < 3; b++) {
        if (b[a][b] == x) mark[a][b] = true;
      }
    }
  }
  
  bool ans = false;
  for (int i = 0; i < 3; i++) {
    ans |= mark[i][0] && mark[i][1] && mark[i][2];
    ans |= mark[0][i] && mark[i][1] && mark[i][2];
  }
  ans |= mark[0][0] && mark[1][1] && mark[2][2];
  ans |= mark[0][2] && mark[1][1] && mark[2][0];
  cout << (ans ? "Yes" : "No") << endl;
  return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:17:14: error: invalid types 'int[int]' for array subscript
   17 |         if (b[a][b] == x) mark[a][b] = true;
      |              ^
Language: C++

#include <iostream>

using namespace std;
int main(void) {
	bool bingo = false;
	int** matrix;
	bool** hit;
	int N;
	int* numbers;


	//ビンゴカード、当たり判定用動的配列の確保
	matrix = new int* [3];
	hit =new bool*[3];

	for (int i = 0; i < 3; i++) {
		matrix[i] = new int[3];
		hit[i] = new bool[3];
	}
	for (int i = 0; i < 3; i++) {
		for (int j = 0; j < 3; j++) {
			hit[i][j]=false;
		}
	}

	//ビンゴカード読み込み
	for (int i = 0; i < 3; i++) {
		for (int j = 0; j < 3; j++) {
			cin >> matrix[i][j];
		}
	}

	//抽選番号数を読み込み
	cin >> N;

	//抽選番号用配列の確保
	numbers = new int* [N];


	//ビンゴカードのあたり判定
	for (int i = 0; i < 3; i++) {
		for (int j = 0; j < 3; j++) {
			for (int k = 0; k < N; k++) {
				if (matrix[i][j] == numbers[k]) {
					hit[i][j] = true;
				}
			}
		}
	}

	//行でビンゴか判定
	for (int i = 0; i < 3; i++) {
		bingo = judgeBingo(hit[i][0], hit[i][1], hit[i][2]);
		if (bingo) {
			goto result;
		}
	}

	//列でビンゴか判定
	for (int j = 0; j < 3; j++) {
		bingo = judgeBingo(hit[0][j], hit[1][j], hit[2][j]);
		if (bingo) {
			goto result;
		}
	}

	//斜めでビンゴか判定
	if (judgeBingo(hit[0][0], hit[1][1], hit[2][2])) {
		bingo = ture;
		goto result;
	}
	if (judgeBingo(hit[0][2], hit[1][1], hit[2][0])) {
		bingo = ture;
		goto result;
	}



	label result:
	if (bingo) {
		cout << "yes";
	}
	else {
		cout << "no";
	}

	return 0;
}

bool judgeBingo(bool a, bool b, bool c) {
	if (a == true && b == true && c == true) {
		return true;
	}else {
		return false;
	}
}

Compiler output:
a.cc: In function 'int main()':
a.cc:37:19: error: cannot convert 'int**' to 'int*' in assignment
   37 |         numbers = new int* [N];
      |                   ^~~~~~~~~~~~
      |                   |
      |                   int**
a.cc:53:25: error: 'judgeBingo' was not declared in this scope
   53 |                 bingo = judgeBingo(hit[i][0], hit[i][1], hit[i][2]);
      |                         ^~~~~~~~~~
a.cc:61:25: error: 'judgeBingo' was not declared in this scope
   61 |                 bingo = judgeBingo(hit[0][j], hit[1][j], hit[2][j]);
      |                         ^~~~~~~~~~
a.cc:68:13: error: 'judgeBingo' was not declared in this scope
   68 |         if (judgeBingo(hit[0][0], hit[1][1], hit[2][2])) {
      |             ^~~~~~~~~~
a.cc:69:25: error: 'ture' was not declared in this scope
   69 |                 bingo = ture;
      |                         ^~~~
a.cc:72:13: error: 'judgeBingo' was not declared in this scope
   72 |         if (judgeBingo(hit[0][2], hit[1][1], hit[2][0])) {
      |             ^~~~~~~~~~
a.cc:73:25: error: 'ture' was not declared in this scope
   73 |                 bingo = ture;
      |                         ^~~~
a.cc:79:9: error: 'label' was not declared in this scope
   79 |         label result:
      |         ^~~~~
a.cc:83:9: error: 'else' without a previous 'if'
   83 |         else {
      |         ^~~~
a.cc:55:30: error: label 'result' used but not defined
   55 |                         goto result;
      |                              ^~~~~~
Language: C++

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

Compiler output:
a.cc: In function 'int main()':
a.cc:43:12: error: 's' was not declared in this scope
   43 |         if(s[0][0]==0&&s[1][1]==0&&s[2][2]==0)
      |            ^
a.cc:48:12: error: 's' was not declared in this scope
   48 |         if(s[0][2]==0&&s[1][1]==0&&s[2][0]==0)
      |            ^
Language: C++

#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;
30 }

Compiler output:
a.cc:2:1: error: expected unqualified-id before numeric constant
    2 | 2 using namespace std;
      | ^
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 <iostream>
#include <string>
#include <map>
#include <vector>
#include <iomanip>
#include <math.h>
#include <mutex>
#include <algorithm>

#include "SandBox/StopRangeAccess/StopRangeAccess.h"

//#include "Data.h"


using namespace std;

typedef unsigned long ulong;
typedef unsigned long long ulolong;
typedef long long lolong;

#define CHECKED (0)


void CheckBingo(int bingo_card[3][3], int check_num)
{
	for (int i = 0; i < 3; i++)
	{
		for (int j = 0; j < 3; j++)
		{
			if (check_num == bingo_card[i][j])
			{
				bingo_card[i][j] = CHECKED;
				return;
			}
		}
	}
}


bool IsBingo(int bingo_card[3][3])
{
	for (int i = 0; i < 3; i++)
	{
		if (CHECKED == bingo_card[i][0]
			&& CHECKED == bingo_card[i][1]
			&& CHECKED == bingo_card[i][2])
		{
			return true;
		}
	}

	for (int j = 0; j < 3; j++)
	{
		if (CHECKED == bingo_card[0][j]
			&& CHECKED == bingo_card[1][j]
			&& CHECKED == bingo_card[2][j])
		{
			return true;
		}
	}

	if (CHECKED == bingo_card[0][0]
		&& CHECKED == bingo_card[1][1]
		&& CHECKED == bingo_card[2][2])
	{
		return true;
	}

	if (CHECKED == bingo_card[0][2]
		&& CHECKED == bingo_card[1][1]
		&& CHECKED == bingo_card[2][0])
	{
		return true;
	}

	return false;
}


int main()
{
	int bingo_card[3][3];
	int N, tmp_num;

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

	cin >> N;

	for (int k = 0; k < N; k++)
	{
		cin >> tmp_num;
		CheckBingo(bingo_card, tmp_num);
	}

	if (IsBingo(bingo_card))
	{
		cout << "Yes" << endl;
	}
	else
	{
		cout << "No" << endl;
	}
}


Compiler output:
a.cc:10:10: fatal error: SandBox/StopRangeAccess/StopRangeAccess.h: No such file or directory
   10 | #include "SandBox/StopRangeAccess/StopRangeAccess.h"
      |          ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
compilation terminated.
Language: C++

#include <iostream>
using namespace std;
int A[3][3],N,b[10],ans;
bool zahyou[3][3];
int main(void){
    for(int i=0;i<3,i++){
        for (int k=0;i<3;k++){
            cin>>A[i][k];
            
        }
        
    }
    cin>>N;
    for(int j=0;j<N;j++){
        cin>>b[j];
    }
    for (int i=0;i<3;i++){
        for(int k=0;k<3;k++){
            for (int j=0;j<N;j++){
                zahyou[i][k]=false;
                if(b[j]==A[i][k]) zahyou[i][k]=true;
            }
        }
    }
    ans=0;
    for(int i=0;i<3;i++){
        if (zahyou[i][0]==true&&zahyou[i][1]==true&&zahyou[i][2]==true) ans=1;
    }
    for(int k=0;k<3;k++){
        if(zahyou[0][k]==true&&zahoyu[1][k]==true&&zahyou[2][k]==true)ans=1;
    }
    if(zahyou[0][0]==true&&zahyou[1][1]==true&&zahyou[3][3]==true)ans=1;
    if(zahyou[2][0]==true&&zahyou[1][1]==true&&zahyou[0][2]==true)ans=1;
    if(ans==1)cout<<"Yes"<<endl;
    else cout <<"No"<<endl;
    
}


Compiler output:
a.cc: In function 'int main()':
a.cc:6:24: error: expected ';' before ')' token
    6 |     for(int i=0;i<3,i++){
      |                        ^
      |                        ;
a.cc:30:32: error: 'zahoyu' was not declared in this scope; did you mean 'zahyou'?
   30 |         if(zahyou[0][k]==true&&zahoyu[1][k]==true&&zahyou[2][k]==true)ans=1;
      |                                ^~~~~~
      |                                zahyou
Language: C++

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

#define sz size

const int N = 1e5 + 123;

int n, a[N][N];
bool usd[N];

bool check(int v) {
	int cnt = 0;
	for(int i = 1; i <= 3; ++i) {
		if(usd[a[v][i]]) ++cnt;
	}
	if(cnt == 3) return 1;
	cnt = 0;
	for(int i = 1; i <= 3; ++i) {
		if(usd[a[i][v]]) ++cnt;
	}
	if(cnt == 3) return 1;
	return 0;
}
int main() {
	//freopen("input.txt", "r", stdin);
	for(int i = 1; i <= 3; ++i) {
		for(int j = 1; j <= 3; ++j) {
			cin >> a[i][j];
		}
	}
	cin >> n;
	for(int i = 1; i <= n; ++i) {
		int k;
		cin >> k;
		usd[k] = 1;
	}
	for(int i = 1; i <= 3; ++i) {
		if(check(i)) {
			cout << "Yes";
			return 0;
		}
	}
	int cnt = 0;
	for(int i = 1; i <= 3; ++i) {
		if(usd[a[i][i]]) ++cnt;
	}	
	if(cnt == 3) {
		cout << "Yes";
		return 0;
	}
	cnt = 0;
	for(int i = 1; i <= 3; ++i) {
		if(usd[a[3 - i + 1][i]]) ++cnt;
	}	
	if(cnt == 3) {
		cout << "Yes";
		return 0;
	}
	cout << "No";
}

Compiler output:
/tmp/ccFUZKqy.o: in function `check(int)':
a.cc:(.text+0x43): relocation truncated to fit: R_X86_64_PC32 against symbol `usd' defined in .bss section in /tmp/ccFUZKqy.o
a.cc:(.text+0xa6): relocation truncated to fit: R_X86_64_PC32 against symbol `usd' defined in .bss section in /tmp/ccFUZKqy.o
/tmp/ccFUZKqy.o: in function `main':
a.cc:(.text+0x17b): relocation truncated to fit: R_X86_64_PC32 against symbol `usd' defined in .bss section in /tmp/ccFUZKqy.o
a.cc:(.text+0x201): relocation truncated to fit: R_X86_64_PC32 against symbol `usd' defined in .bss section in /tmp/ccFUZKqy.o
a.cc:(.text+0x287): relocation truncated to fit: R_X86_64_PC32 against symbol `usd' defined in .bss section in /tmp/ccFUZKqy.o
collect2: error: ld returned 1 exit status
Language: C++

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

#define sz size

const int N = 1e5 + 123;

int n, a[N][N];
bool usd[N];

bool check(int v) {
	int cnt = 0;
	for(int i = 1; i <= 3; ++i) {
		if(usd[a[v][i]]) ++cnt;
	}
	if(cnt == 3) return 1;
	cnt = 0;
	for(int i = 1; i <= 3; ++i) {
		if(usd[a[i][v]]) ++cnt;
	}
	if(cnt == 3) return 1;
	return 0;
}
int main() {
	//freopen("input.txt", "r", stdin);
	for(int i = 1; i <= 3; ++i) {
		for(int j = 1; j <= 3; ++j) {
			cin >> a[i][j];
		}
	}
	cin >> n;
	for(int i = 1; i <= n; ++i) {
		int k;
		cin >> k;
		usd[k] = 1;
	}
	for(int i = 1; i <= 3; ++i) {
		if(check(i)) {
			cout << "Yes";
			return 0;
		}
	}
	int cnt = 0;
	for(int i = 1; i <= 3; ++i) {
		if(usd[a[i][i]]) ++cnt;
	}	
	if(cnt == 3) {
		cout << "Yes";
		return 0;
	}
	cnt = 0;
	for(int i = 1; i <= 3; ++i) {
		if(usd[a[3 - i + 1][i]]) ++cnt;
	}	
	if(cnt == 3) {
		cout << "Yes";
		return 0;
	}
	cout << "No";
}

Compiler output:
/tmp/ccBmYIvj.o: in function `check(int)':
a.cc:(.text+0x43): relocation truncated to fit: R_X86_64_PC32 against symbol `usd' defined in .bss section in /tmp/ccBmYIvj.o
a.cc:(.text+0xa6): relocation truncated to fit: R_X86_64_PC32 against symbol `usd' defined in .bss section in /tmp/ccBmYIvj.o
/tmp/ccBmYIvj.o: in function `main':
a.cc:(.text+0x17b): relocation truncated to fit: R_X86_64_PC32 against symbol `usd' defined in .bss section in /tmp/ccBmYIvj.o
a.cc:(.text+0x201): relocation truncated to fit: R_X86_64_PC32 against symbol `usd' defined in .bss section in /tmp/ccBmYIvj.o
a.cc:(.text+0x287): relocation truncated to fit: R_X86_64_PC32 against symbol `usd' defined in .bss section in /tmp/ccBmYIvj.o
collect2: error: ld returned 1 exit status
Language: C++

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

#define sz size

const int N = 1e5 + 123;

int n, a[N][N];
bool usd[N];

bool check(int v) {
	int cnt = 0;
	for(int i = 1; i <= 3; ++i) {
		if(usd[a[v][i]]) ++cnt;
	}
	if(cnt == 3) return 1;
	cnt = 0;
	for(int i = 1; i <= 3; ++i) {
		if(usd[a[i][v]]) ++cnt;
	}
	if(cnt == 3) return 1;
	return 0;
}
int main() {
	freopen("input.txt", "r", stdin);
	for(int i = 1; i <= 3; ++i) {
		for(int j = 1; j <= 3; ++j) {
			cin >> a[i][j];
		}
	}
	cin >> n;
	for(int i = 1; i <= n; ++i) {
		int k;
		cin >> k;
		usd[k] = 1;
	}
	for(int i = 1; i <= 3; ++i) {
		if(check(i)) {
			cout << "Yes";
			return 0;
		}
	}
	int cnt = 0;
	for(int i = 1; i <= 3; ++i) {
		if(usd[a[i][i]]) ++cnt;
	}	
	if(cnt == 3) {
		cout << "Yes";
		return 0;
	}
	cnt = 0;
	for(int i = 1; i <= 3; ++i) {
		if(usd[a[3 - i + 1][i]]) ++cnt;
	}	
	if(cnt == 3) {
		cout << "Yes";
		return 0;
	}
	cout << "No";
}

Compiler output:
/tmp/ccds0Lqg.o: in function `check(int)':
a.cc:(.text+0x43): relocation truncated to fit: R_X86_64_PC32 against symbol `usd' defined in .bss section in /tmp/ccds0Lqg.o
a.cc:(.text+0xa6): relocation truncated to fit: R_X86_64_PC32 against symbol `usd' defined in .bss section in /tmp/ccds0Lqg.o
/tmp/ccds0Lqg.o: in function `main':
a.cc:(.text+0x19e): relocation truncated to fit: R_X86_64_PC32 against symbol `usd' defined in .bss section in /tmp/ccds0Lqg.o
a.cc:(.text+0x224): relocation truncated to fit: R_X86_64_PC32 against symbol `usd' defined in .bss section in /tmp/ccds0Lqg.o
a.cc:(.text+0x2aa): relocation truncated to fit: R_X86_64_PC32 against symbol `usd' defined in .bss section in /tmp/ccds0Lqg.o
collect2: error: ld returned 1 exit status
Language: C++

#include<bits/stdc++.h>
#define eps 1e-8
#define pr pair<int,int>
using namespace std;
typedef long long ll;
const int mod = 1e9 + 7;
const int INF = 0x3f3f3f3f;
const int maxx = 4;
int a[maxx][maxx];
int b[101];
int c, d, e, f, g, h, k;
map<int, int> mp;
int main()
{
	int N, x;
	for(int i = 0; i < 3; i ++)
	{
		for(int j = 0; j < 3; j ++)
		{
			cin >> a[i][j];
			b[a[i][j]] = false;
			mp[a[i][j]] ++;
		}
	}
	cin >> N;
	for(int i = 0; i < N; i ++)
	{
		cin >> x;
		mp[x] ++;
		if(mp[x] == 2) b[x] = true;
		else b[x] = false;
	}
	for(int i = 0; i < 3; i ++)
	{
		for(int j = 0; j < 3; j ++)
		{
			if(i == 0 && b[a[i][j]])
				c ++;
			if(i == 1 && b[a[i][j]])
				d ++;
			if(i == 2 && b[a[i][j]])
				e ++;
			if(j == 0 && b[a[i][j]])
				f ++;
			if(j == 1 && b[a[i][j]])
				g ++;
			if(j == 2 && b[a[i][j]])
				h ++;
			if(j == i && b[a[i][j]])
				k ++;
			if(((i == 0 && j == 2) || (i == 1 && j == 1) || (i == 2 && j == 0)) && b[a[i][j]])
				m ++;
				
		}
	}
	if(c == 3 || d == 3 || e == 3 || f == 3 || g == 3 || h == 3 || k == 3 || m == 3) cout << "Yes" << '\n';
	else cout << "No" << '\n';
	return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:52:33: error: 'm' was not declared in this scope
   52 |                                 m ++;
      |                                 ^
a.cc:56:82: error: 'm' was not declared in this scope
   56 |         if(c == 3 || d == 3 || e == 3 || f == 3 || g == 3 || h == 3 || k == 3 || m == 3) cout << "Yes" << '\n';
      |                                                                                  ^
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 k = 0;k<3;k++)
            cin >> a[i][j];
    int n;
    cin >> n;
    for(int i = 0;i<n;i++)
    {
        int t;
        cin >> t;
        for(int i = 0;i<3;i++){
            for(int k = 0;k<3;k++)
            {
                if (a[i][j]==t)
                    a[i][j]=-1;
            }
        }
    }
    if(a[0][0] == -1 && a[0][1]==a[0][0] && a[0][2]==a[0][0])
    {
        cout << "Yes" << endl;
        return 0;
    }
    if(a[1][0] == -1 && a[1][1]==a[1][0] && a[1][2]==a[1][0])
    {
        cout << "Yes" << endl;
        return 0;
    }
    if(a[2][0] == -1 && a[2][1]==a[2][0] && a[2][2]==a[2][0])
    {
        cout << "Yes" << endl;
        return 0;
    }
    if(a[0][0] == -1 && a[0][0]==a[1][0] && a[0][0]==a[2][0])
    {
        cout << "Yes" << endl;
        return 0;
    }
    if(a[0][1] == -1 && a[0][1]==a[1][1] && a[0][0]==a[2][1])
    {
        cout << "Yes" << endl;
        return 0;
    }
    if(a[0][2] == -1 && a[0][2]==a[1][2] && a[0][2]==a[2][2])
    {
        cout << "Yes" << endl;
        return 0;
    }
    if(a[0][0] == -1 && a[0][0]==a[1][1] && a[0][0]==a[2][2])
    {
        cout << "Yes" << endl;
        return 0;
    }
    if(a[2][0] == -1 && a[2][0]==a[1][1] && a[2][0]==a[0][2])
    {
        cout << "Yes" << endl;
        return 0;
    }
    cout << "No" << endl;
    return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:8:25: error: 'j' was not declared in this scope
    8 |             cin >> a[i][j];
      |                         ^
a.cc:18:26: error: 'j' was not declared in this scope
   18 |                 if (a[i][j]==t)
      |                          ^
Language: Java

import java.util.*;

class Main{
	public static void main(String[] args){
		Scanner sc = new Scanner(System.in);
		int[][] arr = new int[3][3];
		for(int i = 0; i < 3; i++){
			for(int j = 0; j < 3; j++){
				arr[i][j] = sc.nextInt();
			}
		}
		int n = sc.nextInt();
		int[] b = new int[n];
		for(int i = 0; i < n; i++){
			b[i] = sc.nextInt();
		}
		
		for(int i = 0; i < n; i++){
			remove(arr, b[i]);
		}
		if(diagonal(arr) || horizontal(arr) || vertical(arr)){
			System.out.println("Yes");
		}else{
			System.out.println("No");
		}
	}
	
	public static int diagonal(int[][] arr){
		if(arr[0][0] == 0 && arr[1][1] == 0 && arr[2][2] == 0){
			return 1;
		}
		return 0;
	}
	
	public static int horizontal(int[][] arr){
		if((arr[0][0] == 0 && arr[0][1] == 0 && arr[0][2] == 0) || (arr[1][0] == 0 && arr[1][1] == 0 && arr[1][2] == 0) || (arr[2][0] == 0 && arr[2][1] == 0 && arr[2][2] == 0)){
			return 1;
		}else{
			return 0;
		}
	}
	
	public static int vertical(int[][] arr){
		if((arr[0][0] == 0 && arr[1][0] == 0 && arr[2][0] == 0) || (arr[0][1] == 0 && arr[1][1] == 0 && arr[2][1] == 0) || (arr[0][2] == 0 && arr[1][2] == 0 && arr[2][2] == 0)){
			return 1;
		}else{
			return 0;
		}
	}
	
	public static void remove(int[][] arr, int a){
		for(int i = 0; i < 3; i++){
			for(int j = 0; j < 3; j++){
				if(arr[i][j] == a){
					arr[i][j] = 0;
				}
			}
		}
	}
	
	}

Compiler output:
Main.java:21: error: bad operand types for binary operator '||'
		if(diagonal(arr) || horizontal(arr) || vertical(arr)){
		                 ^
  first type:  int
  second type: int
1 error
Language: Java

import java.util.*;

class Main{
	public static void main(String[] args){
		Scanner sc = new Scanner(System.in);
		int[][] arr = new int[3][3];
		for(int i = 0; i < 3; i++){
			for(int j = 0; j < 3; j++){
				arr[i][j] = sc.nextInt();
			}
		}
		int n = sc.nextInt();
		int[] b = new int[n];
		for(int i = 0; i < n; i++){
			b[i] = sc.nextInt();
		}
		
		for(int i = 0; i < n; i++){
			remove(arr, b[i]);
		}
		if(diagonal(arr) || horizontal(arr) || vertical(arr)){
			System.out.println("Yes");
		}else{
			System.out.println("No");
		}
	}
	
	public static int diagonal(int[][] arr){
		if(arr[0][0] == 0 && arr[1][1] == 0 && arr[2][2] == 0){
			return 1;
		}
		return 0;
	}
	
	public static int horizontal(int[][] arr){
		if((arr[0][0] == 0 && arr[0][1] == 0 && arr[0][2] == 0) || (arr[1][0] == 0 && arr[1][1] == 0 && arr[1][2] == 0) || (arr[2][0] == 0 && arr[2][1] == 0 && arr[2][2] == 0)){
			return 1;
		}else{
			return 0;
		}
	}
	
	public static int vertical(int[][] arr){
		if((arr[0][0] == 0 && arr[1][0] == 0 && arr[2][0] == 0) || (arr[0][1] == 0 && arr[1][1] == 0 && arr[2][1] == 0) || (arr[0][2] == 0 && arr[1][2] == 0 && arr[2][2] == 0)){
			return 1;
		}else{
			return 0;
		}
	}
	
	public static void(int[][] arr, int a){
		for(int i = 0; i < 3; i++){
			for(int j = 0; j < 3; j++){
				if(arr[i][j] == a){
					arr[i][j] = 0;
				}
			}
		}
	}
	
	}

Compiler output:
Main.java:51: error: <identifier> expected
	public static void(int[][] arr, int a){
	                  ^
1 error
Language: C++

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

int main(){
  bool bingo = false;
  vector<vector<bool>> field(3,vector<bool>(3,false));
  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];
    for (int j = 0; j < 3; j++){
      for (int k = 0; k < 3; k++){
        if (b[i] == A[j][k]){
          field[j][k] = true;
        }
      }
    }
  }
  
  //縦のビンゴ
  for (int i = 0; i < 3; i++){
    bool t = true;
    for (int j = 0; j < 3; j++){
      if(!field[j][i]) t = false;
    }
    if(t) bingo = true;
  }
  
  //横のビンゴ
  for (int i = 0; i < 3; i++){
    bool t = true;
    for (int j = 0; j < 3; j++){
      if (!field[i][j]) t = false;
    }
    if(t) bingo = true;
  }
  
  //斜めのビンゴ
  t = true;
  for (int i = 0; i < 3; i++){
    if (!field[i][i]) t = false;
  }
  if(t) bingo = true;
  
  t = true;
  for (int i = 0; i < 3; i++){
    if(!field[i][2-i]) t = false;
  }
  if(t) bingo = true;
  
  
  if (bingo) cout << "Yes" << endl;
  else cout << "No" << endl;
}
    
  
  

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

#include <bits/stdc++.h>

using namespace std;

int a[10][10];
int m[10][10];

int main() {
    ios::sync_with_stdio(0); cin.tie(0);

    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 b;
        cin >> b;
        for (int j = 0; j < 3; j++) {
            for (int k = 0; k < 3; j++) {
                if (a[j][k] == b) m[i][j] = 1;
            }
        }
    }

    for (int i = 0; i < 3; i++) {
        int ok = 1;
        for (int j = 0; j < 3; j++) {
            if (m[i][j] != 1) ok = 0;
        }
        if (ok) {
            cout << "Yes\n";
            return 0;
        }
    }
    for (int i = 0; i < 3; i++) {
        int ok = 1;
        for (int j = 0; j < 3; j++) {
            if (m[j][i] != 1) ok = 0;
        }
        if (ok) {
            cout << "Yes\n";
            return 0;
        }
    }
    int ok = 1;
    for (int i = 0; i < 3; i++) {
        if (m[i][i] != 1) ok = 0;
    }
    if (ok) {
        cout << "Yes\n";
        return 0;
    }
    int ok = 1;
    for (int i = 0; i < 3; i++) {
        if (m[i][2 - i] != 1) ok = 0;
    }
    if (ok) {
        cout << "Yes\n";
        return 0;
    }
    cout << "No\n";
}


Compiler output:
a.cc: In function 'int main()':
a.cc:56:9: error: redeclaration of 'int ok'
   56 |     int ok = 1;
      |         ^~
a.cc:48:9: note: 'int ok' previously declared here
   48 |     int ok = 1;
      |         ^~
Language: C++

#include <bits/stdc++.h>
#include <string>
#include <iostream>
#include <map>
#include <cmath>
#include <vector>

#define rep(i, n) for (int i = 0; i < (n); ++i)
#define REP(i,a,b)for(int i=(int)(a);(i)<(int)(b);i++)

typedef unsigned long long ull;
typedef long long ll;
using namespace std;

int main() {
    // vector<vector<int>> bingo(3, vector<int>(3, 1));
    // vector<vector<int>> appear(3, vector<int>(3, 1));
    int bingo[3][3];
    bool appear[3][3];
    rep(i, 3) {
        rep(j, 3) {
            cin >> bingo[i][j];
        }
    }
    int n; 
    cin >> n;

    if (n < 3)
    {
        /* code */
        cout << ans << endl;
        return 0;
    }
    

    int b[10];
    rep(i, n) {
        cin >> b[i];
    }

    rep(j, n) {
        rep(k, n) {
            appear[j][k] = false;
            rep(l, n) {
                if (b[l] == bingo[j][k])
                {
                    /* code */
                    appear[j][k] = true;
                }
            }
        }
    }
    string ans = "No";
    rep(i, 3) {
            if (appear[i][0] and appear[i][1] and appear[i][2])
            {
                ans = "Yes";
                cout << ans << endl;
                return 0;
            }
    }
    rep(j, 3) {
            if (appear[0][j] and appear[1][j] and appear[2][j])
            {
                ans = "Yes";
                cout << ans << endl;
                return 0;
            }
    }
    if (appear[0][0] and appear[1][1] and appear[2][2]) { 
        ans = "Yes";
        cout << ans << endl;
        return 0;
    }
    if (appear[2][0] and appear[1][1] and appear[0][2]) {
        ans = "Yes";
        cout << ans << endl;
        return 0;
    }
    cout << ans << endl;
    return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:31:17: error: 'ans' was not declared in this scope; did you mean 'abs'?
   31 |         cout << ans << endl;
      |                 ^~~
      |                 abs
Language: C++

include<bits/stdc++.h>
using namespace std;
int N,A[3][3],b[10];
bool appear[3][3];
int main() {
    for(int i= 0;i< 3;i++) {
        for(int j= 0;j< 3;j++) cin >> A[i][j];
    }
    cin >> N;
    for(int i= 0;i<N;i++) cin >> b[i];
    for(int i= 0;i<N;i++) {
        for(int j= 0;j<N;j++) {
        appear[i][j] =false;
            for(int k= 0;k<N;k++) {
                if(A[i][j] ==b[k]) appear[i][j] = true;
            }
        }
    }
    string ANS="No";
    for(int i= 0;i< 3;i++) {
        if(appear[i][0] and appear[i][1] and appear[i][2])ANS="Yes";
    }
    for(int i= 0;i< 3;i++) {
        if(appear[0][i] and appear[1][i] and appear[2][i])ANS="Yes";
    }
    if(appear[0][0] and appear[1][1] and appear[2][2])ANS="Yes";
    if(appear[0][2] and appear[1][1] and appear[2][0])ANS="Yes";
    cout << ANS << endl;
    return 0;
}

Compiler output:
a.cc:1:1: error: 'include' does not name a type
    1 | include<bits/stdc++.h>
      | ^~~~~~~
a.cc: In function 'int main()':
a.cc:7:32: error: 'cin' was not declared in this scope
    7 |         for(int j= 0;j< 3;j++) cin >> A[i][j];
      |                                ^~~
a.cc:9:5: error: 'cin' was not declared in this scope
    9 |     cin >> N;
      |     ^~~
a.cc:19:5: error: 'string' was not declared in this scope
   19 |     string ANS="No";
      |     ^~~~~~
a.cc:21:59: error: 'ANS' was not declared in this scope
   21 |         if(appear[i][0] and appear[i][1] and appear[i][2])ANS="Yes";
      |                                                           ^~~
a.cc:24:59: error: 'ANS' was not declared in this scope
   24 |         if(appear[0][i] and appear[1][i] and appear[2][i])ANS="Yes";
      |                                                           ^~~
a.cc:26:55: error: 'ANS' was not declared in this scope
   26 |     if(appear[0][0] and appear[1][1] and appear[2][2])ANS="Yes";
      |                                                       ^~~
a.cc:27:55: error: 'ANS' was not declared in this scope
   27 |     if(appear[0][2] and appear[1][1] and appear[2][0])ANS="Yes";
      |                                                       ^~~
a.cc:28:5: error: 'cout' was not declared in this scope
   28 |     cout << ANS << endl;
      |     ^~~~
a.cc:28:13: error: 'ANS' was not declared in this scope
   28 |     cout << ANS << endl;
      |             ^~~
a.cc:28:20: error: 'endl' was not declared in this scope
   28 |     cout << ANS << endl;
      |                    ^~~~
Language: C++

include<bits/stdc++.h>
using namespace std;
int N,A[3][3],b[10];
bool appear[3][3];
int main() {
    for(int i= 0;i< 3;i++) {
        for(int j= 0;j< 3;j++) cin>>A[i][j];
    }
    cin>>N;
    for(int i= 0;i<N;i++)cin>>b[i];
    for(int i= 0;i<N;i++) {
        for(int j= 0;j<N;j++) {
        appear[i][j] =false;
            for(int k= 0;k<N;k++) {
                if(A[i][j] ==b[k]) appear[i][j] = true;
            }
        }
    }
    string ANS="No";
    for(int i= 0;i< 3;i++) {
        if(appear[i][0] and appear[i][1] and appear[i][2])ANS="Yes";
    }
    for(int i= 0;i< 3;i++) {
        if(appear[0][i] and appear[1][i] and appear[2][i])ANS="Yes";
    }
    if(appear[0][0] and appear[1][1] and appear[2][2])ANS="Yes";
    if(appear[0][2] and appear[1][1] and appear[2][0])ANS="Yes";
    cout<<ANS<<endl;
    return 0;
}

Compiler output:
a.cc:1:1: error: 'include' does not name a type
    1 | include<bits/stdc++.h>
      | ^~~~~~~
a.cc: In function 'int main()':
a.cc:7:32: error: 'cin' was not declared in this scope
    7 |         for(int j= 0;j< 3;j++) cin>>A[i][j];
      |                                ^~~
a.cc:9:5: error: 'cin' was not declared in this scope
    9 |     cin>>N;
      |     ^~~
a.cc:19:5: error: 'string' was not declared in this scope
   19 |     string ANS="No";
      |     ^~~~~~
a.cc:21:59: error: 'ANS' was not declared in this scope
   21 |         if(appear[i][0] and appear[i][1] and appear[i][2])ANS="Yes";
      |                                                           ^~~
a.cc:24:59: error: 'ANS' was not declared in this scope
   24 |         if(appear[0][i] and appear[1][i] and appear[2][i])ANS="Yes";
      |                                                           ^~~
a.cc:26:55: error: 'ANS' was not declared in this scope
   26 |     if(appear[0][0] and appear[1][1] and appear[2][2])ANS="Yes";
      |                                                       ^~~
a.cc:27:55: error: 'ANS' was not declared in this scope
   27 |     if(appear[0][2] and appear[1][1] and appear[2][0])ANS="Yes";
      |                                                       ^~~
a.cc:28:5: error: 'cout' was not declared in this scope
   28 |     cout<<ANS<<endl;
      |     ^~~~
a.cc:28:11: error: 'ANS' was not declared in this scope
   28 |     cout<<ANS<<endl;
      |           ^~~
a.cc:28:16: error: 'endl' was not declared in this scope
   28 |     cout<<ANS<<endl;
      |                ^~~~
Language: C++

include<bits/stdc++.h>
using namespace std;
int N,A[3][3],b[10];
bool appear[3][3];
int main() {
    for(int i= 0;i< 3;i++) {
        for(int j= 0;j< 3;j++)
        cin>>A[i][j];
        }
        cin>>N;
        
        for(int i= 0;i<N;i++)cin>>b[i];
        for(int i= 0;i<N;i++) {
            for(int j= 0;j<N;j++) {
            appear[i][j] =false;
                for(int k= 0;k<N;k++) {
                    if(A[i][j] ==b[k]) appear[i][j] = true;
                }
            }
        }
        string ANS="No";
        for(int i= 0;i< 3;i++) {
            if(appear[i][0]and appear[i][1]and appear[i][2])ANS="Yes";
        }
        for(int i= 0;i< 3;i++) {
            if(appear[0][i]and appear[1][i]and appear[2][i])ANS="Yes";
        }
        if(appear[0][0]and appear[1][1]and appear[2][2])ANS="Yes";
        if(appear[0][2]and appear[1][1]and appear[2][0])ANS="Yes";
        cout<<ANS<<endl;
        return0;
}

Compiler output:
a.cc:1:1: error: 'include' does not name a type
    1 | include<bits/stdc++.h>
      | ^~~~~~~
a.cc: In function 'int main()':
a.cc:8:9: error: 'cin' was not declared in this scope
    8 |         cin>>A[i][j];
      |         ^~~
a.cc:10:9: error: 'cin' was not declared in this scope
   10 |         cin>>N;
      |         ^~~
a.cc:21:9: error: 'string' was not declared in this scope
   21 |         string ANS="No";
      |         ^~~~~~
a.cc:23:61: error: 'ANS' was not declared in this scope
   23 |             if(appear[i][0]and appear[i][1]and appear[i][2])ANS="Yes";
      |                                                             ^~~
a.cc:26:61: error: 'ANS' was not declared in this scope
   26 |             if(appear[0][i]and appear[1][i]and appear[2][i])ANS="Yes";
      |                                                             ^~~
a.cc:28:57: error: 'ANS' was not declared in this scope
   28 |         if(appear[0][0]and appear[1][1]and appear[2][2])ANS="Yes";
      |                                                         ^~~
a.cc:29:57: error: 'ANS' was not declared in this scope
   29 |         if(appear[0][2]and appear[1][1]and appear[2][0])ANS="Yes";
      |                                                         ^~~
a.cc:30:9: error: 'cout' was not declared in this scope
   30 |         cout<<ANS<<endl;
      |         ^~~~
a.cc:30:15: error: 'ANS' was not declared in this scope
   30 |         cout<<ANS<<endl;
      |               ^~~
a.cc:30:20: error: 'endl' was not declared in this scope
   30 |         cout<<ANS<<endl;
      |                    ^~~~
a.cc:31:9: error: 'return0' was not declared in this scope
   31 |         return0;
      |         ^~~~~~~
Language: C++

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

int main(){
  int A[3][3], N, b;
  
  cin >> A[0][0] A[0][1] A[0][2];
  cin >> A[1][0] A[1][1] A[1][2];
  cin >> A[2][0] A[2][1] A[2][2];
  cin >> N;
  
  int B[N];
  
  for(int i=0 ; i<N ; i++)
  {
    cin >> b;
    for(int i=0 ; i<3 ; i++)
    {
      for(int j=0 ; j<3 ; i++)
      {
        if(b==A[i][j])A[i][j]=0;
      }
    }
    cout << (A[1][1]&&((A[0][0]&&A[2][2])||(A[0][1]&&A[2][1])||(A[0][2]&&A[2][0]||(A[1][0]&&A[1][2])) || A[0][0]&&((A[0][1]&&A[0][2])||(A[1][0]&&A[2][0])) || A[2][2]&&((A[2][0]&&A[2][1])||(A[0][2]&&A[1][2]))) ? "No" : "Yes");
  }
}

Compiler output:
a.cc: In function 'int main()':
a.cc:7:17: error: expected ';' before 'A'
    7 |   cin >> A[0][0] A[0][1] A[0][2];
      |                 ^~
      |                 ;
a.cc:8:17: error: expected ';' before 'A'
    8 |   cin >> A[1][0] A[1][1] A[1][2];
      |                 ^~
      |                 ;
a.cc:9:17: error: expected ';' before 'A'
    9 |   cin >> A[2][0] A[2][1] A[2][2];
      |                 ^~
      |                 ;
Language: C++

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

int main() {
  vector<int> vec(3)(3), cnt(9);
  for (int i=0; i<3; i++) {
    for(int j=0; j<3; j++) {
      cin >> vec.at(i)(j);
      cnt.at(i+j) = 0;
    }
  }
  int N, b, c=0;
  cin >> N;
  for(int i=0; i<N; i++) {
     cin >> b;
     for(int j=0; j<3; j++) {
       for(int k=0; k<3; k++) {
         if(vec.at(j)(k) == b) {
           cnt.at(j+k) = 1;
         }
       }
     }
  }
  if(cnt.at(0)*cnt.at(1)*cnt.at(2)==1) {
    c=1; 
  }
  if(cnt.at(3)*cnt.at(4)*cnt.at(5)==1) {
    c=1; 
  }
  if(cnt.at(6)*cnt.at(7)*cnt.at(8)==1) {
    c=1; 
  }
  if(cnt.at(1)*cnt.at(4)*cnt.at(7)==1) {
    c=1; 
  }
  if(cnt.at(2)*cnt.at(5)*cnt.at(8)==1) {
    c=1; 
  }
  if(cnt.at(0)*cnt.at(4)*cnt.at(8)==1) {
    c=1; 
  }
  if(cnt.at(2)*cnt.at(4)*cnt.at(6)==1) {
    c=1; 
  }
  if(cnt.at(0)*cnt.at(3)*cnt.at(6)==1) {
    c=1; 
  }
  if(c==1) {
    cout << "Yes" << endl;
  } else {
    cout << "No" << endl; 
  }
}

Compiler output:
a.cc: In function 'int main()':
a.cc:5:21: error: expected ',' or ';' before '(' token
    5 |   vector<int> vec(3)(3), cnt(9);
      |                     ^
a.cc:8:23: error: expression cannot be used as a function
    8 |       cin >> vec.at(i)(j);
      |              ~~~~~~~~~^~~
a.cc:9:7: error: 'cnt' was not declared in this scope; did you mean 'int'?
    9 |       cnt.at(i+j) = 0;
      |       ^~~
      |       int
a.cc:18:22: error: expression cannot be used as a function
   18 |          if(vec.at(j)(k) == b) {
      |             ~~~~~~~~~^~~
a.cc:19:12: error: 'cnt' was not declared in this scope; did you mean 'int'?
   19 |            cnt.at(j+k) = 1;
      |            ^~~
      |            int
a.cc:24:6: error: 'cnt' was not declared in this scope; did you mean 'int'?
   24 |   if(cnt.at(0)*cnt.at(1)*cnt.at(2)==1) {
      |      ^~~
      |      int
a.cc:27:6: error: 'cnt' was not declared in this scope; did you mean 'int'?
   27 |   if(cnt.at(3)*cnt.at(4)*cnt.at(5)==1) {
      |      ^~~
      |      int
a.cc:30:6: error: 'cnt' was not declared in this scope; did you mean 'int'?
   30 |   if(cnt.at(6)*cnt.at(7)*cnt.at(8)==1) {
      |      ^~~
      |      int
a.cc:33:6: error: 'cnt' was not declared in this scope; did you mean 'int'?
   33 |   if(cnt.at(1)*cnt.at(4)*cnt.at(7)==1) {
      |      ^~~
      |      int
a.cc:36:6: error: 'cnt' was not declared in this scope; did you mean 'int'?
   36 |   if(cnt.at(2)*cnt.at(5)*cnt.at(8)==1) {
      |      ^~~
      |      int
a.cc:39:6: error: 'cnt' was not declared in this scope; did you mean 'int'?
   39 |   if(cnt.at(0)*cnt.at(4)*cnt.at(8)==1) {
      |      ^~~
      |      int
a.cc:42:6: error: 'cnt' was not declared in this scope; did you mean 'int'?
   42 |   if(cnt.at(2)*cnt.at(4)*cnt.at(6)==1) {
      |      ^~~
      |      int
a.cc:45:6: error: 'cnt' was not declared in this scope; did you mean 'int'?
   45 |   if(cnt.at(0)*cnt.at(3)*cnt.at(6)==1) {
      |      ^~~
      |      int
Language: C++

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

int main() {

  // int型の2次元配列(3×4要素の)の宣言
  vector<vector<int>> data(3, vector<int>(3));
  int n;
  string ans;
  vector<int> v(10); 

  // 入力 (2重ループを用いる)
  for (int i = 0; i < 3; i++) {
    for (int j = 0; j < 3; j++) {
      cin >> data.at(i).at(j);
    }
  }
  cin >>n;
  for(int k = 0; k < n; k++){
    cin >> v.at(k);
  }
  int m = 0;
  while(m <= n){
    for (int i = 0; i < 3; i++) {
      for (int j = 0; j < 3; j++) {
      if(v.at(m)==data.at(i).at(j)){
        data.at(i).at(j) = 0;
        m++;
    }}}
  if(data.at(0).at(0)+data.at(0).at(1)+data.at(0).at(2)==0
     ||data.at(1).at(0)+data.at(1).at(1)+data.at(1).at(2)==0
     ||data.at(2).at(0)+data.at(2).at(1)+data.at(2).at(2)==0
     ||data.at(0).at(0)+data.at(1).at(0)+data.at(2).at(0)==0
     ||data.at(0).at(1)+data.at(1).at(1)+data.at(2).at(1)==0
     ||data.at(0).at(2)+data.at(1).at(2)+data.at(2).at(2)==0
     ||data.at(0).at(0)+data.at(1).at(1)+data.at(2).at(2)==0
     ||data.at(0).at(2)+data.at(1).at(1)+data.at(2).at(0)==0)
  {ans = "Yes";}
  else{ans = "No";}
  cout << ans << endl;
}


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

#include <iostream>
#include <algorithm>
#include <string>
#include <cstring>
#include <vector>
using namespace std;


int main(){
	/*****input*****/
	int a[3][3];
	int n;
	for(int i = 0; i < 3; i++){
		for(int j =0; j<3; j++ ){
			cin >> a[i][j];
		}
	}
	bool check[3][3] = false;
	cin >> n;
	int b[100];
	for(int i = 0; i < n; i++){
		cin >> b[i];
	}

	/*****calc*****/
	if(n < 3){
		cout<< "No" <<endl;
		return 0;
	}
	for(int i = 0; i < n; i++){
		for(int j = 0; j < n; j++){
			for(int k = 0; k < n; k++){
				if(a[i][j] == b[k]){
					check[i][j] = true;
					continue;
				}
			}
		}
	}
	/*横列*/
	for(int i = 0; i < 3; i++){
		if(check[i][0]&&check[i][1]&&check[i][2]){
			cout<< "Yes" <<endl;
			return 0;
		}
	}
	/*縦列*/
	for(int i = 0; i < 3; i++){
		if(check[0][i]&&check[1][i]&&check[2][i]){
			cout<< "Yes" <<endl;
			return 0;
		}
	}

	/*斜め列*/
	if(check[0][0]&&check[1][1]&&check[2][2]){
		cout<< "Yes" <<endl;
		return 0;
	}
	if(check[0][2]&&check[1][1]&&check[2][0]){
		cout<< "Yes" <<endl;
		return 0;
	}

	cout<< "No" <<endl;

	return 0;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:18:28: error: array must be initialized with a brace-enclosed initializer
   18 |         bool check[3][3] = false;
      |                            ^~~~~
Language: C++

#include <bits/stdc++.h>
#include <string>
#include <iostream>
#include <map>
#include <cmath>
#include <vector>

#define rep(i, n) for (int i = 0; i < (n); ++i)
#define REP(i,a,b)for(int i=(int)(a);(i)<(int)(b);i++)

typedef unsigned long long ull;
typedef long long ll;
using namespace std;

int main() {
    vector<vector<int>> bingo(3, vector<int>(3, 1));
    vector<vector<int>> appear(3, vector<int>(3, 1));
    rep(i, 3) {
        rep(j, 3) {
            cin >> bingo.at(i).at(j);
        }
    }
    int n; string ans = "No";
    cin >> n; 
    rep(i, n) {
        int num;
        cin >> num;
        rep(j, 3) {
            rep(k, 3) {
                if (num == bingo[j][k])
                {
                    /* code */
                    appear[j][k] = 0;
                }
            }
        }
    }

    rep(i, 3) {
            if (appear[i][0] == appear[i][1] == appear[i][2] == 0)            {
            {
                ans = "Yes";
            }
    }
    rep(j, 3) {
            if (appear[0][j] == appear[1][j] == appear[2][j] == 0)
            {
                ans = "Yes";
            }
    }
    if (appear[0][0] == appear[1][1] == appear[2][2] == 0) ans = "Yes";
    if (appear[2][0] == appear[1][1] == appear[0][2] == 0) ans = "No";
    cout << ans << endl;
}

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

# include <bits/stdc++.h>

using namespace std;

long long a,b,c,d,e;

void solve(){
	int ar[3][3];
  	for(int i=0;i<3;i++){
    	for(int j=0;j<3;j++){
        	cin >> ar[i][j];
        }
    }
  	cin >> a;
  	for(int i=0;i<a;i++){
    	cin >> b;
      	for(int j=0;j<3;j++){
        	for(int k=0;k<3;k++){
            	if(ar[i][j] == b ){
                  cout<< "YES\n";
    			 break;
            }
        }
    }
}

int main(){
	solve();
}

Compiler output:
a.cc: In function 'void solve()':
a.cc:27:9: warning: empty parentheses were disambiguated as a function declaration [-Wvexing-parse]
   27 | int main(){
      |         ^~
a.cc:27:9: note: remove parentheses to default-initialize a variable
   27 | int main(){
      |         ^~
      |         --
a.cc:27:9: note: or replace parentheses with braces to value-initialize a variable
a.cc:27:11: error: a function-definition is not allowed here before '{' token
   27 | int main(){
      |           ^
a.cc:29:2: error: expected '}' at end of input
   29 | }
      |  ^
a.cc:7:13: note: to match this '{'
    7 | void solve(){
      |             ^
Language: C

#include <stdio.h>
 
int main(){
  int array[3][3];
  int i, j;
  for (i = 0; i < 3; i++){
    for (j = 0; j < 3; j++){
      scanf("%d", &array[i][j]);
    }
  }
  int n, num, k;
  scanf("%d", &n);
  for (k = 0; k < n; k++){
  	scanf("%d", &num);
    for (i = 0; i < 3; i++){
      for ( j = 0; j < 3; j++){
        if (num == array[i][j]){
          array[i][j] = 0;
        }
      }
    }
  }
  int judge = 0;
  for (i = 0; i < 3; i++){
  	if ((array[i][0]==0)&&(array[i][1]==0)&&(array[i][2])){
      judge = 1;
      break;
    }
  }
  if (judge == 0){
    for (i = 0; i < 3; i++){
      if ((array[0][i]==0)&&(array[1][i]==0)&&(array[2][i]==0)){
        judge = 1;
        break;
      }
    }
  }
  
  if (judge == 0){
    if((array[0][0]==0)&&(array[1][1]==0)&&(array[2][2]==0)){
      judge = 1;
      break;
  }
    
  if (judge == 0){
    if((array[0][2]==0)&&(array[1][1]==0)&&(array[2][0]==0)){
      judge = 1;
      break;
    }
  }
  if (judge==1){
    printf("Yes");
  }else{
  printf("No");
  }
}

Compiler output:
main.c: In function 'main':
main.c:42:7: error: break statement not within loop or switch
   42 |       break;
      |       ^~~~~
main.c:48:7: error: break statement not within loop or switch
   48 |       break;
      |       ^~~~~
main.c:56:1: error: expected declaration or statement at end of input
   56 | }
      | ^
Language: C

#include <stdio.h>
 
int main(){
  int array[3][3];
  int i, j;
  for (i = 0; i < 3; i++){
    for (j = 0; j < 3; j++){
      scanf("%d", array[i][j]);
    }
  }
  int n, num, k;
  scanf("%d", &n);
  for (k = 0; k < n; k++){
  	scanf("%d", &num);
    for (i = 0; i < 3; i++){
      for ( j = 0; j < 3; j++){
        if (num == array[i][j]){
          array[i][j] = 0;
        }
      }
    }
  }
  int judge = 0;
  for (i = 0; i < 3; i++){
  	if ((array[i][0]==0)&&(array[i][1]==0)&&(array[i][2])){
      judge = 1;
      break;
    }
  }
  if (judge == 0){
    for (i = 0; i < 3; i++){
      if ((array[0][i]==0)&&(array[1][i]==0)&&(array[2][i]==0)){
        judge = 1;
        break;
      }
    }
  }
  
  if (judge == 0){
    if((array[0][0]==0)&&(array[1][1]==0)&&(array[2][2]==0)){
      judge = 1;
      break;
  }
    
  if (judge == 0){
    if((array[0][2]==0)&&(array[1][1]==0)&&(array[2][0]==0)){
      judge = 1;
      break;
    }
  }
  if (judge==1){
    printf("Yes");
  }else{
  printf("No");
  }
}

Compiler output:
main.c: In function 'main':
main.c:42:7: error: break statement not within loop or switch
   42 |       break;
      |       ^~~~~
main.c:48:7: error: break statement not within loop or switch
   48 |       break;
      |       ^~~~~
main.c:56:1: error: expected declaration or statement at end of input
   56 | }
      | ^
Language: C

#include <stdio.h>

int main(){
  int array[3][3];
  int i, j;
  for (i = 0; i < 3; i++){
    for (j = 0; j < 3; j++){
      scanf("%d", array[i][j]);
    }
  }
  int n, num, k;
  scanf("%d", &n);
  for (k = 0; k < n; k++){
  	scanf("%d", num);
    for (i = 0; i < 3; i++){
      for ( j = 0; j < 3; j++){
        if (num == array[i][j]){
          array[i][j] = 0;
        }
      }
    }
  }
  int judge = 0;
  for (i = 0; i < 3; i++){
  	if ((array[i][0]==0)&&(array[i][1]==0)&&(array[i][2])){
      judge = 1;
      break;
    }
  }
  if (judge == 0){
    for (i = 0; i < 3; i++){
      if ((array[0][i]==0)&&(array[1][i]==0)&&(array[2][i]==0)){
        judge = 1;
        break;
      }
    }
  }
  
  if (judge == 0){
    if((array[0][0]==0)&&(array[1][1]==0)&&(array[2][2]==0)){
      judge = 1;
      break;
  }
    
  if (judge == 0){
    if((array[0][2]==0)&&(array[1][1]==0)&&(array[2][0]==0)){
      judge = 1;
      break;
    }
  }
  if (judge==1){
    printf("Yes");
  }else{
  printf("No");
  }
}

Compiler output:
main.c: In function 'main':
main.c:42:7: error: break statement not within loop or switch
   42 |       break;
      |       ^~~~~
main.c:48:7: error: break statement not within loop or switch
   48 |       break;
      |       ^~~~~
main.c:56:1: error: expected declaration or statement at end of input
   56 | }
      | ^
Language: C++

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


Compiler output:
a.cc: In function 'int main()':
a.cc:64:12: error: expected '}' at end of input
   64 |   return 0;
      |            ^
a.cc:5:1: note: to match this '{'
    5 | {
      | ^