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

#include<stdio.h>

int main()
{
	int a[3][3],n,b[10],i,j;

	for(i=0;i<3;i++)
		for(j=0;j<3;j++)
			scanf("%d",&a[i][j]);
	scanf("%d",&n);
	for(i=0;i<n;i++)
		scanf("%d",&b[i]);
	for(i=0;i<n;i++)
		for(i=0;i<n;i++)
			for(j=0;j<n;j++)
				if(a[i][j]==b[i])
					a[i][j]+=100;
	for(i=0;i<3;i++)
		if((a[i][0]>100)&&(a[i][1]>100)&&(a[i][2]>100)){
			printf("Yes\n");
			return 0;
		}
	for(j=0;j<3;j++)
		if((a[0][j]>100)&&(a[1][j]>100)&&(a[2][j]>100)){
			printf("Yes\n");
			return 0;
		}
	if((a[0][0]>100)&&(a[1][1]>100)&&(a[2][2]>100)){
		printf("Yes\n");
		return 0;
	}	
	else if((a[0][2]>100)&&(a[1][1]>100)&&(a[2][0]>100)){
		printf("Yes\n");
		return 0;
	}
	else
		printf("No\n")
	return 0;
}

Compiler output:
main.c: In function 'main':
main.c:37:31: error: expected ';' before 'return'
   37 |                 printf("No\n")
      |                               ^
      |                               ;
   38 |         return 0;
      |         ~~~~~~
Language: C++

#include<stdio.h>

int main()
{
	int a[3][3],n,b[10],i,j;

	for(i=0;i<3;i++)
		for(j=0;j<3;j++)
			scanf("%d",&a[i][j]);
	scanf("%d",&n);
	for(i=0;i<n;i++)
		scanf("%d",&b[i]);
	for(i=0;i<n;i++)
		for(i=0;i<n;i++)
			for(j=0;j<n;j++)
				if(a[i][j]==b[i])
					a[i][j]+=100;
	for(i=0;i<3;i++)
		if((a[i][0]>100)&&(a[i][1]>100)&&(a[i][2]>100)){
			printf("Yes\n");
			return 0;
		}
	for(j=0;j<3;j++)
		if((a[0][j]>100)&&(a[1][j]>100)&&(a[2][j]>100)){
			printf("Yes\n");
			return 0;
		}
	if((a[0][0]>100)&&(a[1][1]>100)&&(a[2][2]>100)){
		printf("Yes\n");
		return 0;
	}	
	else if((a[0][2]>100)&&(a[1][1]>100)&&(a[2][0]>100)){
		printf("Yes\n");
		return 0;
	}
	else
		printf("No\n")
	return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:37:31: error: expected ';' before 'return'
   37 |                 printf("No\n")
      |                               ^
      |                               ;
   38 |         return 0;
      |         ~~~~~~
Language: C++

#include <iostream>
using namespace std;
int main(){
  int A[2][2];
  int B[2][2] = {};
  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], c;
  for(int k=0;k<N;++k) {
    cin >> b[k];
    for(int ii=0;ii<3;++ii) {
      for(int jj=0;jj<3;++jj) {
        if(A[ii][jj]==b[k]) B[ii][jj] = 1;
      }
    }
  }
  bool flag = false;
  for(int kk=0;kk<3;++kk) {
    if(B[0][kk]==1%%B[1][kk]==1%%B[2][kk]==1) flag = true;
    if(B[kk][0]==1%%B[kk][1]==1%%B[kk][2]==1) flag = true;
  }
  if(B[0][0]==1%%B[1][1]==1%%B[2][2]==1) flag = true;
  if(B[0][2]==1%%B[1][1]==1%%B[2][0]==1) flag = true;
  if(flag) cout << "Yes";
  if(!flag) cout << "No";
}

Compiler output:
a.cc: In function 'int main()':
a.cc:24:20: error: expected primary-expression before '%' token
   24 |     if(B[0][kk]==1%%B[1][kk]==1%%B[2][kk]==1) flag = true;
      |                    ^
a.cc:24:33: error: expected primary-expression before '%' token
   24 |     if(B[0][kk]==1%%B[1][kk]==1%%B[2][kk]==1) flag = true;
      |                                 ^
a.cc:25:20: error: expected primary-expression before '%' token
   25 |     if(B[kk][0]==1%%B[kk][1]==1%%B[kk][2]==1) flag = true;
      |                    ^
a.cc:25:33: error: expected primary-expression before '%' token
   25 |     if(B[kk][0]==1%%B[kk][1]==1%%B[kk][2]==1) flag = true;
      |                                 ^
a.cc:27:17: error: expected primary-expression before '%' token
   27 |   if(B[0][0]==1%%B[1][1]==1%%B[2][2]==1) flag = true;
      |                 ^
a.cc:27:29: error: expected primary-expression before '%' token
   27 |   if(B[0][0]==1%%B[1][1]==1%%B[2][2]==1) flag = true;
      |                             ^
a.cc:28:17: error: expected primary-expression before '%' token
   28 |   if(B[0][2]==1%%B[1][1]==1%%B[2][0]==1) flag = true;
      |                 ^
a.cc:28:29: error: expected primary-expression before '%' token
   28 |   if(B[0][2]==1%%B[1][1]==1%%B[2][0]==1) flag = true;
      |                             ^
Language: C++

#include<iostream>
#include<algorithm>
#include<cmath>
using namespace std;
typedef long long ll;
int main()
{
    int a[50][50],b[50],c[50][50]={0},d[50]={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++)
    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(b[i]==a[j][k])
                {
                    c[j][k]=1;
                }
            }
        }
    }
    int sum1=0,sum2=0,sum3=0,sum4=0;
    for(int i=0;i<3;i++)
    {
        sum1=0;
        for(int j=0;j<3;j++)
        {
            if(c[i][j]==1)
            {
                sum1++;
            }
            if(sum1==3)
            break;
        }
        if(sum1==3)
        break;
    }
    for(int i=0;i<3;i++)
    {
        sun2=0;
        for(int j=0;j<3;j++)
        {
            if(c[j][i]==1)
            {
                sum2++;
            }
            if(sum2==3)
            break;
        }
        if(sum2==3)
        break;
    }
    for(int i=0;i<3;i++)
    {
        if(c[i][i]==1)
        {
            sum3++;
        }
    }
    for(int i=0;i<3;i++)
    {
        if(c[i][2-i]==1)
        {
            sum4++;
        }
    }
    if(sum1==3||sum2==3||sum3==3||sum4==3)
    {
        cout<<"Yes";
    }
    else 
    {
        cout<<"No";
    }
    return 0;
}

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

