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

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

Compiler output:
main.c: In function 'main':
main.c:13:15: error: subscripted value is neither array nor pointer nor vector
   13 |    {if(c[j]==b[i]) d[i]=1;
      |               ^
Language: C

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

Compiler output:
main.c: In function 'main':
main.c:13:15: error: subscripted value is neither array nor pointer nor vector
   13 |    {if(c[j]==b[i]) d[i]=1;
      |               ^
Language: C++

#include<iostream>
#include<string>
#include<algorithm>
#include<vector>
#include<map>
#include<stack>
#include<queue>
#include<set>
#include<tuple>
#include<ctime>
#include<functional>
#include<cmath>
#include<cassert>
using namespace std;
typedef long long ll;

#define rep(i,n) for(int i=0;i<(n);i++)
#define FOR(i,a,b) for(ll i=(a);i<(b);++i)
#define ALL(v) (v).begin(), (v).end()
#define p(s) cout<<(s)<<endl
#define p2(s, t) cout << (s) << " " << (t) << endl
#define br() p("")
#define pn(s) cout << (#s) << " " << (s) << endl
#define p_yes() p("Yes")
#define p_no() p("No")
#define pb push_back
#define mp make_pair
#define fi first
#define se second
#define chmax(a, b) a = (((a)<(b)) ? (b) : (a))
#define chmin(a, b) a = (((a)>(b)) ? (b) : (a))

const ll mod = 1e9 + 7;
const ll inf = 1e18;

int main(){
    int a[3][3];
    for(int i=0;i<3;i++){
        for(int j=0;j<3;j++){
            cin>>a[i][j];
        }
    }
    int N;
    cin>>N;
    int b[10];
    int flag;
    rep(k,N) cin>>b[i];
    rep(k,N){
        rep(i,3)rep(j,3){
            if(a[i][j]==b[k]) a[i][j]=1;
            if(a[i][0]*a[i][1]*a[i][2]==1) flag=1;
            else if(a[0][j]*a[1][j]*a[2][j]) flag=1;
            else if(a[0][0]*a[0][1]*a[0][2]==1 || a[0][2]*a[0][1]*a[2][0]==1) flag=1;
        }
    }
    if(flag) p("Yes");
    else p("No");
    
}

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

#include<iostream>
#include<string>
#include<algorithm>
#include<vector>
#include<map>
#include<stack>
#include<queue>
#include<set>
#include<tuple>
#include<ctime>
#include<functional>
#include<cmath>
#include<cassert>
using namespace std;
typedef long long ll;

#define rep(i,n) for(int i=0;i<(n);i++)
#define FOR(i,a,b) for(ll i=(a);i<(b);++i)
#define ALL(v) (v).begin(), (v).end()
#define p(s) cout<<(s)<<endl
#define p2(s, t) cout << (s) << " " << (t) << endl
#define br() p("")
#define pn(s) cout << (#s) << " " << (s) << endl
#define p_yes() p("Yes")
#define p_no() p("No")
#define pb push_back
#define mp make_pair
#define fi first
#define se second
#define chmax(a, b) a = (((a)<(b)) ? (b) : (a))
#define chmin(a, b) a = (((a)>(b)) ? (b) : (a))

const ll mod = 1e9 + 7;
const ll inf = 1e18;

int main(){
    int a[3][3];
    for(int i=0;i<3;i++){
        for(int j=0;j<3;j++){
            cin>>a[i][j];
        }
    }
    int N;
    cin>>N;
    int b[10];
    int flag;
    rep(k,N) cin>>b[i];
    rep(i,N){
        rep(i,3)rep(j,3){
            if(a[i][j]==b[k]) a[i][j]=1;
            if(a[i][0]*a[i][1]*a[i][2]==1) flag=1;
            else if(a[0][j]*a[1][j]*a[2][j]) flag=1;
            else if(a[0][0]*a[0][1]*a[0]*[2]==1 || a[0][2]*a[0][1]*a[2][0]==1) flag=1;
        }
    }
    if(flag) p("Yes");
    else p("No");
    
}

Compiler output:
a.cc: In function 'int main()':
a.cc:47:21: error: 'i' was not declared in this scope
   47 |     rep(k,N) cin>>b[i];
      |                     ^
a.cc:50:27: error: 'k' was not declared in this scope
   50 |             if(a[i][j]==b[k]) a[i][j]=1;
      |                           ^
a.cc:53:36: error: invalid operands of types 'int' and 'int [3]' to binary 'operator*'
   53 |             else if(a[0][0]*a[0][1]*a[0]*[2]==1 || a[0][2]*a[0][1]*a[2][0]==1) flag=1;
      |                     ~~~~~~~~~~~~~~~^~~~~
      |                            |           |
      |                            int         int [3]
a.cc:53:43: error: expected identifier before numeric constant
   53 |             else if(a[0][0]*a[0][1]*a[0]*[2]==1 || a[0][2]*a[0][1]*a[2][0]==1) flag=1;
      |                                           ^
a.cc: In lambda function:
a.cc:53:45: error: expected '{' before '==' token
   53 |             else if(a[0][0]*a[0][1]*a[0]*[2]==1 || a[0][2]*a[0][1]*a[2][0]==1) flag=1;
      |                                             ^~
Language: C++

#include<iostream>
#include<string>
#include<algorithm>
#include<vector>
#include<map>
#include<stack>
#include<queue>
#include<set>
#include<tuple>
#include<ctime>
#include<functional>
#include<cmath>
#include<cassert>
using namespace std;
typedef long long ll;

#define FOR(i,a,b) for(ll i=(a);i<(b);++i)
#define ALL(v) (v).begin(), (v).end()
#define p(s) cout<<(s)<<endl
#define p2(s, t) cout << (s) << " " << (t) << endl
#define br() p("")
#define pn(s) cout << (#s) << " " << (s) << endl
#define p_yes() p("Yes")
#define p_no() p("No")
#define pb push_back
#define mp make_pair
#define fi first
#define se second
#define chmax(a, b) a = (((a)<(b)) ? (b) : (a))
#define chmin(a, b) a = (((a)>(b)) ? (b) : (a))

int main(){
    int A[3][3];
    int N;
    int B[N];
    int flag;
    cin>>N;
    for(int i=0;i<3;i++)
    for(int j=0;j<3;i++){
        cin>>A[i][j];
    }
    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;
         if(A[0][j]*A[1][j]*A[2][j]==1)  flag=1;
         else if(A[i][0]*A[i][1]*A[i]*[2]) flag=1;
     }
 }   
}
if(flag) p("Yes");
else p("No");

}

Compiler output:
a.cc: In function 'int main()':
a.cc:51:33: error: invalid operands of types 'int' and 'int [3]' to binary 'operator*'
   51 |          else if(A[i][0]*A[i][1]*A[i]*[2]) flag=1;
      |                  ~~~~~~~~~~~~~~~^~~~~
      |                         |           |
      |                         int         int [3]
