Language: C++

#include <bits/stdc++.h>

using namspace std;

int main() {
  int a[10];
  for (int i = 0; i < 10; ++i) {
    cin >> a[i];
  }
  int n; 
  for (int i = 0; i < n; ++i) {
    int s;
    cin >> s;
    if (a[i] == s) a[i] = 0;
  }
  if (a[0] + a[1] + a[2] = 0; || a[3] + a[4] + a[5] = 0; || a[6] + a[7] + a[8] = 0; ||
      a[2] + a[5] + a[8] = 0; || a[1] + a[4] + a[7] = 0; || a[0] + a[3] + a[6] = 0; ||
      a[0] + a[4] + a[8] = 0;) {
    cout << "Yes" << "\n";
  } else cout << "No" << "\n";
  return 0;
}

Compiler output:
a.cc:3:7: error: expected nested-name-specifier before 'namspace'
    3 | using namspace std;
      |       ^~~~~~~~
a.cc: In function 'int main()':
a.cc:8:5: error: 'cin' was not declared in this scope; did you mean 'std::cin'?
    8 |     cin >> a[i];
      |     ^~~
      |     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:13:5: error: 'cin' was not declared in this scope; did you mean 'std::cin'?
   13 |     cin >> s;
      |     ^~~
      |     std::cin
/usr/include/c++/14/iostream:62:18: note: 'std::cin' declared here
   62 |   extern istream cin;           ///< Linked to standard input
      |                  ^~~
a.cc:16:19: error: lvalue required as left operand of assignment
   16 |   if (a[0] + a[1] + a[2] = 0; || a[3] + a[4] + a[5] = 0; || a[6] + a[7] + a[8] = 0; ||
      |       ~~~~~~~~~~~~^~~~~~
a.cc:16:31: error: expected primary-expression before '||' token
   16 |   if (a[0] + a[1] + a[2] = 0; || a[3] + a[4] + a[5] = 0; || a[6] + a[7] + a[8] = 0; ||
      |                               ^~
a.cc:16:56: error: expected ')' before ';' token
   16 |   if (a[0] + a[1] + a[2] = 0; || a[3] + a[4] + a[5] = 0; || a[6] + a[7] + a[8] = 0; ||
      |      ~                                                 ^
      |                                                        )
a.cc:16:58: error: expected primary-expression before '||' token
   16 |   if (a[0] + a[1] + a[2] = 0; || a[3] + a[4] + a[5] = 0; || a[6] + a[7] + a[8] = 0; ||
      |                                                          ^~
a.cc:16:85: error: expected primary-expression before '||' token
   16 |   if (a[0] + a[1] + a[2] = 0; || a[3] + a[4] + a[5] = 0; || a[6] + a[7] + a[8] = 0; ||
      |                                                                                     ^~
a.cc:17:31: error: expected primary-expression before '||' token
   17 |       a[2] + a[5] + a[8] = 0; || a[1] + a[4] + a[7] = 0; || a[0] + a[3] + a[6] = 0; ||
      |                               ^~
a.cc:17:58: error: expected primary-expression before '||' token
   17 |       a[2] + a[5] + a[8] = 0; || a[1] + a[4] + a[7] = 0; || a[0] + a[3] + a[6] = 0; ||
      |                                                          ^~
a.cc:17:85: error: expected primary-expression before '||' token
   17 |       a[2] + a[5] + a[8] = 0; || a[1] + a[4] + a[7] = 0; || a[0] + a[3] + a[6] = 0; ||
      |                                                                                     ^~
a.cc:18:30: error: expected primary-expression before ')' token
   18 |       a[0] + a[4] + a[8] = 0;) {
      |                              ^
a.cc:20:5: error: 'else' without a previous 'if'
   20 |   } else cout << "No" << "\n";
      |     ^~~~
a.cc:20:10: error: 'cout' was not declared in this scope; did you mean 'std::cout'?
   20 |   } else cout << "No" << "\n";
      |          ^~~~
      |          std::cout
/usr/include/c++/14/iostream:63:18: note: 'std::cout' declared here
   63 |   extern ostream cout;          ///< Linked to standard output
      |                  ^~~~