#include<bits/stdc++.h>
using namespace std;
int main(){
  int s[3][3];
  int N;
  int i,j,k;
  for(i=0;i<3;i++){
    for(j=0;j<3;j++){
      scanf("%d",&s[i][j]);
    }
  }
  cin >> N;
  int t[N];
  for(i=0;i<N;i++){
    scanf("%d\n",&t[i]);
  }
  for(i=0;i<3;i++){
    for(j=0;j<3;j++){
      for(k=0;k<N;k++){
     if(s[i][j]==t[k]){
       s[i][j]==0;
     }
      }
    }
  }
  int cout=0;
  for(i=0;i<3;i++){
    if(s[1][i]==s[2][i] && s[0][i]==s[1][i]){
      printf("Yes\n");
      cout++;
      break;
    }
    if(s[i][1]==s[i][2] && s[i][0]==s[i][1]){
      printf("Yes\n");
      cout++;
      break;
    }
    if(s[1][3]==s[2][2] && s[3][1]==[2][2]){
      printf("Yes\n");
      cout++;
      break;
    }
    if(s[1][1]==s[2][2] && s[3][3]==s[1][1]){
      printf("Yes\n");
      cout++;
      break;
    }    
  }
  if(cout==0){
    printf("No\n");
  }
}

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

#include<bits/stdc++.h>
using namespace std;
int main(){
  int s[3][3];
  int N;
  for(i=0;i<3;i++){
    for(j=0;j<3;j++){
      scanf("%d",&s[i][j]);
    }
  }
  cin >> N;
  int t[N],i,j,k;
  for(i=0;i<N;i++){
    scanf("%d\n",&t[i]);
  }
  for(i=0;i<3;i++){
    for(j=0;j<3;j++){
      for(k=0;k<N;k++){
     if(s[i][j]==t[k]){
       s[i][j]==0;
     }
      }
    }
  }
  int cout=0;
  for(i=0;i<3;i++){
    if(s[1][i]==s[2][i] && s[0][i]==s[1][i]){
      printf("Yes\n");
      cout++;
      break;
    }
    if(s[i][1]==s[i][2] && s[i][0]==s[i][1]){
      printf("Yes\n");
      cout++;
      break;
    }
    if(s[1][3]==s[2][2] && s[3][1]==[2][2]){
      printf("Yes\n");
      cout++;
      break;
    }
    if(s[1][1]==s[2][2] && s[3][3]==s[1][1]){
      printf("Yes\n");
      cout++;
      break;
    }    
  }
  if(cout==1){
    printf("No\n");
  }
}
  
    
      
  
  