a.cc:51:40: error: expected identifier before numeric constant
   51 |          else if(A[i][0]*A[i][1]*A[i]*[2]) flag=1;
      |                                        ^
a.cc: In lambda function:
a.cc:51:42: error: expected '{' before ')' token
   51 |          else if(A[i][0]*A[i][1]*A[i]*[2]) flag=1;
      |                                          ^
Language: C++

#include<iostream>
#include<string>
#include<algorithm>
#include<vector>
#include<map>
#include<stack>
#include<queue>
#include<set>
#include<tuple>
#include<ctime>
#include<functional>
#include<cmath>
#include<cassert>
using namespace std;
typedef long long ll;

#define FOR(i,a,b) for(ll i=(a);i<(b);++i)
#define ALL(v) (v).begin(), (v).end()
#define p(s) cout<<(s)<<endl
#define p2(s, t) cout << (s) << " " << (t) << endl
#define br() p("")
#define pn(s) cout << (#s) << " " << (s) << endl
#define p_yes() p("Yes")
#define p_no() p("No")
#define pb push_back
#define mp make_pair
#define fi first
#define se second
#define chmax(a, b) a = (((a)<(b)) ? (b) : (a))
#define chmin(a, b) a = (((a)>(b)) ? (b) : (a))

int main(){
    int A[3][3];
    int N;
    int B[N];
    int flag;
    cin>>N;
    for(int i=;i<3;i++)
    for(int j=0;j<3;i++){
        cin>>A[i][j];
    }
    for(int =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;
         if(A[0][j]*A[1][j]*A[2][j]==1])  flag=1;
         else if(A[i][0]*A[i][1]*A[i]*[2]) flag=1;
     }
 }   
}
if(flag) p("Yes");
else p("No");

}

Compiler output:
a.cc: In function 'int main()':
a.cc:38:15: error: expected primary-expression before ';' token
   38 |     for(int i=;i<3;i++)
      |               ^
a.cc:42:13: error: expected unqualified-id before '=' token
   42 |     for(int =0;i<N;i++) cin>>B[i];
      |             ^
a.cc:42:12: error: expected ';' before '=' token
   42 |     for(int =0;i<N;i++) cin>>B[i];
      |            ^~
      |            ;
a.cc:42:13: error: expected primary-expression before '=' token
   42 |     for(int =0;i<N;i++) cin>>B[i];
      |             ^
a.cc:42:16: error: 'i' was not declared in this scope
   42 |     for(int =0;i<N;i++) cin>>B[i];
      |                ^
a.cc:42:19: error: expected ')' before ';' token
   42 |     for(int =0;i<N;i++) cin>>B[i];
      |        ~          ^
      |                   )
a.cc:42:20: error: 'i' was not declared in this scope
   42 |     for(int =0;i<N;i++) cin>>B[i];
      |                    ^
a.cc:49:22: error: 'b' was not declared in this scope
   49 |          if(A[i][j]==b[k]) A[i][j]=1;
      |                      ^
a.cc:50:39: error: expected ')' before ']' token
   50 |          if(A[0][j]*A[1][j]*A[2][j]==1])  flag=1;
      |            ~                          ^
      |                                       )
a.cc:50:39: error: expected primary-expression before ']' token
a.cc:51:33: error: invalid operands of types 'int' and 'int [3]' to binary 'operator*'
   51 |          else if(A[i][0]*A[i][1]*A[i]*[2]) flag=1;
      |                  ~~~~~~~~~~~~~~~^~~~~
      |                         |           |
      |                         int         int [3]
a.cc:51:40: error: expected identifier before numeric constant
   51 |          else if(A[i][0]*A[i][1]*A[i]*[2]) flag=1;
      |                                        ^
a.cc: In lambda function:
a.cc:51:42: error: expected '{' before ')' token
   51 |          else if(A[i][0]*A[i][1]*A[i]*[2]) flag=1;
      |                                          ^
Language: C++

#include<iostream>
#include<string>
#include<algorithm>
#include<vector>
#include<map>
#include<stack>
#include<queue>
#include<set>
#include<tuple>
#include<ctime>
#include<functional>
#include<cmath>
#include<cassert>
using namespace std;
typedef long long ll;

#define FOR(i,a,b) for(ll i=(a);i<(b);++i)
#define ALL(v) (v).begin(), (v).end()
#define p(s) cout<<(s)<<endl
#define p2(s, t) cout << (s) << " " << (t) << endl
#define br() p("")
#define pn(s) cout << (#s) << " " << (s) << endl
#define p_yes() p("Yes")
#define p_no() p("No")
#define pb push_back
#define mp make_pair
#define fi first
#define se second
#define chmax(a, b) a = (((a)<(b)) ? (b) : (a))
#define chmin(a, b) a = (((a)>(b)) ? (b) : (a))

int main(){
    int A[3][3];
    int N;
    int B[N];
    int flag;
    cin>>N;
    for(int i=;i<3)
    for(int j=0;j<3){
        cin>>A[i][j];
    }
    rep(i,N) 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;
         if(A[0][j]*A[1][j]*A[2][j]==1])  flag=1;
         else if(A[i][0]*A[i][1]*A[i]*[2]) flag=1;
     }
 }   
}
if(flag) p("Yes");
else p("No");

}

Compiler output:
a.cc: In function 'int main()':
a.cc:38:15: error: expected primary-expression before ';' token
   38 |     for(int i=;i<3)
      |               ^
a.cc:38:19: error: expected ';' before ')' token
   38 |     for(int i=;i<3)
      |                   ^
      |                   ;
a.cc:39:20: error: expected ';' before ')' token
   39 |     for(int j=0;j<3){
      |                    ^
      |                    ;
a.cc:42:9: error: 'i' was not declared in this scope
   42 |     rep(i,N) cin>>B[i];
      |         ^
a.cc:42:5: error: 'rep' was not declared in this scope; did you mean 'frexp'?
   42 |     rep(i,N) cin>>B[i];
      |     ^~~
      |     frexp
a.cc:49:22: error: 'b' was not declared in this scope
   49 |          if(A[i][j]==b[k]) A[i][j]=1;
      |                      ^
a.cc:50:39: error: expected ')' before ']' token
   50 |          if(A[0][j]*A[1][j]*A[2][j]==1])  flag=1;
      |            ~                          ^
      |                                       )
a.cc:50:39: error: expected primary-expression before ']' token
a.cc:51:33: error: invalid operands of types 'int' and 'int [3]' to binary 'operator*'
   51 |          else if(A[i][0]*A[i][1]*A[i]*[2]) flag=1;
      |                  ~~~~~~~~~~~~~~~^~~~~
      |                         |           |
      |                         int         int [3]
