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

int main() {
  vector<vector<int>>A(3,vector<int>(3));
  int N;
  vector<int>b(N);
  for(int i=0;i<3;i++){
    for(int j=0;j<3;j++){
       cin >> A.at(i).at(j);
    }
  }
  cin >> N;
  for(int i=0;i<N;i++) cin >> b.at(i);
  for(int i=0;i<3;i++){
    for(int j=0;j<3;j++){
      for(int k=0;k<N;k++){
        if(A.at(i).at(j) == b.at(k)) A.at(i).at(j) = 0;
      }
    }
  }
  bool a = false;
  for(int i=0;i<3;i++){
    if((A.at(i).at(0) == A.at(i).at(1) && A.at(i).at(1) == A.at(i).at(2))
      || (A.at(0).at(0) == A.at(1).at(i) && A.at(1).at(i) == A.at(2).at(i)))
      a = true;
  }
  if((A.at(0).at(0) == A.at(1).at(1) && A.at(1).at(1) == A.at(2).at(2))
     || (A.at(0).at(2) == A.at(1).at(1) && A.at(1).at(1) == A.at(2).at(0)))
    a = true;
  if(a) cout << "Yes" << endl;
  else cout << "No" << endl;
       
    
}


Compiler output:
a.cc: In function 'int main()':
a.cc:2:3: error: 'vector' was not declared in this scope
    2 |   vector<vector<int>>A(3,vector<int>(3));
      |   ^~~~~~
a.cc:2:17: error: expected primary-expression before 'int'
    2 |   vector<vector<int>>A(3,vector<int>(3));
      |                 ^~~
a.cc:4:10: error: expected primary-expression before 'int'
    4 |   vector<int>b(N);
      |          ^~~
a.cc:7:8: error: 'cin' was not declared in this scope
    7 |        cin >> A.at(i).at(j);
      |        ^~~
a.cc:7:15: error: 'A' was not declared in this scope
    7 |        cin >> A.at(i).at(j);
      |               ^
a.cc:10:3: error: 'cin' was not declared in this scope
   10 |   cin >> N;
      |   ^~~
a.cc:11:31: error: 'b' was not declared in this scope
   11 |   for(int i=0;i<N;i++) cin >> b.at(i);
      |                               ^
a.cc:15:12: error: 'A' was not declared in this scope
   15 |         if(A.at(i).at(j) == b.at(k)) A.at(i).at(j) = 0;
      |            ^
a.cc:15:29: error: 'b' was not declared in this scope
   15 |         if(A.at(i).at(j) == b.at(k)) A.at(i).at(j) = 0;
      |                             ^