Compiler output:
a.cc: In function 'int main()':
a.cc:6:7: error: 'i' was not declared in this scope
    6 |   for(i=0;i<3;i++){
      |       ^
a.cc:7:9: error: 'j' was not declared in this scope
    7 |     for(j=0;j<3;j++){
      |         ^
a.cc:37:38: error: expected identifier before numeric constant
   37 |     if(s[1][3]==s[2][2] && s[3][1]==[2][2]){
      |                                      ^
a.cc: In lambda function:
a.cc:37:40: error: expected '{' before '[' token
   37 |     if(s[1][3]==s[2][2] && s[3][1]==[2][2]){
      |                                        ^
a.cc: In function 'int main()':
a.cc:37:40: error: no match for 'operator[]' (operand types are 'main()::<lambda()>' and 'int')
Language: C++

#include<bits/stdc++.h>
using namespace std;
int main(){
  int s[3][3];
  int N;
  for(i=0;i<3;i++){
    for(j=0;j<3;j++){
      scanf("%d",&s[i][j]);
    }
  }
  cin >> N;
  int t[N],i,j,k;
  for(i=0;i<N;i++){
    scanf("%d\n",&t[i]);
  }
  for(i=0;i<3;i++){
    for(j=0;j<3;j++){
      for(k=0;k<N;k++){
     if(s[i][j]==t[k]){
       s[i][j]==0;
     }
      }
    }
  }
  int cout=0;
  for(i=0;i<3;i++){
    if(s[1][i]==s[2][i] && s[0][i]==s[1][i]){
      cout << "Yes" << endl;
      cout++;
      break;
    }
    if(s[i][1]==s[i][2] && s[i][0]==s[i][1]){
      cout << "Yes" << endl;
      cout++;
      break;
    }
    if(s[1][3]==s[2][2] && s[3][1]==[2][2]){
      cout << "Yes" << endl;
      cout++;
      break;
    }
    if(s[1][1]==s[2][2] && s[3][3]==s[1][1]){
      cout << "Yes" << endl;
      cout++;
      break;
    }    
  }
  if(cout==1){
    cout << "No" << endl;
  }
}
  
    
      
  
  


Compiler output:
a.cc: In function 'int main()':
a.cc:6:7: error: 'i' was not declared in this scope
    6 |   for(i=0;i<3;i++){
      |       ^
a.cc:7:9: error: 'j' was not declared in this scope
    7 |     for(j=0;j<3;j++){
      |         ^
a.cc:28:12: error: invalid operands of types 'int' and 'const char [4]' to binary 'operator<<'
   28 |       cout << "Yes" << endl;
      |       ~~~~ ^~ ~~~~~
      |       |       |
      |       int     const char [4]
a.cc:33:12: error: invalid operands of types 'int' and 'const char [4]' to binary 'operator<<'
   33 |       cout << "Yes" << endl;
      |       ~~~~ ^~ ~~~~~
      |       |       |
      |       int     const char [4]
a.cc:37:38: error: expected identifier before numeric constant
   37 |     if(s[1][3]==s[2][2] && s[3][1]==[2][2]){
      |                                      ^
a.cc: In lambda function:
a.cc:37:40: error: expected '{' before '[' token
   37 |     if(s[1][3]==s[2][2] && s[3][1]==[2][2]){
      |                                        ^
a.cc: In function 'int main()':
a.cc:37:40: error: no match for 'operator[]' (operand types are 'main()::<lambda()>' and 'int')
a.cc:38:12: error: invalid operands of types 'int' and 'const char [4]' to binary 'operator<<'
   38 |       cout << "Yes" << endl;
      |       ~~~~ ^~ ~~~~~
      |       |       |
      |       int     const char [4]
a.cc:43:12: error: invalid operands of types 'int' and 'const char [4]' to binary 'operator<<'
   43 |       cout << "Yes" << endl;
      |       ~~~~ ^~ ~~~~~
      |       |       |
      |       int     const char [4]
a.cc:49:10: error: invalid operands of types 'int' and 'const char [3]' to binary 'operator<<'
   49 |     cout << "No" << endl;
      |     ~~~~ ^~ ~~~~
      |     |       |
      |     int     const char [3]
Language: C++

#include<bits/stdc++.h>
using namespace std;
int main(){
  int s[3][3];
  int N;
  scanf("%s\n",s);
  cin >> N;
  int t[N],i,j,k;
  for(i=0;i<N;i++){
    scanf("%d\n",&t[i]);
  }
  for(i=0;i<3;i++){
    for(j=0;j<3;j++){
      for(k=0;k<N;k++){
     if(s[i][j]==t[k]){
       s[i][j]==0;
     }
      }
    }
  }
  int cout=0;
  for(i=0;i<3;i++){
    if(s[1][i]==s[2][i] && s[0][i]==s[1][i]){
      cout << "Yes" << endl;
      cout++;
      break;
    }
    if(s[i][1]==s[i][2] && s[i][0]==s[i][1]){
      cout << "Yes" << endl;
      cout++;
      break;
    }
    if(s[1][3]==s[2][2] && s[3][1]==[2][2]){
      cout << "Yes" << endl;
      cout++;
      break;
    }
    if(s[1][1]==s[2][2] && s[3][3]==s[1][1]){
      cout << "Yes" << endl;
      cout++;
      break;
    }    
  }
  if(cout==1){
    cout << "No" << endl;
  }
}
  
    
      
  
  


Compiler output:
a.cc: In function 'int main()':
a.cc:24:12: error: invalid operands of types 'int' and 'const char [4]' to binary 'operator<<'
   24 |       cout << "Yes" << endl;
      |       ~~~~ ^~ ~~~~~
      |       |       |
      |       int     const char [4]
a.cc:29:12: error: invalid operands of types 'int' and 'const char [4]' to binary 'operator<<'
   29 |       cout << "Yes" << endl;
      |       ~~~~ ^~ ~~~~~
      |       |       |
      |       int     const char [4]
a.cc:33:38: error: expected identifier before numeric constant
   33 |     if(s[1][3]==s[2][2] && s[3][1]==[2][2]){
      |                                      ^
a.cc: In lambda function:
a.cc:33:40: error: expected '{' before '[' token
   33 |     if(s[1][3]==s[2][2] && s[3][1]==[2][2]){
      |                                        ^
a.cc: In function 'int main()':
a.cc:33:40: error: no match for 'operator[]' (operand types are 'main()::<lambda()>' and 'int')
a.cc:34:12: error: invalid operands of types 'int' and 'const char [4]' to binary 'operator<<'
   34 |       cout << "Yes" << endl;
      |       ~~~~ ^~ ~~~~~
      |       |       |
      |       int     const char [4]
a.cc:39:12: error: invalid operands of types 'int' and 'const char [4]' to binary 'operator<<'
   39 |       cout << "Yes" << endl;
      |       ~~~~ ^~ ~~~~~
      |       |       |
      |       int     const char [4]
a.cc:45:10: error: invalid operands of types 'int' and 'const char [3]' to binary 'operator<<'
   45 |     cout << "No" << endl;
      |     ~~~~ ^~ ~~~~
      |     |       |
      |     int     const char [3]
Language: C++

#include<bits/stdc++.h>
using namespace std;
int main(){
  int s[3][3];
  int N;
  scanf("%s\n",s);
  cin >> N;
  int t[N],i,j,k;
  for(i=0;i<N;i++){
    scanf("%d\n",&t[i]);
  }
  for(i=0;i<3;i++){
    for(j=0;j<3;j++){
      for(k=0;k<N;k++){
     if(s[i][j]==t[k]){
       s[i][j]==0;
     }
      }
    }
  }
  int cout=0;
  for(i=0;i<3;i++){
    if(s[1][i]==s[2][i] && s[0][i]==s[1][i]){
      cout << "Yes" << endl;
      cout++;
      break;
    }
    if(s[i][1]==s[i][2] && s[i][0]==s[i][1]){
      cout << "Yes" << endl;
      cout++;
      break;
    }
    if(s[1][3]==s[2][2] && s[3][1]){
      cout << "Yes" << endl;
      cout++;
      break;
    }
    if(s[1][1]==s[2][2] && s[3][3]){
      cout << "Yes" << endl;
      cout++;
      break;
    }    
  }
  if(cout==1){
    cout << "No" << endl;
  }
}
  
    
      
  
  

Compiler output:
a.cc: In function 'int main()':
a.cc:24:12: error: invalid operands of types 'int' and 'const char [4]' to binary 'operator<<'
   24 |       cout << "Yes" << endl;
      |       ~~~~ ^~ ~~~~~
      |       |       |
      |       int     const char [4]
a.cc:29:12: error: invalid operands of types 'int' and 'const char [4]' to binary 'operator<<'
   29 |       cout << "Yes" << endl;
      |       ~~~~ ^~ ~~~~~
      |       |       |
      |       int     const char [4]
a.cc:34:12: error: invalid operands of types 'int' and 'const char [4]' to binary 'operator<<'
   34 |       cout << "Yes" << endl;
      |       ~~~~ ^~ ~~~~~
      |       |       |
      |       int     const char [4]
a.cc:39:12: error: invalid operands of types 'int' and 'const char [4]' to binary 'operator<<'
   39 |       cout << "Yes" << endl;
      |       ~~~~ ^~ ~~~~~
      |       |       |
      |       int     const char [4]
a.cc:45:10: error: invalid operands of types 'int' and 'const char [3]' to binary 'operator<<'
   45 |     cout << "No" << endl;
      |     ~~~~ ^~ ~~~~
      |     |       |
      |     int     const char [3]
Language: C++

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

int main(){
  vector<vector<double>> data(3, vector<double>(3));
  for (int i = 0; i < 3; i++) {
    for (int j = 0; j < 3; j++) {
      cin >> data.at(i).at(j);
    }
  }
  int N;
  cin >> N;
  vector<int> b(N);
  for(int i=0;i<N;i++){
    cin >> b.at(i);
  }
  for(int i=0;i<N;i++){
    for (int l = 0; l < 3; l++) {
      for (int j = 0; j < 3; j++) {
        if(b.at(i) == data.at(l).at(j)){
          data.at(l).at(j) = 0.5;
        }
      }
    }
  }
  int s =0;
  if(data.at(0).at(0)==0.5 && data.at(0).at(1)==0.5 && data.at(0).at(2)==0.5){
    s =1;
    
  }
  if(data.at(1).at(0)==0.5 && data.at(1).at(1)==0.5 && data.at(1).at(2)==0.5){
     s =1;
    
  }
   if(data.at(2).at(0)==0.5 && data.at(2).at(1)==0.5 && data.at(2).at(2)==0.5){
     s =1;
     
  }
   if(data.at(0).at(0)==0.5 && data.at(1).at(0)==0.5 && data.at(2).at(0)==0.5){
     s =1;
  }
   if(data.at(0).at(1)==0.5 && data.at(1).at(1)==0.5 && data.at(2).at(1)==0.5){
     s =1;
  }
   if(data.at(0).at(2)==0.5 && data.at(1).at(2)==0.5 && data.at(2).at(2)==0.5){
     s =1;
  }
   if(data.at(0).at(0)==0.5 && data.at(1).at(1)==0.5 && data.at(2).at(2)==0.5){
     s =1;
  }
   if(data.at(0).at(2)==0.5 && data.at(1).at(1)==0.5 && data.at(2).at(0)==0.5){
     s =1;
  }
  else{
    s=0;
  }
  if(s=1){
    cout<<"Yes"<<endl;
  }
  else{
    cout<<"No"<<emdl;
  }
  
  
 
}


Compiler output:
a.cc: In function 'int main()':
a.cc:61:17: error: 'emdl' was not declared in this scope
   61 |     cout<<"No"<<emdl;
      |                 ^~~~
Language: C++

using namespace std;
#include <bits/stdc++.h>
#define rep(i, s) for (int i = 0; i < s; ++i)
#define repr(i, n) for(int i = n; i >= 0; i--)
#define FOR(i, m, n) for(int i = m; i < n; i++)
#define all(v) (v.begin(), v.end())
#define EACH(i, s) for (__typeof__((s).begin()) i = (s).begin(); i != (s).end(); ++i)
#define VEC(a, n) vector<int>a(n)
#define VECV(a,n,m) vector<vector<int>> a(n, vector<int>(m));
#define PQ(a) priority_queue<int>a
#define PQmin(a) priority_queue< int, :vector<int>, greater<int> >a
#define PAIR pair<int, int>
typedef long long ll;
typedef pair<ll, ll> l_l;
typedef pair<int, int> i_i;
#define EPS (1e-7)
#define INF (1e10)
#define PI (acos(-1))
const ll mod = 1000000007;
bool f(string s){
  bool ans=true;
  rep(i,s.size()/2){
    if(s[i]!=s[s.size()/2+i]){
      ans=false;
      break;
    }
  }
  return ans;
}

int main(){
  ios::sync_with_stdio(false);
  cin.tie(0);
  VECV(A,3,3);
  VECV(C,3,3);
  int N;
  VEC(b,N);
  // 入力 (2重ループを用いる)
  rep(i,3){
    rep(j,3) {
      cin >>A.at(i).at(j);
    }
  }
  cin>>N;
  rep(i,N){
    cin>>b[i];
  }
  rep(i,3){
    rep(j,3){
      C.at(i).at(j)=False;
    }
  }
  rep(i,3){
    rep(j,3){
      rep(k,N){
        if(b[k]==A[i][j])
      		C[i][j]=True;
      }
    }
  }
  string ans="No";
  if(C[1][1] and C[2][2] and C[3][3])
    ans="Yes";
  if(C[1][1] and C[1][2] and C[1][3])
    ans="Yes";
  if(C[2][1] and C[2][2] and C[2][3])
    ans="Yes";
  if(C[3][1] and C[3][2] and C[3][3])
    ans="Yes";
  if(C[1][1] and C[2][1] and C[3][1])
    ans="Yes";
  if(C[1][2] and C[2][2] and C[3][2])
    ans="Yes";
  if(C[1][3] and C[2][3] and C[3][3])
    ans="Yes";
  if(C[1][3] and C[2][2] and C[3][1])
    ans="Yes";
  cout<<ans<<endl;
  
}

Compiler output:
a.cc: In function 'int main()':
a.cc:50:21: error: 'False' was not declared in this scope
   50 |       C.at(i).at(j)=False;
      |                     ^~~~~
a.cc:57:25: error: 'True' was not declared in this scope
   57 |                 C[i][j]=True;
      |                         ^~~~
Language: C++

#include <algorithm>
#include <cmath>
#include <cstdio>
#include <iostream>
#include <list>
#include <map>
#include <queue>
#include <set>
#include <stack>
#include <string>
#include <vector>

using namespace std;

typedef long long ll;

#define pb(a) push_back(a)
#define all(x) (x).begin(), (x).end()

#define FOR(i, a, n) for (int i = (int)(a); i < (int)(n); ++i)
#define REP(i, n) FOR(i, 0, n)
#define SORT(a) sort(all(a))
#define REVERSE(a) reverse(all(a))

#define PRINT(str) printf(#str "\n")
#define yOUT PRINT(Yes)
#define nOUT PRINT(No)
#define YOUT PRINT(YES)
#define NOUT PRINT(NO)

//関数定義
//最大公約数
ll gcd(ll a, ll b);

//最小公倍数
ll lcm(ll a, ll b);

int main() {
  // ========================================================
  int a[9];
  rep(i, 9) cin >> a[i];
  int n;
  cin >> n;
  int b[n];
  rep(i, n) cin >> b[i];

  rep(i, n) {
    rep(j, 9) {
      if (a[j] == b[i])
        a[j] = 0;
      else
        continue;
    }
  }

  int l1, l2, l3, l4, l5, l6, l7, l8;
  l1 = a[0] + a[1] + a[2];
  l2 = a[3] + a[4] + a[5];
  l3 = a[6] + a[7] + a[8];
  l4 = a[0] + a[3] + a[6];
  l5 = a[1] + a[4] + a[7];
  l6 = a[2] + a[5] + a[8];
  l7 = a[0] + a[4] + a[8];
  l8 = a[2] + a[4] + a[6];
  if (l1 == 0 || l2 == 0 || l3 == 0 || l4 == 0 || l5 == 0 || l6 == 0 ||
      l7 == 0 || l8 == 0)
    cout << "Yes";
  else
    cout << "No";
}

//最大公約数
ll gcd(ll a, ll b) {
  if (!b) return a;
  return gcd(b, a % b);
}

//最小公倍数
ll lcm(ll a, ll b) { return a * b / gcd(a, b); }

Compiler output:
a.cc: In function 'int main()':
a.cc:41:7: error: 'i' was not declared in this scope
   41 |   rep(i, 9) cin >> a[i];
      |       ^
a.cc:41:3: error: 'rep' was not declared in this scope; did you mean 'frexp'?
   41 |   rep(i, 9) cin >> a[i];
      |   ^~~
      |   frexp
Language: C++

#include <algorithm>
#include <cmath>
#include <cstdio>
#include <iostream>
#include <list>
#include <map>
#include <queue>
#include <set>
#include <stack>
#include <string>
#include <vector>

using namespace std;

typedef long long ll;

#define pb(a) push_back(a)
#define all(x) (x).begin(), (x).end()

#define FOR(i, a, n) for (int i = (int)(a); i < (int)(n); ++i)
#define REP(i, n) FOR(i, 0, n)
#define SORT(a) sort(all(a))
#define REVERSE(a) reverse(all(a))

#define PRINT(str) printf(#str "\n")
#define yOUT PRINT(Yes)
#define nOUT PRINT(No)
#define YOUT PRINT(YES)
#define NOUT PRINT(NO)

//関数定義
//最大公約数
ll gcd(ll a, ll b);

//最小公倍数
ll lcm(ll a, ll b);

int main() {
  // ========================================================
  for (int i = 0; i < 3; i++) {
    for (int j = 0; j < 3; j++) {
      cin >> a[i][j];
    }
  }
  int n, b;
  cin >> n;
  while (n--) {
    cin >> b;
    for (int i = 0; i < 3; i++)
      for (int j = 0; j < 3; j++)
        if (a[i][j] == b) a[i][j] = 0;
  }
  for (int i = 0; i < 3; i++) {
    int p = 0, q = 0;
    for (int j = 0; j < 3; j++) {
      p += a[i][j];
      q += a[j][i];
    }
    if (p == 0 || q == 0) {
      cout << "Yes" << endl;
      return 0;
    }
  }
  if (a[0][0] + a[1][1] + a[2][2] == 0 || a[0][2] + a[1][1] + a[2][0] == 0) {
    cout << "Yes" << endl;
    return 0;
  }

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

//最大公約数
ll gcd(ll a, ll b) {
  if (!b) return a;
  return gcd(b, a % b);
}

//最小公倍数
ll lcm(ll a, ll b) { return a * b / gcd(a, b); }

Compiler output:
a.cc: In function 'int main()':
a.cc:42:14: error: 'a' was not declared in this scope
   42 |       cin >> a[i][j];
      |              ^
a.cc:51:13: error: 'a' was not declared in this scope
   51 |         if (a[i][j] == b) a[i][j] = 0;
      |             ^
a.cc:56:12: error: 'a' was not declared in this scope
   56 |       p += a[i][j];
      |            ^
a.cc:64:7: error: 'a' was not declared in this scope
   64 |   if (a[0][0] + a[1][1] + a[2][2] == 0 || a[0][2] + a[1][1] + a[2][0] == 0) {
      |       ^
Language: C++

#include <bits/stdc++.h>

using vvi = std::vector<std::vector<int>>;

std::vector<std::vector<int>> res(3, std::vector<int>(3, 0));
std::vector<std::vector<int>> card(3, std::vector<int>(3, 0));
int n, p;

void f(vvi& c, vvi& r, int p) {
    for (int i = 0; i < 3; i++) {
        for (int x = 0; x < 3; x++) {
            if (c[i][x] == p) {
                r[i][x] = 1;
            }
        }
    }
}

void judge(vvi& r) {
    for (int i = 0; i < 3; i++) {
        int sum = 0;
        for (int x = 0; x < 3; x++) {
            sum += r[i][x];
        }
        if (sum == 3) {
            std::cout << "Yes" << std::endl;
            return;
        }
    }
    for (int i = 0; i < 3; i++) {
        int sum = 0;
        for (int x = 0; x < 3; x++) {
            sum += r[x][i]; 
        }
        if (sum == 3) {
            std::cout << "Yes" << std::endl;
            return;
        }
    }
    int sum = 0;
    for (int i = 0, x = 0; i <= 2 && x <= 2; i++, x++) {
        sum += r[i][x];
    }
    if (sum == 3) {
        std::cout << "Yes" << std::endl;
        return 0;
    }
    sum = 0;
    if (r[2][0] && r[1][1] && r[0][2]) {
        std::cout << "Yes" << std::endl;
        return 0;
    }
    std::cout << "No" << std::endl;
}

int main() {
    for (int i = 0; i < 3; i++) {
        for (int x = 0; x < 3; x++) {
            std::cin >> card[i][x];
        }
    }
    std::cin >> n;
    for (int c = 0; c < n; c++) {
        std::cin >> p;
        f(card, res, p)
    }
    judge(res);
    
}

Compiler output:
a.cc: In function 'void judge(vvi&)':
a.cc:46:16: error: return-statement with a value, in function returning 'void' [-fpermissive]
   46 |         return 0;
      |                ^
a.cc:51:16: error: return-statement with a value, in function returning 'void' [-fpermissive]
   51 |         return 0;
      |                ^
a.cc: In function 'int main()':
a.cc:65:24: error: expected ';' before '}' token
   65 |         f(card, res, p)
      |                        ^
      |                        ;
   66 |     }
      |     ~
Language: C++

#pragma GCC optimize("O3")
#include<iostream>
#include<algorithm>
#include<string>
#include<cmath>
#include<set>
#include<vector>
#include<sstream>
#include<queue>
#include <iomanip>
#include <fstream>
#include<unordered_set>
#include<stack>
#include <map>
#include<unordered_map>
#include<time.h>
#include <chrono>
constexpr auto INF = 9223372036854775807;
typedef long long int ll;
typedef unsigned long long int ull;
typedef unsigned long int ul;
#define f(i,a,b) for(ll i=(ll)a;i<(ll)b;i+=1)
#define rf(i,a,b) for(ll i=(ll)a;i>=(ll)b;i-=1)
#define endl '\n'
#define N 1000000007 // prime modulo value 
#define all(x) x.begin(),x.end()
using namespace std;
#define MAX 1000001 
#define M 998244353
ll inverse(ll n)
{
	ll modu = M;
	ll m = modu;
	ll a = 0, b = 1;
	if (modu == 1)
		return 0;
	while (n > 1)
	{
		ll quo = n / modu;
		ll temp = modu;
		modu = n % modu, n = temp;
		temp = a; 
		a = b - (quo * a);
		b = temp;
	}
	if (b < 0)
		b += m;
	return b;
}
int main()
{
	ios_base::sync_with_stdio(0), cin.tie(0), cout.tie(0);
	vector<vector<ll>> grid(3, vector<ll>(3, 0));
	f(i, 0, 3)
	{
		f(j, 0, 3)
			cin >> grid[i][j];
	}
	ll n;
	cin >> n;
	f(i, 0, n)
	{
		ll temp;
		cin >> temp;
		f(j, 0, 3)
		{
			f(k, 0, 3)
			{
				if (grid[j][k] == temp)
				{
					grid[j][k] = 0;
					break;
				}
			}
		}
	}
	string ans = "No";
	f(i, 0, 3)
	{
		ll sum = 0;
		f(j, 0, 3)
		{
			sum += grid[i][j];
		}
		if (sum == 0)
		{
			ans = "Yes";
			break;
		}
	}
	f(i, 0, 3)
	{
		ll sum = 0;
		f(j, 0, 3)
		{
			sum += grid[j][i];
		}
		if (sum == 0)
		{
			ans = "Yes";
			break;
		}
	}
	ll sum = 0;
	f(i, 0, 3)
	{
		sum += grid[i][i];
	}
	if (sum == 0)
		ans = "Yes";
	ll sum = 0;
	f(i, 0, 3)
	{
		sum += grid[2-i][i];
	}
	if (sum == 0)
		ans = "Yes";
	cout << ans;
	return 0;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:111:12: error: redeclaration of 'll sum'
  111 |         ll sum = 0;
      |            ^~~
a.cc:104:12: note: 'll sum' previously declared here
  104 |         ll sum = 0;
      |            ^~~
Language: C++

#include <bits/stdc++.h>
#define ll long long
#define fori(n) for(long long i=0;i<n;i++)
#define forj(n) for(long long j=0;j<n;j++)
#define sp(n) setprecision(n)
#define mp make_pair
#define mt make_tuple
#define pi 3.14159265358979323846264
#define MOD 1000000007

using namespace std;
/*
int primeFactors(ll n)  
{  ll f=0;
    // Print the number of 2s that divide n  
    while (n % 2 == 0)  
    {  
        f++;
        n = n/2;  
    }  
  
    // n must be odd at this point. So we can skip  
    // one element (Note i = i +2)  
    for (int i = 3; i <= sqrt(n); i = i + 2)  
    {  
        // While i divides n, print i and divide n  
        while (n % i == 0)  
        {  
            f++; 
            n = n/i;
        }  
    }  
  
    // This condition is to handle the case when n  
    // is a prime number greater than 2  
    if (n > 2)  
        f++;
        
 return f;        
}  
  
bool isPrime(long long k){
    if(k<=1){return false;}
    if(k==2){return true;}
    if(k%2==0){return false;}
    long long i = 3;
   while (i*i <= k) {if (k % i == 0) {return false;}i += 2;}
return true;
}
 
ll binomialCoeff(ll n, ll k){
    ll C[n + 1][k + 1];ll i, j;
    for (i = 0; i <= n; i++){
        for (j = 0; j <= min(i, k); j++){
            if (j == 0 || j == i){C[i][j] = 1;}
            else{C[i][j] = ((C[i - 1][j - 1] + C[i - 1][j]))%MOD;}}}
    return C[n][k];
 }
 
ll gcd(ll a, ll b){if (b == 0)
        return a;return gcd(b, a % b);}
 
ll expmod(ll n,ll k,ll m){
    ll ans;
    ans=1;
    fori(k){
        ans=(ans*n)%m;
    }
    return ans;
}
//define temp-functions below
 
 
//some definitions and global variables
vector<ll> primes;
void storePrime(ll n){
    fori(n){
        if(isPrime(i+1)&&(n%(i+1)==0)){primes.push_back(i+1);}
    }
}*/


int main(){ //ake cin/cout faster
 ios_base::sync_with_stdio(false);
 cin.tie(NULL);cout.tie(NULL);
int a[3][3];
 for(int i=0;i<3;i++){
 for(int j=0;j<3;j++){
 cin>>a[i][j];
 
 }
 }
  int q=0;
int n;cin>>n;
  while(n--){
  int k;cin>>k;
   for(int i=0;i<3;i++){
 for(int j=0;j<3;j++){
 if(k==a[i][j]){a[i][j]==0;}
 
 }
 }  
  
  
  }
for(int i=0;i<3;i++){
int c=0;
if(a[i][0]==0&&a[i][1]==0&&a[i][2]==0) c=1;
if(a[0][i]==0&&a[2][i]==0&&a[2][i]==0) c=1;  
if(c==1){q=1;break;}
}
if(a[0][0]==0&&a[1][1]==0&&a[2][2]==0) c=1;
if(a[2][0]==0&&a[1][1]==0&&a[2][0]==0) c=1;
if(c==1) cout<<"Yes";
  else cout<<"No";
return 0;}

Compiler output:
a.cc: In function 'int main()':
a.cc:112:40: error: 'c' was not declared in this scope
  112 | if(a[0][0]==0&&a[1][1]==0&&a[2][2]==0) c=1;
      |                                        ^
a.cc:113:40: error: 'c' was not declared in this scope
  113 | if(a[2][0]==0&&a[1][1]==0&&a[2][0]==0) c=1;
      |                                        ^
a.cc:114:4: error: 'c' was not declared in this scope
  114 | if(c==1) cout<<"Yes";
      |    ^
Language: C++

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

int main(){
    bool ans =false;
    vector<vector<int>>vec(3,vector<int>(3));
    for(int i=0;i<3;i++){
        for(int j=0;j<3;j++){
            cin >> vec[i][j];
        }
    }
    int N;
    cin >>N;
    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(vec[i][j] == B){
                vec[i][j] =-1;
                break;
            }
        }
        }
    }
    for(int i=0;i<3;i++){
        if(vec[i][0]==-1 && vec[i][1] == -1 vec[i][2] == -1){
            ans =true;
        }
    }
    for(int i=0;i<3;i++){
        if(vec[0][i]==-1 &&vec[1][i] == -1 &&vec[2][i] == -1){
            ans =true;
        }
    }
    if(vec[0][0] == -1 && vec[1][1] == -1 && vec[2][2] == -1){
        ans = true;
    }
    if(vec[2][0] == -1 && vec[1][1] == -1 && vec[0][2] == -1){
        ans = true;
    }
    if(ans == true){
        cout<<"Yes"<<endl;
    }
    eles{
        cout <<"No"<<endl;
    }
}

Compiler output:
a.cc: In function 'int main()':
a.cc:27:44: error: expected ')' before 'vec'
   27 |         if(vec[i][0]==-1 && vec[i][1] == -1 vec[i][2] == -1){
      |           ~                                ^~~~
      |                                            )
a.cc:45:5: error: 'eles' was not declared in this scope
   45 |     eles{
      |     ^~~~
Language: C++

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

using namespace std;

int main()
{
    vector< vector<int> >(3, vector<int>(3,0));
    for(int i=0;i<3;i++)
    {
        for(int j=0;j<3;j++)
        {
            int t;
            cin>>t;
            v[i][j]=t;
        }
    }
    int n;
    cin>>n;
    int b[n];
    for(int i=0;i<n;i++)
     cin>>b[i];
     vector<int> :: iterator it;
     for(int i=0;i<n;i++)
     {
          it=find(v[0].begin(),v[0].end(),b[i]);
          if(it!=v[0].end())
           v[0][it-v[0].begin()]=-1;
           it=find(v[1].begin(),v[1].end(),b[i]);
          if(it!=v[1].end())
           v[1][it-v[1].begin()]=-1;
            it=find(v[2].begin(),v[2].end(),b[i]);
          if(it!=v[2].end())
           v[2][it-v[2].begin()]=-1;
     }
    if(count(v[0].begin(),v[0].end(),-1)==3)
     cout<<"Yes";
     else if(count(v[1].begin(),v[1].end(),-1)==3)
     cout<<"Yes";
     else if(count(v[2].begin(),v[2].end(),-1)==3)
     cout<<"Yes";
     else if(v[0][0]==-1 && v[1][1]==-1 && v[2][2]==-1)
     cout<<"Yes";
     else if(v[0][2]==-1 && v[1][1]==-1 && v[2][0]==-1)
     cout<<"Yes";
     else if(v[0][0]==-1 && v[1][0]==-1 && v[2][0]==-1)
     cout<<"Yes";
     else if(v[0][1]==-1 && v[1][1]==-1 && v[2][1]==-1)
     cout<<"Yes";
     else if(v[0][2]==-1 && v[1][2]==-1 && v[2][2]==-1)
     cout<<"Yes";
     else
     cout<<"No"
   
   
   return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:16:13: error: 'v' was not declared in this scope
   16 |             v[i][j]=t;
      |             ^
a.cc:27:19: error: 'v' was not declared in this scope
   27 |           it=find(v[0].begin(),v[0].end(),b[i]);
      |                   ^
a.cc:37:14: error: 'v' was not declared in this scope
   37 |     if(count(v[0].begin(),v[0].end(),-1)==3)
      |              ^
a.cc:54:16: error: expected ';' before 'return'
   54 |      cout<<"No"
      |                ^
      |                ;
......
   57 |    return 0;
      |    ~~~~~~
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>>bingo(3,vector<bool>(3));
  for(int i=0;i<3;i++){
    for(int j=0;j<3;j++){
      bingo[i][j]=false;
      for(int k=0;k<n;k++){
        if(a[i][j]==b[k]) bingo[i][j]=true;
      }
    }
  }
  if(bingo[0][0] && bingo[0][1] && bingo [0][2]) cout<<"Yes"<<endl;
  else if(bingo[1][0] && bingo[1][1] && bingo [1][2]) cout<<"Yes"<<endl;
  else if(bingo[2][0] && bingo[2][1] && bingo [2][2]) cout<<"Yes"<<endl;
  else if(bingo[0][0] && bingo[1][0] && bingo [2][0]) cout<<"Yes"<<endl;
  else if(bingo[0][1] && bingo[1][1] && bingo [2][1]) cout<<"Yes"<<endl;
  else if(bingo[0][2] && bingo[1][2] && bingo [2][2]) cout<<"Yes"<<endl;
  else if(bingo[0][0] && bingo[1][1] && bingo [2][2]) cout<<"Yes"<<endl;
  else if(bingo[0][2] && bingo[1][1] && bingo [2][0]) cout<<"Yes"<<endl;
  else cout<<"No"<<endl;
}

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

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

Compiler output:
main.c: In function 'main':
main.c:19:50: error: stray '\' in program
   19 |     if(((a[i][0]==a[i][1])&&(a[i][1]==a[i][2]))||\(a[1][i]==a[2][i])))
      |                                                  ^
main.c:19:70: error: expected statement before ')' token
   19 |     if(((a[i][0]==a[i][1])&&(a[i][1]==a[i][2]))||\(a[1][i]==a[2][i])))
      |                                                                      ^
Language: C

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

Compiler output:
main.c: In function 'main':
main.c:19:48: error: expected ')' before 'check'
   19 |     if(((a[i][0]==a[i][1])&&(a[i][1]==a[i][2]))
      |       ~                                        ^
      |                                                )
   20 |       check=1;
      |       ~~~~~                                     
main.c:30:1: error: expected expression before '}' token
   30 | }
      | ^
Language: C++

#include<iostream>
using namespace std;
	int a[7][7],b[7][7];
int main(){
	for(int i=1;i<=3;i++)
	{
		for(int k=1;k<=3;k++)
		{
			cin>>a[i][k];
			b[i][k]=1;
		}
	}
	int n,t,ans=0;
	cin>>n;
	for(int i=1;i<=n;i++)
	{
		cin>>t;
		for(int k=1;k<=3;k++)
		{
			for(int j=1;j<=3;j++)
			{
				if(t==a[k][j])
				{
					b[k][j]=0
				}
			}
		}
	}
	for(int i=1;i<=3;i++)
	{
		if(b[i][1]==0)
		{
			if(b[i][2]==b[i][1])
			{
				if(b[i][1]==b[i][3])
				ans++;
			}
		}
	}
	for(int i=1;i<=3;i++)
	{
		if(b[1][i]==0)
		{
			if(b[2][i]==b[1][i])
			{
				if(b[1][i]==b[3][i])
				ans++;
			}
		}
	}

	if(b[1][1]==0)
	{
		if(b[2][2]==b[1][1])
		{
			if(b[3][3]==b[1][1])
			ans++;
		}
	}
	if(b[1][3]==0)
	{
		if(b[2][2]==b[1][3])
		{
			if(b[3][1]==b[1][3])
			ans++;
		}
	}
	if(ans>=3)
	cout<<"Yes";
	else
	cout<<"No";
} 

Compiler output:
a.cc: In function 'int main()':
a.cc:24:50: error: expected ';' before '}' token
   24 |                                         b[k][j]=0
      |                                                  ^
      |                                                  ;
   25 |                                 }
      |                                 ~
Language: Java


public class Main{
	public static void main(String[] args){
    	Scanner sc = new Scanner(System.in);
      	int a = sc.nextInt();
      	if (a%2==0){
        	System.out.println(a/2);
        }else if (a%2==1){
          	System.out.println((a/2)+1);
        }
    }
}

Compiler output:
Main.java:4: error: cannot find symbol
    	Scanner sc = new Scanner(System.in);
    	^
  symbol:   class Scanner
  location: class Main
Main.java:4: error: cannot find symbol
    	Scanner sc = new Scanner(System.in);
    	                 ^
  symbol:   class Scanner
  location: class Main
2 errors
Language: Java

import java.util.*;

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

    int p;

    int[][] a = new int[3][3];
    boolean[][] b = new boolean[3][3];

    for(int i=0; i<3; i++){
      for(int j=0; j<3; j++){
        a[i][j] = sc.nextInt();
      }
    }
    int n = sc.nextInt();
    for(int i=0; i<n; i++){
      p = sc.nextInt();
      for(int j=0; j<3;j++){
        for(int k=0; k<3;k++){
          if(a[j][k]==p){
            b[j][k] = true;
          }
        }
      }
    }

    for(int i=0; i<3; i++){
      if(b[i][0] && b[i][1] && b[i][2] == true){
        System.out.println("Yes");
        System.exit(0);
      }
    }
    for(int i=0; i<3; i++){
      if(b[0][i] && b[1][i] && b[2][i] == true){
        System.out.println("Yes");
        System.exit(0);
      }
    }
    if(b[0][0]&&b[1][1]&&b[2][2]==true){
      System.out.println("Yes");
      System.exit(0);
    }
    if(b[0][2]&&b[1][1]&&b[2][0]==true){
      System.out.println("Yes");
      System.exit(0);
    }

    System.out.println("No");


  }

}

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

import java.util.*;

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

    int p;

    int[][] a = new int[3][3];
    boolean[][] b = new boolean[3][3];

    for(int i=0; i<3; i++){
      for(int j=0; j<3; j++){
        a[i][j] = sc.nextInt();
      }
    }
    int n = sc.nextInt();
    for(int i=0; i<n; i++){
      p = sc.nextInt();
      for(int j=0; j<3;j++){
        for(int k=0; k<3;k++){
          if(a[j][k]==p){
            b[j][k] = true;
          }
        }
      }
    }

    for(int i=0; i<3; i++){
      if(b[i][0] && b[i][1] && b[i][2] == true){
        System.out.println("Yes");
        System.exit(0);
      }
    }
    for(int i=0; i<3; i++){
      if(b[0][i] && b[1][i] && b[2][i] == true){
        System.out.println("Yes");
        System.exit(0);
      }
    }
    if(b[0][0]&&b[1][1]&&b[2][2]==true){
      System.out.println("Yes");
      System.exit(0);
    }
    if(b[0][2]&&b[1][1]&&b[2][0]==true){
      System.out.println("Yes");
      System.exit(0);
    }

    System.out.pritln("No");


  }

}

Compiler output:
Main.java:50: error: cannot find symbol
    System.out.pritln("No");
              ^
  symbol:   method pritln(String)
  location: variable out of type PrintStream
1 error
Language: C++

#include <iostream>
using namespace std;
int main(){
  int N,A[3][3],B[10];
  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<10,i++) cin>>B[i];
  bool C[3][3];
  for (int i=0; i<3; i++){
    for (int j=0; j<3; j++){
      for (int k=0; k<10; k++){
        if (A[i][j]==B[k]) C[i][j]=true;
      }}}
  bool des=false;
        if (C[0][0] && C[0][1] && C[0][2]) des=true;
if (C[1][0] && C[1][1] && C[1][2]) des=true;
  if (C[2][0] && C[2][1] && C[2][2]) des=true;
  if (C[0][0] && C[1][0] && C[2][0]) des=true;
  if (C[0][1] && C[1][1] && C[2][1]) des=true;
  if (C[0][2] && C[1][2] && C[2][2]) des=true;
  if (C[0][0] && C[1][1] && C[2][2]) des=true;
  if (C[0][2] && C[1][1] && C[2][0]) des=true;
  if (des) cout<<"Yes"<<endl;
  else cout<<"No"<<endl;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:11:23: error: expected ';' before ')' token
   11 |   for(int i=0;i<10,i++) cin>>B[i];
      |                       ^
      |                       ;
Language: C++

#include <iostream>
using namespace std;
int main(){
  int N,A[3][3],B[10];
  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<10,i++) cin>>B[i];
  bool C[3][3];
  for (int i=0; i<3; i++){
    for (int j=0; j<3; j++){
      for (int k=0; k<10; k++){
        if (A[i][j]==B[k]) C[i][j]=true;
      }}}
  bool des=false;
        if (C[0][0] && C[0]C[1] && C[0][2]) des=true;
if (C[1][0] && C[1]C[1] && C[1][2]) des=true;
  if (C[2][0] && C[2]C[1] && C[2][2]) des=true;
  if (C[0][0] && C[1]C[0] && C[2][0]) des=true;
  if (C[0][1] && C[1]C[1] && C[2][1]) des=true;
  if (C[0][2] && C[1]C[2] && C[2][2]) des=true;
  if (C[0][0] && C[1]C[1] && C[2][2]) des=true;
  if (C[0][2] && C[1]C[1] && C[2][0]) des=true;
  if (des) cout<<"Yes"<<endl;
  else cout<<"No"<<endl;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:11:23: error: expected ';' before ')' token
   11 |   for(int i=0;i<10,i++) cin>>B[i];
      |                       ^
      |                       ;
a.cc:19:28: error: expected ')' before 'C'
   19 |         if (C[0][0] && C[0]C[1] && C[0][2]) des=true;
      |            ~               ^
      |                            )
a.cc:20:20: error: expected ')' before 'C'
   20 | if (C[1][0] && C[1]C[1] && C[1][2]) des=true;
      |    ~               ^
      |                    )