a.cc:51:40: error: expected identifier before numeric constant
   51 |          else if(A[i][0]*A[i][1]*A[i]*[2]) flag=1;
      |                                        ^
a.cc: In lambda function:
a.cc:51:42: error: expected '{' before ')' token
   51 |          else if(A[i][0]*A[i][1]*A[i]*[2]) flag=1;
      |                                          ^
Language: C++

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

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

Compiler output:
a.cc: In function 'int main()':
a.cc:32:28: error: expected identifier before numeric constant
   32 |   if(a[0][0]==a[1][1]&&a(([1][1]==a[2][2])&&(a[2][2]==a[0][0]))) x=1;
      |                            ^
a.cc: In lambda function:
a.cc:32:30: error: expected '{' before '[' token
   32 |   if(a[0][0]==a[1][1]&&a(([1][1]==a[2][2])&&(a[2][2]==a[0][0]))) x=1;
      |                              ^
a.cc: In function 'int main()':
a.cc:32:30: error: no match for 'operator[]' (operand types are 'main()::<lambda()>' and 'int')
a.cc:32:63: error: 'a' cannot be used as a function
   32 |   if(a[0][0]==a[1][1]&&a(([1][1]==a[2][2])&&(a[2][2]==a[0][0]))) x=1;
      |                                                               ^
a.cc:33:30: error: expected identifier before numeric constant
   33 |     if(a[0][2]==a[1][1]&&a(([1][1]==a[2][0])&&(a[2][0]==a[0][2]))) x=1;
      |                              ^
a.cc: In lambda function:
a.cc:33:32: error: expected '{' before '[' token
   33 |     if(a[0][2]==a[1][1]&&a(([1][1]==a[2][0])&&(a[2][0]==a[0][2]))) x=1;
      |                                ^
a.cc: In function 'int main()':
a.cc:33:32: error: no match for 'operator[]' (operand types are 'main()::<lambda()>' and 'int')
a.cc:33:65: error: 'a' cannot be used as a function
   33 |     if(a[0][2]==a[1][1]&&a(([1][1]==a[2][0])&&(a[2][0]==a[0][2]))) x=1;
      |                                                                 ^
Language: C++

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

int main(){
    vector<vector<int>> a(3,vector<int>(3));
    for(int i=0;i<3;i++){
      for(int j=0;j<3;j++){
    cin>>a[i][j];
      }
    }
    int N;
    cin>>N;
    vector<int> b(N);
    for(int i=0;i<N;i++){
      cin>>b[i];
    }
    vector<vector<int>> c(3,vector<int>(3));
    for(int i=0;i<3;i++){
      for(int j=0;j<3;j++){

    A[i][j]=0;
      }
    }

    for(int i=0;i<3;i++){
      for(int j=0;j<N;j++){
   for(int k=0;k<N;k++){
        if(a[i][j]==b[k]){
          c[i][j]=1;
        }
    }
      }
    }
  
    bool f = false;
    for(int i=0;i<3;i++){
        if(c[i][0]==1&&c[i][1]==1&&c[i][2]==1)
        f=true;
    }
    for(int i=0;i<3;i++){
        if(c[0][i]==1&&c[1][i]==1&&c[2][i]==1)
        f=true;
    }
    if(c[0][0]==1&&c[1][1]==1&&c[2][2]==1) {
      f=true;
    }
    if(c[0][2]==1&&c[1][1]==1&&c[2][0]==1) {
      f=true;
    }
    if(f){
      cout<<"Yes"<<endl;
    }
    else {
      cout<<"No"<<endl;
    }
    
}


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

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

int main(){
    vector<vector<int>> a(3,vector<int>(3));
    for(int i=0;i<3;i++){
      for(int j=0;j<3;j++){
    cin>>a[i][j];
      }
    }
    int N;
    cin>>N;
    vector<int> b(N);
    for(int i=0;i<N;i++){
      cin>>b[i];
    }
    vector<vector<int>> c(3,vector<int>(3));
    for(int i=0;i<3;i++){
      for(int j=0;j<3;j++){

    A[i][j]=0;
      }
    }

    for(int i=0;i<3;i++){
      for(int j=0;j<N;j++){
   for(int k=0;k<N;k++){
        if(a[i][j]==b[k]){
          c[i][j]=1;
        }
    }
      }
    }
  
    bool f = false;
    for(int i=0;i<3;i++){
        if(A[i][0]==1&&A[i][1]==1&&A[i][2]==1)
        f=true;
    }
    for(int i=0;i<3;i++){
        if(A[0][i]==1&&A[1][i]==1&&A[2][i]==1)
        f=true;
    }
    if(A[0][0]==1&&A[1][1]==1&&A[2][2]==1) {
      f=true;
    }
    if(A[0][2]==1&&A[1][1]==1&&A[2][0]==1) {
      f=true;
    }
    if(f){
      cout<<"Yes"<<endl;
    }
    else {
      cout<<"No"<<endl;
    }
    
}


Compiler output:
a.cc: In function 'int main()':
a.cc:21:5: error: 'A' was not declared in this scope
   21 |     A[i][j]=0;
      |     ^
a.cc:37:12: error: 'A' was not declared in this scope
   37 |         if(A[i][0]==1&&A[i][1]==1&&A[i][2]==1)
      |            ^
a.cc:41:12: error: 'A' was not declared in this scope
   41 |         if(A[0][i]==1&&A[1][i]==1&&A[2][i]==1)
      |            ^
