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

//ada kartu bingo 3x3
//pada row ke i dari atas
//dan pada column ke j dari kiri
//berisikan Aij (angka kali)
//akan dipilih N, dari b1 hingga bN
//jika salah satu itu terpenuhi dari bingo sheet kita
//kita tandain
//tentukan jika kita bingo yaitu dengan cara menentukan apakah kita punya ada 3 yg berturut2 entah gmn itu arahnnya
//inputnya semua integer
//inputnya pake array3x3
//jika bingo Yes, jika tidak No

#include <stdio.h>
#include <string.h>
int main(){
	int card[3][3];
	int i, j;
	for(i = 0; i<3; i++)
	{
		for(j=0; j<3; j++)
		{
			scanf("%d", &card[i][j]);		//minta input user buat bingo card
		}
	}
	
	//bingo card kosong buat nandain
	int pin[3][3] = {0};
	
	//bikin N, dan brp angka aja yg disebut biar dapet bingo apa ngga
	int N;
	scanf("%d", &N);
	
	int number;
	//diulang biar dapet banyak N
	for(int k = 0; k<=N; k++)
	{
		scanf("%d", &number);
		int p[number];
	}
	
	int angka = strlen(p);
	
	for(int l=0; l<angka; l++)
	{
		for(int i = 0; i<3; i++)
		{
			for(int j = 0; i<3; j++)
			{
				if(card[i][j] == p[l])
				{
					pin[i][j]++;	//ini di cek, dia memenuhi ga
				}
			}
		}
	}
	
	//dicek dia ada yg 1 line ga
	int diagonal = 0, kebawah = 0, samping = 0;		//kalo 3 ya yes
	
	
	//cek yg diagonal
for (int j = 0; j<3; j++)
	{
		for(int i=0; i<3; i++)
		{
			if(pin[j][i] == 1)
			{
				diagonal++;
			}
			else 
			{
				diagonal *=0;
			}
		}
	}

//cek yg kebawah
for(int j = 0; j<3; j++)
{
	if(pin[0][j] == 1)
	{
		kebawah++;
	}
	else 
	{
		kebawah *= 0;
	}
}
for(int j = 0; j<3; j++)
{
	if(pin[1][j] == 1)
	{
		kebawah++;
	}
	else 
	{
		kebawah *= 0;
	}
}
for(int j = 0; j<3; j++)
{
	if(pin[2][j] == 1)
	{
		kebawah++;
	}
	else 
	{
		kebawah *= 0;
	}
}


//nyamping
for(int j = 0; j<3; j++)
{
	if(pin[j][0] == 1)
	{
		samping++;
	}
	else 
	{
		samping *= 0;
	}
}
for(int j = 0; j<3; j++)
{
	if(pin[j][1] == 1)
	{
		samping++;
	}
	else 
	{
		samping *= 0;
	}
}
for(int j = 0; j<3; j++)
{
	if(pin[j][2] == 1)
	{
		samping++;
	}
	else 
	{
		samping *= 0;
	}
}

if(diagonal == 3 || samping == 3 || kebawah == 3)
{
	puts("Yes");
}
else 
{
	puts ("No");
}

	
	
	
	
	return 0;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:41:28: error: 'p' was not declared in this scope
   41 |         int angka = strlen(p);
      |                            ^
Language: C++

//ada kartu bingo 3x3
//pada row ke i dari atas
//dan pada column ke j dari kiri
//berisikan Aij (angka kali)
//akan dipilih N, dari b1 hingga bN
//jika salah satu itu terpenuhi dari bingo sheet kita
//kita tandain
//tentukan jika kita bingo yaitu dengan cara menentukan apakah kita punya ada 3 yg berturut2 entah gmn itu arahnnya
//inputnya semua integer
//inputnya pake array3x3
//jika bingo Yes, jika tidak No

#include <stdio.h>
#include <string.h>
int main(){
	int card[3][3];
	int i, j;
	for(i = 0; i<3; i++)
	{
		for(j=0; j<3; j++)
		{
			scanf("%d", &card[i][j]);		//minta input user buat bingo card
		}
	}
	
	//bingo card kosong buat nandain
	int pin[3][3] = {0};
	
	//bikin N, dan brp angka aja yg disebut biar dapet bingo apa ngga
	int N;
	scanf("%d", &N);
	
	int number;
	//diulang biar dapet banyak N
	for(int k = 0; k<=N; k++)
	{
		scanf("%d", &number);
		int p[number];
	}
	
	
	for(int l=0; l<N; l++)
	{
		for(int i = 0; i<3; i++)
		{
			for(int j = 0; i<3; j++)
			{
				if(card[i][j] == p[l])
				{
					pin[i][j]++;	//ini di cek, dia memenuhi ga
				}
			}
		}
	}
	
	//dicek dia ada yg 1 line ga
	int diagonal = 0, kebawah = 0, samping = 0;		//kalo 3 ya yes
	
	
	//cek yg diagonal
for (int j = 0; j<3; j++)
	{
		for(int i=0; i<3; i++)
		{
			if(pin[j][i] == 1)
			{
				diagonal++;
			}
			else 
			{
				diagonal *=0;
			}
		}
	}

//cek yg kebawah
for(int j = 0; j<3; j++)
{
	if(pin[0][j] == 1)
	{
		kebawah++;
	}
	else 
	{
		kebawah *= 0;
	}
}
for(int j = 0; j<3; j++)
{
	if(pin[1][j] == 1)
	{
		kebawah++;
	}
	else 
	{
		kebawah *= 0;
	}
}
for(int j = 0; j<3; j++)
{
	if(pin[2][j] == 1)
	{
		kebawah++;
	}
	else 
	{
		kebawah *= 0;
	}
}


//nyamping
for(int j = 0; j<3; j++)
{
	if(pin[j][0] == 1)
	{
		samping++;
	}
	else 
	{
		samping *= 0;
	}
}
for(int j = 0; j<3; j++)
{
	if(pin[j][1] == 1)
	{
		samping++;
	}
	else 
	{
		samping *= 0;
	}
}
for(int j = 0; j<3; j++)
{
	if(pin[j][2] == 1)
	{
		samping++;
	}
	else 
	{
		samping *= 0;
	}
}

if(diagonal == 3 || samping == 3 || kebawah == 3)
{
	puts("Yes");
}
else 
{
	puts ("No");
}

	
	
	
	
	return 0;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:48:50: error: 'p' was not declared in this scope
   48 |                                 if(card[i][j] == p[l])
      |                                                  ^
Language: C++

#include <bits/stdc++.h>
using namespace std;
int main(){
vector<vector<int>>A(3,vector<int>(3));
vector<vector<bool>>B(3,vector<bool>(3));
for(int i=0; i<3; i++){
    for(int j=0; j<3; j++){
        cin>>A.at(i).at(j);
    }
}
int N;
cin>>N;
vector<int>C(N);
for(int i=0; i<N; i++){
    cin>>C.at(i);
    for(int j=0; j<3; j++){
        for(int k=0; k<3; k++){
            if(C.at(i)==A.at(j).at(k)){
                B.at(j).at(k)=true;
            }
        }
    }
}
bool t=false;
if(B.at(0).at(0)==true&&B.at(0).at(1)==true&&B.at(0).at(2)==true){
    t=true;
}
if(B.at(1).at(0)==true&&B.at(1).at(1)==true&&B.at(1).at(2)==true){
    t=true;
}
if(B.at(2).at(0)==true&&B.at(2).at(1)==true&&B.at(2).at(2)==true){
    t=true;
}
if(B.at(0).at(0)==true&&B.at(1).at(0)==true&&B.at(2).at(0)==true){
    t=true;
}
if(B.at(0).at(1)==true&&B.at(1).at(1)==true&&B.at(2).at(1)==true){
    t=true;
}
if(B.at(0).at(2)==true&&B.at(1).at21)==true&&B.at(2).at(2)==true){
    t=true;
}
if(B.at(0).at(0)==true&&B.at(1).at(1)==true&&B.at(2).at(2)==true){
    t=true;
}
if(B.at(0).at(2)==true&&B.at(1).at(1)==true&&B.at(2).at(0)==true){
    t=true;
}
if(t==true){
    cout<<"Yes"<<endl;
}
else
cout<<"No"<<endl;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:40:33: error: '__gnu_cxx::__alloc_traits<std::allocator<std::vector<bool> >, std::vector<bool> >::value_type' {aka 'class std::vector<bool>'} has no member named 'at21'; did you mean 'at'?
   40 | if(B.at(0).at(2)==true&&B.at(1).at21)==true&&B.at(2).at(2)==true){
      |                                 ^~~~
      |                                 at
a.cc:40:38: error: expected primary-expression before '==' token
   40 | if(B.at(0).at(2)==true&&B.at(1).at21)==true&&B.at(2).at(2)==true){
      |                                      ^~
Language: C++

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

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

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

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

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

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

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

Compiler output:
a.cc: In function 'int main()':
a.cc:18:20: error: expected ';' before 'if'
   18 |         cin >> b[k]
      |                    ^
      |                    ;
   19 |       if ( a[i][j]==b[k]){
      |       ~~
Language: C

#include <stdio.h>
#include <stdlib.h>

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

  for(i=0; i<3; i++){
    for(j=0; j<3; j++){
      scanf("%d",&a[i][j] );
    }
  }
  scanf("%d",&n );

  for(k=0; k<n; k++)
  {
    scanf("%d",&b);
    for(i=0; i<3; i++){
      for(j=0; j<3; j++){
        if(a[i][j] == b)
          c[i][j] = 0;
      }
    }
  }

  for(i=0; i<3; i++){
    count = 0;
    for(j=0; j<3; j++){
      count += c[i][j];
    }
    if(count == 0){
      printf("Yes");
      return 0;}
  }

  for(j=0; j<3; j++){
      count = 0;
    for(i=0; i<3; i++){
      count += c[i][j];
    }
    if(count == 0){
      printf("Yes");
      return 0;}
  }

  for(i=0; i<3; i++)
  {
    count = 0;
    count += c[i][i];
  }
  if( count == 0){
    printf("Yes");
    return 0;}


  for(i=0; i<3; i++)
  {
    count = 0;
    count += c[i][2-i];
  }
  if(count == 0){
    printf("Yes");
    return 0;
  }
  printf("No");

    return 0;
}


Compiler output:
main.c: In function 'main':
main.c:28:5: error: 'count' undeclared (first use in this function)
   28 |     count = 0;
      |     ^~~~~
main.c:28:5: note: each undeclared identifier is reported only once for each function it appears in
Language: C

#include <stdio.h>
#include <stdlib.h>

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

  for(i=0; i<3; i++){
    for(j=0; j<3; j++){
      scanf("%d",&a[i][j] );
    }
  }
  scanf("%d",&n );

  for(k=0; k<n; k++)
  {
    scanf("%d",&b);
    for(i=0; i<3; i++){
      for(j=0; j<3; j++){
        if(a[i][j] == b)
          c[i][j] = 0;
      }
    }
  }

  for(i=0; i<3; i++){
      count = 0;
    for(j=0; j<3; j++){
      count += c[i][j];
    }
    if(count == 0){
      printf("Yes");
      return 0;}
  }

  for(j=0; j<3; j++){
      count = 0;
    for(i=0; i<3; i++){
      count += c[i][j];
    }
    if(count == 0){
      printf("Yes");
      return 0;}
  }

  for(i=0; i<3; i++)
  {
    count = 0;
    count += c[i][i];
  }
  if( count == 0){
    printf("Yes");
    return 0;}


  for(i=0; i<3; i++)
  {
    count = 0;
    count += c[i][2-i];
  }
  if(count == 0){
    printf("Yes");
    return 0;
  }
  printf("No");

    return 0;
}


Compiler output:
main.c: In function 'main':
main.c:28:7: error: 'count' undeclared (first use in this function)
   28 |       count = 0;
      |       ^~~~~
main.c:28:7: note: each undeclared identifier is reported only once for each function it appears in
Language: C

#include <stdio.h>
#include <stdlib.h>

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

  for(i=0; i<3; i++){
    for(j=0; j<3; j++){
      scanf("%d",&a[i][j] );
    }
  }
  scanf("%d",&n );

  for(k=0; k<n; k++)
  {
    scanf("%d",&b);
    for(i=0; i<3; i++){
      for(j=0; j<3; j++){
        if(a[i][j] == b)
          a[i][j] = 0;
      }
    }
  }

  for(i=0; i<3; i++){
      count = 0;
    for(j=0; j<3; j++){
      count += a[i][j];
    }
    if(count == 0){
      printf("Yes");
      return 0;}
  }

  for(j=0; j<3; j++){
      count = 0;
    for(i=0; i<3; i++){
      count += a[i][j];
    }
    if(count == 0){
      printf("Yes");
      return 0;}
  }

  for(i=0; i<3; i++)
  {
    count = 0;
    count = +a[i][i];
  }
  if( count == 0){
    printf("Yes");
    return 0;}


  for(i=0; i<3; i++)
  {
    count = 0;
    count += a[i][2-i];
  }
  if(count == 0){
    printf("Yes");
    return 0;}
  }
  printf("No");

    return 0;
}


