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

#include<iostream>
using namespace std;

int main(){
  int a[9];
  for(int i=0;i<9;i++) cin >> a[i];
  int n;
  cin >> n;
  
  int b;
  for(int i=0;i<n;i++){
    cin >> b;
    for(int j=0;j<9;j++){
      if(b==a[j]) a[j] = 0;
    }
  }
  //
  for(int i=0;i<9;i+=3){
    if(a[i]==0 && a[i+1]==0 a[i+2]==0){
      cout << "Yes" << endl;
      return 0;
    }
  }
  
  for(int i=0;i<3;i++){
    if(a[i]==0 && a[i+3]==0 a[i+6]==0){
      cout << "Yes" << endl;
      return 0;
    }
  }
  
  if(a[0]==0 && a[4]==0 && a[8]==0){
    cout << "Yes" << endl;
      return 0;
  }else if(a[2]==0 && a[4]==0 && a[6]==0){
    cout << "Yes" << endl;
    return 0;
  }
  cout << "No" << endl;
  return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:19:28: error: expected ')' before 'a'
   19 |     if(a[i]==0 && a[i+1]==0 a[i+2]==0){
      |       ~                    ^~
      |                            )
a.cc:26:28: error: expected ')' before 'a'
   26 |     if(a[i]==0 && a[i+3]==0 a[i+6]==0){
      |       ~                    ^~
      |                            )
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++){
      Sheet[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;
  
  
}


Compiler output:
a.cc: In function 'int main()':
a.cc:14:32: error: 'b' was not declared in this scope
   14 |   for (int i=0;i<N;i++) cin >> b[i];
      |                                ^
a.cc:18:7: error: 'Sheet' was not declared in this scope
   18 |       Sheet[i][j]=false;
      |       ^~~~~
a.cc:20:23: error: 'b' was not declared in this scope
   20 |         if(A[i][j] == b[k]) appear[i][j] = true;
      |                       ^
Language: C++

#include <bits/stdc++.h>
using namespace std;
int N,A[3][3],B[10];
bool Sheet[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++){
      Sheet[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;
  
  
}


Compiler output:
a.cc: In function 'int main()':
a.cc:14:32: error: 'b' was not declared in this scope
   14 |   for (int i=0;i<N;i++) cin >> b[i];
      |                                ^
a.cc:20:23: error: 'b' was not declared in this scope
   20 |         if(A[i][j] == b[k]) appear[i][j] = true;
      |                       ^
a.cc:20:29: error: 'appear' was not declared in this scope
   20 |         if(A[i][j] == b[k]) appear[i][j] = true;
      |                             ^~~~~~
a.cc:28:8: error: 'appear' was not declared in this scope
   28 |     if(appear[i][0] and appear[i][1] and appear[i][2]) ANS = "Yes";
      |        ^~~~~~
a.cc:31:8: error: 'appear' was not declared in this scope
   31 |     if(appear[0][i] and appear[1][i] and appear[2][i]) ANS = "Yes";
      |        ^~~~~~
a.cc:33:6: error: 'appear' was not declared in this scope
   33 |   if(appear[0][0] and appear[1][1] and appear[2][2]) ANS = "Yes";
      |      ^~~~~~
a.cc:34:6: error: 'appear' was not declared in this scope
   34 |   if(appear[0][2] and appear[1][1] and appear[2][0]) ANS = "Yes";
      |      ^~~~~~
Language: C++

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

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

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

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

int A[3][3];
bool ok[3][3];

int main(){
  for (int i=0;i<3;++i){
    for (int j=0;j<3;++j){
      cin >> A[i][j];
    }
  }
  int n;
  cin >> n;
  for (int i=0;i<n;++i){
    int b;
    cin >> b;
    for (int j=0;j<3;++j){
      for (int k=0;k<3;++k){
        if(A[j][k] == b) ok[j][k] = true;
      }
    }
  }
  //ここまででマルバツの配列に変換できた
  if (ok[0][2] && ok[1][1] && ok[2][0]) bingo = true;
  
  bool bingo = false;
  for (int i=0;i<3;++i){
    int cnt = 0;
    for (int j=0;j<3;++j) if(ok[i][j]) cnt++;
    if (cnt >= 3) bingo = true;
  }
  for (int j=0;j<3;++j){
    int cnt = 0;
    for (int i=0;i<3;++i) if(ok[i][j]) cnt++;
    if (cnt >= 3) bingo = true;
  }
  //ここまでで縦横
  int cnt = 0;
  for (int i=0;i<3;++i){
    if(ok[i][i]) cnt++;
    if (cnt >= 3) bingo = true;
  }
  //ここまでで縦横斜め

  if (bingo) cout << "Yes" << endl;
  else cout << "No" << endl;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:25:41: error: 'bingo' was not declared in this scope
   25 |   if (ok[0][2] && ok[1][1] && ok[2][0]) bingo = true;
      |                                         ^~~~~
Language: C++

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

int a[3][3]={0};

int main(){
  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])


Compiler output:
a.cc: In function 'int main()':
a.cc:15:27: error: expected statement at end of input
   15 |         if (a[i][j]==b[k])
      |                           ^
a.cc:15:27: error: expected '}' at end of input
a.cc:14:28: note: to match this '{'
   14 |       for (int j=0;j<3;++j){
      |                            ^
a.cc:15:27: error: expected '}' at end of input
   15 |         if (a[i][j]==b[k])
      |                           ^
a.cc:13:26: note: to match this '{'
   13 |     for (int i=0;i<3;++i){
      |                          ^
a.cc:15:27: error: expected '}' at end of input
   15 |         if (a[i][j]==b[k])
      |                           ^
a.cc:12:24: note: to match this '{'
   12 |   for (int k=0;k<n;++k){
      |                        ^
a.cc:15:27: error: expected '}' at end of input
   15 |         if (a[i][j]==b[k])
      |                           ^
a.cc:6:11: note: to match this '{'
    6 | int main(){
      |           ^
Language: C++

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

const string YES = "Yes";
const string NO = "No";

int solve(std::vector<std::vector<long long>> A, long long N, std::vector<long long> b)
{
    std::vector<std::vector<long long>> match(3, std::vector<long long>(3));
    match = {0};

    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])
                {
                    match[i][j] = 1;
                }
            }
        }
    }

    for (int i = 0; i < 3; i++)
    {
        if ((match[0][i] == 1 && match[1][i] == 1 && match[2][i] == 1) || (match[i][0] == 1 && match[i][1] == 1 && match[i][2] == 1) || (match[1][1] == 1 && match[2][2] == 1 && match[0][0] == 1))
        {
            cout << YES << endl;
            return 0;
        }
    }

    cout << NO << endl;
    return 0;
}

// Generated by 1.1.6 https://github.com/kyuridenamida/atcoder-tools  (tips: You use the default template now. You can remove this line by using your custom template)
int main()
{
    std::vector<std::vector<long long>> A(3, std::vector<long long>(3));
    for (int i = 0; i < 3; i++)
    {
        for (int j = 0; j < 3; j++)
        {
            scanf("%lld", &A[i][j]);
        }
    }
    long long N;
    scanf("%lld", &N);
    std::vector<long long> b(N);
    for (int i = 0; i < N; i++)
    {
        scanf("%lld", &b[i]);
    }
    solve(std::move(A), N, std::move(b));
    return 0;
}


Compiler output:
a.cc: In function 'int solve(std::vector<std::vector<long long int> >, long long int, std::vector<long long int>)':
a.cc:10:15: error: converting to 'std::vector<std::vector<long long int> >' from initializer list would use explicit constructor 'std::vector<_Tp, _Alloc>::vector(size_type, const allocator_type&) [with _Tp = std::vector<long long int>; _Alloc = std::allocator<std::vector<long long int> >; size_type = long unsigned int; allocator_type = std::allocator<std::vector<long long int> >]'
   10 |     match = {0};
      |               ^
In file included from /usr/include/c++/14/vector:66,
                 from /usr/include/c++/14/functional:64,
                 from /usr/include/x86_64-linux-gnu/c++/14/bits/stdc++.h:53,
                 from a.cc:1:
/usr/include/c++/14/bits/stl_vector.h:556:7: note: 'std::vector<_Tp, _Alloc>::vector(size_type, const allocator_type&) [with _Tp = std::vector<long long int>; _Alloc = std::allocator<std::vector<long long int> >; size_type = long unsigned int; allocator_type = std::allocator<std::vector<long long int> >]' declared here
  556 |       vector(size_type __n, const allocator_type& __a = allocator_type())
      |       ^~~~~~
Language: C++

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

const string YES = "Yes";
const string NO = "No";

int solve(std::vector<std::vector<long long>> A, long long N, std::vector<long long> b)
{
    std::vector<std::vector<long long>> match(3, std::vector<long long>(3));
    match = { 0 }

    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])
                {
                    match[i][j] = 1;
                }
            }
        }
    }

    for (int i = 0; i < 3; i++)
    {
        if ((match[0][i] == 1 && match[1][i] == 1 && match[2][i] == 1) || (match[i][0] == 1 && match[i][1] == 1 && match[i][2] == 1) || (match[1][1] == 1 && match[2][2] == 1 && match[0][0] == 1))
        {
            cout << YES << endl;
            return 0;
        }
    }

    cout << NO << endl;
    return 0;
}