a.cc:21:22: error: expected ')' before 'C'
   21 |   if (C[2][0] && C[2]C[1] && C[2][2]) des=true;
      |      ~               ^
      |                      )
a.cc:22:22: error: expected ')' before 'C'
   22 |   if (C[0][0] && C[1]C[0] && C[2][0]) des=true;
      |      ~               ^
      |                      )
a.cc:23:22: error: expected ')' before 'C'
   23 |   if (C[0][1] && C[1]C[1] && C[2][1]) des=true;
      |      ~               ^
      |                      )
a.cc:24:22: error: expected ')' before 'C'
   24 |   if (C[0][2] && C[1]C[2] && C[2][2]) des=true;
      |      ~               ^
      |                      )
a.cc:25:22: error: expected ')' before 'C'
   25 |   if (C[0][0] && C[1]C[1] && C[2][2]) des=true;
      |      ~               ^
      |                      )
a.cc:26:22: error: expected ')' before 'C'
   26 |   if (C[0][2] && C[1]C[1] && C[2][0]) des=true;
      |      ~               ^
      |                      )
Language: C++

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

Compiler output:
a.cc: In function 'int main()':
a.cc:11:10: error: expected unqualified-id before '=' token
   11 |   for(int=i;i<10,i++) cin>>B[i];
      |          ^
