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){
   	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:10:9: error: 'cin' was not declared in this scope; did you mean 'std::cin'?
   10 |         cin >>a[i][j][0];
      |         ^~~
      |         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:17:3: error: 'cin' was not declared in this scope; did you mean 'std::cin'?
   17 |   cin >>b;
      |   ^~~
      |   std::cin
/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:35:5: error: 'cout' was not declared in this scope; did you mean 'std::cout'?
   35 |     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:35:21: error: 'endl' was not declared in this scope; did you mean 'std::endl'?
   35 |     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:5: error: 'cout' was not declared in this scope; did you mean 'std::cout'?
   37 |     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:37:21: error: 'endl' was not declared in this scope; did you mean 'std::endl'?
   37 |     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:39:5: error: 'cout' was not declared in this scope; did you mean 'std::cout'?
   39 |     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:39:21: error: 'endl' was not declared in this scope; did you mean 'std::endl'?
   39 |     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:5: error: 'cout' was not declared in this scope; did you mean 'std::cout'?
   41 |     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:41:21: error: 'endl' was not declared in this scope; did you mean 'std::endl'?
   41 |     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:43:5: error: 'cout' was not declared in this scope; did you mean 'std::cout'?
   43 |     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:43:21: error: 'endl' was not declared in this scope; did you mean 'std::endl'?
   43 |     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:5: error: 'cout' was not declared in this scope; did you mean 'std::cout'?
   45 |     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:45:21: error: 'endl' was not declared in this scope; did you mean 'std::endl'?
   45 |     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:47:5: error: 'cout' was not declared in this scope; did you mean 'std::cout'?
   47 |     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:47:21: error: 'endl' was not declared in this scope; did you mean 'std::endl'?
   47 |     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:5: 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:20: 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)
      |     ^~~~