Compiler output:
main.c:66:10: error: expected declaration specifiers or '...' before string constant
   66 |   printf("No");
      |          ^~~~
main.c:68:5: error: expected identifier or '(' before 'return'
   68 |     return 0;
      |     ^~~~~~
main.c:69:1: error: expected identifier or '(' before '}' token
   69 | }
      | ^
Language: C

#include<stdio.h>
int main(void){
  int s[3][3],i,n,b,k,c=0,g;
  for(i=0;i<3;i++){
    for(n=0;n<3;n++){
      scanf("%d",&s[i][n]);
    }
  }
  scanf("%d",&b);
  i=0; n=0;
  for(k=0;k<b;k++){
  scanf("%d",&g);
  for(i=0;i<3;i++){
    for(n=0;n<3;n++){
      if(s[i][n]==g) s[i][n]=0;
    }
  }
  
  for(i=0;i<3;i++){
      if(s[0][i]+s[1][i]+s[2][i]==0) c=1;break;
      if(s[i][0]+s[i][1]+s[i][2]==0) c=1;break;
  }
  if(s[0][0]+s[1][1]+s[2][2]==0) c=1;
  if(s[0][2]+s[1][1]+s[2][0]==0) c=1;
puts(c==1?"Yes":"No");     
 return 0; ;
}


Compiler output:
main.c: In function 'main':
main.c:27:1: error: expected declaration or statement at end of input
   27 | }
      | ^
