Language: C++

#include <iostream>

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

Compiler output:
a.cc:27:21: warning: multi-character character constant [-Wmultichar]
   27 |             cout << 'Yes' << endl;
      |                     ^~~~~
a.cc:30:21: warning: multi-character character constant [-Wmultichar]
   30 |             cout << 'Yes' << endl;
      |                     ^~~~~
a.cc:35:17: warning: multi-character character constant [-Wmultichar]
   35 |         cout << 'Yes' << endl;
      |                 ^~~~~
a.cc:37:17: warning: multi-character character constant [-Wmultichar]
   37 |         cout << 'Yes' << endl;
      |                 ^~~~~
a.cc:39:17: warning: multi-character character constant [-Wmultichar]
   39 |         cout << 'No' << endl;
      |                 ^~~~
a.cc: In function 'int main()':
a.cc:6:9: error: 'i' was not declared in this scope
    6 |     for(i=0; i<3; i++){
      |         ^
a.cc:7:13: error: 'j' was not declared in this scope
    7 |         for(j=0; j<3; j++){
      |             ^
a.cc:8:13: error: 'cin' was not declared in this scope; did you mean 'std::cin'?
    8 |             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:5: 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:15:9: error: 'k' was not declared in this scope
   15 |     for(k=0; k<N; i++){
      |         ^
a.cc:15:19: error: 'i' was not declared in this scope
   15 |     for(k=0; k<N; i++){
      |                   ^
a.cc:18:17: error: 'j' was not declared in this scope
   18 |             for(j=0; j<3; j++){
      |                 ^
a.cc:25:9: error: 'i' was not declared in this scope
   25 |     for(i=0; i<3; i++){
      |         ^
a.cc:27:13: error: 'cout' was not declared in this scope; did you mean 'std::cout'?
   27 |             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:27:30: error: 'endl' was not declared in this scope; did you mean 'std::endl'?
   27 |             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:30:13: 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:30: 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:35:9: 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:26: 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:9: 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:26: 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:9: error: 'cout' was not declared in this scope; did you mean 'std::cout'?
   39 |         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:39:25: error: 'endl' was not declared in this scope; did you mean 'std::endl'?
   39 |         cout << 'No' << endl;
      |                         ^~~~
      |                         std::endl
/usr/include/c++/14/ostream:744:5: note: 'std::endl' declared here
  744 |     endl(basic_ostream<_CharT, _Traits>& __os)
      |     ^~~~