Language: C++

#include <iostream>
#include <vector>
int main(){
  int n;
  int a[3][3];
  bool z[3][3];
  for(int i=0;i<3;i++){
    for(int j=0;j<3;i++){
      cin>>a[i][j];
      z[i][j]=false;
    }
  }
  cin>>n;
  vector<int>b(n);
  for(auto& i:b)
    cin>>i;
  for(auto i:b){
    for(int i=0;i<3;i++){
      for(int j=0;j<3;i++){
        if(i==a[i][j])
          z[i][j]=true;
      }
    }
  }
  if(z[0][0]==true&&z[0][1]true&&z[0][2]==true){
    cout<<"Yes"<<endl;
    return 0;
  }
  if(z[0][0]==true&&z[1][0]true&&z[2][0]==true){
    cout<<"Yes"<<endl;
    return 0;
  }
  if(z[2][0]==true&&z[2][1]true&&z[2][2]==true){
    cout<<"Yes"<<endl;
    return 0;
  }
  if(z[0][2]==true&&z[1][2]true&&z[2][2]==true){
    cout<<"Yes"<<endl;
    return 0;
  }
  if(z[0][0]==true&&z[1][1]true&&z[2][2]==true){
    cout<<"Yes"<<endl;
    return 0;
  }
  if(z[0][2]==true&&z[1][1]true&&z[2][0]==true){
    cout<<"Yes"<<endl;
    return 0;
  }
  cout<<"No"<<endl;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:9:7: error: 'cin' was not declared in this scope; did you mean 'std::cin'?
    9 |       cin>>a[i][j];
      |       ^~~
      |       std::cin
In file included from a.cc:1:
/usr/include/c++/14/iostream:62:18: note: 'std::cin' declared here
   62 |   extern istream cin;           ///< Linked to standard input
      |                  ^~~
a.cc:13:3: error: 'cin' was not declared in this scope; did you mean 'std::cin'?
   13 |   cin>>n;
      |   ^~~
      |   std::cin
/usr/include/c++/14/iostream:62:18: note: 'std::cin' declared here
   62 |   extern istream cin;           ///< Linked to standard input
      |                  ^~~
a.cc:14:3: error: 'vector' was not declared in this scope
   14 |   vector<int>b(n);
      |   ^~~~~~
a.cc:14:3: note: suggested alternatives:
In file included from /usr/include/c++/14/vector:66,
                 from a.cc:2:
/usr/include/c++/14/bits/stl_vector.h:428:11: note:   'std::vector'
  428 |     class vector : protected _Vector_base<_Tp, _Alloc>
      |           ^~~~~~
/usr/include/c++/14/vector:93:13: note:   'std::pmr::vector'
   93 |       using vector = std::vector<_Tp, polymorphic_allocator<_Tp>>;
      |             ^~~~~~
a.cc:14:10: error: expected primary-expression before 'int'
   14 |   vector<int>b(n);
      |          ^~~
a.cc:15:15: error: 'b' was not declared in this scope
   15 |   for(auto& i:b)
      |               ^
a.cc:17:14: error: 'b' was not declared in this scope
   17 |   for(auto i:b){
      |              ^
a.cc:25:28: error: expected ')' before 'true'
   25 |   if(z[0][0]==true&&z[0][1]true&&z[0][2]==true){
      |     ~                      ^~~~
      |                            )
a.cc:26:5: error: 'cout' was not declared in this scope; did you mean 'std::cout'?
   26 |     cout<<"Yes"<<endl;
      |     ^~~~
      |     std::cout
/usr/include/c++/14/iostream:63:18: note: 'std::cout' declared here
   63 |   extern ostream cout;          ///< Linked to standard output
      |                  ^~~~
a.cc:26:18: error: 'endl' was not declared in this scope; did you mean 'std::endl'?
   26 |     cout<<"Yes"<<endl;
      |                  ^~~~
      |                  std::endl
In file included from /usr/include/c++/14/iostream:41:
/usr/include/c++/14/ostream:744:5: note: 'std::endl' declared here
  744 |     endl(basic_ostream<_CharT, _Traits>& __os)
      |     ^~~~
a.cc:29:28: error: expected ')' before 'true'
   29 |   if(z[0][0]==true&&z[1][0]true&&z[2][0]==true){
      |     ~                      ^~~~
      |                            )
a.cc:30:5: error: 'cout' was not declared in this scope; did you mean 'std::cout'?
   30 |     cout<<"Yes"<<endl;
      |     ^~~~
      |     std::cout
/usr/include/c++/14/iostream:63:18: note: 'std::cout' declared here
   63 |   extern ostream cout;          ///< Linked to standard output
      |                  ^~~~
a.cc:30:18: error: 'endl' was not declared in this scope; did you mean 'std::endl'?
   30 |     cout<<"Yes"<<endl;
      |                  ^~~~
      |                  std::endl
/usr/include/c++/14/ostream:744:5: note: 'std::endl' declared here
  744 |     endl(basic_ostream<_CharT, _Traits>& __os)
      |     ^~~~
a.cc:33:28: error: expected ')' before 'true'
   33 |   if(z[2][0]==true&&z[2][1]true&&z[2][2]==true){
      |     ~                      ^~~~
      |                            )
a.cc:34:5: error: 'cout' was not declared in this scope; did you mean 'std::cout'?
   34 |     cout<<"Yes"<<endl;
      |     ^~~~
      |     std::cout
/usr/include/c++/14/iostream:63:18: note: 'std::cout' declared here
   63 |   extern ostream cout;          ///< Linked to standard output
      |                  ^~~~
a.cc:34:18: error: 'endl' was not declared in this scope; did you mean 'std::endl'?
   34 |     cout<<"Yes"<<endl;
      |                  ^~~~
      |                  std::endl
/usr/include/c++/14/ostream:744:5: note: 'std::endl' declared here
  744 |     endl(basic_ostream<_CharT, _Traits>& __os)
      |     ^~~~
a.cc:37:28: error: expected ')' before 'true'
   37 |   if(z[0][2]==true&&z[1][2]true&&z[2][2]==true){
      |     ~                      ^~~~
      |                            )
a.cc:38:5: error: 'cout' was not declared in this scope; did you mean 'std::cout'?
   38 |     cout<<"Yes"<<endl;
      |     ^~~~
      |     std::cout
/usr/include/c++/14/iostream:63:18: note: 'std::cout' declared here
   63 |   extern ostream cout;          ///< Linked to standard output
      |                  ^~~~
a.cc:38:18: error: 'endl' was not declared in this scope; did you mean 'std::endl'?
   38 |     cout<<"Yes"<<endl;
      |                  ^~~~
      |                  std::endl
/usr/include/c++/14/ostream:744:5: note: 'std::endl' declared here
  744 |     endl(basic_ostream<_CharT, _Traits>& __os)
      |     ^~~~
a.cc:41:28: error: expected ')' before 'true'
   41 |   if(z[0][0]==true&&z[1][1]true&&z[2][2]==true){
      |     ~                      ^~~~
      |                            )
a.cc:42:5: error: 'cout' was not declared in this scope; did you mean 'std::cout'?
   42 |     cout<<"Yes"<<endl;
      |     ^~~~
      |     std::cout
/usr/include/c++/14/iostream:63:18: note: 'std::cout' declared here
   63 |   extern ostream cout;          ///< Linked to standard output
      |                  ^~~~
a.cc:42:18: error: 'endl' was not declared in this scope; did you mean 'std::endl'?
   42 |     cout<<"Yes"<<endl;
      |                  ^~~~
      |                  std::endl
/usr/include/c++/14/ostream:744:5: note: 'std::endl' declared here
  744 |     endl(basic_ostream<_CharT, _Traits>& __os)
      |     ^~~~
a.cc:45:28: error: expected ')' before 'true'
   45 |   if(z[0][2]==true&&z[1][1]true&&z[2][0]==true){
      |     ~                      ^~~~
      |                            )
a.cc:46:5: error: 'cout' was not declared in this scope; did you mean 'std::cout'?
   46 |     cout<<"Yes"<<endl;
      |     ^~~~
      |     std::cout
/usr/include/c++/14/iostream:63:18: note: 'std::cout' declared here
   63 |   extern ostream cout;          ///< Linked to standard output
      |                  ^~~~
a.cc:46:18: error: 'endl' was not declared in this scope; did you mean 'std::endl'?
   46 |     cout<<"Yes"<<endl;
      |                  ^~~~
      |                  std::endl
/usr/include/c++/14/ostream:744:5: note: 'std::endl' declared here
  744 |     endl(basic_ostream<_CharT, _Traits>& __os)
      |     ^~~~
a.cc:49:3: error: 'cout' was not declared in this scope; did you mean 'std::cout'?
   49 |   cout<<"No"<<endl;
      |   ^~~~
      |   std::cout
/usr/include/c++/14/iostream:63:18: note: 'std::cout' declared here
   63 |   extern ostream cout;          ///< Linked to standard output
      |                  ^~~~
a.cc:49:15: error: 'endl' was not declared in this scope; did you mean 'std::endl'?
   49 |   cout<<"No"<<endl;
      |               ^~~~
      |               std::endl
/usr/include/c++/14/ostream:744:5: note: 'std::endl' declared here
  744 |     endl(basic_ostream<_CharT, _Traits>& __os)
      |     ^~~~