Language: C

#include<stdio.h>
int main(void){
  int s[2][2],i,n,b,k,c=0,g;
  for(i=0;i<3;i++){
    for(n=0;n<3;n++){
      scanf("%d",&s[i][n]);
    }
  }
  scanf("%d",&b);
  i=0; n=0;
  for(k=0;k<b;k++){
  scanf("%d",&g);
  for(i=0;i<3;i++){
    for(n=0;n<3;n++){
      if(s[i][n]==g) {s[i][n]=0;}
    }
  }
  
  for(i=0;i<3;i++){
      if(s[0][i]+s[1][i]+s[2][i]==0){c=1;break;}
      if(s[i][0]+s[i][1]+s[i][2]==0){c=1;break;}
  }
  if(s[0][0]+s[1][1]+s[2][2]==0) {c=1;}
  if(s[0][2]+s[1][1]+s[2][0]==0) {c=1;}
puts(c==1?"Yes":"No);
     
 return 0; 
}


Compiler output:
main.c: In function 'main':
main.c:25:17: warning: missing terminating " character
   25 | puts(c==1?"Yes":"No);
      |                 ^
main.c:25:17: error: missing terminating " character
   25 | puts(c==1?"Yes":"No);
      |                 ^~~~~
main.c:27:2: error: expected expression before 'return'
   27 |  return 0;
      |  ^~~~~~
main.c:27:11: error: expected ';' before '}' token
   27 |  return 0;
      |           ^
      |           ;
   28 | }
      | ~          
main.c:28:1: error: expected declaration or statement at end of input
   28 | }
      | ^
Language: C

#include<stdio.h>
int main(void){
  int s[2][2],i,n,b,k,c=1;
  for(i=0;i<3;i++){for(n=0;n<3;n++){scanf("%d",&s[i][n]);}}
  scanf("%d",&b);
  i=0; n=0;
  for(k=0;k<b;k++){
  scanf("%d",&g);
  for(i=0;i<3;i++){for(n=0;n<3;n++){if(s[i][n]==g) {s[i][n]=0;} }}}
  
  for(i=0;i<3;i++){
      if(s[0][i]+s[1][i]+s[2][i]==0){c=1;break;}
      if(s[i][0]+s[i][1]+s[i][2]==0){c=1;break;}}
  if(s[0][0]+s[1][1]+s[2][2]==0) {c=1;}
  if(s[0][2]+s[1][1]+s[2][0]==0) {c=1;}
puts(c==1?"Yes":"No");
 return 0; 
}


Compiler output:
main.c: In function 'main':
main.c:8:15: error: 'g' undeclared (first use in this function)
    8 |   scanf("%d",&g);
      |               ^
main.c:8:15: note: each undeclared identifier is reported only once for each function it appears in
Language: C

#include<stdio.h>
int main(void){
  int s[2][2],i,n,b,k,s=1;
  for(i=0;i<3;i++){for(n=0;n<3;n++){scanf("%d",&s[i][n]);}}
  scanf("%d",&b);
  i=0; n=0;
  for(k=0;k<b;k++){
  scanf("%d",&g);
  for(i=0;i<3;i++){for(n=0;n<3;n++){if(s[i][n]==g) {s[i][n]=0;} }}}
  
  for(i=0;i<3;i++){
      if(s[0][i]+s[1][i]+s[2][i]==0){c=1;break;}
      if(s[i][0]+s[i][1]+s[i][2]==0){c=1;break;}}
  if(s[0][0]+s[1][1]+s[2][2]==0) {c=1;}
  if(s[0][2]+s[1][1]+s[2][0]==0) {c=1;}
puts(c=1?"Yes":"No")
 return 0; 
}


Compiler output:
main.c: In function 'main':
main.c:3:23: error: conflicting types for 's'; have 'int'
    3 |   int s[2][2],i,n,b,k,s=1;
      |                       ^
main.c:3:7: note: previous declaration of 's' with type 'int[2][2]'
    3 |   int s[2][2],i,n,b,k,s=1;
      |       ^
main.c:8:15: error: 'g' undeclared (first use in this function)
    8 |   scanf("%d",&g);
      |               ^
main.c:8:15: note: each undeclared identifier is reported only once for each function it appears in
main.c:12:38: error: 'c' undeclared (first use in this function)
   12 |       if(s[0][i]+s[1][i]+s[2][i]==0){c=1;break;}
      |                                      ^
main.c:16:21: error: expected ';' before 'return'
   16 | puts(c=1?"Yes":"No")
      |                     ^
      |                     ;
   17 |  return 0;
      |  ~~~~~~
Language: C++

#include <bits/stdc++.h>
using namespace std;
using ll =long long;
#define all(v) v.begin(),v.end()
 
int main() {
vector<vector<ll>> A(3,vector<ll>(3));
  for(ll i=0;i<3;i++) {
    for(ll j=0;j<3;j++) {
cin>>A[i][j];
    }
  }
  vector<vector<bool>> bingo(3,vector<bool>(3));
  ll N;
  cin>>N;
  for(ll i=0;i<N;i++) {
ll b;
    cin>>b;
  for(ll i=0;i<3;i++) {
for(ll j=0;j<3;j++) {
  if(A[i][j]==b) {
bingo[i][j]=true;
  }
}
  }
  
  
  bool j=false;
  for(ll i=0;i<3;i++) {
    ll count=0;
for(ll j=0;j<3;j++) {
  if(bingo[i][j]) {
count++;
  }
}
    if(count==3) {
j=true;
    }
  }
  
  
 for(ll i=0;i<3;i++) {
   ll count=0;
for(ll j=0;j<3;j++) {
  if(bingo[j][i]) {
count++;
  }
}
   
   if(count==3) {
j=true;
   }
 }
  ll count=0;
  for(ll i=0;i<3;i++) {
    if(bingo[i][i]) {
count++;
    }
  }
    
if(count==3) {
j=true;
}
  ll t=0;
  for(ll i=0;i<3;i++) {
    if(bingo[i][2-i]) {
t++;
    }
  }
if(t==3) {
j=true;
}
  
  
  if(j) {
cout<<"Yes"<<endl;
  }
else {
cout<<"No"<<endl;
}
}



  
  
  
  
  

  


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

#include <bits/stdc++.h>
using namespace std;
using ll =long long;
#define all(v) v.begin(),v.end()
 
int main() {
vector<vector<ll>> A(3,vector<ll>(3));
  for(ll i=0;i<3;i++) {
    for(ll j=0;j<3;j++) {
cin>>A[i][j];
    }
  }
  vector<vector<bool>> bingo(3,vector<bool>(3));
  ll N;
  cin>>N;
  for(ll i=0;i<N;i++) {
ll b;
    cin>>b;
  for(ll i=0;i<3;i++) {
for(ll j=0;j<3;j++) {
  if(vec[i][j]==b) {
bingo[i][j]=true;
  }
}
  }
  
  
  bool j=false;
  for(ll i=0;i<3;i++) {
    ll count=0;
for(ll j=0;j<3;j++) {
  if(bingo[i][j]) {
count++;
  }
}
    if(count==3) {
j=true;
    }
  }
  
  
 for(ll i=0;i<3;i++) {
   ll count=0;
for(ll j=0;j<3;j++) {
  if(bingo[j][i]) {
count++;
  }
}
   
   if(count==3) {
j=true;
   }
 }
  ll count=0;
  for(ll i=0;i<3;i++) {
    if(vec[i][i]) {
count++;
    }
  }
    
if(count==3) {
j=true;
}
  ll t=0;
  for(ll i=0;i<3;i++) {
    if(vec[i][2-i]) {
t++;
    }
  }
if(t==3) {
j=true;
}
  
  
  if(j) {
cout<<"Yes"<<endl;
  }
else {
cout<<"No"<<endl;
}
}



  
  
  
  
  

  

Compiler output:
a.cc: In function 'int main()':
a.cc:21:6: error: 'vec' was not declared in this scope
   21 |   if(vec[i][j]==b) {
      |      ^~~
a.cc:56:8: error: 'vec' was not declared in this scope
   56 |     if(vec[i][i]) {
      |        ^~~
a.cc:66:8: error: 'vec' was not declared in this scope
   66 |     if(vec[i][2-i]) {
      |        ^~~
a.cc:81:2: error: expected '}' at end of input
   81 | }
      |  ^
a.cc:6:12: note: to match this '{'
    6 | int main() {
      |            ^
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];
  }
  
  for (int k = 0; k < n; k++){
    for (int i = 0; i < 3; i++){
      for (int j = 0; j < 3; j++){
        if (a[i][j] == b[k]){
          a[i][j] = 1;
		}
	  }
	}
	
    int ans = 0;
	if (a[0][0] == 1 && a[0][1] == 1 && a[0][2] == 1){
      ans++;
    }
	if (a[1][0] == 1 && a[1][1] == 1 && a[1][2] == 1){
      ans++;
    }
	if (a[2][0] == 1 && a[2][1] == 1 && a[2][2] == 1){
      ans++;
    }
	if (a[0][0] == 1 && a[1][1] == 1 && a[2][2] == 1){
      ans++;
    }
	if (a[0][0] == 1 && a[1][0] == 1 && a[2][0] == 1){
      ans++;
    }
	if (a[0][1] == 1 && a[1][1] == 1 && a[2][1] == 1){
      ans++;
    }
	if (a[0][2] == 1 && a[1][2] == 1 && a[2][2] == 1){
      ans++;
    }
	if (a[0][2] == 1 && a[1][1] == 1 && a[2][0] == 1){
      ans++;
    }
	
  if (ans >= 1){
	cout << "Yes" << endl;
  }
  else{
    cout << "No" << endl;
  }
}

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

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

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

int main()
{
    ios::sync_with_stdio(0);
    cin.tie(0);
    int n;
    int counter = 0;
    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];
        }
    }
    cin >> n;
    for (int k = 0; k < n; k++)
    {
        int b;
        cin >> b;
        for (int l = 0; l < 3; l++)
        {
            for (int m = 0; m < 3; m++)
            {
                if (a[l][m] == b)
                {
                    a[l][m] = 0;
                }
                else
                {
                    lol++;
                }
            }
        }
    }
    if (1)
    {
        for (int x = 0; x < 3; x++) //hori
        {
            if (a[0][x] == 0 && a[1][x] == 0 && a[2][x] == 0)
            {
                cout << "Yes";
                return 0;
            }
        }
        for (int c = 0; c < 3; c++) //vert
        {
            if (a[c][0] == 0 && a[c][1] == 0 && a[c][2] == 0)
            {
                cout << "Yes";
                return 0;
            }
        }
        if (a[0][0] == 0 && a[1][1] == 0 && a[2][2] == 0)
        {
            cout << "Yes";
            return 0;
        }
        if (a[2][0] == 0 && a[1][1] == 0 && a[0][2] == 0)
        {
            cout << "Yes";
            return 0;
        }
    }
    cout << "No";
}

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

#include <bits/stdc++.h>
#define rep(i, n) for (int i = 0; i < (int)(n); i++)
 
using namespace std;
using ll = long long;
using P = pair<int, int>;
 
int main() {
  int a[3][3];
  rep(i,3) {
    rep(j,3) cin >> a[i][j];
  }
  int n;
  cin >> n;
  int b[n];
  bool c[3][3];
  rep(i,n) cin >> b[i];
  rep(i,3) {
      rep(j,3) {
        c[i][j] = false;
        rep(k,n) {
          
        	if(b[k] == a[i][j]) c[i][kj] = true;
        }
      }
    }
  string ans = "No";
  rep(i,3){
    if(c[i][0] && c[i][1] && c[i][2]) ans = "Yes";
    if(c[0][i] && c[1][i] && c[2][i]) ans = "Yes";
  }
  if(c[0][1] && c[1][1] && c[2][2]) ans = "Yes";
  if(c[0][2] && c[1][1] && c[2][0]) ans = "Yes";
  cout << ans << endl;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:23:42: error: 'kj' was not declared in this scope; did you mean 'k'?
   23 |                 if(b[k] == a[i][j]) c[i][kj] = true;
      |                                          ^~
      |                                          k
Language: C++

#include <bits/stdc++.h>
using namespace std;
#define ll long long
#define pb push_back
#define F first
#define S second
const int A = 2e5 + 2;
const int mod = 1e9 + 7;

int main() {
    ios_base::sync_with_stdio(0),cin.tie(0),cout.tie(0);
    int n, a[3][3];
    for (int i = 0; i < 3; i++)
        for (int j = 0; j < 3; j++)
            cin >> a[i][j];
    cin >> n;
    bool mark[3][3] = {};
    while(n--) {
        int x;
        cin >> x;
        for (int i = 0; i < 3; i++)
            for (int j = 0; j < 3; j++)
                if (x == a[i][j]) 
                    mark[i][j] = 1;
    }
    bool done = ((mark[0][0] && mark[1][1] && mark[2][2]) || (mark[0][2] && mark[1][1] && mark[2][0]));
    for (int i = 0; i < 3; i++) {
        int cnt = 0;
        for (int j = 0; j < 3; j++)
            if (mark[i][j]) 
                cnt++;
        if (cnt == 3) done = 1;
    }
    for (int j = 0; j < 3; j++)
        int cnt = 0;
        for (int i = 0; i < 3; i++) {
            if (mark[i][j]) 
                cnt++;
        if (cnt == 3) done = 1;
    }
    cout << (done ? "Yes" : "No");
    return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:37:25: error: 'j' was not declared in this scope
   37 |             if (mark[i][j])
      |                         ^
a.cc:38:17: error: 'cnt' was not declared in this scope; did you mean 'int'?
   38 |                 cnt++;
      |                 ^~~
      |                 int
a.cc:39:13: error: 'cnt' was not declared in this scope; did you mean 'int'?
   39 |         if (cnt == 3) done = 1;
      |             ^~~
      |             int
Language: C++

#include<iostream>
#include<string>
using namespace std;
int main(){
  int n = 9, c, p = 0;
  int b[c];
  int a[n];
  for(int i = 0; i < 9; i++){
      cin >> a[i];
  }
  cin >> c;
  for(int i = 0; i < c; i++){
    cin >> b[i];
  }
  for(int i = 0; i < 9; i++){
    for(int j = 0; j < c; j++){
      if(a[i] == b[j]){
        a[i] = 1;
        break;
      }
      if(i == c - 1){
      a[i] = 0;
      }
    }
  }
  if(a[4] == 1){
    if(a[0] == 1 && a[8] == 1){
      cout << "Yes\n";
      p = 1;
    }
    else if(a[1] == 1 && a[7] == 1){
      cout << "Yes\n";
      p = 1;
    }
    else if(a[2] == 1 && a[6] == 1){
      cout << "Yes\n";
      p = 1;
    }
    else if(a[3] == 1 && a[5] == 1){
      cout << "Yes\n";
      p = 1;
    }
  }
  if(p == 0){
  if(a[0] == 1 && a[1] == 1 && a[2] == 1){
    cout << "Yes\n";
      p = 1;
  }
  else if(a[6] == 1 && a[7] == 1 && a[8] == 1){
    cout << "Yes\n";
      p = 1;
  }
  else if(a[0] == 1 && a[3] == 1 && a[6] == 1){
    cout << "Yes\n";
      p = 1;
  }

Compiler output:
a.cc: In function 'int main()':
a.cc:56:4: error: expected '}' at end of input
   56 |   }
      |    ^
a.cc:44:13: note: to match this '{'
   44 |   if(p == 0){
      |             ^
a.cc:56:4: error: expected '}' at end of input
   56 |   }
      |    ^
a.cc:4:11: note: to match this '{'
    4 | int main(){
      |           ^
Language: Java

public class Main {
	public static void main(String[] args) {
		Scanner sc = new Scanner(System.in);
		int[] a = new int[9];
		for(int i = 0; i < 9; i++) {
				a[i] = 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 < 9; i++) {
			for(int j = 0; j < n; j++) {
				if(a[i] == b[j]) {
					a[i] = 0;
				}
			}
		}
		boolean bool = false;
		if(a[0] == 0 && a[1] == 0 && a[2] == 0) {
			bool = true;
		}
		if(a[3] == 0 && a[4] == 0 && a[5] == 0) {
			bool = true;
		}
		if(a[6] == 0 && a[7] == 0 && a[8] == 0) {
			bool = true;
		}
		if(a[0] == 0 && a[3] == 0 && a[6] == 0) {
			bool = true;
		}
		if(a[1] == 0 && a[4] == 0 && a[7] == 0) {
			bool = true;
		}
		if(a[2] == 0 && a[5] == 0 && a[8] == 0) {
			bool = true;
		}
		if(a[0] == 0 && a[4] == 0 && a[8] == 0) {
			bool = true;
		}
		if(a[2] == 0 && a[4] == 0 && a[6] == 0) {
			bool = true;
		}
			if(bool) {
				System.out.println("Yes");
			}else {
				System.out.println("No");
			}
		sc.close();
	}
}

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

#define _USE_MATH_DEFINES
#include  <cmath>
#include <cstdio>
#include <vector>
#include <iostream>
#include <algorithm>
#include <string>
#include<math.h>
#include<iomanip>
#include<stdio.h>
#include <stdlib.h>
#include<stdio.h>
#include <queue>
#include<map>
#include <sstream>
#include<set>
#include<stack>
#include<time.h>
typedef long long int ll;
//#include<bits/stdc++.h>


using namespace std;
 


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

    for (int i = 0; i < 3; i++) {
        for (int j = 0; j < 3; j++) {
            cin >> t[i][j];
        }
    }
    bool f[500] = {};
    int n;
    cin >> n;

    for (int i = 0; i < n; i++) {
        int a;
        cin >> a;
        f[a]++;
    }
    for (int i = 0; i < 3; i++) {
        for (int j = 0; j < 3; j++) {
            if (f[t[i][j]])t[i][j] = 0;
        }
    }
    for (int i = 0; i < 3; i++) {
        int x = 0;
        for (int j = 0; j < 3; j++) {
            x += t[i][j];
        }
        if (!x) {
            cout << "Yes" << endl;
            return 0;
        }
    }
    for (int i = 0; i < 3; i++) {
        int x = 0;
        for (int j = 0; j < 3; j++) {
            x += t[j][i];
        }
        if (!x) {
            cout << "Yes" << endl;
            return 0;
        }
    }
    for (int i = 0; i < 3; i++) {
        int x = 0;
       
            x += t[i][i];
        
        if (!x) {
            cout << "Yes" << endl;
            return 0;
        }
    }
    for (int i = 0; i < 3; i++) {
        int x = 0;

        x += t[2-i][i];

        if (!x) {
            cout << "Yes" << endl;
            return 0;
        }
    }
    cout << "No" << endl;


    return 0;

}

Compiler output:
a.cc: In function 'int main()':
a.cc:45:12: error: use of an operand of type 'bool' in 'operator++' is forbidden in C++17
   45 |         f[a]++;
      |         ~~~^
Language: C++

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

int main(){
  vector<vector<int>> bingo(3, vector<int>(3));
  for (int i = 0; i < 3; i++){
    for (int j = 0; j < 3; j++){
      cin >> bingo[i][j];
    }
  }
  //ビンゴ表の2次元配列
  
  int N;
  cin >> N;
  vector<int> num(N);
  for (int i = 0; i < N; i++){
    cin >> num[i];
  }
  //出た番号の1次元配列
  
  vector<int> vec(0);
  for (int i = 0; i < 3; i++){
    for (int j = 0; j < 3; j++){
      if (num[i] == bingo[i][j]){
        vec.push_back(10 * i + j);
      }
    }
  }
  sort(vec.begin(), vec.end());
  //出た番号と一致したビンゴ表の場所を添え字で区別
  
  if (vec == {11,12,13} || vec == {21,22,23} || vec == {31,32,33} || vec == {11,21,31} || vec == {12,22,32} || vec == {13,23,33} || vec == {11,22,33} || vec == {13,22,31}){
    cout << "Yes" << endl;
  }
  else{
    cout << "No" << endl;
  }
}

  

Compiler output:
a.cc: In function 'int main()':
a.cc:32:14: error: expected primary-expression before '{' token
   32 |   if (vec == {11,12,13} || vec == {21,22,23} || vec == {31,32,33} || vec == {11,21,31} || vec == {12,22,32} || vec == {13,23,33} || vec == {11,22,33} || vec == {13,22,31}){
      |              ^
a.cc:32:13: error: expected ')' before '{' token
   32 |   if (vec == {11,12,13} || vec == {21,22,23} || vec == {31,32,33} || vec == {11,21,31} || vec == {12,22,32} || vec == {13,23,33} || vec == {11,22,33} || vec == {13,22,31}){
      |      ~      ^~
      |             )
Language: C++

#include<bits/stdc++.h>
#define ll long long
#define fastio  ios_base::sync_with_stdio(false); cin.tie(0); cout.tie(0);
const int MOD=1000000007;
#define PI acos(-1)
using namespace std;
int main(){
    int a[3][3],b[3][3];
    for(int i=0 ; i < 3 ; i++){
    	for(int j=0 ; j < 3 ; j++)
    	cin >> b[i][j];
    	a[i][j]=0;
	}
	int q; cin >> q ;
	while(q--){
		int x; cin >> x ;
		for(int i=0 ; i < 3 ; i++){
			for(int j=0 ; j < 3 ; j++){
				if(b[i][j]==x)
				   a[i][j]=1;
			}
		}
	}
	if(a[0][0] == 1 && a[1][1]==1 && a[2][2]==1 || a[0][2] == 1 && a[1][1]==1 && a[2][0]==1)
	 cout << "Yes" << endl;
	 else if(a[0][0]==1 && a[0][1]==1 && a[0][2]==1 || a[1][0]==1 && a[1][1]==1 && a[1][2]==1 ||a[2][0]==1 && a[2][1]==1 && a[2][2]==1 ) 
	 cout << "Yes" << endl;
	 else if(a[0][0]==1 && a[1][0]==1 && a[2][0]==1 ||a[0][1]==1 && a[1][1]==1 && a[2][1]==1 ||a[0][2]==1 && a[1][2]==1 && a[2][2]==1 )
	 cout << "Yes" << endl;
	 else cout << "No";
}

Compiler output:
a.cc: In function 'int main()':
a.cc:12:14: error: 'j' was not declared in this scope
   12 |         a[i][j]=0;
      |              ^
Language: Java

import java.util.ArrayList;
import java.util.*;
import java.lang.*;
//import java.lang.*;
import java.util.regex.*;
public class CodeChef{
     public static void main(String[] args) {
        Scanner sc=new Scanner(System.in);
     List<Integer> l=new ArrayList<>();
     List<Integer> search=new ArrayList<>();
     for(int i=0;i<3;i++){
         for(int j=0;j<3;j++)
            l.add(sc.nextInt());
     }
     Collections.sort(l);
   int n=sc.nextInt();
   for(int i=0;i<n;i++)
      search.add(sc.nextInt());
   
   Collections.sort(search);
   
   for(int i=0;i<search.size();i++){
         if(search.contains(l.get(i))){
            System.out.println("Yes");
            System.exit(0);
         }else continue;
   }  
   System.out.println("NO");
   System.exit(0);
   }
}  

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

import java.util.ArrayList;
import java.util.*;
import java.lang.*;
//import java.lang.*;
import java.util.regex.*;
public class CodeChef{
     public static void main(String[] args) {
        Scanner sc=new Scanner(System.in);
     List<Integer> l=new ArrayList<>();
     List<Integer> search=new ArrayList<>();
     for(int i=0;i<3;i++){
         for(int j=0;j<3;j++)
            l.add(sc.nextInt());
     }
     Collections.sort(l);
   int n=sc.nextInt();
   for(int i=0;i<n;i++)
      search.add(sc.nextInt());
   
   Collections.sort(search);
   
   for(int i=0;i<Math.max(search.size(),l.size());i++){
         if(l.contains(search.get(i))){
            System.out.println("Yes");
            System.exit(0);
         }else{
            System.out.println("NO");
            System.exit(0);
         }
   }
   
   }
}  

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

#include <bits/stdc++.h>

using namespace std;

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

  vector<vector<int>> A(3, vector<int>(3));
  for (int i = 0; i < 3; ++i) {
    cin >> A[i][0] >> A[i][1] >> A[i][2];
  }
  int N;
  cin >> N;
  unordered_set<int> b;
  int tmp;
  for (int i = 0; i < N; ++i) {
    cin >> tmp;
    b.insert(tmp);
  }

  vector<vector<bool>> v(3, vector<bool>(3));
  for (int r = 0; r < 3; ++r) {
    for (int c = 0; c < 3; ++c) {
      if (b.contains(A.at(r).at(c))) {
        v.at(r).at(c) = true;
      } else {
        v.at(r).at(c) = false;
      }
    }
  }

  for (int r = 0; r < 3; ++r) {
    if (v[r][0] && v[r][1] && v[r][2]) {
      cout << "Yes" << endl;
      return 0;
    }
  }
  for (int c = 0; c < 3; ++c) {
    if (v[0][c] && v[1][c] && v[2][c]) {
      cout << "Yes" << endl;
      return 0;
    }
  }
  if (v[0][0] && v[1][1] && v[2][2]) {
    cout << "Yes" << endl;
    return 0;
  }
  if (v[0][2] && v[1][1] && v[2][0]) {
    cout << "Yes" << endl;
    return 0;
  }
  cout << "No" << endl;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:26:13: error: 'class std::unordered_set<int>' has no member named 'contains'
   26 |       if (b.contains(A.at(r).at(c))) {
      |             ^~~~~~~~
Language: C++

//Radhe Radhe
#include<bits/stdc++.h>//157B
#define ll long long
#define fixed cout.setf(ios::fixed);
#define rep1    for( i=0; i<n; i++)
#define Precise cout.precision(7);
using namespace std;

int main()
{
    ll n,a[3][3],i,j;
    for(i=0; i<3; i++)
        for(j=0; j<3; j++)
            cin>>a[i][j];
    ll x;
    cin>>n;
    while(n--)
    {
        cin>>x;
        for(i=0; i<3; i++)
        {
            for(j=0; j<3; j++)
            {
                if(a[i][j]==x){
                    a[i][j]=1;
                    //break;
                }
            }
        }
    }
    if(a[0][0]==1&&a[1][1]==1&&a[2][2]==1)
       return cout<<"Yes"<<endl,0;
    else if(a[0][2]==1&&a[1][1]==1&&a[2][0]==1)
       return cout<<"Yes"<<endl,0;
        for(i=0; i<3; i++)
    else if(a[i][0]==1&&a[i][1]==1&&a[i][2]==1)
       return cout<<"Yes"<<endl,0;
        for(i=0; i<3; i++)
    else if(a[0][i]==1&&a[1][i]==1&&a[2][i]==1)
       return cout<<"Yes"<<endl,0;

    else
       return cout<<"No"<<endl,0;

    return 0;
}





Compiler output:
a.cc: In function 'int main()':
a.cc:36:5: error: expected primary-expression before 'else'
   36 |     else if(a[i][0]==1&&a[i][1]==1&&a[i][2]==1)
      |     ^~~~
a.cc:39:5: error: expected primary-expression before 'else'
   39 |     else if(a[0][i]==1&&a[1][i]==1&&a[2][i]==1)
      |     ^~~~
a.cc:42:5: error: 'else' without a previous 'if'
   42 |     else
      |     ^~~~
Language: C

#include<stdio.h>
int main(){
  int a=0,b=0,c=0;
  int n[2][2];
  for(i=0;i<=8;i++)
  {
    scanf("%d",&nn[a][b]);
  }
  int m[8];
  for(i=0;i<=7;i++)
  {
    scanf("&d",&nm[c]);
  }
  for(i=0;i<=7;i++);
  if(n[0][0]==m[c]){
    n[0][0]=k
  }
  if(n[0][1]==m[c]){
    n[0][1]=k
  }
  if

Compiler output:
main.c: In function 'main':
main.c:5:7: error: 'i' undeclared (first use in this function)
    5 |   for(i=0;i<=8;i++)
      |       ^
main.c:5:7: note: each undeclared identifier is reported only once for each function it appears in
main.c:7:17: error: 'nn' undeclared (first use in this function); did you mean 'n'?
    7 |     scanf("%d",&nn[a][b]);
      |                 ^~
      |                 n
main.c:12:17: error: 'nm' undeclared (first use in this function); did you mean 'm'?
   12 |     scanf("&d",&nm[c]);
      |                 ^~
      |                 m
main.c:16:13: error: 'k' undeclared (first use in this function)
   16 |     n[0][0]=k
      |             ^
main.c:16:14: error: expected ';' before '}' token
   16 |     n[0][0]=k
      |              ^
      |              ;
   17 |   }
      |   ~           
main.c:19:14: error: expected ';' before '}' token
   19 |     n[0][1]=k
      |              ^
      |              ;
   20 |   }
      |   ~           
main.c:22: error: expected '(' at end of input
main.c:21:3: error: expected declaration or statement at end of input
   21 |   if
      |   ^~
Language: C

#include<stdio.h>
int main(){
int A[2][2]={};
int B[100]={};
int i,j,N,num,BOOL=0;
for(i=0;i<=2;i++){
  for(j=0;j<=2;j++){
scanf("%d",&A[i][j]);    
  }
}
scanf("%d",&N);
   for(i=0;i<=2;i++){
scanf("%d",&B[i]);    
  }
 for(num=0;num<=N;num++) 
 {for(i=0;i<=2;i++)
  {for(j=0;j<=2;j++)
   {
    if(A[i][j]==B[num]){A[i][j]=0;}
   }
  }
 }
 
  if(A[1][1]==0;A[2][1]==0;a[3][1]==0){BOOL=1;}
  if(A[1][2]==0;A[2][2]==0;a[3][2]==0){BOOL=1;}
  if(A[1][3]==0;A[2][3]==0;a[3][3]==0){BOOL=1;}
  if(A[1][1]==0;A[1][2]==0;a[1][3]==0){BOOL=1;}
  if(A[2][1]==0;A[2][2]==0;a[2][3]==0){BOOL=1;}
  if(A[3][1]==0;A[3][2]==0;a[3][3]==0){BOOL=1;}
  if(A[1][1]==0;A[2][2]==0;a[3][3]==0){BOOL=1;}
  if(A[1][3]==0;A[2][2]==0;a[3][1]==0){BOOL=1;}
  if(BOOL==1){printf("Yes");}
return 0;
}

Compiler output:
main.c: In function 'main':
main.c:24:16: error: expected ')' before ';' token
   24 |   if(A[1][1]==0;A[2][1]==0;a[3][1]==0){BOOL=1;}
      |     ~          ^
      |                )
main.c:25:16: error: expected ')' before ';' token
   25 |   if(A[1][2]==0;A[2][2]==0;a[3][2]==0){BOOL=1;}
      |     ~          ^
      |                )
main.c:26:16: error: expected ')' before ';' token
   26 |   if(A[1][3]==0;A[2][3]==0;a[3][3]==0){BOOL=1;}
      |     ~          ^
      |                )
main.c:27:16: error: expected ')' before ';' token
   27 |   if(A[1][1]==0;A[1][2]==0;a[1][3]==0){BOOL=1;}
      |     ~          ^
      |                )
main.c:28:16: error: expected ')' before ';' token
   28 |   if(A[2][1]==0;A[2][2]==0;a[2][3]==0){BOOL=1;}
      |     ~          ^
      |                )
main.c:29:16: error: expected ')' before ';' token
   29 |   if(A[3][1]==0;A[3][2]==0;a[3][3]==0){BOOL=1;}
      |     ~          ^
      |                )
