Language: C++

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

int main(){
  vector<vector<int>, 3> a(3);
  for(int i = 0; i < 3; i++){
  for(int j = 0; j < 3; j++){
	cin >> a[i][j];
  }
  }
  bool ans = false;
  int n; cin >> n;
  vector<int> b(n);
  for(int k = 0; k < n; k++){
  	cin >> b[k];
  
  	for(int i = 0; i < 3; i++){
  	for(int j = 0; j < 3; j++){
  		if(b[k] == a[i][j]) a[i][j] = 0;
    }
    }
  }
  
  for(int i = 0; i < 3; i++){
  	if(a[i][1]+a[i][0]+a[i][2] == 0) ans = true;
  }
  
  for(int j = 0; j < 3; j++){
  	if(a[0][j]+a[1][j]+a[2]][j] == 0) ans = true;
  }
  
  if(a[0][0]+a[1][1]+a[2][2] == 0) ans = true;
  if(a[0][2]+a[1][1]+a[2][0] == 0) ans = true;
  
  if(ans) cout << "Yes" << endl;
  else cout << "No" << endl;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:5:24: error: type/value mismatch at argument 2 in template parameter list for 'template<class _Tp, class _Alloc> class std::vector'
    5 |   vector<vector<int>, 3> a(3);
      |                        ^
a.cc:5:24: note:   expected a type, got '3'
a.cc:8:17: error: invalid types 'int[int]' for array subscript
    8 |         cin >> a[i][j];
      |                 ^
a.cc:19:29: error: invalid types 'int[int]' for array subscript
   19 |                 if(b[k] == a[i][j]) a[i][j] = 0;
      |                             ^
a.cc:19:38: error: invalid types 'int[int]' for array subscript
   19 |                 if(b[k] == a[i][j]) a[i][j] = 0;
      |                                      ^
a.cc:25:13: error: invalid types 'int[int]' for array subscript
   25 |         if(a[i][1]+a[i][0]+a[i][2] == 0) ans = true;
      |             ^
a.cc:25:21: error: invalid types 'int[int]' for array subscript
   25 |         if(a[i][1]+a[i][0]+a[i][2] == 0) ans = true;
      |                     ^
a.cc:25:29: error: invalid types 'int[int]' for array subscript
   25 |         if(a[i][1]+a[i][0]+a[i][2] == 0) ans = true;
      |                             ^
a.cc:29:13: error: invalid types 'int[int]' for array subscript
   29 |         if(a[0][j]+a[1][j]+a[2]][j] == 0) ans = true;
      |             ^
a.cc:29:21: error: invalid types 'int[int]' for array subscript
   29 |         if(a[0][j]+a[1][j]+a[2]][j] == 0) ans = true;
      |                     ^
a.cc:29:29: error: invalid types 'int[int]' for array subscript
   29 |         if(a[0][j]+a[1][j]+a[2]][j] == 0) ans = true;
      |                             ^
a.cc:29:32: error: expected ')' before ']' token
   29 |         if(a[0][j]+a[1][j]+a[2]][j] == 0) ans = true;
      |           ~                    ^
      |                                )
a.cc:29:32: error: expected primary-expression before ']' token
a.cc:32:7: error: invalid types 'int[int]' for array subscript
   32 |   if(a[0][0]+a[1][1]+a[2][2] == 0) ans = true;
      |       ^
a.cc:32:15: error: invalid types 'int[int]' for array subscript
   32 |   if(a[0][0]+a[1][1]+a[2][2] == 0) ans = true;
      |               ^
a.cc:32:23: error: invalid types 'int[int]' for array subscript
   32 |   if(a[0][0]+a[1][1]+a[2][2] == 0) ans = true;
      |                       ^
a.cc:33:7: error: invalid types 'int[int]' for array subscript
   33 |   if(a[0][2]+a[1][1]+a[2][0] == 0) ans = true;
      |       ^
a.cc:33:15: error: invalid types 'int[int]' for array subscript
   33 |   if(a[0][2]+a[1][1]+a[2][0] == 0) ans = true;
      |               ^
a.cc:33:23: error: invalid types 'int[int]' for array subscript
   33 |   if(a[0][2]+a[1][1]+a[2][0] == 0) ans = true;
      |                       ^