Language: C++

#include <iostream>
#include <vector>
int main() {
	int n;
	int a[3][3];
	bool z[3][3];
	for (int i = 0; i < 3; i++) {
		for (int j = 0; j < 3; i++) {
			cin >> a[i][j];
			z[i][j] = false;
		}
	}
	cin >> n;
	vector<int>b(n);
	for (auto& i : b)
		cin >> i;
	for (auto i : b) {
		for (int i = 0; i < 3; i++) {
			for (int j = 0; j < 3; i++) {
				if (i == a[i][j])
					z[i][j] = true;
			}
		}
	}
	if (z[0][0] == true && z[0][1] == true && z[0][2] == true) {
		cout << "Yes" << endl;
		return 0;
	}
	if (z[0][0] == true && z[1][0] == true && z[2][0] == true) {
		cout << "Yes" << endl;
		return 0;
	}
	if (z[2][0] == true && z[2][1] == true && z[2][2] == true) {
		cout << "Yes" << endl;
		return 0;
	}
	if (z[0][2] == true && z[1][2] == true && z[2][2] == true) {
		cout << "Yes" << endl;
		return 0;
	}
	if (z[0][0] == true && z[1][1] == true && z[2][2] == true) {
		cout << "Yes" << endl;
		return 0;
	}
	if (z[0][2] == true && z[1][1] == true && z[2][0] == true) {
		cout << "Yes" << endl;
		return 0;
	}
	cout << "No" << endl;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:9:25: error: 'cin' was not declared in this scope; did you mean 'std::cin'?
    9 |                         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:9: 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:14:9: error: 'vector' was not declared in this scope
   14 |         vector<int>b(n);
      |         ^~~~~~
a.cc:14:9: note: suggested alternatives:
In file included from /usr/include/c++/14/vector:66,
                 from a.cc:2:
/usr/include/c++/14/bits/stl_vector.h:428:11: note:   'std::vector'
  428 |     class vector : protected _Vector_base<_Tp, _Alloc>
      |           ^~~~~~
/usr/include/c++/14/vector:93:13: note:   'std::pmr::vector'
   93 |       using vector = std::vector<_Tp, polymorphic_allocator<_Tp>>;
      |             ^~~~~~
a.cc:14:16: error: expected primary-expression before 'int'
   14 |         vector<int>b(n);
      |                ^~~
a.cc:15:24: error: 'b' was not declared in this scope
   15 |         for (auto& i : b)
      |                        ^
a.cc:17:23: error: 'b' was not declared in this scope
   17 |         for (auto i : b) {
      |                       ^
a.cc:26:17: error: 'cout' was not declared in this scope; did you mean 'std::cout'?
   26 |                 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:26:34: error: 'endl' was not declared in this scope; did you mean 'std::endl'?
   26 |                 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:17: 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:34: 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:34:17: 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:34: 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:38:17: 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:34: 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:42:17: 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:34: 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:46:17: 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:34: 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:49:9: 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:25: 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)
      |     ^~~~