main.c:30:16: error: expected ')' before ';' token
   30 |   if(A[1][1]==0;A[2][2]==0;a[3][3]==0){BOOL=1;}
      |     ~          ^
      |                )
main.c:31:16: error: expected ')' before ';' token
   31 |   if(A[1][3]==0;A[2][2]==0;a[3][1]==0){BOOL=1;}
      |     ~          ^
      |                )
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: In function 'int main()':
a.cc:37:7: error: 'return0' was not declared in this scope
   37 |       return0;
      |       ^~~~~~~
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];8}
  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: In function 'int main()':
a.cc:11:21: error: expected ';' before '}' token
   11 |       cin>>A[i][j];8}
      |                     ^
      |                     ;
a.cc:37:3: error: 'return0' was not declared in this scope
   37 |   return0;
      |   ^~~~~~~
Language: C++

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

int main () {
  int N , B[N]  , A[3][3] ; 
  int C[3][3] = 0  ; 

  
  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 < 3 ; i++){
    for (int j = 0 ; j < 3 ; j++){
      for(int k = 0 ; k < N ; k++){
      	if(A[i][j] == B[k]){
        C[i][j] = 1 ; 
        }
      }
    }
  }
  
  for(int i = 0 ; i < 3 ; i++){
    if(A[0][i] * A[1][i] * A[2][i] == 1){
      cout << "Yes" << endl ; 
      return 0 ; 
    }
    
    else if(A[i][0] * A[i][0] * A[i][0] == 1){
      cout << "Yes" << endl ; 
      return 0 ; 
    }
    
    else if(A[0][0] * A[1][1] * A[2][2] == 1){
      cout << "Yes" << endl ; 
      return 0 ; 
    }
    
    else if(A[0][2] * A[1][1] * A[2][0] == 1){
      cout << "Yes" << endl ; 
      return 0 ; 
    }
    
  }
  
  cout << "No" << endl ; 
  
  
}