// Generated by 1.1.6 https://github.com/kyuridenamida/atcoder-tools  (tips: You use the default template now. You can remove this line by using your custom template)
int main()
{
    std::vector<std::vector<long long>> A(3, std::vector<long long>(3));
    for (int i = 0; i < 3; i++)
    {
        for (int j = 0; j < 3; j++)
        {
            scanf("%lld", &A[i][j]);
        }
    }
    long long N;
    scanf("%lld", &N);
    std::vector<long long> b(N);
    for (int i = 0; i < N; i++)
    {
        scanf("%lld", &b[i]);
    }
    solve(std::move(A), N, std::move(b));
    return 0;
}


Compiler output:
a.cc: In function 'int solve(std::vector<std::vector<long long int> >, long long int, std::vector<long long int>)':
a.cc:10:17: error: converting to 'std::vector<std::vector<long long int> >' from initializer list would use explicit constructor 'std::vector<_Tp, _Alloc>::vector(size_type, const allocator_type&) [with _Tp = std::vector<long long int>; _Alloc = std::allocator<std::vector<long long int> >; size_type = long unsigned int; allocator_type = std::allocator<std::vector<long long int> >]'
   10 |     match = { 0 }
      |                 ^
In file included from /usr/include/c++/14/vector:66,
                 from /usr/include/c++/14/functional:64,
                 from /usr/include/x86_64-linux-gnu/c++/14/bits/stdc++.h:53,
                 from a.cc:1:
/usr/include/c++/14/bits/stl_vector.h:556:7: note: 'std::vector<_Tp, _Alloc>::vector(size_type, const allocator_type&) [with _Tp = std::vector<long long int>; _Alloc = std::allocator<std::vector<long long int> >; size_type = long unsigned int; allocator_type = std::allocator<std::vector<long long int> >]' declared here
  556 |       vector(size_type __n, const allocator_type& __a = allocator_type())
      |       ^~~~~~
a.cc:10:18: error: expected ';' before 'for'
   10 |     match = { 0 }
      |                  ^
      |                  ;
   11 | 
   12 |     for (int i = 0; i < 3; i++)
      |     ~~~           
a.cc:12:21: error: 'i' was not declared in this scope
   12 |     for (int i = 0; i < 3; i++)
      |                     ^
Language: C

#include <stdio.h>

int main(){
	int N,x;
	int flag = 0;
	int A[3][3];
	for(int i=0;i<i++){
		scanf("%d %d %d",&A[i][0],&A[i][1],%A[i][2]);
	}
	scanf("%d",&N);
	for(int i=0;i<N;i++){
		scanf("%d",&x);
		for(int =0;j<3;j++){
			for(int k=0;k<3;k++){
				if(A[j][k] == x)
					A[j][k] = 0;
			}
		}
	}
	for(int i=0;i<3;i++){
		if(A[0][i]==A[1][i]&&A[1][i]==A[2][i]&&A[2][i]==0)
			flag = 1;
	}
	for(int i=0;i<3;i++){
		if(A[i][0]==A[i][1]&&A[i][1]==A[i][2]&&A[i][2]==0){
			flag = 1;
		}
	}
	if(A[0][0]==A[1][1]&&A[1][1]==A[2][2]&&A[2][2]==0){
  		flag = 1;
  	}
  	if(A[0][2]==A[1][1]&&A[1][1]==A[2][0]&&A[2][0]==0){
      	flag = 1;
    }
    if(flag==1)
    	printf("Yes");
    else
    	printf("No");
}

