Language: C++

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

int main(){
    int a[3][3], n , b[11];
    bool appear[3][3];
    int count = 0;
    for(int i = 0; i < 3; i++){
        for(int j = 0; j < 3; i++){
            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 < 3; j++){
            appear[i][j] = false;
            for(int k=0;k < 0;k++){
                if(b[k]==a[i][k])cin>> appear[i][j] = true;
            }
        }
     }
        }
        for(int i = 0;i < 3;i++){
            if(apper[i][0]==apper[i][1]&&apper[i][0]==appear[i][2]){
             count == 1;
            }
        }
        for(int i = 0;i < 3;i++){
            if(apper[0][i]==apper[1][i]&&apper[0][i]==appear[2][i]){
             count == 1;
            }
        }
        for(int i = 0;i < 3;i++){
            if(apper[0][0]==apper[1][1]&&apper[1][1]==appear[2][2]){
             count == 1;
            }
             if(apper[0][3]==apper[1][1]&&apper[1][1]==appear[3][0]){
             count == 1;
            }
        }
    if(count == 0)cout << "No" <<endl;
    else cout << "Yes" << endl;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:21:55: error: no match for 'operator=' (operand types are 'std::basic_istream<char>::__istream_type' {aka 'std::basic_istream<char>'} and 'bool')
   21 |                 if(b[k]==a[i][k])cin>> appear[i][j] = true;
      |                                                       ^~~~
In file included 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,
                 from a.cc:1:
/usr/include/c++/14/istream:718:7: note: candidate: 'std::basic_istream<_CharT, _Traits>& std::basic_istream<_CharT, _Traits>::operator=(std::basic_istream<_CharT, _Traits>&&) [with _CharT = char; _Traits = std::char_traits<char>]'
  718 |       operator=(basic_istream&& __rhs)
      |       ^~~~~~~~
/usr/include/c++/14/istream:718:33: note:   no known conversion for argument 1 from 'bool' to 'std::basic_istream<char>&&'
  718 |       operator=(basic_istream&& __rhs)
      |                 ~~~~~~~~~~~~~~~~^~~~~
a.cc: At global scope:
a.cc:26:9: error: expected unqualified-id before 'for'
   26 |         for(int i = 0;i < 3;i++){
      |         ^~~
a.cc:26:23: error: 'i' does not name a type
   26 |         for(int i = 0;i < 3;i++){
      |                       ^
a.cc:26:29: error: 'i' does not name a type
   26 |         for(int i = 0;i < 3;i++){
      |                             ^
a.cc:31:9: error: expected unqualified-id before 'for'
   31 |         for(int i = 0;i < 3;i++){
      |         ^~~
a.cc:31:23: error: 'i' does not name a type
   31 |         for(int i = 0;i < 3;i++){
      |                       ^
a.cc:31:29: error: 'i' does not name a type
   31 |         for(int i = 0;i < 3;i++){
      |                             ^
a.cc:36:9: error: expected unqualified-id before 'for'
   36 |         for(int i = 0;i < 3;i++){
      |         ^~~
a.cc:36:23: error: 'i' does not name a type
   36 |         for(int i = 0;i < 3;i++){
      |                       ^
a.cc:36:29: error: 'i' does not name a type
   36 |         for(int i = 0;i < 3;i++){
      |                             ^
a.cc:44:5: error: expected unqualified-id before 'if'
   44 |     if(count == 0)cout << "No" <<endl;
      |     ^~
a.cc:45:5: error: expected unqualified-id before 'else'
   45 |     else cout << "Yes" << endl;
      |     ^~~~
a.cc:46:1: error: expected declaration before '}' token
   46 | }
      | ^