a.cc:44:8: error: 'A' was not declared in this scope
   44 |     if(A[0][0]==1&&A[1][1]==1&&A[2][2]==1) {
      |        ^
a.cc:47:8: error: 'A' was not declared in this scope
   47 |     if(A[0][2]==1&&A[1][1]==1&&A[2][0]==1) {
      |        ^
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 k=0;k<N;k++){
  cin>>b[k];
    bool c[3][3];
    if(a[i][j]==b[k]){
    c[i][j]=true;
    }
  }
    }
  }
  bool f=false;
  for(int i=0;i<3;i++){
  if(c[i][0]&&c[i][1]&&c[i][2]) {
  cout<<"Yes"<<endl;
  }
  }
  for(int i=0;i<3;i++){
  if(c[0][i]&&c[1][i]&&c[2][i]){
  cout<<"Yes"<<endl;
  }
  }
  if(c[0][0]&&c[1][1]&&c[2][2]){
  cout<<"Yes"<<endl;
  } 
 if(c[0][2]&&c[1][1]&&c[2][0]){
 cout<<"Yes"<<endl;
 }
  cout<<"No"<<endl;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:25:6: error: 'c' was not declared in this scope
   25 |   if(c[i][0]&&c[i][1]&&c[i][2]) {
      |      ^
a.cc:30:6: error: 'c' was not declared in this scope
   30 |   if(c[0][i]&&c[1][i]&&c[2][i]){
      |      ^
a.cc:34:6: error: 'c' was not declared in this scope
   34 |   if(c[0][0]&&c[1][1]&&c[2][2]){
      |      ^
a.cc:37:5: error: 'c' was not declared in this scope
   37 |  if(c[0][2]&&c[1][1]&&c[2][0]){
      |     ^
Language: C++

#include<bits/stdc++.h>
using namespace std;
int main(){
  int N;
  cin>>N;
  int date[3][3],vec[10];
  bool a[3][3];
  

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

    for(int k=0;k<N;k++){
 if(date[i][j]==vec[k]){
 a[i][j]==true;
 }
      else{
      a[i][j]==false;
      }
 }
}
}
  for(int i=0;i<3;i++){
  if(a[i][0]&&a[i][1]&&a[i][2]){
  cout<<"Yes"<<endl;
  
  }
  }
  for(int i=0;i<3;i++){
  if(a[0][i]&&a[1][i]&&a[2][i]){
  cout<<"Yes"<<endl;
  }
  }
if(a[0][0]&&a[1][1]&&a[2][2]){
cout<<"Yes"<<endl;
}
  if(a[0][2]&&a[1][1]&&a[2][0]){
  cout<<"Yes"<<endl;
  }
  if(false){
  cout<<"No"<<endl;
  }
}


Compiler output:
a.cc: In function 'int main()':
a.cc:12:18: error: expected ';' before 'for'
   12 |   cin>>date[i][j]
      |                  ^
      |                  ;
   13 | 
   14 |     for(int k=0;k<N;k++){
      |     ~~~           
a.cc:14:17: error: 'k' was not declared in this scope
   14 |     for(int k=0;k<N;k++){
      |                 ^
Language: C++

#include<bits/stdc++.h>
using namespace std;
int main(){
  int N;
  cin>>N;
  
vector<vector<int>>date(3,vector<int>(3));
  vector<int>vec(N);
for(int i=0;i<3;i++){
  for(int j=0;j<3;j++){
  cin>>date.at(i).at(j);

    for(int k=0;k<N;k++){
 if(date.at(i).at(j)==vec.at(k)){
 a.at(i).at(j)==true;
 }
      else{
      a.at(i).at(j)==false;
      }
 }
}
}
  for(int i=0;i<3;i++){
  if(a.at(i).at(0)&&a.at(i).at(1)&&a.at(i).at(2)){
  cout<<"Yes"<<endl;
  
  }
  }
  for(int i=0;i<3;i++){
  if(a.at(0).at(i)&&a.at(1).at(i)&&at(2).at(i)){
  cout<<"Yes"<<endl;
  }
  }
if(a.at(0).at(0)&&a.at(1).at(1)&&a.at(2).at(2)){
cout<<"Yes"<<endl;
}
  if(a.at(0).at(2)&&a.at(1).at(1)&&a.at(2).at(0)){
  cout<<"Yes"<<endl;
  }
  if(false){
  cout<<"No"<<endl;
  }
}


Compiler output:
a.cc: In function 'int main()':
a.cc:15:2: error: 'a' was not declared in this scope
   15 |  a.at(i).at(j)==true;
      |  ^
a.cc:18:7: error: 'a' was not declared in this scope
   18 |       a.at(i).at(j)==false;
      |       ^
a.cc:24:6: error: 'a' was not declared in this scope
   24 |   if(a.at(i).at(0)&&a.at(i).at(1)&&a.at(i).at(2)){
      |      ^
a.cc:30:6: error: 'a' was not declared in this scope
   30 |   if(a.at(0).at(i)&&a.at(1).at(i)&&at(2).at(i)){
      |      ^
a.cc:30:36: error: 'at' was not declared in this scope
   30 |   if(a.at(0).at(i)&&a.at(1).at(i)&&at(2).at(i)){
      |                                    ^~
a.cc:34:4: error: 'a' was not declared in this scope
   34 | if(a.at(0).at(0)&&a.at(1).at(1)&&a.at(2).at(2)){
      |    ^
a.cc:37:6: error: 'a' was not declared in this scope
   37 |   if(a.at(0).at(2)&&a.at(1).at(1)&&a.at(2).at(0)){
      |      ^
Language: C++

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

Compiler output:
a.cc: In function 'int main()':
a.cc:16:29: error: 'k' was not declared in this scope
   16 | if(date.at(0).at(0)==vec.at(k)&&date.at(0).at(1)==vec.at(k)&&date.at(0).at(2)==vec.at(k)){
      |                             ^
Language: C++

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

int main() {
  vector<vector<int>> vec(3, vector<int>(3));
  for (int i = 0; i < 3; i++) {
    for (int j = 0; j < 3; j++) {
      cin >> vec.at(i).at(j);
    }
  }

  int N;
  cin >> N;
  vector<int> b(N);

  for (int i = 0; i < N; i++) {
    cin >> b.at(i);
  }
  vector<vector<int>> atari(3, vector<int>(3, -1));
  //合ってるとこの座標の取得
  for (int i = 0; i < 3; i++) {
    for (int j = 0; j < 3; j++) {
      for (int k = 0; k < N; k++) {
        if (b.at(k) == vec.at(i).at(j)) {
          atari.at(i).at(j) = 1;
        }
      }
    }
  }
  //  ビンゴ探索
  //横
  for (int i = 0; i < 3; i++) {
    bool bingo = true;
    for (int j = 0; j < 3; j++) {
      if (atari.at(i).at(j) == -1) {
        bingo = false;
      }
    }
    if (bingo) {
      cout << "Yes" << endl;
      return 0;
    }
  }

  //縦
  for (int j = 0; j < 3; j++) {
    bool bingo = true;
    for (int i = 0; i < 3; i++) {
      if (atari.at(i).at(j) == -1) {
        bingo = false;
      }
    }
    if (bingo) {
      cout << "Yes" << endl;
      return 0;
    }
  }

  //斜
  if (atari.at(1).at(1) == 1) {
    if (atari.at(0).at(0) == 1 && atari.at(2).at(2) == 1) {
      cout << "Yes" << endl;
      return 0;
    }
    if (atari.at(0).at(2) == 1 && atari.at(2).at(0) == 1) {
      cout << "Yes" << endl;
      return 0;
    }
    cout << "No" << endl;
  }

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

 #include<stdio.h>
 int main(void)
 {
     int a[3][3],N,i,j,B[10],c=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<N;i++)
       scanf("%d",&B[i]);
   
     for(i=0;i<=2;i++){
       for(j=0;j<N;j++){
         
       if(A[0][i]==B[j]) c=1;
       if(A[1][i]==B[j]) c=1;
       if(A[2][i]==B[j]) c=1;
       
       if(A[i][0]==B[j]) c=1;
       if(A[i][1]==B[j]) c=1;
       if(A[i][2]==B[j]) c=1;
         
       if(A[i][i]==B[j]) c=1;
         
       }
     }
   
     for(i=0;i<=N;i++){
       for(j=3;j>=1;j--)
         if(A[i][j]==B[i]) c=1;
     }
    
       if(c==1) printf("Yes\n");
       else     printf("No\n");
   
     return 0;
 }

Compiler output:
main.c: In function 'main':
main.c:7:22: error: 'A' undeclared (first use in this function)
    7 |          scanf("%d",&A[i][j]);
      |                      ^
main.c:7:22: 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 n,num;
  int cnt = 0;
  vector<int> vec(9);
  vector<int> bingo(9,0);
  
  for(int i = 0; i < 9; i++) cin >> vec.at(i);
  cin >> n;
  
  // チェック
  for(int i = 0; i < n; i++){
    cin >> num;
    for(int j = 0; j < 9; j++){
      if(vec.at(j) == num) bingo.at(j) = 1;
    }
  }
  
  // ビンゴ確認
  // 縦
  for(int i = 0; i < 3; i++){
    if(bingo.at(i) + bingo.at(i+3) + bingo.at(i+6) = 3) cnt++;
  }
  // 横
  for(int i = 0; i <= 6; i+=3){
    if(bingo.at(i) + bingo.at(i+1) + bingo.at(i+2) = 3) cnt++;
  }
  // 斜め
  if(bingo.at(0) + bingo.at(4) + bingo.at(8) = 3) cnt++;
  if(bingo.at(2) + bingo.at(4) + bingo.at(6) = 3) cnt++;
  
  if(cnt > 0) cout << "Yes";
  else cout << "No";
}


Compiler output:
a.cc: In function 'int main()':
a.cc:24:36: error: lvalue required as left operand of assignment
   24 |     if(bingo.at(i) + bingo.at(i+3) + bingo.at(i+6) = 3) cnt++;
      |        ~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~
a.cc:28:36: error: lvalue required as left operand of assignment
   28 |     if(bingo.at(i) + bingo.at(i+1) + bingo.at(i+2) = 3) cnt++;
      |        ~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~
a.cc:31:32: error: lvalue required as left operand of assignment
   31 |   if(bingo.at(0) + bingo.at(4) + bingo.at(8) = 3) cnt++;
      |      ~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~
a.cc:32:32: error: lvalue required as left operand of assignment
   32 |   if(bingo.at(2) + bingo.at(4) + bingo.at(6) = 3) cnt++;
      |      ~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~
Language: C++

#include<bits/stdc++.h>
#define rep(i,n) for(int i=0;i<(int)(n);i++)
# define ALL(x) (x).begin(), (x).end()
using namespace std;
int main(){
  // int型の2次元配列(3×4要素の)の宣言
  vector<vector<int>> data(3, vector<int>(3));
 
  // 入力 (2重ループを用いる)
  for (int k = 0; k < 3; k++) {
    for (int j = 0; j < 3; j++) {
      cin >> data.at(k).at(j);
    }
  }
    int n,b;
  cin>>n;
  vector<int> b;
  rep(i,n){cin>>b.at(i);
  
    for (int k = 0; k < n; k++) {
    for (int j = 0; j < n; j++) {if(data[k][1]==b.at(i)&&data[k][2]==b.at(i)&&data[k][3]==b[i])
    {cout<<"Yes"<<endl;
    return 0;}
if(data[1][j]==b[i]&&data[2][j]==b[i]&&data[3][j]==b[i])
 {cout<<"Yes"<<endl;
    return 0;}
      if(data.at(1).at(1)==b[i]&&data.at(2).at(2)==b[i]&&data.at(3).at(3)==b[i]
      ){cout<<"Yes"<<endl;
    return 0;} }}}cout<<"No"<<endl;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:17:15: error: conflicting declaration 'std::vector<int> b'
   17 |   vector<int> b;
      |               ^
a.cc:15:11: note: previous declaration as 'int b'
   15 |     int n,b;
      |           ^
a.cc:18:19: error: request for member 'at' in 'b', which is of non-class type 'int'
   18 |   rep(i,n){cin>>b.at(i);
      |                   ^~
a.cc:21:51: error: request for member 'at' in 'b', which is of non-class type 'int'
   21 |     for (int j = 0; j < n; j++) {if(data[k][1]==b.at(i)&&data[k][2]==b.at(i)&&data[k][3]==b[i])
      |                                                   ^~
a.cc:21:72: error: request for member 'at' in 'b', which is of non-class type 'int'
   21 |     for (int j = 0; j < n; j++) {if(data[k][1]==b.at(i)&&data[k][2]==b.at(i)&&data[k][3]==b[i])
      |                                                                        ^~
a.cc:21:92: error: invalid types 'int[int]' for array subscript
   21 |     for (int j = 0; j < n; j++) {if(data[k][1]==b.at(i)&&data[k][2]==b.at(i)&&data[k][3]==b[i])
      |                                                                                            ^
a.cc:24:17: error: invalid types 'int[int]' for array subscript
   24 | if(data[1][j]==b[i]&&data[2][j]==b[i]&&data[3][j]==b[i])
      |                 ^
a.cc:24:35: error: invalid types 'int[int]' for array subscript
   24 | if(data[1][j]==b[i]&&data[2][j]==b[i]&&data[3][j]==b[i])
      |                                   ^
a.cc:24:53: error: invalid types 'int[int]' for array subscript
   24 | if(data[1][j]==b[i]&&data[2][j]==b[i]&&data[3][j]==b[i])
      |                                                     ^
a.cc:27:29: error: invalid types 'int[int]' for array subscript
   27 |       if(data.at(1).at(1)==b[i]&&data.at(2).at(2)==b[i]&&data.at(3).at(3)==b[i]
      |                             ^
a.cc:27:53: error: invalid types 'int[int]' for array subscript
   27 |       if(data.at(1).at(1)==b[i]&&data.at(2).at(2)==b[i]&&data.at(3).at(3)==b[i]
      |                                                     ^
a.cc:27:77: error: invalid types 'int[int]' for array subscript
   27 |       if(data.at(1).at(1)==b[i]&&data.at(2).at(2)==b[i]&&data.at(3).at(3)==b[i]
      |                                                                             ^
Language: C++

#include<bits/stdc++.h>
#define rep(i,n) for(int i=0;i<(int)(n);i++)
# define ALL(x) (x).begin(), (x).end()
using namespace std;
int main(){
  // int型の2次元配列(3×4要素の)の宣言
  vector<vector<int>> data(3, vector<int>(3));
 
  // 入力 (2重ループを用いる)
  for (int k = 0; k < 3; k++) {
    for (int j = 0; j < 3; j++) {
      cin >> data.at(k).at(j);
    }
  }
    int n,b;
  cin>>n;
  rep(i,n){cin>>b.at(i);
  
    for (int k = 0; k < n k++) {
    for (int j = 0; j < n; j++) {if(data[k][1]==b.at(i)&&data[k][2]==b.at(i)&&data[k][3]==b[i])
    {cout<<"Yes"<<endl;
    return 0;}
if(data[1][j]==b[i]&&data[2][j]==b[i]&&data[3][j]==b[i])
 {cout<<"Yes"<<endl;
    return 0;}
      if(data.at(1).at(1)==b[i]&&data.at(2).at(2)==b[i]&&data.at(3).at(3)==b[i]
      ){cout<<"Yes"<<endl;
    return 0;}
                                 
  
                                }}}cout<<"No"<<endl;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:17:19: error: request for member 'at' in 'b', which is of non-class type 'int'
   17 |   rep(i,n){cin>>b.at(i);
      |                   ^~
a.cc:19:26: error: expected ';' before 'k'
   19 |     for (int k = 0; k < n k++) {
      |                          ^~
      |                          ;
a.cc:20:51: error: request for member 'at' in 'b', which is of non-class type 'int'
   20 |     for (int j = 0; j < n; j++) {if(data[k][1]==b.at(i)&&data[k][2]==b.at(i)&&data[k][3]==b[i])
      |                                                   ^~
a.cc:20:72: error: request for member 'at' in 'b', which is of non-class type 'int'
   20 |     for (int j = 0; j < n; j++) {if(data[k][1]==b.at(i)&&data[k][2]==b.at(i)&&data[k][3]==b[i])
      |                                                                        ^~
a.cc:20:92: error: invalid types 'int[int]' for array subscript
   20 |     for (int j = 0; j < n; j++) {if(data[k][1]==b.at(i)&&data[k][2]==b.at(i)&&data[k][3]==b[i])
      |                                                                                            ^
a.cc:23:17: error: invalid types 'int[int]' for array subscript
   23 | if(data[1][j]==b[i]&&data[2][j]==b[i]&&data[3][j]==b[i])
      |                 ^
a.cc:23:35: error: invalid types 'int[int]' for array subscript
   23 | if(data[1][j]==b[i]&&data[2][j]==b[i]&&data[3][j]==b[i])
      |                                   ^
a.cc:23:53: error: invalid types 'int[int]' for array subscript
   23 | if(data[1][j]==b[i]&&data[2][j]==b[i]&&data[3][j]==b[i])
      |                                                     ^
a.cc:26:29: error: invalid types 'int[int]' for array subscript
   26 |       if(data.at(1).at(1)==b[i]&&data.at(2).at(2)==b[i]&&data.at(3).at(3)==b[i]
      |                             ^
a.cc:26:53: error: invalid types 'int[int]' for array subscript
   26 |       if(data.at(1).at(1)==b[i]&&data.at(2).at(2)==b[i]&&data.at(3).at(3)==b[i]
      |                                                     ^
a.cc:26:77: error: invalid types 'int[int]' for array subscript
   26 |       if(data.at(1).at(1)==b[i]&&data.at(2).at(2)==b[i]&&data.at(3).at(3)==b[i]
      |                                                                             ^
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 cnt=0;
  	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]|| (i==j&& x==a[i][j]))}){
          cnt++;
          j=3;

        }

      }

    }
    if(cnt>=3) cout<<"Yes"<<endl;
      else cout<<"No"<<endl;


}



Compiler output:
a.cc: In function 'int main()':
a.cc:17:47: error: expected primary-expression before '}' token
   17 |         if(x == a[i][j]|| (i==j&& x==a[i][j]))}){
      |                                               ^
a.cc:17:48: error: expected primary-expression before ')' token
   17 |         if(x == a[i][j]|| (i==j&& x==a[i][j]))}){
      |                                                ^
a.cc: At global scope:
a.cc:26:5: error: expected unqualified-id before 'if'
   26 |     if(cnt>=3) cout<<"Yes"<<endl;
      |     ^~
a.cc:27:7: error: expected unqualified-id before 'else'
   27 |       else cout<<"No"<<endl;
      |       ^~~~
a.cc:30:1: error: expected declaration before '}' token
   30 | }
      | ^
Language: C++

//#include<bits/stdc++.h>
#include<cstdio>
#include<iostream>
#include<algorithm>
#include<cstring>
#include<cmath>
#include<map>
#include<queue>
#include<stack>
#include<set>
#include<unordered_map>
#include<bitset>
using namespace std;
#define int long long
#define ll long long
#define str string
#define db double
#define ac() cout<<"Yes"<<endl
#define wa()  cout<<"No"<<endl
#define ddd cout<<"---debug---"<<endl;
#define ff(a,b) for(signed long long (a)=1;(a)<=(b);(a)++)
#define fff(a,b) for(signed long long (a)=0;(a)<(b);(a)++)
#define re readdd()
#define pr(a) printtt(a)
#define pee puts("");
#define eee putchar(' ');
#define pss(a) push_back(a)
#define ps(a) push(a)
#define SZ(x) x.size()
#define epp empty()
#define all(x) x.begin(),x.end()
typedef vector<int> VE;
int gcd(int a,int b){return b==0?a:gcd(b,a%b);}//
int ppow(int a,int b,int mod){a%=mod;//
int ans=1%mod;while(b){if(b&1)ans=(long long)ans*a%mod;
a=(long long)a*a%mod;b>>=1;}return ans;}
int readdd(){int x=0,f=1;char c=getchar();//
while(!isdigit(c)&&c!='-')c=getchar();
if(c=='-')f=-1,c=getchar();
while(isdigit(c))x=x*10+c-'0',c=getchar();
return f*x;}
void printtt(int x){if(x<0)putchar('-'),x=-x;
if(x>=10)printtt(x/10);putchar(x%10+'0');}
bool addd(int a,int b){return a>b;};
//
const int maxm=1e5+5;


signed main(){
    int a[4][4];
    int b[4][4]=0;
    int r[4]={0},c[4]={0};
    ff(i,3)ff(j,3)a[i][j]=re;
    int n=re;
    ff(xx,n){
        int x=re;
        ff(i,3)ff(j,3){
            if(a[i][j]==x)b[i][j]=1;
        }
    }
    ff(i,3)ff(j,3){
        if(b[i][j]){
            r[i]++;
            c[j]++;
        }
    }
    int ok=0;
    ff(i,3)if(r[i]==3||c[i]==3){
        ok=1;
        break;
    }
    int f=0;
    ff(i,3){
        f+=b[i][i];
    }
    if(f==3)ok=1;
    f=0;
    ff(i,3){
        f+=b[i][4-i];
    }
    if(f==3)ok=1;
    if(ok)puts("Yes");
    else puts("No");
    return 0;
}


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

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


int main(){

  int a, b, c ,d, e, f, g, h, i;
  int N;

  cin >> a >> b >> c >> d >> e >> f >> g >> h >> i;
  cin >> N;

  vector <int> S(N);

  for(int j=0; j<N; j++){
    cin >> S.at(j);
  }


  int A=0, B=0, C=0, D=0, E=0, F=0, G=0, H=0, I=0;

  for(int k=0; k<N; k++){
    if(S.at(k) == a){
      A = 1;
    }

    if(S.at(k) == b){
      B = 1;
    }

    if(S.at(k) == c){
      C = 1;
    }

    if(S.at(k) == d){
      D = 1;
    }

    if(S.at(k) == e){
      E = 1;
    }

    if(S.at(k) == f){
      F = 1;
    }

    if(S.at(k) == g){
      G = 1;
    }

    if(S.at(k) == h){
      H = 1;
    }

    if(S.at(k) == i){
      I = 1;
    }

    if(S.at(k) == a){
      A = 1;
    }
  }

int bingo = 0;

  if((A == B) && (B == C){
    bingo++;
  }
   if((D == E) && (E == F){
    bingo++;
  }
   if((G == H) && (H == I){
    bingo++;
  }
  if((A == D) && (D == G){
    bingo++;
  }
   if((B == E) && (E == H){
    bingo++;
  }
   if((C == F) && (F == I){
    bingo++;
  }
   if((A == E) && (E == I){
    bingo++;
  }
   if((C == E) && (E == G){
    bingo++;
  }

  
  if(bingo == 0){
    cout << "No" << endl;
  }
   if(bingo != 0){
    cout << "Yes" << endl;
  }
}


Compiler output:
a.cc: In function 'int main()':
a.cc:66:26: error: expected ')' before '{' token
   66 |   if((A == B) && (B == C){
      |     ~                    ^
      |                          )
a.cc:98:1: error: expected primary-expression before '}' token
   98 | }
      | ^
Language: C++

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

int main(){
  vector<pair<int,bitset<1> > >A(9);
  for(int i=0;i<9;i++){
    int a;
    cin >> a;
    A.at(i)=make_pair(a,0);
  }

  int N;
  cin >> N;
  for(int i=0;i<N;i++){
    int b;
    cin >> b;
    for(int j=0;j<9;j++){
      if(A.at(j).first==b){
        A.at(j).second.set();
      }
    }
  }
  if((A.at(0).second==1 && A.at(1).second==1 && A.at(2).second==1)
    ||(A.at(3).second==1 && A.at(4).second==1 && A.at(5).second==1)
    ||(A.at(6).second==1 && A.at(7).second==1 && A.at(8).second==1)
    ||(A.at(0).second==1 && A.at(3).second==1 && A.at(6).second==1)
    ||(A.at(1).second==1 && A.at(4).second==1 && A.at(7).second==1)
    ||(A.at(2).second==1 && A.at(5).second==1 && A.at(8).second==1)
    ||(A.at(0).second==1 && A.at(4).second==1 && A.at(8).second==1)
    ||(A.at(2).second==1 && A.at(4).second==1 && A.at(6).second==1)){
      cout << "Yes" << endl;
    }
    else{
      cout << "No" << endl;
    }
}


Compiler output:
a.cc: In function 'int main()':
a.cc:7:19: error: 'bitset' was not declared in this scope
    7 |   vector<pair<int,bitset<1> > >A(9);
      |                   ^~~~~~
a.cc:4:1: note: 'std::bitset' is defined in header '<bitset>'; this is probably fixable by adding '#include <bitset>'
    3 | #include<vector>
  +++ |+#include <bitset>
    4 | using namespace std;
a.cc:7:27: error: template argument 2 is invalid
    7 |   vector<pair<int,bitset<1> > >A(9);
      |                           ^
a.cc:7:29: error: template argument 1 is invalid
    7 |   vector<pair<int,bitset<1> > >A(9);
      |                             ^
a.cc:7:29: error: template argument 2 is invalid
a.cc:7:31: error: expected unqualified-id before '>' token
    7 |   vector<pair<int,bitset<1> > >A(9);
      |                               ^
a.cc:11:5: error: 'A' was not declared in this scope
   11 |     A.at(i)=make_pair(a,0);
      |     ^
a.cc:20:10: error: 'A' was not declared in this scope
   20 |       if(A.at(j).first==b){
      |          ^
a.cc:25:7: error: 'A' was not declared in this scope
   25 |   if((A.at(0).second==1 && A.at(1).second==1 && A.at(2).second==1)
      |       ^
Language: C++

#include <bits/stdc++.h>
using namespace std;
 
int main() {
vector<vector<int>> a(3, vector<int>(3));
  for (int i = 0; i < 2; i++) {
 for (int j = 0; j < 2; j++) {
 cin>>a[i][j];
}
}
  int n;
  cin>>n;
     vector<int> b(n);
   for (int i = 0; i < n; i++) {
    cin >> b.at(i);
  }
  string ans="No";
  for(int i = 0; i < 3; i++) {
if(a[i][0] and a[i][1] and a[i][2]) and = "Yes";
 }
 for(int i = 0; i < 3; i++) {
 if(a[0][i] and a[1][i] and a[2][i]) ans = "Yes";
 }
 if(a[0][0] and a[1][1] and a[2][2]) ans = "Yes";
 if(a[0][2] and a[1][1] and a[2][0]) ans = "Yes";

cout<<ans<<endl;

}

Compiler output:
a.cc: In function 'int main()':
a.cc:19:41: error: expected identifier before '=' token
   19 | if(a[i][0] and a[i][1] and a[i][2]) and = "Yes";
      |                                         ^
Language: C++

#include<iostream>
#include<cstring> 
using namespace std;
int main()
{
	int a[4][4],b[4][4];
	for(int i=1;i<=3;i++)
		for(int j=1;j<=3;j++)
		cin>>a[i][j];
		 memset(b,0,sizeof(b));
		 int n,m;
		 cin>>n;
		 for(int i=0;i<n;i++)
		 {
		 	cin>>m;
		 	for(int j=1;j<=3;j++)
		 		for(int x=1;x<=3;x++)
		 		{
		 			if(m==a[j][x])
		 			b[j][x]=1;
				}
		 }
		 int panduan=0;
		 for(int i=1;i<=3;i++)
		 {
		 	if(b[i][1]+b[i][2]+b[i][3]==3)
			 panduan=1; 
		 }
		 for(int j=1;j<=3;j++)
		 {
		 	if(b[1][j]+b[2][j]+b[3][j]==3)
		 	panduan=1;
		 }
		 if(b[1][1]+b[2][2]+b[3][3]==3)
		 panduan=1;
		 if(b[1][3]+b[2][2]+b[3][1])
		 panduan=1;
		 
		 if(panduan==1)
		 cout<<"Yes";
		 else
		 cout<<"No";
 } #include<iostream>
#include<cstring> 
using namespace std;
int main()
{
	int a[4][4],b[4][4];
	for(int i=1;i<=3;i++)
		for(int j=1;j<=3;j++)
		cin>>a[i][j];
		 memset(b,0,sizeof(b));
		 int n,m;
		 cin>>n;
		 for(int i=0;i<n;i++)
		 {
		 	cin>>m;
		 	for(int j=1;j<=3;j++)
		 		for(int x=1;x<=3;x++)
		 		{
		 			if(m==a[j][x])
		 			b[j][x]=1;
				}
		 }
		 int panduan=0;
		 for(int i=1;i<=3;i++)
		 {
		 	if(b[i][1]+b[i][2]+b[i][3]==3)
			 panduan=1; 
		 }
		 for(int j=1;j<=3;j++)
		 {
		 	if(b[1][j]+b[2][j]+b[3][j]==3)
		 	panduan=1;
		 }
		 if(b[1][1]+b[2][2]+b[3][3]==3)
		 panduan=1;
		 if(b[1][3]+b[2][2]+b[3][1])
		 panduan=1;
		 
		 if(panduan==1)
		 cout<<"Yes";
		 else
		 cout<<"No";
 } 

Compiler output:
a.cc:43:4: error: stray '#' in program
   43 |  } #include<iostream>
      |    ^
a.cc:43:5: error: 'include' does not name a type
   43 |  } #include<iostream>
      |     ^~~~~~~
a.cc:46:5: error: redefinition of 'int main()'
   46 | int main()
      |     ^~~~
a.cc:4:5: note: 'int main()' previously defined here
    4 | int main()
      |     ^~~~
Language: C++

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

int main() {
  vector<vector<int>> b(3, vector<int>(3));
  cin >> b[0][0] >> b[0][1] >> b[0][2];
  cin >> b[1][0] >> b[1][1] >> b[1][2];
  cin >> b[2][0] >> b[2][1] >> b[2][2];
  int n;
  cin >> n;
  vector<int> m(n);
  for(i=0;i<n;i++;){
    cin >> m.at(i);
  }
  for(i=0;i<n;i++){
    for(j=0;j<3;j++){
      for(k=0;k<3;k++){
        if(m.at(i) == b[j][k]){
          b[j][k] = 1000;
        }
      }
    }
  }
  if(b[0][0]+b[0][1]+b[0][2]==3000){
    cout << "Yes";
    return 0;
  }else if(b[1][0]+b[1][1]+b[1][2]==3000){
    cout << "Yes";
    return 0;
  }else if(b[2][0]+b[2][1]+b[2][2]==3000){
    cout << "Yes";
    return 0;
  }else if(b[0][0]+b[1][0]+b[2][0]==3000){
    cout << "Yes";
    return 0;
  }else if(b[0][1]+b[1][1]+b[2][1]==3000){
    cout << "Yes";
    return 0;
  }else if(b[0][2]+b[1][2]+b[2][2]==3000){
    cout << "Yes";
    return 0;
  }else if(b[0][0]+b[1][1]+b[2][2]==3000){
    cout << "Yes";
    return 0;
  }else if(b[0][2]+b[1][1]+b[2][0]==3000){
    cout << "Yes";
    return 0;
  }else{
    cout << "No";
  }
}


Compiler output:
a.cc: In function 'int main()':
a.cc:12:7: error: 'i' was not declared in this scope
   12 |   for(i=0;i<n;i++;){
      |       ^
a.cc:12:18: error: expected ')' before ';' token
   12 |   for(i=0;i<n;i++;){
      |      ~           ^
      |                  )
a.cc:12:19: error: expected primary-expression before ')' token
   12 |   for(i=0;i<n;i++;){
      |                   ^
a.cc:15:7: error: 'i' was not declared in this scope
   15 |   for(i=0;i<n;i++){
      |       ^
a.cc:16:9: error: 'j' was not declared in this scope
   16 |     for(j=0;j<3;j++){
      |         ^
a.cc:17:11: error: 'k' was not declared in this scope
   17 |       for(k=0;k<3;k++){
      |           ^
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.at(i).at(j);
    }
  }
  int N; cin>>N;
  vector <int> b(N);
  for(int i=0;i<N;i++){
   cin>>b.at(i);
  }
  vector <vector<bool>> ok (3,vector<bool>(3,false));
  
  for(int k=0;k<N;k++){
    for(int i=0;i<3;i++){
    for(int j=0;j<3;j++){
    if(b.at(k)==A.at(i).at(j))
      ok.at(i).at(j)=true;
    }
    
    }
 }
  
  
  string ans="No";
  
  for(int i=0;i<3;i++){
  if(ok.at(i).at(0) && ok.at(i).at(1) && ok.at(i).at(2)){
       ans="Yes"; break;
  }
  
  }
  if(ans!="Yes"){
  for(int i=0;i<3;i++){
  if(ok.at(0).at(i) && ok.at(1).at(i) && ok.at(2).at(i)){
       ans="Yes"; break;
  }
  
  }
    if(ans!="Yes"){
    if(ok.at(0).at(0) && ok.at(1).at(1) && ok.at(2).at(2))
       ans="Yes"; 
      if(ok.at(0).at(2) && ok.at(1).at(1) && ok.at(2).at(0))
       ans="Yes"; 
  
    
    
    
    }  cout<<ans<<endl;
  
  return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:56:2: error: expected '}' at end of input
   56 | }
      |  ^
a.cc:3:11: note: to match this '{'
    3 | 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.at(i).at(j);
    }
  }
  int N; cin>>N;
  vector <int> b(N);
  for(int i=0;i<N;i++){
   cin>>b.at(i);
  }
  vector <vector<bool>> ok (3,vector(3,false));
  
  for(int k=0;k<N;k++){
    for(int i=0;i<3;i++){
    for(int j=0;j<3;j++){
    if(b.at(k)==A.at(i).at(j))
      ok.at(i).at(j)=true;
    }
    
    }
 }
  
  
  string ans="No";
  
  for(int i=0;i<3;i++){
  if(ok.at(i).at(0) && ok.at(i).at(1) && ok.at(i).at(2)){
       ans="Yes"; break;
  }
  
  }
  if(ans!="Yes"){
  for(int i=0;i<3;i++){
  if(ok.at(0).at(i) && ok.at(1).at(i) && ok.at(2).at(i)){
       ans="Yes"; break;
  }
  
  }
    if(ans!="Yes"){
    if(ok.at(0).at(0) && ok.at(1).at(1) && ok.at(2).at(2))
       ans="Yes"; 
      if(ok.at(0).at(2) && ok.at(1).at(1) && ok.at(2).at(0))
       ans="Yes"; 
  
    
    
    
    }  cout<<ans<<endl;
  
  return 0;
}

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