Compiler output:
a.cc: In function 'int main()':
a.cc:6:17: error: array must be initialized with a brace-enclosed initializer
    6 |   int C[3][3] = 0  ;
      |                 ^
Language: C++

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

typedef long long ll;
#define ar array
#define vi vector<int>
#define vvi vector<vector<int>>
#define vll vector<long long>
#define all(x) (x).begin(), (x).end()
#define en '\n'
#define FILL(x, v) memset(x, v, sizeof(x))
#define pb push_back
#define fast                     \
	ios::sync_with_stdio(false); \
	cin.tie(NULL);               \
	cout.tie(NULL);
#define F_OR(i, a, b, s) for (int i = (a); ((s) > 0 ? i < (b) : i > (b)); i += (s))
#define F_OR1(e) F_OR(i, 0, e, 1)
#define F_OR2(i, e) F_OR(i, 0, e, 1)
#define F_OR3(i, b, e) F_OR(i, b, e, 1)
#define F_OR4(i, b, e, s) F_OR(i, b, e, s)
#define GET5(a, b, c, d, e, ...) e
#define F_ORC(...) GET5(__VA_ARGS__, F_OR4, F_OR3, F_OR2, F_OR1)
#define FOR(...)       \
	F_ORC(__VA_ARGS__) \
	(__VA_ARGS__)