Compiler output:
main.c: In function 'main':
main.c:7:26: error: expected ';' before ')' token
    7 |         for(int i=0;i<i++){
      |                          ^
      |                          ;
main.c:8:52: error: expected expression before '%' token
    8 |                 scanf("%d %d %d",&A[i][0],&A[i][1],%A[i][2]);
      |                                                    ^
main.c:13:25: error: expected identifier or '(' before '=' token
   13 |                 for(int =0;j<3;j++){
      |                         ^
main.c:13:28: error: 'j' undeclared (first use in this function)
   13 |                 for(int =0;j<3;j++){
      |                            ^
main.c:13:28: note: each undeclared identifier is reported only once for each function it appears in
Language: C++

#include <bits/stdc++.h>
using namespace std;
int main(){
  int A[3][3] = {};
  for(int i=0; i<3; i++)for(j=0; j<3; j++){
    cin>>A[i][j];
  }
  int N;
  cin>>N;

  int b;
  for(int i=0; i<N; i++){
    cin>>b;
    for(int i=0; i<3; i++)for(j=0; j<3; j++){
      A[i][j] *= (A[i][j]==b? 0: 1);
    }
  }


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

Compiler output:
a.cc: In function 'int main()':
a.cc:5:29: error: 'j' was not declared in this scope
    5 |   for(int i=0; i<3; i++)for(j=0; j<3; j++){
      |                             ^
a.cc:14:31: error: 'j' was not declared in this scope
   14 |     for(int i=0; i<3; i++)for(j=0; j<3; j++){
      |                               ^
Language: C++

#include <bits/stdc++.h>
using namespace std;
int main(){
  int A[3][3] = {};
  for(int i=0; i<3; i++)for(j=0; j<3; j++){
    cin>>A[i][j];
  }
  int N;
  cin>>N;

  int b;
  for(int i=0; i<N; i++){
    cin>>b;
    for(int i=0; i<3; i++)for(j=0; j<3; j++){
      A[i][j] *= (A[i][j]==b? 0: 1);
    }
  }


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

Compiler output:
a.cc: In function 'int main()':
a.cc:5:29: error: 'j' was not declared in this scope
    5 |   for(int i=0; i<3; i++)for(j=0; j<3; j++){
      |                             ^
a.cc:14:31: error: 'j' was not declared in this scope
   14 |     for(int i=0; i<3; i++)for(j=0; j<3; j++){
      |                               ^
a.cc:23:7: error: return-statement with no value, in function returning 'int' [-fpermissive]
   23 |       return;
      |       ^~~~~~
a.cc:29:7: error: return-statement with no value, in function returning 'int' [-fpermissive]
   29 |       return;
      |       ^~~~~~
a.cc:34:5: error: return-statement with no value, in function returning 'int' [-fpermissive]
   34 |     return;
      |     ^~~~~~
a.cc:38:5: error: return-statement with no value, in function returning 'int' [-fpermissive]
   38 |     return;
      |     ^~~~~~
a.cc:41:3: error: return-statement with no value, in function returning 'int' [-fpermissive]
   41 |   return;
      |   ^~~~~~
Language: C++

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

int main() {
  vector<int> a(9);
  for(int i=0; i<9; i++){
    cin >> a.at(i);
  }
  
  int n;
  cin >> n;
  
  vector<int> b(n);
  vector<int> c(n);
  
  fot(int i=0; i<n; i++){
    cin >> b.at(i);
    	for(int j=0; j<9; j++){
          if(a.at(j) == b.at(i)){
            c.at(j)++;
          }
        }
    
  }
  
  int count=0;
  
  for(int i=0; i<=6; i+=3){
    if(a.at(i)*a.at(i+1)*a.at(i+2) != 0){
      count++;
    }
  }
  
  for(int i=0; i<=2; i++){
    if(a.at(i)*a.at(i+3)*a.at(i+6) != 0){
      count++;
    }
  }
  
  if(a.at(0)*a.at(4)*a.at(8) != 0){
      count++;
  }
  
  if(a.at(2)*a.at(4)*a.at(6) != 0){
      count++;
  }
  
  if(count > 0){
    cout << "Yes" << endl;
  }
  else{
    cout << "No" << endl;
  }
	return 0;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:16:7: error: expected primary-expression before 'int'
   16 |   fot(int i=0; i<n; i++){
      |       ^~~
a.cc:16:16: error: 'i' was not declared in this scope
   16 |   fot(int i=0; i<n; i++){
      |                ^
Language: C++

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

int A[3][3],B[10];
int N;
bool bingo[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<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}
            }
        }
    }
    for(int i=0;i<3;i++){
        if(bingo[0][i] and bingo[1][i] and bingo[2][i])cout<<"Yes"<<endl;
    }
    for(int i=0;i<3;i++){
        if(bingo[i][0] and bingo[i][1] and bingo[i][2])cout<<"Yes"<<endl;
        if(bingo[0][0] and bingo[1][1] and bingo[2][2])cout<<"Yes"<<endl;
        if(bingo[2][0] and bingo[1][1] and bingo[0][2])cout<<"Yes"<<endl;
        else cout<<"No"<<endl;
    }
}

Compiler output:
a.cc: In function 'int main()':
a.cc:11:18: error: 'a' was not declared in this scope
   11 |             cin>>a[i][j];
      |                  ^
a.cc:22:20: error: 'a' was not declared in this scope
   22 |                 if(a[i][j]==b[k]){bingo[i][j]=true}
      |                    ^
a.cc:22:29: error: 'b' was not declared in this scope
   22 |                 if(a[i][j]==b[k]){bingo[i][j]=true}
      |                             ^
a.cc:22:51: error: expected ';' before '}' token
   22 |                 if(a[i][j]==b[k]){bingo[i][j]=true}
      |                                                   ^
      |                                                   ;
Language: C++

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

int main(){
  int a[3][3],n;
  bool ad[3][3];
  for(int i=0;i<3;i++){
    for(int j=0;j<3;j++){
      cin>>a[i][j];
    }
  }
  vector<int>d(n);
  for(int i=0;i<n;i++){
    cin>>d[i];
  }
  for(int i=0;i<3;i++){
    for(int j=0;j<3;i++){
      ad[i][j]=false;
      for(int k=0;k<n;k++){
        if(a[i][j]==d[k]){
          ad[i][j]=true;
        }
      }
    }
  }
  string x="No"
  for(int i=0;i<3;i++){
    if(ad[0][i]&&ad[1][i]&&ad[2][i]){
      x="Yes";
    }
    else if(ad[i][0]&&ad[i][1]&&ad[i][2]){
      x="Yes";
    }
    else if(ad[0][0]&&ad[1][1]&&ad[2][2]){
      x="Yes";
    }
    else if(ad[1][3]&&ad[2][2]&&ad[3][1]){
      x="Yes";
    }
  }
  cout<<x<<endl;
}
      
  
  
    
    
    
  
  


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

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

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


Compiler output:
a.cc: In function 'int main()':
a.cc:20:21: error: 'b' was not declared in this scope
   20 |         if(a[i][j]==b[k]){
      |                     ^
a.cc:27:3: error: expected ',' or ';' before 'for'
   27 |   for(int i=0;i<3;i++){
      |   ^~~
a.cc:27:15: error: 'i' was not declared in this scope
   27 |   for(int i=0;i<3;i++){
      |               ^
Language: C++

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

int main(){
  int n,count=0;
  vectot<vector<int > > a(3,3);
  for(int i;i<3;i++){
    for(int j;j<3;j++){
      cin >> a[i][j];
    }
  }
  cin >> n;
  for(int k;k<n;k++){
    int l;
    cin >> l;
    for(int i;i<3;i++){
      for(int j;j<3;j++){
        if(l==a[i][j]){
          a[i][j]=0;
        }
      }
    }
  }
  for(int i;i<3;i++){
    if(a[i][1]==0 && a[i][2]==0 && a[i][0]==0){
      count++;
    }
    else if(a[1][i]==0 && a[2][i]==0 && a[0][i]==0){
      count++;
    }
  }
  if(a[1][1]==0 && a[2][2]==0 && a[0][0]==0){
    count++;
  }
  if(a[2][0]==0 && a[1][1]==0 && a[0][2]==0){
    count++;
  }
  if(count>0){
    cout << "Yes";
  }
  else{
    cout << "No";
  }
  return 0;
}
        

Compiler output:
a.cc: In function 'int main()':
a.cc:7:3: error: 'vectot' was not declared in this scope
    7 |   vectot<vector<int > > a(3,3);
      |   ^~~~~~
a.cc:7:23: error: expected primary-expression before '>' token
    7 |   vectot<vector<int > > a(3,3);
      |                       ^
a.cc:7:25: error: 'a' was not declared in this scope
    7 |   vectot<vector<int > > a(3,3);
      |                         ^
Language: C++

#include <bits/stdc++.h>
#include <algorithm>
using namespace std;
typedef long long int ll;
typedef unsigned long long int ull;
#define DEBUG

#define _GLIBCXX_DEBUG
#ifdef DEBUG
#define s(...) show(__VA_ARGS__);
#define sl(...) show(__VA_ARGS__);cout<<endl;
#else
#define s(...)
#define sl(...)
#endif
void show() {}
template <class Head,class... Args>void show(Head t,Args... args){std::cout<<t<<" ";show(args...);}
#define REP(i, n) for(ll i = 1; i <= n; i++)
#define REPR(i, n) for(ll i = n; i >= 1; i--)
#define FOR(i, m, n) for(ll i = m; i <= n; i++)
#define INF 1e9+123
#define ALL(v) v.begin(), v.end()

int main(){
    int N;
    cin>>N;
    vector<int> S(N+10);
    REP(k,N){
        cin>>S[k];
        
    }
    int sumy=0,sumt=0;
    REP(i,3){
        REP(j,3){
            sumy+=A[i][j];
            sumt+=A[j][i];
        }
        if(sumy==-3||sumt==-3){
            cout<<"Yes";
            return 0;
        }
        sumt=0;sumy=0;
    }
    REP(i,3){
        sumy+=A[i][i];
        sumt+=A[4-i][i];
    }
    if(sumy==-3||sumt==-3){
        cout<<"Yes";
        return 0;
    }
    cout<<"No";
    //if(equal(D.begin(), D.end()-1, K.begin()))cout<<"Yes";else cout<<"No";
    return 0;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:35:19: error: 'A' was not declared in this scope
   35 |             sumy+=A[i][j];
      |                   ^
a.cc:45:15: error: 'A' was not declared in this scope
   45 |         sumy+=A[i][i];
      |               ^
Language: Java

import java.util.Scanner;
 
class Main{
 public static void main(String args[]){
   Scanner sc = new Scanner(System.in);
   int[][] a=new int[3][3];
   for(int i=0;i<3;i++) {
	   for(int j=0;j<3;j++) {
		   a[i][j]=sc.nextInt();
	   }
   }
   int n=sc.nextInt();
   int[] b=new int[n];
   for(int k=0;k<n;k++){
     int b[k]=sc.nextInt();
   for(int x=0;x<3;x++) {
	   for(int y=0;y<3;y++) {
		   if(b[k]==a[x][y]){
             a[x][y]=0;
           }
	   }
   }
   }
   if((a[0][0]==a[0][1]&&a[0][1]==a[0][2])||(a[1][0]==a[1][1]&&a[1][1]==a[1][2])||(a[2][0]==a[2][1]&&a[2][1]==a[2][2])||(a[0][0]==a[1][0]&&a[1][0]==a[2][0])||(a[0][1]==a[1][1]&&a[2][1]==a[1][1])||(a[0][2]==a[1][2]&&a[1][2]==a[2][2])||(a[0][0]==a[1][1]&&a[1][1]==a[2][2])||(a[0][2]==a[1][1]&&a[1][1]==a[2][0])){
      System.out.print("Yes");
    }else{
      System.out.print("No");
    }
 }
}

Compiler output:
Main.java:15: error: ']' expected
     int b[k]=sc.nextInt();
           ^
Main.java:15: error: ';' expected
     int b[k]=sc.nextInt();
            ^
2 errors
Language: C++

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

int main(){
  int N , A[3][3] , B[10];
  bool a[3][3]= {false};//定義づけ
  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<3;j++){
      for(int k =0;k<3;k++){
        if(B[i]==A[j][k]) a[j][k] = true;
      }
    
  }
    bool ans = false;//フラグ
  
  if(a[1][1]&&a[1][2]&&a[1][3]) ans = true;
  if(a[2][1]&&a[2][2]&&a[2][3]) ans = true;
  if(a[3][1]&&a[3][2]&&a[3][3]) ans = true;
  if(a[1][1]&&a[2][1]&&a[3][1]) ans = true;
  if(a[1][2]&&a[2][2]&&a[3][2]) ans = true;
  if(a[1][3]&&a[2][3]&&a[3][3]) ans = true;
  if(a[1][1]&&a[2][2]&&a[3][3]) ans = true; 
  if(a[1][3]&&a[2][2]&&a[3][1]) ans = true;
    
    if(ans) cout << "Yes" << endl;
    else cout << "No" << endl;
    
  }


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

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

int main(){
  int N , A[3][3] , B[10];
  bool a[3][3]=false;//定義づけ
  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<3;j++){
      for(int k =0;k<3;k++){
        if(B[i]==A[j][k]) a[j][k] = true;
      }
    
  }
    bool ans = false;//フラグ
  
  if(a[1][1]&&a[1][2]&&a[1][3]) ans = true;
  if(a[2][1]&&a[2][2]&&a[2][3]) ans = true;
  if(a[3][1]&&a[3][2]&&a[3][3]) ans = true;
  if(a[1][1]&&a[2][1]&&a[3][1]) ans = true;
  if(a[1][2]&&a[2][2]&&a[3][2]) ans = true;
  if(a[1][3]&&a[2][3]&&a[3][3]) ans = true;
  if(a[1][1]&&a[2][2]&&a[3][3]) ans = true; 
  if(a[1][3]&&a[2][2]&&a[3][1]) ans = true;
    
    if(ans) cout << "Yes" << endl;
    else cout << "No" << endl:
    
  }

Compiler output:
a.cc: In function 'int main()':
a.cc:6:16: error: array must be initialized with a brace-enclosed initializer
    6 |   bool a[3][3]=false;//定義づけ
      |                ^~~~~
a.cc:34:30: error: expected ';' before ':' token
   34 |     else cout << "No" << endl:
      |                              ^
      |                              ;
a.cc:36:4: error: expected '}' at end of input
   36 |   }
      |    ^
a.cc:4:11: note: to match this '{'
    4 | int main(){
      |           ^
Language: C

#incldue <stdio.h>
int main()
{
  int row1[3][2];
  int row2[3][2];
  int row3[3][2];
  int N;
  int called[10];
  int i, j;
  int flag = 0;
  for(i = 0; i < 3; ++i){
    row1[i][1] = 0;
    row2[i][1] = 0;
    row3[i][1] = 0;
  }
  scanf("%d %d %d", &row1[0][0], &row1[1][0], &row1[2][0]);
  scanf("%d %d %d", &row2[0][0], &row2[1][0], &row2[2][0]);
  scanf("%d %d %d", &row3[0][0], &row3[1][0], &row3[2][0]);
  scanf("%d", &N);
  for(i = 0; i < N; ++i){
    scanf("%d", &called[i]);
    
    for(j = 0; j < 3; ++j){
      if(called[i] == row1[j][0])
        row1[j][1] = 1;
      else if(called[i] == row2[j][0])
        row2[j][1] = 1;
      else if(called[i] == row3[j][0])
        row3[j][1] = 1;
    }
  }
  
  flag |= ((row1[0][1] + row1[1][1] + row1[2][1]) == 3) ? 1 : 0;
  flag |= ((row2[0][1] + row2[1][1] + row2[2][1]) == 3) ? 1 : 0;
  flag |= ((row3[0][1] + row3[1][1] + row3[2][1]) == 3) ? 1 : 0;
  flag |= ((row1[0][1] + row2[1][1] + row3[2][1]) == 3) ? 1 : 0;
  flag |= ((row3[0][1] + row2[1][1] + row1[2][1]) == 3) ? 1 : 0;
  
  if(flag == 1)
    printf("Yes\n");
  else
    printf("No\n");
  return 0;
}
  

Compiler output:
main.c:1:2: error: invalid preprocessing directive #incldue; did you mean #include?
    1 | #incldue <stdio.h>
      |  ^~~~~~~
      |  include
main.c: In function 'main':
main.c:16:3: error: implicit declaration of function 'scanf' [-Wimplicit-function-declaration]
   16 |   scanf("%d %d %d", &row1[0][0], &row1[1][0], &row1[2][0]);
      |   ^~~~~
main.c:1:1: note: include '<stdio.h>' or provide a declaration of 'scanf'
  +++ |+#include <stdio.h>
    1 | #incldue <stdio.h>
main.c:16:3: warning: incompatible implicit declaration of built-in function 'scanf' [-Wbuiltin-declaration-mismatch]
   16 |   scanf("%d %d %d", &row1[0][0], &row1[1][0], &row1[2][0]);
      |   ^~~~~
main.c:16:3: note: include '<stdio.h>' or provide a declaration of 'scanf'
main.c:40:5: error: implicit declaration of function 'printf' [-Wimplicit-function-declaration]
   40 |     printf("Yes\n");
      |     ^~~~~~
main.c:40:5: note: include '<stdio.h>' or provide a declaration of 'printf'
main.c:40:5: warning: incompatible implicit declaration of built-in function 'printf' [-Wbuiltin-declaration-mismatch]
main.c:40:5: note: include '<stdio.h>' or provide a declaration of 'printf'
main.c:42:5: warning: incompatible implicit declaration of built-in function 'printf' [-Wbuiltin-declaration-mismatch]
   42 |     printf("No\n");
      |     ^~~~~~
main.c:42:5: note: include '<stdio.h>' or provide a declaration of 'printf'
Language: C++

#include <bits/stdc++.h>
using namespace std;
//型に気を付けよう
//a=61
#define rep1(i,n) for(int i=1;i<=n;i++)
#define rep(i,n) for(int i=0;i<n;i++)
typedef vector<int> veci;
typedef long long  ll;
typedef long double  ld;
typedef pair<int,int> pairii;
const double pi=3.1415926535;
const ll  mod=1000000007;
//桁数指定　cout << fixed << setprecision(2)
int main() {
  veci m(9,0);
  veci v(10);
  rep1(i,9){
    cin>>v[i];
  }
  int n,cur;
  cin>>n;
  rep(j,n){
    cin>>cur;
    rep1(k,n){
      if(v[k]==cur)m(k-1)=1;
    }
  }
  if(m[0]*m[1]*m[2]+m[3]*m[4]*m[5]+m[6]*m[7]*m[8]+m[0]*m[3]*m[6]+m[4]*m[1]*m[7]+m[8]*m[5]*m[2]+m[0]*m[4]*m[8]+m[6]*m[4]*m[2]){
    cout<<"Yes"<<endl;
  }
  else cout<<"No"<<endl;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:25:21: error: no match for call to '(veci {aka std::vector<int>}) (int)'
   25 |       if(v[k]==cur)m(k-1)=1;
      |                    ~^~~~~
Language: C++

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

int main(){
  int n,count;
  int a[3][3];
  for(int i;i<3;i++){
    for(int j;j<3,j++){
      cin >> a[i][j];
    }
  }
  cin >> n;
  for(int k;k<n;k++){
    int l;
    cin >> l;
    for(int i;i<3;i++){
      for(int j;j<3;j++){
        if (l==a[i][j]){
          a[i][j]=0;
        }
      }
    }
  }
    for(int i,i<3;i++){
      if(a[i][1]==0 && a[i][2]==0 && a[i][0]==0){
        count++;
      }
      else if(a[1][i]==0 && a[2][i]==0 && a[3][i]==0){
        count++;
      }
      else if(a[1][1]==0 && a[2][2]==0 && a[3][3]==0){
        count++;
      }
      else if(a[1][3]==0 && a[2][2]==0 && a[3][1]==0){
        count++;
      }
    }
    if(count>0){
      cout << "Yes";
    }
    else{
      cout << "No";
    }
    return 0;
}
    


Compiler output:
a.cc: In function 'int main()':
a.cc:9:22: error: expected ';' before ')' token
    9 |     for(int j;j<3,j++){
      |                      ^
      |                      ;
a.cc:25:16: error: expected ';' before '<' token
   25 |     for(int i,i<3;i++){
      |                ^
      |                ;
a.cc:25:16: error: expected primary-expression before '<' token
Language: C++

#include <bits/stdc++.h>
 using namespace std;
 int N, A[3][3], b[10];
 bool appear[3][3];
map<int,bool> mp;
 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];mp[b[i]]=1;}
 for(int i = 0; i < N; i++) {
 for(int j = 0; j < N; j++) {
 appear[i][j] = mp[A[i][j]];
 
 }
 }
 }
 string ANS = "No";
 for(int i = 0; i < 3; i++) {
 if(appear[i][0] and appear[i][1] and appear[i][2]) ANS = "Yes";
 }
 for(int i = 0; i < 3; i++) {
 if(appear[0][i] and appear[1][i] and appear[2][i]) ANS = "Yes";
 }
 if(appear[0][0] and appear[1][1] and appear[2][2]) ANS = "Yes";
 if(appear[0][2] and appear[1][1] and appear[2][0]) ANS = "Yes";
 cout << ANS << endl;
 return 0;
}


Compiler output:
a.cc:20:2: error: expected unqualified-id before 'for'
   20 |  for(int i = 0; i < 3; i++) {
      |  ^~~
a.cc:20:17: error: 'i' does not name a type
   20 |  for(int i = 0; i < 3; i++) {
      |                 ^
a.cc:20:24: error: 'i' does not name a type
   20 |  for(int i = 0; i < 3; i++) {
      |                        ^
a.cc:23:2: error: expected unqualified-id before 'for'
   23 |  for(int i = 0; i < 3; i++) {
      |  ^~~
a.cc:23:17: error: 'i' does not name a type
   23 |  for(int i = 0; i < 3; i++) {
      |                 ^
a.cc:23:24: error: 'i' does not name a type
   23 |  for(int i = 0; i < 3; i++) {
      |                        ^
a.cc:26:2: error: expected unqualified-id before 'if'
   26 |  if(appear[0][0] and appear[1][1] and appear[2][2]) ANS = "Yes";
      |  ^~
a.cc:27:2: error: expected unqualified-id before 'if'
   27 |  if(appear[0][2] and appear[1][1] and appear[2][0]) ANS = "Yes";
      |  ^~
a.cc:28:2: error: 'cout' does not name a type
   28 |  cout << ANS << endl;
      |  ^~~~
a.cc:29:2: error: expected unqualified-id before 'return'
   29 |  return 0;
      |  ^~~~~~
a.cc:30:1: error: expected declaration before '}' token
   30 | }
      | ^
Language: C++

#include <bits/stdc++.h>
 using namespace std;
 int N, A[3][3], b[10];
 bool appear[3][3];
map<int,bool> mp;
 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];mp[b[i]]=1;
 for(int i = 0; i < N; i++) {
 for(int j = 0; j < N; j++) {
 appear[i][j] = mp[A[i][j]];
 
 }
 }
 }
 string ANS = "No";
 for(int i = 0; i < 3; i++) {
 if(appear[i][0] and appear[i][1] and appear[i][2]) ANS = "Yes";
 }
 for(int i = 0; i < 3; i++) {
 if(appear[0][i] and appear[1][i] and appear[2][i]) ANS = "Yes";
 }
 if(appear[0][0] and appear[1][1] and appear[2][2]) ANS = "Yes";
 if(appear[0][2] and appear[1][1] and appear[2][0]) ANS = "Yes";
 cout << ANS << endl;
 return 0;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:11:47: error: 'i' was not declared in this scope
   11 |   for(int i = 0; i < N; i++) cin >> b[i];mp[b[i]]=1;
      |                                               ^
a.cc: At global scope:
a.cc:20:2: error: expected unqualified-id before 'for'
   20 |  for(int i = 0; i < 3; i++) {
      |  ^~~
a.cc:20:17: error: 'i' does not name a type
   20 |  for(int i = 0; i < 3; i++) {
      |                 ^
a.cc:20:24: error: 'i' does not name a type
   20 |  for(int i = 0; i < 3; i++) {
      |                        ^
a.cc:23:2: error: expected unqualified-id before 'for'
   23 |  for(int i = 0; i < 3; i++) {
      |  ^~~
a.cc:23:17: error: 'i' does not name a type
   23 |  for(int i = 0; i < 3; i++) {
      |                 ^
a.cc:23:24: error: 'i' does not name a type
   23 |  for(int i = 0; i < 3; i++) {
      |                        ^
a.cc:26:2: error: expected unqualified-id before 'if'
   26 |  if(appear[0][0] and appear[1][1] and appear[2][2]) ANS = "Yes";
      |  ^~
a.cc:27:2: error: expected unqualified-id before 'if'
   27 |  if(appear[0][2] and appear[1][1] and appear[2][0]) ANS = "Yes";
      |  ^~
a.cc:28:2: error: 'cout' does not name a type
   28 |  cout << ANS << endl;
      |  ^~~~
a.cc:29:2: error: expected unqualified-id before 'return'
   29 |  return 0;
      |  ^~~~~~
a.cc:30:1: error: expected declaration before '}' token
   30 | }
      | ^
Language: C

#include <stdio.h>

int main(void)
{
        int a[3][3],n,i,j,k,s;

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


        for(i=0;i<n;i++)
                scanf("%d",b[i]);

        s=0;

        for(i=0;i<n;i++)
                for(j=0;j<3;j++)
                        for(k=0;k<3;k++)
                                if(a[j][k]==b[i]) a[j][k]=0;

        for(i=0;i<3;i++){
                if(a[i][0]+a[i][1]+a[i][2]==0) s=1;
                else if(a[0][i]+a[1][i]+a[2][i]==0) s=1;
        }

        if(a[0][0]+a[1][1]+a[2][2]==0) s=1;
        if(a[0][2]+a[1][1]+a[2][0]==0) s=1;


        if(s==1) printf("Yes\n");
        else printf("No\n");
        return 0;
}
~


Compiler output:
main.c:38:1: error: expected identifier or '(' before '~' token
   38 | ~
      | ^
Language: C++

#include <bits/stdc++.h>
#define rep(i,a,b) for(int i=a; i< (int)(b); ++i)
#define ALL(x) (x).begin(),(x).end()
#define rALL(x) (x).rbegin(),(x).rend()
typedef long double ld;
using ll=long long;
using namespace std;
const int mod=1e9+7;
const ll inf = 1LL << 60;
const ld pi = (acos(-1));
template<class T>bool chmax(T &a, const T &b) { if (a<b) { a=b; return 1; } return 0; }
template<class T>bool chmin(T &a, const T &b) { if (b<a) { a=b; return 1; } return 0; }




int main(){
  cin.tie(0);
  ios::sync_with_stdio(false);
  cout << fixed << setprecision(20);
  
  int a[3][3];
  rep(i,0,3)rep(j,0,3) cin >> a[i][j];
  bool ok[3][3]={false};
  int n; cin >> n;
  rep(i,0,n){
    int b; cin >> b;
    rep(j,0,3)rep(k,0,3){
      if(b==a[i][j]) ok[i][j]=true;
    }
  }
  string ans="No";
  rep(i,0,3) {
    if(ok[i][0] && ok[i][1] && ok[i][2]) ans="Yes";
  }
  rep(i,0,3){
    if(ok[0][i] && ok[1][i] && ok[2]][i]) ans="Yes";
  }
  if(ok[0][0] && ok[0][1] && ok[0][2]) ans="Yes";
  if(ok[0][2] && ok[1][1] && ok[2][0]) ans="Yes";

  cout << ans << endl;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:37:37: error: expected ')' before ']' token
   37 |     if(ok[0][i] && ok[1][i] && ok[2]][i]) ans="Yes";
      |       ~                             ^
      |                                     )
a.cc:37:37: error: expected primary-expression before ']' token
Language: C

#include<stdio.h>

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

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

include <bits/stdc++.h>
using namespace std;
typedef long long ll;
#define rep(i,srt,end) for(long long i=(srt); i<(long long)(end); i++) 
ll N;
int main(){
    vector<ll> A(9,0);
    rep(i,0,9)cin>>A[i];
    cin>>N;
    vector<ll> b(N,0);
    rep(i,0,N)cin>>b[i];
    rep(i,0,9){
        rep(j,0,N){
            if(A[i]==b[j])A[i]=0;
        }
    }
    //bingo (0,1,2)(3,4,5)(6,7,8) (0,3,6)(1,4,7)(2,5,8) (0,4,8)(2,4,6)
    if(A[0]==A[1]&&A[1]==A[2]||A[3]==A[4]&&A[4]==A[5]||A[6]==A[7]&&A[7]==A[8]
     ||A[0]==A[3]&&A[3]==A[6]||A[1]==A[4]&&A[4]==A[7]||A[2]==A[5]&&A[5]==A[8]
     ||A[0]==A[4]&&A[4]==A[8]||A[2]==A[4]&&A[4]==A[6])
        cout<<"Yes";
    else
       cout<<"No";
    return 0;
}

Compiler output:
a.cc:1:1: error: 'include' does not name a type
    1 | include <bits/stdc++.h>
      | ^~~~~~~
a.cc: In function 'int main()':
a.cc:7:5: error: 'vector' was not declared in this scope
    7 |     vector<ll> A(9,0);
      |     ^~~~~~
a.cc:7:14: error: expected primary-expression before '>' token
    7 |     vector<ll> A(9,0);
      |              ^
a.cc:7:16: error: 'A' was not declared in this scope
    7 |     vector<ll> A(9,0);
      |                ^
a.cc:8:15: error: 'cin' was not declared in this scope
    8 |     rep(i,0,9)cin>>A[i];
      |               ^~~
a.cc:9:5: error: 'cin' was not declared in this scope
    9 |     cin>>N;
      |     ^~~
a.cc:10:14: error: expected primary-expression before '>' token
   10 |     vector<ll> b(N,0);
      |              ^
a.cc:10:16: error: 'b' was not declared in this scope
   10 |     vector<ll> b(N,0);
      |                ^
a.cc:21:9: error: 'cout' was not declared in this scope
   21 |         cout<<"Yes";
      |         ^~~~
a.cc:23:8: error: 'cout' was not declared in this scope
   23 |        cout<<"No";
      |        ^~~~
Language: C++

#include <bits/stdc++.h>
using namespace std;
typedef long long ll;
#define rep(i,srt,end) for(long long i=(srt); i<(long long)(end); i++) 
ll N;
int main(){
    vector<ll> A(9,0);
    rep(i,0,9)cin>>A[i];
    cin>>N;
    vector<ll> b(N,0);
    rep(i,0,N)cin>>b[i];
    rep(i,0,9){
        rep(j,0,N){
            if(A[i]==b[j])A[i]=0;
        }
    }
    //bingo (0,1,2)(3,4,5)(6,7,8) (0,3,6)(1,4,7)(2,5,8) (0,4,8)(2,4,6)
    if(A[0]==A[1]&&A[1]==A[2]||A[3]==A[4]&&A[4]==A[5]||A[6]==A[7]&&A[7]==A[8]
     ||A[0]==A[3]&&A[3]==A[6]||A[1]==A[4]&&A[4]==A[7]||A[2]==A[5]&&A[5]==A[8]
     ||A[0]==A[4]&&A[4]==A[8]||A[2]==A[4]&&A[4]==A[6]
        cout<<"Yes";
    else
       cout<<"No";
    return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:20:54: error: expected ';' before 'cout'
   20 |      ||A[0]==A[4]&&A[4]==A[8]||A[2]==A[4]&&A[4]==A[6]
      |                                                      ^
      |                                                      ;
   21 |         cout<<"Yes";
      |         ~~~~                                          
a.cc:22:5: error: expected primary-expression before 'else'
   22 |     else
      |     ^~~~
a.cc:21:21: error: expected ')' before 'else'
   21 |         cout<<"Yes";
      |                     ^
      |                     )
   22 |     else
      |     ~~~~             
a.cc:18:7: note: to match this '('
   18 |     if(A[0]==A[1]&&A[1]==A[2]||A[3]==A[4]&&A[4]==A[5]||A[6]==A[7]&&A[7]==A[8]
      |       ^
Language: C++

#include <bits/stdc++.h>
using namespace std;
typedef long long ll;
#define rep(i,srt,end) for(long long i=(srt); i<(long long)(end); i++) 
vector <ll> A;
ll N;
vector <ll> b;
int main(){
    vector <ll> A =(9,0);
    rep(i,0,9)cin>>A[i];
    cin>>N;
    vector <ll> b =(N,0);
    rep(i,0,N)cin>>b[i];
    rep(i,0,9){
        rep(j,0,N){
            if(A[i]==b[j])A[i]=0;
        }
    }
    //bingo (0,1,2)(3,4,5)(6,7,8) (0,3,6)(1,4,7)(2,5,8) (0,4,8)(2,4,6)
    if(A[0]==A[1]==A[2]==0||A[3]==A[4]==A[5]==0||A[6]==A[7]==A[8]==0
     ||A[0]==A[3]==A[6]==0||A[1]==A[4]==A[7]==0||A[2]==A[5]==A[8]==0
     ||A[0]==A[4]==A[8]==0||A[2]==A[4]==A[6]==0)
        cout<<"Yes";
    else
       cout<<"No";
    return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:9:23: error: conversion from 'int' to non-scalar type 'std::vector<long long int>' requested
    9 |     vector <ll> A =(9,0);
      |                       ^
a.cc:12:23: error: conversion from 'int' to non-scalar type 'std::vector<long long int>' requested
   12 |     vector <ll> b =(N,0);
      |                       ^
Language: C++

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

int main() {
int a[3][3];
int c[3][3];
int counter=0;
for(int i=0;i<3;i++){
for(int j=0;j<3;j++){
cin>>a[i][j];}}
int N,b;
cin>>N;
for(int k=0;k<N;k++){
cin>>b;
for(int i=0;i<3;i++){
for(int j=0;j<3;j++){
if(b==a[i][j]){
c[i][j]++;}}}}
for(int i=0;i<3;i++){
if(a[i][0]==a[i][1]&&a[i][1]==a[i][2]){
counter++;}
for(int i=0;i<3;i++){
if(a[0][i]==a[1][i]&&a[1][i]==a[2][i]){
counter++;}
if(a[0][0]==a[1][1]&&a[1][1]==a[2][2]){
counter++;}
if(a[0][2]==a[1][1]&&a[1][1]==a[2][0]){
counter++;}
if(counter>0){
cout<<"Yes"<<endl;}
else
cout<<"No"<<endl;}


Compiler output:
a.cc: In function 'int main()':
a.cc:32:19: error: expected '}' at end of input
   32 | cout<<"No"<<endl;}
      |                   ^
a.cc:19:21: note: to match this '{'
   19 | for(int i=0;i<3;i++){
      |                     ^
a.cc:32:19: error: expected '}' at end of input
   32 | cout<<"No"<<endl;}
      |                   ^
a.cc:4:12: note: to match this '{'
    4 | int main() {
      |            ^
Language: C++

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

vector<vector<bool>> flg(3, vector<bool>(3, false));

void isHit(vector<vector<int>> vp, int b){
  for(int i = 0; i < 3; i++){
    for(int j = 0; j < 3; j++){
      if(b == vp[i][j]) flg[i][j] = true;
    }
  }
}

int main(){
  vector<vector<int>> vp;
  int a, b;
  bool flag = false;
  for(int i = 0; i < 3; i++){
    for(int j = 0; j < 3; j++){
      cin >> a;
      vp.push_back(a);
    }
  }
  for(int i = 0; i < 9; i++){
    cin >> b;
    isHit(vp, b);
  }
  for(int i = 0; i < 3; i++){
    if(flg[i][0] && flg[i][1] && flg[i][2]) flag = true;
    if(flg[0][i] && flg[1][i] && flg[2][i]) flag = true;
  }
  if(flg[0][0] && flg[1][1] && flg[2][2]) flag = true;
  if(flg[2][0] && flg[1][1] && flg[0][2]) flag = true;
  if(flag) cout << "Yes" << endl;
  else cout << "No" << endl;
  return 0;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:21:19: error: no matching function for call to 'std::vector<std::vector<int> >::push_back(int&)'
   21 |       vp.push_back(a);
      |       ~~~~~~~~~~~~^~~
In file included from /usr/include/c++/14/vector:66,
                 from /usr/include/c++/14/functional:64,
                 from /usr/include/x86_64-linux-gnu/c++/14/bits/stdc++.h:53,
                 from a.cc:1:
/usr/include/c++/14/bits/stl_vector.h:1283:7: note: candidate: 'void std::vector<_Tp, _Alloc>::push_back(const value_type&) [with _Tp = std::vector<int>; _Alloc = std::allocator<std::vector<int> >; value_type = std::vector<int>]'
 1283 |       push_back(const value_type& __x)
      |       ^~~~~~~~~
/usr/include/c++/14/bits/stl_vector.h:1283:35: note:   no known conversion for argument 1 from 'int' to 'const std::vector<std::vector<int> >::value_type&' {aka 'const std::vector<int>&'}
 1283 |       push_back(const value_type& __x)
      |                 ~~~~~~~~~~~~~~~~~~^~~
/usr/include/c++/14/bits/stl_vector.h:1300:7: note: candidate: 'void std::vector<_Tp, _Alloc>::push_back(value_type&&) [with _Tp = std::vector<int>; _Alloc = std::allocator<std::vector<int> >; value_type = std::vector<int>]'
 1300 |       push_back(value_type&& __x)
      |       ^~~~~~~~~
/usr/include/c++/14/bits/stl_vector.h:1300:30: note:   no known conversion for argument 1 from 'int' to 'std::vector<std::vector<int> >::value_type&&' {aka 'std::vector<int>&&'}
 1300 |       push_back(value_type&& __x)
      |                 ~~~~~~~~~~~~~^~~