a.cc:21:9: error: 'A' was not declared in this scope
   21 |     if((A.at(i).at(0) == A.at(i).at(1) && A.at(i).at(1) == A.at(i).at(2))
      |         ^
a.cc:25:7: error: 'A' was not declared in this scope
   25 |   if((A.at(0).at(0) == A.at(1).at(1) && A.at(1).at(1) == A.at(2).at(2))
      |       ^
a.cc:28:9: error: 'cout' was not declared in this scope
   28 |   if(a) cout << "Yes" << endl;
      |         ^~~~
a.cc:28:26: error: 'endl' was not declared in this scope
   28 |   if(a) cout << "Yes" << endl;
      |                          ^~~~
a.cc:29:8: error: 'cout' was not declared in this scope
   29 |   else cout << "No" << endl;
      |        ^~~~
a.cc:29:24: error: 'endl' was not declared in this scope
   29 |   else cout << "No" << endl;
      |                        ^~~~
Language: C++

#include <bits/stdc++.h>
 using namespace std;
#define rep(i,n) for(int i=0;i<n;i++)
 int main(){
  int n;
  string s;
  vector<vector<int>> a(3,vector<int>(3));
    rep(i,3){
     rep(j,3){
      cin>>a.at(i).at(j);
    }
  }
  cin>>n;
  vector<int> b(n);
  vector<vector<int>> c(3,vector<int>(3));
  rep(k,n){
   cin>>b.at(k);
    rep(i,3){
     rep(j,3){
   if(a.at(i).at(j)==b(k)){
    c.at(i).at(j)=1;
     }
    }
   }
  }
  s="No";
  rep(i,3){
  if((c.at(i).at(0))+(c.at(i).at(1))+(c.at(i).at(2))==3)
    s="Yes";
  }
  rep(i,3){
  if((c.at(0).at(i))+(c.at(1).at(i))+(c.at(2).at(i))==3)
    s="Yes";
  }
  if((c.at(0).at(0))+(c.at(1).at(1))+(c.at(2).at(2))==3)
    s="Yes";
  if((c.at(0).at(2))+(c.at(1).at(1))+(c.at(2).at(0))==3)
    s="Yes";
   
  cout<<s<<endl;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:20:23: error: no match for call to '(std::vector<int>) (int&)'
   20 |    if(a.at(i).at(j)==b(k)){
      |                      ~^~~
Language: C++

#include <bits/stdc++.h>
 using namespace std;
#define rep(i,n) for(int i=0;i<n;i++)
 int main(){
  int n;
  string s;
  vector<vector<int>> a(3,vector<int>(3));
    rep(i,3){
     rep(j,3){
      cin>>a.at(i).at(j);
    }
  }
  cin>>n;
  vector<int> b(n);
  vector<vector<int>> c(3,vector<int>(3));
  rep(k,n){
   cin>>b.at(k);
   if(a.at(i).at(j)==b(k)){
    c.at(i).at(j)=1;
   }
  }
  s="No";
  rep(i,3){
  if((c.at(i).at(0))+(c.at(i).at(1))+(c.at(i).at(2))==3)
    s="Yes";
  }
  rep(i,3){
  if((c.at(0).at(i))+(c.at(1).at(i))+(c.at(2).at(i))==3)
    s="Yes";
  }
  if((c.at(0).at(0))+(c.at(1).at(1))+(c.at(2).at(2))==3)
    s="Yes";
  if((c.at(0).at(2))+(c.at(1).at(1))+(c.at(2).at(0))==3)
    s="Yes";
   
  cout<<s<<endl;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:18:12: error: 'i' was not declared in this scope
   18 |    if(a.at(i).at(j)==b(k)){
      |            ^
a.cc:18:18: error: 'j' was not declared in this scope
   18 |    if(a.at(i).at(j)==b(k)){
      |                  ^
a.cc:18:23: error: no match for call to '(std::vector<int>) (int&)'
   18 |    if(a.at(i).at(j)==b(k)){
      |                      ~^~~
Language: C++

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

char check(int a,int b,int c){
  if(a==0&&b==0){
  if(c==0){
  return t;
  }
  else{
  return f;
  }
  }
  else{
  return f;
  }
}

int main(){
  vector<int>x(9);
  for(int i=0;i<9;i++){
  cin>>x.at(i);
  }
  int N;
  cin>>N
  for(int j=0;j<N;j++){
  int y;
  cin>>y;
  for(int k=0;k<9;k++){
  if(x.at(k)==y){
  x.at(k)=0;
  }
  }
  }
  vector<char>y(8);
  y.at(0)=check(x.at(0),x.at(1),x.at(2));
  y.at(1)=check(x.at(3),x.at(4),x.at(5));
  y.at(2)=check(x.at(6),x.at(7),x.at(8));
  y.at(3)=check(x.at(0),x.at(3),x.at(6));
  y.at(4)=check(x.at(1),x.at(4),x.at(7));
  y.at(5)=check(x.at(2),x.at(5),x.at(8));
  y.at(6)=check(x.at(0),x.at(4),x.at(8));
  y.at(7)=check(x.at(2),x.at(4),x.at(6));
  for(int l=0;l<8;l++){
  if(y.at(l)==t){
  cout<<"Yes"<<endl;
  return 0;
  }
  }
  cout<<"No"<<endl;
}

Compiler output:
a.cc: In function 'char check(int, int, int)':
a.cc:7:10: error: 't' was not declared in this scope
    7 |   return t;
      |          ^
a.cc:10:10: error: 'f' was not declared in this scope
   10 |   return f;
      |          ^
a.cc:14:10: error: 'f' was not declared in this scope
   14 |   return f;
      |          ^
a.cc: In function 'int main()':
a.cc:24:9: error: expected ';' before 'for'
   24 |   cin>>N
      |         ^
      |         ;
   25 |   for(int j=0;j<N;j++){
      |   ~~~    
a.cc:25:15: error: 'j' was not declared in this scope
   25 |   for(int j=0;j<N;j++){
      |               ^
a.cc:44:15: error: 't' was not declared in this scope
   44 |   if(y.at(l)==t){
      |               ^
Language: C++

#include <bits/stdc++.h>
#define ll long long

using namespace std;

int main() {
    int n;
    int vec[3][3];
    bool seen[3][3];
    int nums[10];

    for (int i = 0; i < 3; i++) {
        for (int j = 0; j < 3; j++) {
            cin >> vec[i][j];
        }
    }
    cin >> n;
    for (int i = 0; i < n; i++) {
        cin >> nums[i];
    }
    for (int i = 0; i < 3; i++) {
        for (int j = 0; j < 3; j++) {
            for (int k = 0; k < 10; k++) {
                if (b[k] == vec[i][j]) {
                    seen[i][j] = true;
                }
            }
        }
    }
    string ans = "No";

    // Rows
    for (int i = 0; i < 3; i++) {
        if (seen[i][0] && seen[i][1] && seen[i][2]) {
            ans = "Yes";
        }
    }

    // Cols
    for (int i = 0; i < 3; i++) {
        if (seen[0][i] && seen[1][i] && seen[2][i]) {
            ans = "Yes";
        }
    }
    if (seen[0][0] && seen[1][1] && seen[2][2]) ans = "Yes";
    if (seen[0][2] && seen[1][1] && seen[2][0]) ans = "Yes";
    cout << ans << endl;

    return 0;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:24:21: error: 'b' was not declared in this scope
   24 |                 if (b[k] == vec[i][j]) {
      |                     ^
Language: C++

#include<bits/stdc++.h>
using namespace std;
int main()
{
  int mat[3][3];
  int q,x;
  for(int i=0;i<3;i++)
  {
    for(int j=0;j<3;j++)
    {
      cin>>mat[i][j];
    }
  }
  cin>>q;
  if(q<3) cout<<"No";
  for(int i=1;i<=q;i++)
  {
    cin>>x;
    for(int i=0;i<3;i++)
    {
      for(int j=0;j<3;j++)
      {
		if(mat[i][j]==x){
          mat[i][j]=1;
        }
      }
    }
  }
  int sum1,sum2;
  sum1=sum2=0;
  flag=false;
  for(int i=0;i<3;i++)
  {
    sum1=sum2=0;
    for(int j=0;j<3;j++)
    {
     sum1+=mat[i][j];
     sum2+=mat[j][i];
    }
    if(sum1==3 || sum2==3)
    {
      flag=true;
      break;
    }
  }
  if(flag) cout<<"Yes";
  else {
    sum1=sum2=0;
    sum1+=mat[0][0]+mat[1][1]+mat[2][2];
    sum2+=mat[0][2]+mat[1][1]+mat[2][0];
    if(sum1==3 || sum2==3) cout<<"Yes";
    else cout<<"No";
  }
  return 0;
}

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

#include <bits/stdc++.h>
#include <boost/range/irange.hpp>
using namespace std::literals;
using namespace std;

namespace xmaho
{
inline namespace input
{
template<typename T>
T get_value(std::istream& is = std::cin);
template<typename C>
C get_container(std::istream& is = std::cin, typename C::size_type length = std::numeric_limits<typename C::size_type>::max());
}
}
using namespace xmaho;

int main()
{
  std::array<int, 9> table;
  std::vector<std::array<int, 3>> kernels {{0, 1, 2}, {3, 4, 5}, {6, 7, 8}, {0, 3, 6}, {1, 4, 7}, {2, 5, 7}, {0, 4, 7}, {2, 4, 6}};

  for (auto& e : table) {
    std::cin >> e;
  }
  for (auto i {get_value<int>()}; i != 0; --i) {
    std::replace(table.begin(), table.end(), get_value<int>(), -1);
  }
  for (const auto& karnel : karnels) {
    bool found {true};
    for (auto& i : karnel) {
      if (table[i] != -1) {
        found = false;
        break;
      }
    }
    if (found) {
      std::cout << true << std::endl;
      return 0;
    }
  }
  std::cout << false << std::endl;
  return 0;
}

class initalization
{
  class custom_numpunct: public std::numpunct<char>
  {
  public:
    using numpunct::numpunct;
  protected:
    std::string do_truename() const override { return "Yes"; }
    std::string do_falsename() const override { return "No"; }
  };

public:
  initalization()
  {
    std::ios_base::sync_with_stdio(false);
    std::cin.tie(nullptr);
    std::cout.imbue(std::locale(std::cout.getloc(), new custom_numpunct{}));
    std::cout << std::boolalpha << std::fixed << std::setprecision(15);
  }
} initalize;

template<typename T>
T xmaho::input::get_value(std::istream& is)
{ T v {}; is >> v; return v; }

template<typename C>
C xmaho::input::get_container(std::istream& is, typename C::size_type length)
{
  C v {};
  if (length != std::numeric_limits<typename C::size_type>::max())
    v.reserve(length);
  typename C::value_type e {};
  for (auto i {length}; i != 0 && is >> e; --i)
    v.push_back(std::move_if_noexcept(e));
  return v;
}


Compiler output:
a.cc:2:10: fatal error: boost/range/irange.hpp: No such file or directory
    2 | #include <boost/range/irange.hpp>
      |          ^~~~~~~~~~~~~~~~~~~~~~~~
compilation terminated.
Language: Java

import java.io.*;
import java.util.Scanner;
import java.util.ArrayList;
import java.util.Arrays;

public class Main {
  
  public static void main(String[] args){
    
    try {
      
      //標準入力受け取り
      Scanner scan            = new Scanner(System.in);
      ArrayList<Integer> strs = new ArrayList<Integer>();
      
      while (scan.hasNext()){
      	strs.add(scan.nextInt());
      }
      
      //変数へ代入
      int [][] bingo  = new int[3][3]; //ビンゴ表
      int      row    = 0;             //行
      int      num    = 0;             //チェック値
      String   jadge  = "No";          //判定
      
      for (int x=0; x<9; x++) {
      	for (int y=9; y<strs.size(); y++){
           for(int column=0; column<3; z++){
              bingo[row][column] = 0;
              //穴が開いた場合
              if (strs.get(x) == strs.get(y) ) {
	    		  bingo[row][column] = 1;
              }                 
           } 
           row++;
        }
      }
      
      //ビンゴ有無チェック
      loop: for (int i=0; i<3; i++){
      	for(int j=0; j<3; j++){
          
          num += bingo[i][j];
          if (num == 3){
            jadge ="Yes";
            break loop;
          }
        }
        num = 0;
      }
      
      System.out.println(jadge);
      
    } catch (Exception e) {
      
      System.out.println("error");

    }
  }
}


Compiler output:
Main.java:28: error: cannot find symbol
           for(int column=0; column<3; z++){
                                       ^
  symbol:   variable z
  location: class Main
1 error
Language: C++

a = [list(map(int, input().split())) for i in range(3)]
n = int(input())
b = [int(input()) for i in range(n)]

for i in range(3):
    for j in range(3):
        for k in range(n):
            if a[i][j] == b[k]:
                a[i][j] = True

if a[0][0] and a[1][1] and a[2][2] == True:
    print("Yes")
    exit()

if a[0][2] and a[1][1] and a[2][0] == True:
    print("Yes")
    exit()

for i in range(3):
    if a[0][i] and a[1][i] and a[2][i] == True:
        print("Yes")
        exit()
for i in range(3):
    if a[i][0] and a[i][1] and a[i][1] == True:
        print("Yes")
        exit()

print("No")


Compiler output:
a.cc:1:1: error: 'a' does not name a type
    1 | a = [list(map(int, input().split())) for i in range(3)]
      | ^
Language: C++

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

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

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

Compiler output:
a.cc: In function 'int main()':
a.cc:23:5: error: 'appear' was not declared in this scope
   23 |  if(appear[i][0] and appear[i][1] and appear[i][2]) ANS = "Yes";
      |     ^~~~~~
a.cc:26:5: error: 'appear' was not declared in this scope
   26 |  if(appear[0][i] and appear[1][i] and appear[2][i]) ANS = "Yes";
      |     ^~~~~~
a.cc:28:5: error: 'appear' was not declared in this scope
   28 |  if(appear[0][0] and appear[1][1] and appear[2][2]) ANS = "Yes";
      |     ^~~~~~
a.cc:29:5: error: 'appear' was not declared in this scope
   29 |  if(appear[0][2] and appear[1][1] and appear[2][0]) ANS = "Yes";
      |     ^~~~~~
a.cc: At global scope:
a.cc:33:1: error: expected declaration before '}' token
   33 | }
      | ^
Language: C++

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

Compiler output:
a.cc: In function 'int main()':
a.cc:17:28: error: 'N' was not declared in this scope
   17 |         for(int k = 0; k < N; k++) {
      |                            ^
a.cc:18:4: error: 'A' was not declared in this scope
   18 | if(A[i][r] == b[k]) appear[i][j] = true; }
      |    ^
a.cc:18:21: error: 'appear' was not declared in this scope
   18 | if(A[i][r] == b[k]) appear[i][j] = true; }
      |                     ^~~~~~
a.cc:18:31: error: 'j' was not declared in this scope
   18 | if(A[i][r] == b[k]) appear[i][j] = true; }
      |                               ^
a.cc:23:5: error: 'appear' was not declared in this scope
   23 |  if(appear[i][0] and appear[i][1] and appear[i][2]) ANS = "Yes";
      |     ^~~~~~
a.cc:26:5: error: 'appear' was not declared in this scope
   26 |  if(appear[0][i] and appear[1][i] and appear[2][i]) ANS = "Yes";
      |     ^~~~~~
a.cc:28:5: error: 'appear' was not declared in this scope
   28 |  if(appear[0][0] and appear[1][1] and appear[2][2]) ANS = "Yes";
      |     ^~~~~~
a.cc:29:5: error: 'appear' was not declared in this scope
   29 |  if(appear[0][2] and appear[1][1] and appear[2][0]) ANS = "Yes";
      |     ^~~~~~
a.cc: At global scope:
a.cc:33:1: error: expected declaration before '}' token
   33 | }
      | ^
Language: Java

import java.io.*;
import java.util.Scanner;
import java.util.ArrayList;

public class Main {
  
  public static void main(String[] args){
    
    try {
      
      //標準入力受け取り
      Scanner scan            = new Scanner(System.in);
      ArrayList<Integer> strs = new ArrayList<Integer>();
      
      while (scan.hasNext()){
      	strs.add(scan.nextInt());
      }
      
      //変数へ代入
      int [][] bingo;      //ビンゴ表
      int    num   = 0;    //チェック値
      String jadge = "No"; //判定
      
      for (int x=0; i<8; i++) {
      	for (int y=9; y<strs.size(); y++){
           
           bing[x][y] = 0;
           
           //穴が開いた場合
           if (strs.get(x) = strs.get(y) ) {
				bingo[x][y] = 1;              
           }  
        }
      }
      
      //ビンゴ有無チェック
      loop: for (int i=0; i<3; i++){
      	for(int j=0; j<3; j++){
          
          num += bingo[i][j]
          if (num=3){
            jadge ="Yes";
            break loop;
          }
        }
        num = 0;
      }
      
      System.out.println(jadge);
      
    } catch (Exception e) {
      
      System.out.println("error");

    }
  }
}


Compiler output:
Main.java:40: error: ';' expected
          num += bingo[i][j]
                            ^
1 error
Language: C++


for(int i = 0; i < 3; i++){
    for(int j = 0; j < 3; j++){
        cin >> A[i][j];
        }
    }
cin >> N;
for(int i = 0; i < N; i++){
    cin >> b[i];
}
for(int i = 0; i < N; i++) {
    for(int j = 0; j < N; j++) { 
        appear[i][j] = false;
        for(int k = 0; k < N; k++) {
        if(A[i][j] == b[k]) appear[i][j] = true; 
            }
        } 
    }
string ANS = "No";
for(int i = 0; i < 3; i++) {
    if(appear[i][0] and appear[i][1] and appear[i][2]) ANS = "Yes"; 
}
for(int i = 0; i < 3; i++) {
    if(appear[0][i] and appear[1][i] and appear[2][i]) ANS = "Yes";
}
if(appear[0][0] and appear[1][1] and appear[2][2]) ANS = "Yes"; 
if(appear[0][2] and appear[1][1] and appear[2][0]) ANS = "Yes"; 
cout << ANS << endl;
return 0;

Compiler output:
a.cc:2:1: error: expected unqualified-id before 'for'
    2 | for(int i = 0; i < 3; i++){
      | ^~~
a.cc:2:16: error: 'i' does not name a type
    2 | for(int i = 0; i < 3; i++){
      |                ^
a.cc:2:23: error: 'i' does not name a type
    2 | for(int i = 0; i < 3; i++){
      |                       ^
a.cc:7:1: error: 'cin' does not name a type
    7 | cin >> N;
      | ^~~
a.cc:8:1: error: expected unqualified-id before 'for'
    8 | for(int i = 0; i < N; i++){
      | ^~~
a.cc:8:16: error: 'i' does not name a type
    8 | for(int i = 0; i < N; i++){
      |                ^
a.cc:8:23: error: 'i' does not name a type
    8 | for(int i = 0; i < N; i++){
      |                       ^
a.cc:11:1: error: expected unqualified-id before 'for'
   11 | for(int i = 0; i < N; i++) {
      | ^~~
a.cc:11:16: error: 'i' does not name a type
   11 | for(int i = 0; i < N; i++) {
      |                ^
a.cc:11:23: error: 'i' does not name a type
   11 | for(int i = 0; i < N; i++) {
      |                       ^
a.cc:19:1: error: 'string' does not name a type
   19 | string ANS = "No";
      | ^~~~~~
a.cc:20:1: error: expected unqualified-id before 'for'
   20 | for(int i = 0; i < 3; i++) {
      | ^~~
a.cc:20:16: error: 'i' does not name a type
   20 | for(int i = 0; i < 3; i++) {
      |                ^
a.cc:20:23: error: 'i' does not name a type
   20 | for(int i = 0; i < 3; i++) {
      |                       ^
a.cc:23:1: error: expected unqualified-id before 'for'
   23 | for(int i = 0; i < 3; i++) {
      | ^~~
a.cc:23:16: error: 'i' does not name a type
   23 | for(int i = 0; i < 3; i++) {
      |                ^
a.cc:23:23: error: 'i' does not name a type
   23 | for(int i = 0; i < 3; i++) {
      |                       ^
a.cc:26:1: error: expected unqualified-id before 'if'
   26 | if(appear[0][0] and appear[1][1] and appear[2][2]) ANS = "Yes";
      | ^~
a.cc:27:1: error: expected unqualified-id before 'if'
   27 | if(appear[0][2] and appear[1][1] and appear[2][0]) ANS = "Yes";
      | ^~
a.cc:28:1: error: 'cout' does not name a type
   28 | cout << ANS << endl;
      | ^~~~
a.cc:29:1: error: expected unqualified-id before 'return'
   29 | return 0;
      | ^~~~~~
Language: C++

#include <iostream>
#include <cstdio>
#include <iterator>
#include <algorithm>
#include <map>
#include <string>
#include <vector>

using namespace std;

int N, A[3][3], b[10];
bool appear[3][3];

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

  for(int i = 0; i < 3; i++) {
 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30
for(int j = 0; j < 3; j++) cin >> A[i][j];
cin >> N;
for(int i = 0; i < N; i++) cin >> b[i]; for(int i = 0; i < N; i++) {
for(int j = 0; j < N; j++) { appear[i][j] = false;
for(int k = 0; k < N; k++) {
if(A[i][j] == b[k]) appear[i][j] = true; }
} }
string ANS = "No";
for(int i = 0; i < 3; i++) {
if(appear[i][0] and appear[i][1] and appear[i][2]) ANS = "Yes"; }
for(int i = 0; i < 3; i++) {
if(appear[0][i] and appear[1][i] and appear[2][i]) ANS = "Yes";
}
if(appear[0][0] and appear[1][1] and appear[2][2]) ANS = "Yes"; if(appear[0][2] and appear[1][1] and appear[2][0]) ANS = "Yes"; cout << ANS << endl;
  return 0;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:19:3: error: expected ';' before numeric constant
   19 |  9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30
      |   ^~~
      |   ;
a.cc:20:16: error: 'j' was not declared in this scope
   20 | for(int j = 0; j < 3; j++) cin >> A[i][j];
      |                ^
a.cc:35:2: error: expected '}' at end of input
   35 | }
      |  ^
a.cc:14:11: note: to match this '{'
   14 | int main(){
      |           ^
Language: C++

#include <bits/stdc++.h>
using namespace std;
int main() {
  string ans = "No"
  vector<int> bingo(9);
  for (int i = 0; i < 9; i++) {
    cin >> bingo.at(i);
  }
  int N;
  cin >> N;
  for (int j = 0; j < N; j++) {
    int b;
    cin b;
    for (int k = 0; k < 9; k++) {
      if (b == bingo.at(k)) {
        bingo.at(k) = 0;
      }
    }
  }
  if (bingo.at(0) == 0 && bingo.at(1) == 0 && bingo.at(2) == 0) {
    ans = "Yes";
  }
  if (bingo.at(3) == 0 && bingo.at(4) == 0 && bingo.at(5) == 0) {
    ans = "Yes";
  }
  if (bingo.at(6) == 0 && bingo.at(7) == 0 && bingo.at(8) == 0) {
    ans = "Yes";
  }
  if (bingo.at(0) == 0 && bingo.at(3) == 0 && bingo.at(6) == 0) {
    ans = "Yes";
  }
  if (bingo.at(1) == 0 && bingo.at(4) == 0 && bingo.at(7) == 0) {
    ans = "Yes";
  }
  if (bingo.at(2) == 0 && bingo.at(5) == 0 && bingo.at(8) == 0) {
    ans = "Yes";
  }
  if (bingo.at(0) == 0 && bingo.at(4) == 0 && bingo.at(8) == 0) {
    ans = "Yes";
  }
  if (bingo.at(2) == 0 && bingo.at(4) == 0 && bingo.at(6) == 0) {
    ans = "Yes";
  }
  cout << ans << endl;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:5:3: error: expected ',' or ';' before 'vector'
    5 |   vector<int> bingo(9);
      |   ^~~~~~
a.cc:7:12: error: 'bingo' was not declared in this scope
    7 |     cin >> bingo.at(i);
      |            ^~~~~
a.cc:13:8: error: expected ';' before 'b'
   13 |     cin b;
      |        ^~
      |        ;
a.cc:15:16: error: 'bingo' was not declared in this scope
   15 |       if (b == bingo.at(k)) {
      |                ^~~~~
a.cc:20:7: error: 'bingo' was not declared in this scope
   20 |   if (bingo.at(0) == 0 && bingo.at(1) == 0 && bingo.at(2) == 0) {
      |       ^~~~~
a.cc:23:7: error: 'bingo' was not declared in this scope
   23 |   if (bingo.at(3) == 0 && bingo.at(4) == 0 && bingo.at(5) == 0) {
      |       ^~~~~
a.cc:26:7: error: 'bingo' was not declared in this scope
   26 |   if (bingo.at(6) == 0 && bingo.at(7) == 0 && bingo.at(8) == 0) {
      |       ^~~~~
a.cc:29:7: error: 'bingo' was not declared in this scope
   29 |   if (bingo.at(0) == 0 && bingo.at(3) == 0 && bingo.at(6) == 0) {
      |       ^~~~~
a.cc:32:7: error: 'bingo' was not declared in this scope
   32 |   if (bingo.at(1) == 0 && bingo.at(4) == 0 && bingo.at(7) == 0) {
      |       ^~~~~
a.cc:35:7: error: 'bingo' was not declared in this scope
   35 |   if (bingo.at(2) == 0 && bingo.at(5) == 0 && bingo.at(8) == 0) {
      |       ^~~~~
a.cc:38:7: error: 'bingo' was not declared in this scope
   38 |   if (bingo.at(0) == 0 && bingo.at(4) == 0 && bingo.at(8) == 0) {
      |       ^~~~~
a.cc:41:7: error: 'bingo' was not declared in this scope
   41 |   if (bingo.at(2) == 0 && bingo.at(4) == 0 && bingo.at(6) == 0) {
      |       ^~~~~
Language: C++

#include <bits/stdc++.h>
using namespace std;
 
int main() {
  int bingo[3][3];
  cin >>bingo[0][0] >> bingo[0][1] >> bingo[0][2];
  cin >>bingo[1][0] >> bingo[1][1] >> bingo[1][2]; 
  cin >>bingo[2][0] >> bingo[2][1] >> bingo[2][2];
  int N;
  int num[N];
  for(int i = 0; i < N; i++){
   cin >> num[i];
  }
  bool map[3][3];
     for(int j = 0; j < 3; j++){
    for(int k = 0; k < 3; k++){
    check[j][k] = 0;
    }
     }
  for(int i = 0; i < N; i++){
   for(int j = 0; j < 3; j++){
    for(int k = 0; k < 3; k++){
      if(num[i] == bingo[j][k]){
       check[j][k] = 1;  
      }
    }
   }
  }
  bool ans = 0;
      for(int j = 0; j < 3; j++){
if(check[j][0] == 1 && check[j][1] == 0 && check[j][2] == 0){
  ans = 1;
}
     }
  
        for(int j = 0; j < 3; j++){
if(check[0][j] == 1 && check[1][j] == 0 && check[2][j] == 0){
  ans = 1;
}
     }
  if(check[0][0] == 0 && check[1][1] == 0 && check[2][2] == 0){
   ans = 1; 
  }
 if(check[2][0] == 0 && check[1][1] == 0 && check[0][2] == 0){
   ans = 1; 
  }  
  
  if(ans = 1) cout << "Yes" << endl;
  else cout << "No" << endl;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:17:5: error: 'check' was not declared in this scope
   17 |     check[j][k] = 0;
      |     ^~~~~
a.cc:24:8: error: 'check' was not declared in this scope
   24 |        check[j][k] = 1;
      |        ^~~~~
a.cc:31:4: error: 'check' was not declared in this scope
   31 | if(check[j][0] == 1 && check[j][1] == 0 && check[j][2] == 0){
      |    ^~~~~
a.cc:37:4: error: 'check' was not declared in this scope
   37 | if(check[0][j] == 1 && check[1][j] == 0 && check[2][j] == 0){
      |    ^~~~~
a.cc:41:6: error: 'check' was not declared in this scope
   41 |   if(check[0][0] == 0 && check[1][1] == 0 && check[2][2] == 0){
      |      ^~~~~
a.cc:44:5: error: 'check' was not declared in this scope
   44 |  if(check[2][0] == 0 && check[1][1] == 0 && check[0][2] == 0){
      |     ^~~~~
Language: C++

#include <bits/stdc++.h>
using namespace std;
#define IOS ios::sync_with_stdio(0); cin.tie(0); cout.tie(0);
#define ll long long
#define vll vector<ll>
#define vi vector<int>
#define sll(x) scanf("%lld",&x)
#define prll(x) printf("%lld ",x)
#define pri(x) printf("%d ",x)
#define si(x) scanf("%d",&x)
#define el cout << "\n"
#define pb push_back
#define f first
#define s second
#define arrondi(a) (long long)floor(a+0.5);
#define NIL -1
ll N=500005;
ll MAX=9223372036854775807;
ll MOD=1000000007;
long double PI =4*atan(1);
ll n , m ,k;
ll nbr;

int main()
{
	IOS;
	 std::cout << std::setprecision(30);
    vector<vector<ll>> A(3,vector<ll>(3,0));
    vector<vector<ll>> dp(3,vector<ll>(3,0));
    for (ll i=0;i<3;i++)
    {
        for(ll j=0;j<3;j++)
        {
            cin >> A[i][j];
        }
    }
    ll n;
    cin >> n;
    for( ll i=0;i<n;i++)
    {
        ll x;
        cin >> x;
        for (ll i=0;i<3;i++)
    {
        for(ll j=0;j<3;j++)
        {
            if(x==A[i][j])
                dp[i][j]=1;
        }
    }

    }

    bool B=true;
    for(int i=0;i<3;i++)
    {
        for(int j=0;j<3;j++)
        {
            B= B&&(dp[i][j]);

        }
        if(B==true)
            return cout << "Yes",0;
    }
    for(int i=0;i<3;i++)
    {
        for(int j=0;j<3;j++)
        {
            B=B & (dp[j][i]);
        }
         if(B==true)
            return cout << "Yes",0;
    }
    if((dp[0][0] && dp[1][1] && dp[2][2]) || (dp[0][2] && dp[1][1] && dp[2][0])
        return cout << "Yes",0;
    cout << "No";
    cout.precision(30);
    return 0;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:74:80: error: expected ';' before 'return'
   74 |     if((dp[0][0] && dp[1][1] && dp[2][2]) || (dp[0][2] && dp[1][1] && dp[2][0])
      |                                                                                ^
      |                                                                                ;
   75 |         return cout << "Yes",0;
      |         ~~~~~~                                                                  
a.cc:76:17: error: expected ')' before ';' token
   76 |     cout << "No";
      |                 ^
      |                 )
a.cc:74:7: note: to match this '('
   74 |     if((dp[0][0] && dp[1][1] && dp[2][2]) || (dp[0][2] && dp[1][1] && dp[2][0])
      |       ^
Language: C++

#include<bits/stdc++.h>
#define ll long long 
#define clr(c) memset(c,0,sizeof(c))
#define inf 0x7fffffff
const int mod=1e9+7;
const int M=4e5+5;
const int N=2e5+10;
using namespace std;
inline ll read()
{
	ll sum=0,b=1;char c=getchar();
	while(!isdigit(c)){if(c=='-') b=-1; c=getchar();}
	while(isdigit(c)){sum=sum*10+c-'0';c=getchar();}
	return b*sum;
}
ll t,n,m,k;
ll a,b,c;
ll ans;


bool ss(vector<bool> &check,int i,int j,int count)
{
	if(i>=3||i>0||j>=3||i<0){
		if(count==2){
		return true;
		}
		else{
			return false;
		}
	}
	
	if(check.at(i*2+j)==true)
	{
		ss(check,i+1,j,count+1);
		ss(check,i,j+1,count+1);
	}
	else{
		return false;
	}
		  
	  
}


int main()
{

	vector<vector<int>>;
	
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);
  if(N<3)
	cout<<"NO";
	vector<bool> check(9,false);
  for(int i=0;i<N;i++)
  {
	  cin>>b[i];
	for(int i=0;i<3;i++){
		for(int j=0;j<3;j++){
			if(b[i]==A.at(i).at(j))
				check[i*2+j]=true;	
		}
	}
  }
  

	for(int i=0;i<3;i++){
    if(ss(check,0,i,0)==true){
		cout<<"YES";
		return 0;
	}
	}

	
	
	
  
	  
  
  
	return 0;
}  

Compiler output:
a.cc: In function 'int main()':
a.cc:48:9: error: declaration does not declare anything [-fpermissive]
   48 |         vector<vector<int>>;
      |         ^~~~~~~~~~~~~~~~~~~
a.cc:52:30: error: 'A' was not declared in this scope
   52 |                         cin>>A.at(i).at(j);
      |                              ^
a.cc:66:34: error: 'A' was not declared in this scope
   66 |                         if(b[i]==A.at(i).at(j))
      |                                  ^
a.cc: In function 'bool ss(std::vector<bool>&, int, int, int)':
a.cc:42:1: warning: control reaches end of non-void function [-Wreturn-type]
   42 | }
      | ^
Language: C++

#include<bits/stdc++.h>
#define ll long long 
#define clr(c) memset(c,0,sizeof(c))
#define inf 0x7fffffff
const int mod=1e9+7;
const int M=4e5+5;
const int N=2e5+10;
using namespace std;
inline ll read()
{
	ll sum=0,b=1;char c=getchar();
	while(!isdigit(c)){if(c=='-') b=-1; c=getchar();}
	while(isdigit(c)){sum=sum*10+c-'0';c=getchar();}
	return b*sum;
}
ll t,n,m,k;
ll a,b,c;
ll ans;


bool ss(vector<bool> &check,int i,int j,int count)
{
	if(i>=3||i>0||j>=3||i<0){
		if(count==2){
		return true;
		}
		else{
			return false;
		}
	}
	
	if(check.at(i*2+j)==true)
	{
		ss(check,i+1,j,count+1);
		ss(check,i,j+1,count+1);
	}
	else{
		return false;
	}
		  
	  
}


int main()
{

	vector<vector<int>>
	
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);
  if(N<3)
	cout<<"NO";
	vector<bool> check(9,false);
  for(int i=0;i<N;i++)
  {
	  cin>>b[i];
	for(int i=0;i<3;i++){
		for(int j=0;j<3;j++){
			if(b[i]==A.at(i).at(j))
				check[i*2+j]=true;	
		}
	}
  }
  

    if(ss(check,0,0,0)==true)
		cout<<"YES";

	
	
	
  
	  
  
  
	return 0;
}  

Compiler output:
a.cc: In function 'int main()':
a.cc:50:1: error: expected unqualified-id before 'for'
   50 | for(int i=0;i<3;i++){
      | ^~~
a.cc:50:13: error: 'i' was not declared in this scope
   50 | for(int i=0;i<3;i++){
      |             ^
a.cc:66:34: error: 'A' was not declared in this scope
   66 |                         if(b[i]==A.at(i).at(j))
      |                                  ^
a.cc: In function 'bool ss(std::vector<bool>&, int, int, int)':
a.cc:42:1: warning: control reaches end of non-void function [-Wreturn-type]
   42 | }
      | ^
Language: C++

#include<bits/stdc++.h>
#define rep(i,n) for (int i = 0;i < (n);i++)
#define all(v) v.begin(),v.end()
using namespace std;
using ll = long long;
using P = pair<ll,ll>;
using vl = vector<ll>;
using vvl = vector<vl>;

bool bingo(ll a,ll b,ll c,vl num,ll n){
  bool at,bt,ct;
  rep(i,n){
    if(a == num.at(i)) at = true;
    if(b == num.at(i)) bt = true;
    if(c == num.at(i)) ct = true;
  }
  if(at&&bt&&ct) return true;
  else return false;
}

int main(){
  ll a1,a2,a3,a4,a5,a6,a7,a8,a9; 
  cin >> a1 >> a2 >> a3 >> a4 >> a5 >> a6 >> a7 >> a8 >> a9;
  ll n; cin >> n;
  vl b(n);
  rep(i,n){
    ll x; cin >> x;
    b.at(i) = x;
  }
  
  if(bingo(a1,a2,a3,b,n)||bingo(a4,a5,a6,b,n)||bingo(a7,a8,a9)||
     bingo(a1,a4,a7,b,n)||bingo(a2,a5,a8,b,n)||bingo(a3,a6,a8)||
     bingo(a1,a5,a9,b,n)||bingo(a3,a5,a7,b,n)) cout << "Yes" << endl;
  else cout << "No" << endl;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:31:53: error: too few arguments to function 'bool bingo(ll, ll, ll, vl, ll)'
   31 |   if(bingo(a1,a2,a3,b,n)||bingo(a4,a5,a6,b,n)||bingo(a7,a8,a9)||
      |                                                ~~~~~^~~~~~~~~~
a.cc:10:6: note: declared here
   10 | bool bingo(ll a,ll b,ll c,vl num,ll n){
      |      ^~~~~
a.cc:32:53: error: too few arguments to function 'bool bingo(ll, ll, ll, vl, ll)'
   32 |      bingo(a1,a4,a7,b,n)||bingo(a2,a5,a8,b,n)||bingo(a3,a6,a8)||
      |                                                ~~~~~^~~~~~~~~~
a.cc:10:6: note: declared here
   10 | bool bingo(ll a,ll b,ll c,vl num,ll n){
      |      ^~~~~
Language: C++

#include <iostream>
#include <vector>
#include <queue>
using namespace std;
 
int A[3][3];
bool seen[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;
  int b[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++){
      seen[i][j] = false;
      for(int k=0; k<N; k++){
        if(A[i][j] == b[k]) seen[i][j] = true;
      }
    }
  }
  string ans = "No"
  for(int i=0; i<3; i++){
    if(seen[0][i] and seen[1][i] and seen[2][i]) ans = "Yes";
  }
  for(int i=0; i<3; i++){
    if(seen[i][0] and seen[i][1] and seen[i][2]) ans = "Yes";
  }
  if(seen[0][0] and seen[1][1] and seen[2][2]) ans = "Yes";
  if(seen[0][2] and seen[1][1] and seen[2][0]) ans = "Yes";
  cout << ans << 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:16: error: 'i' was not declared in this scope
   27 |   for(int i=0; i<3; i++){
      |                ^
Language: C++

#include <iostream>
using namespace std;

int main (void) {
  int A[3][3];
  int N, result = 0;
  bool appear[3][3] = false;
  for (int i = 0; i < 3; i++) {
  	for (int j = 0; j < 3; j++) cin >> A[i][j];
  }
  cin >> N;
  int b[N];
  for (int i = 0; i < N; i++) cin >> b[i];
  
  for (int i = 0; i < N; i++) {
    for (int j = 0; j < N; j++) {
      for (int k = 0; k < N; k++) {
        if (b[k] == A[i][j]) appear[i][j] = true;
      }
    }
  }
  
  for (int i = 0; i < N; i++) {
    if (appear[i][0]&&appear[i][1]&&appear[i][2]) result = 1;
  }
  for (int i = 0; i < N; i++) {
    if (appear[0][i]&&appear[1][i]&&appear[2][i]) result = 1;
  }
  if (appear[0][0]&&appear[1][1]&&appear[2][2]) result = 1;
  if (appear[2][0]&&appear[1][1]&&appear[0][2]) result = 1;
  if (result == 1) cout << "Yes";
  else cout << "No";
  
  return 0;
}

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

#include<bits/stdc++.h>
using namespace std;
int main(){
    int a[3][3];
    int m[3][3];
    int flag=0;
    for(int i=0;i<3;i++){
        for(int j=0;j<3;j++){
            cin>>a[i][j];
            
        }
    }
    
    int n;
    cin>>n;
    while(n--){
        int x;
        cin>>x;
        for(int i=0;i<3;i++){
        for(int j=0;j<3;j++){
            if(a[i][j]==k)
            m[i][j]++;
        }
    }
    for(int i=0;i<3;i++){
        if(m[0][i]==1 && m[1][i]==1 && m[2][i]==1)
        flag=1;
        if(m[i][0]==1 && m[i][1]==1 && m[i][2]==1)
        flag=1;
        
    }
    if((m[0][0]==1 && m[1][1]==1 && m[2][2]==1) || (m[0][2]==1 && m[1][1]==1 && m[2][0]==1)
    flag=1;
    if(flag==1)
    cout<<"Yes";
    if(flag==0)
    cout<<"No";
    
    return 0;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:21:25: error: 'k' was not declared in this scope
   21 |             if(a[i][j]==k)
      |                         ^
a.cc:32:92: error: expected ';' before 'flag'
   32 |     if((m[0][0]==1 && m[1][1]==1 && m[2][2]==1) || (m[0][2]==1 && m[1][1]==1 && m[2][0]==1)
      |                                                                                            ^
      |                                                                                            ;
   33 |     flag=1;
      |     ~~~~                                                                                    
a.cc:34:5: error: expected primary-expression before 'if'
   34 |     if(flag==1)
      |     ^~
a.cc:33:12: error: expected ')' before 'if'
   33 |     flag=1;
      |            ^
      |            )
   34 |     if(flag==1)
      |     ~~      
a.cc:32:7: note: to match this '('
   32 |     if((m[0][0]==1 && m[1][1]==1 && m[2][2]==1) || (m[0][2]==1 && m[1][1]==1 && m[2][0]==1)
      |       ^
a.cc:40:2: error: expected '}' at end of input
   40 | }
      |  ^
a.cc:3:11: note: to match this '{'
    3 | int main(){
      |           ^
Language: C++

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

int main() {

	int num[2][2];
	int N = 0;
	int bin[];

	/*
	�r���S�̔���
	*/
	bool jud[2][2];

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

	for (int k = 0; k < N; k++) {
		cin >> bin[k];
	}

	for (int i = 0 ;i < 3; i++) {
		for (int j = 0 ;j < 3; j++) {
			jud[i][j] = false;
			for (int k = 0; k < N;k++) {
				if (num[i][j] == bin[k]) {
					jud[i][j] == true;
				}
			}
		}
	}
	string str = "No";

	for (int i = 0; i < 3; i++) {
		if (jud[i][0] && jud[i][1] && jud[i][2]) {
			str = "Yes";
		}
	}
	for (int i = 0; i < 3; i++) {
		if (jud[0][i] && jud[1][i] && jud[2][i]) {
			str = "Yes";
		}
	}

	if (jud[0][0] && jud[1][1] && jud[2][2]) {
		str = "Yes";
	}
	else if (jud[0][2] && jud[1][1] && jud[2][0]) {
		str = "Yes";
	}

	cout << str << endl;


}

Compiler output:
a.cc: In function 'int main()':
a.cc:8:13: error: storage size of 'bin' isn't known
    8 |         int bin[];
      |             ^~~
Language: C++

a = []
a = [input().split() for i in range(3)]
for i in range(3):
  a[i] = [int(a[i][j]) for j in range(3)]

buf = [[-1,-1,-1] for i in range(3)]
n = int(input())
for i in range(n):
  b = int(input())
  for j in range(3):
    for k in range(3):
      if b==a[j][k]:
        buf[j][k]=1

bingo = buf
for i in range(3):
	bingo = bingo+[[buf[0][i],buf[1][i],buf[2][i]]]
bingo = bingo + [[buf[0][0],buf[1][1],buf[2][2]]] + [[buf[2][0],buf[1][1],buf[0][2]]]
#print(bingo)
flag = False
for i in range(8):
  if bingo[i]==[1,1,1]:
    flag = True
    print("Yes")
    break
if flag==False:
  print("No")

Compiler output:
a.cc:19:2: error: invalid preprocessing directive #print
   19 | #print(bingo)
      |  ^~~~~
a.cc:1:1: error: 'a' does not name a type
    1 | a = []
      | ^
Language: C++

a = [input().split() for i in range(3)]
for i in range(3):
  a[i] = [int(a[i][j]) for j in range(3)]

buf = [[-1,-1,-1] for i in range(3)]
n = int(input())
for i in range(n):
  b = int(input())
  for j in range(3):
    for k in range(3):
      if b==a[j][k]:
        buf[j][k]=1

bingo = buf
for i in range(3):
	bingo = bingo+[[buf[0][i],buf[1][i],buf[2][i]]]
bingo = bingo + [[buf[0][0],buf[1][1],buf[2][2]]] + [[buf[2][0],buf[1][1],buf[0][2]]]
#print(bingo)
flag = False
for i in range(8):
  if bingo[i]==[1,1,1]:
    flag = True
    print("Yes")
    break
if flag==False:
  print("No")

Compiler output:
a.cc:18:2: error: invalid preprocessing directive #print
   18 | #print(bingo)
      |  ^~~~~
a.cc:1:1: error: 'a' does not name a type
    1 | a = [input().split() for i in range(3)]
      | ^
Language: C++

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

typedef long long int ll;

int main(){
	int arr[3][3];
	set<int> s;
	for(int i = 0;i < 3;i++){
		for(int j = 0;j < 3;j++){
			cin >> arr[i][j];
		}
	}
	int n;cin >> n;
	while(n--){
		int t;cin >> t;
		s.add(t);
	}
	set<int> t;
	bool isw = false;
	int dr = 0;
	int dl = 0;
	int r = 0;
	int c = 0;
	for(int i = 0;i < 3;i++){
		if(s.count(arr[i][i]) != 0)dl++;
		if(s.count(arr[i][3 - i - 1]) != 0)dr++;
	}
	if(dr == 3 || dl == 3)return cout << "Yes", 0;
	for(int i = 0;i < 3;i++){
		r = 0;
		c = 0;
		for(int j = 0;j < 3;j++){
			if(s.count(arr[i][j]) != 0)r++;
			if(s.count(arr[j][i]) != 0)c++;
			if(r == 3 || c == 3)return cout << "Yes", 0;
		}
	}
	cout << "No";
}


Compiler output:
a.cc: In function 'int main()':
a.cc:17:19: error: 'class std::set<int>' has no member named 'add'
   17 |                 s.add(t);
      |                   ^~~
Language: C++

#include<iostream>
using namespace std;

int main(){
    int A[3][3],B[10];
    int N;
    bool appear[3][3];

    for (int i = 0; i < 3; i++)
    {
        cin >> A[i][0] >> A[i][1] >> A[i][2];
    }
    
    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; i++)
        {
            appear[i][j] = false;
            for (int k = 0; k < N; k++)
            {
                if (A[i][j] == B[k])
                {
                    appear[i][j] = true;
                }
                
            }
            
        }
        
    }

    string ANS = "No";
    for (int i = 0; i < 3; i++)
    {
        if (appear[i][0] and appear[i][1] and appear[i][2])
        {
            ANS = "Yes";
        }
        
    }
    
    for (int i = 0; i < count; 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";
    }

    cout << ANS;
    return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:48:25: error: 'count' was not declared in this scope
   48 |     for (int i = 0; i < count; i++)
      |                         ^~~~~
Language: C++

#include<bits/stdc++.h>
#define rep(i ,n) for(int i = 0; i < n; i++)
using namespace std;
using ll = long long;

int main() {
  vector<vector<int>> a(3,vector<int>(3));
  rep(i,3) {
    cin >> a[i][0] >> a[i][1] >> a[i][2];
  }
  vector<vector<int>> c(3,vector<int>(3,0));
  int n;
  cin >> n;
  
  rep(i,n) {
    int b; 
    cin >> b;
    rep(i,3) rep(j,3) if(a[i][j] == b) c[i][j] = 1;
  }
  
  rep(i,3) {
    int cnt = 0;
    rep(j,3) {
      cnt += c[i][j];
    }
    if(cnt == 3) {
      cout << "Yes" << endl;
      return 0;
    }
  }
  
  rep(i,3) {
    int cnt = 0;
    rep(j,3) {
      cnt += c[j][i];
    }
    if(cnt == 3) {
      cout << "Yes" << endl;
      return 0;
    }
 
    cnt = 0;
    rep(j,3) {
      cnt += c[j][j];
    }
    if(cnt == 3) {
      cout << "Yes" << endl;
      return 0;
    }
    
    cnt = 0;
    rep(j,3) {
      cnt += [j][2-j];
    }   
    if(cnt == 3) {
      cout << "Yes" << endl;
      return 0;
    }
  }
  
  cout << "No" << endl;
  return 0;
}



Compiler output:
a.cc: In lambda function:
a.cc:53:17: error: expected '{' before '[' token
   53 |       cnt += [j][2-j];
      |                 ^
a.cc: In function 'int main()':
a.cc:53:17: error: no match for 'operator[]' (operand types are 'main()::<lambda()>' and 'int')
Language: C++

#include<bits/stdc++.h>
#define rep(i ,n) for(int i = 0; i < n; i++)
using namespace std;
using ll = long long;

int main() {
  vector<vector<int>> a(3,vector<int>(3));
  rep(i,3) {
    cin >> a[i][0] >> a[i][1] >> a[i][2];
  }
  vector<vector<int>> c(3,vector<int>(3,0));
  int n;
  cin >> n;
  
  rep(i,n) {
    int b; 
    cin >> b;
    rep(i,3) rep(j,3) if(a[i][j] == b) c[i][j] = 1;
  }
  
  rep(i,3) {
    int cnt = 0;
    rep(j,3) {
      cnt += c[i][j];
    }
    if(cnt == 3) {
      cout << "Yes" << endl;
      return 0;
    }
  }
  
  rep(i,3) {
    int cnt = 0;
    rep(j,3) {
      cnt += c[j][i];
    }
    if(cnt == 3) {
      cout << "Yes" << endl;
      return 0;
    }
 
    cnt = 0;
    rep(j,3) {
      cnt += c[j][j];
    }
    if(cnt == 3) {
      cout << "Yes" << endl;
      return 0;
    }
    
    cnt = 0;
    rep(j,3) {
      cnt [j][2-j];
    }   
    if(cnt == 3) {
      cout << "Yes" << endl;
      return 0;
    }
  }
  
  cout << "No" << endl;
  return 0;
}



Compiler output:
a.cc: In function 'int main()':
a.cc:53:11: error: invalid types 'int[int]' for array subscript
   53 |       cnt [j][2-j];
      |           ^
Language: C++

#include <bits/stdc++.h>
#include <stdio.h>
#include <vector>
#include <algorithm> // sort
#include <map>
using namespace std;

int main(){
    int a[3][3][2];
    for(int i=0;i<3;i++){
        for(int j=0;j<3;j++){
            cin>>a[i][j][0];
            a[i][j][1]=0;
        }
    }
    int b;
    for(int k=0;k<10;k++){
        cin>>b;
        for(int i=0;i<3;i++){
             for(int j=0;j<3;j++){
                 if(b==a[i][j][0]){
                     a[i][j][1]=1;
                }
            }
        }
    }
    int c1=1;
    int c2=1;
    for(int i=0;i<3;i++){
        for(int j=0;j<3;j++){
            c1*=a[i][j][1];
            c2*=a[j][i][1];
        }
        if(c1+c2>0){
            cout<<'Yes'<<endl;
            return 0;
        }
        c1=1;
        c2=1;
    }
    if(a[0][0][1]*a[1][1][1]*a[2][2][1]+a[0][2]*a[1][1][1]*a[2][0][1]>0){
        cout<<'Yes'<<endl;
        return 0;
    }
    cout<<'No'<<endl;
}

Compiler output:
a.cc:35:19: warning: multi-character character constant [-Wmultichar]
   35 |             cout<<'Yes'<<endl;
      |                   ^~~~~
a.cc:42:15: warning: multi-character character constant [-Wmultichar]
   42 |         cout<<'Yes'<<endl;
      |               ^~~~~
a.cc:45:11: warning: multi-character character constant [-Wmultichar]
   45 |     cout<<'No'<<endl;
      |           ^~~~
a.cc: In function 'int main()':
a.cc:41:48: error: invalid operands of types 'int [2]' and 'int' to binary 'operator*'
   41 |     if(a[0][0][1]*a[1][1][1]*a[2][2][1]+a[0][2]*a[1][1][1]*a[2][0][1]>0){
      |                                         ~~~~~~~^~~~~~~~~~~
      |                                               |          |
      |                                               int [2]    int