Language: C++

#include <bits/stdc++.h>

int main(){
 int a[2][2][1];
  int i=0;
  int j=0;
  int k=0;
 for(i=0;i++,i<3){
   for(j=0;j++;j<3){
   	std::cin >>a[i][j][0];
     j++;
   }
   i++;
 }

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

Compiler output:
a.cc: In function 'int main()':
a.cc:8:17: error: expected ';' before ')' token
    8 |  for(i=0;i++,i<3){
      |                 ^
      |                 ;
a.cc:17:3: error: 'cin' was not declared in this scope; did you mean 'std::cin'?
   17 |   cin >>b;
      |   ^~~
      |   std::cin
In file included from /usr/include/x86_64-linux-gnu/c++/14/bits/stdc++.h:146,
                 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:32:5: error: 'cout' was not declared in this scope; did you mean 'std::cout'?
   32 |     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:32:21: error: 'endl' was not declared in this scope; did you mean 'std::endl'?
   32 |     cout << "Yes" <<endl;
      |                     ^~~~
      |                     std::endl
In file included from /usr/include/c++/14/istream:41,
                 from /usr/include/c++/14/sstream:40,
                 from /usr/include/c++/14/complex:45,
                 from /usr/include/c++/14/ccomplex:39,
                 from /usr/include/x86_64-linux-gnu/c++/14/bits/stdc++.h:127:
/usr/include/c++/14/ostream:744:5: note: 'std::endl' declared here
  744 |     endl(basic_ostream<_CharT, _Traits>& __os)
      |     ^~~~
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:21: 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:36:5: error: 'cout' was not declared in this scope; did you mean 'std::cout'?
   36 |     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:36:21: error: 'endl' was not declared in this scope; did you mean 'std::endl'?
   36 |     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: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:21: 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:40:5: error: 'cout' was not declared in this scope; did you mean 'std::cout'?
   40 |     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:40:21: error: 'endl' was not declared in this scope; did you mean 'std::endl'?
   40 |     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: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:21: 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:44:5: error: 'cout' was not declared in this scope; did you mean 'std::cout'?
   44 |     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:44:21: error: 'endl' was not declared in this scope; did you mean 'std::endl'?
   44 |     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: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:21: 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:48:5: error: 'cout' was not declared in this scope; did you mean 'std::cout'?
   48 |     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:48:20: error: 'endl' was not declared in this scope; did you mean 'std::endl'?
   48 |     cout << "No" <<endl;
      |                    ^~~~
      |                    std::endl
/usr/include/c++/14/ostream:744:5: note: 'std::endl' declared here
  744 |     endl(basic_ostream<_CharT, _Traits>& __os)
      |     ^~~~