a.cc:11:10: error: expected ';' before '=' token
   11 |   for(int=i;i<10,i++) cin>>B[i];
      |          ^
      |          ;
a.cc:11:10: error: expected primary-expression before '=' token
a.cc:11:11: error: 'i' was not declared in this scope
   11 |   for(int=i;i<10,i++) cin>>B[i];
      |           ^
a.cc:19:28: error: expected ')' before 'C'
   19 |         if (C[0][0] && C[0]C[1] && C[0][2]) des=true;
      |            ~               ^
      |                            )
a.cc:20:20: error: expected ')' before 'C'
   20 | if (C[1][0] && C[1]C[1] && C[1][2]) des=true;
      |    ~               ^
      |                    )
a.cc:21:22: error: expected ')' before 'C'
   21 |   if (C[2][0] && C[2]C[1] && C[2][2]) des=true;
      |      ~               ^
      |                      )
a.cc:22:22: error: expected ')' before 'C'
   22 |   if (C[0][0] && C[1]C[0] && C[2][0]) des=true;
      |      ~               ^
      |                      )
a.cc:23:22: error: expected ')' before 'C'
   23 |   if (C[0][1] && C[1]C[1] && C[2][1]) des=true;
      |      ~               ^
      |                      )
a.cc:24:22: error: expected ')' before 'C'
   24 |   if (C[0][2] && C[1]C[2] && C[2][2]) des=true;
      |      ~               ^
      |                      )
a.cc:25:22: error: expected ')' before 'C'
   25 |   if (C[0][0] && C[1]C[1] && C[2][2]) des=true;
      |      ~               ^
      |                      )
a.cc:26:22: error: expected ')' before 'C'
   26 |   if (C[0][2] && C[1]C[1] && C[2][0]) des=true;
      |      ~               ^
      |                      )
Language: C++

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

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

    return 0;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:39:36: error: expected primary-expression before '%' token
   39 |     if(ans[2] == 1 && ans[4] == 1 %% ans[6] == 1){
      |                                    ^