#define E_ACH2(x, a) for (auto &x : a)
#define E_ACH3(x, y, a) for (auto &[x, y] : a)
#define E_ACH4(x, y, z, a) for (auto &[x, y, z] : a)
#define E_ACHC(...) GET5(__VA_ARGS__, E_ACH4, E_ACH3, E_ACH2)
#define EACH(...)       \
	E_ACHC(__VA_ARGS__) \
	(__VA_ARGS__)

template <typename A, typename B>
inline void chmin(A &a, B b)
{
	if (a > b)
		a = b;
}
template <typename A, typename B>
inline void chmax(A &a, B b)
{
	if (a < b)
		a = b;
}

int main()
{
	fast;
	int a[3][3];
	FOR(3)
	FOR(j, 3)
	cin >> a[i][j];
	int n;
	cin >> n;
	FOR(k, n)
	{
		int t;
		cin >> t;
		FOR(i, 3)
		FOR(j, 3)
		if (a[i][j] == t)
			a[i][j] = -1;
	}
	FOR(3)
	{
		int cnt = 0;
		FOR(j, 3)
		{
			if (a[i][j] == -1)
			{
				cnt++;
			}
			if (cnt == 3)
			{
				cout << "Yes";
				return 0;
			}
		}
		FOR(3)
		{
			int cnt = 0;
			FOR(j, 3)
			{
				if (a[j][i] == -1)
					cnt++;
			}
			if (cnt == 3)
			{
				cout << "Yes";
				return 0;
			}
		}
		FOR(3)
		{
			if (a[i][i] != -1)
				break;
			if (i == 2)
			{
				cout << "Yes";
				return 0;
			}
		}
		for (int i = 2; ~i; --i)
		{
			if (a[i][2 - i] != -1)
				break;
			if (i == 2)
			{
				cout << "Yes";
				return 0;
			}
		}
		cout << "No";
		return 0;
	}

Compiler output:
a.cc: In function 'int main()':
a.cc:119:10: error: expected '}' at end of input
  119 |         }
      |          ^
a.cc:51:1: note: to match this '{'
   51 | {
      | ^