Language: C++

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

int main() {
  vector<vector<int>> b(3, vector<int>(3));
  cin >> b.at[0].at[0] >> b.at[0].at[1] >> b.at[0].at[2];
  cin >> b.at[1].at[0] >> b.at[1].at[1] >> b.at[1].at[2];
  cin >> b.at[2].at[0] >> b.at[2].at[1] >> b.at[2].at[2];
  int n;
  cin >> n;
  vector<int> m(n);
  for(i=0;i<n;i++;){
    cin >> m.at(i);
  }
  for(i=0;i<n;i++){
    for(j=0;j<3;j++){
      for(k=0;k<3;k++){
        if(m.at(i) == b.at[j].at[k]){
          b.at[j].at[k] = 1000;
        }
      }
    }
  }
  if(b.at[0].at[0]+b.at[0].at[1]+b.at[0].at[2]==3000){
    cout << "Yes";
    return 0;
  }else if(b.at[1].at[0]+b.at[1].at[1]+b.at[1].at[2]==3000){
    cout << "Yes";
    return 0;
  }else if(b.at[2].at[0]+b.at[2].at[1]+b.at[2].at[2]==3000){
    cout << "Yes";
    return 0;
  }else if(b.at[0].at[0]+b.at[1].at[0]+b.at[2].at[0]==3000){
    cout << "Yes";
    return 0;
  }else if(b.at[0].at[1]+b.at[1].at[1]+b.at[2].at[1]==3000){
    cout << "Yes";
    return 0;
  }else if(b.at[0].at[2]+b.at[1].at[2]+b.at[2].at[2]==3000){
    cout << "Yes";
    return 0;
  }else if(b.at[0].at[0]+b.at[1].at[1]+b.at[2].at[2]==3000){
    cout << "Yes";
    return 0;
  }else if(b.at[0].at[2]+b.at[1].at[1]+b.at[2].at[0]==3000){
    cout << "Yes";
    return 0;
  }else{
    cout << "No";
  }
}

Compiler output:
a.cc: In function 'int main()':
a.cc:6:14: error: invalid types '<unresolved overloaded function type>[int]' for array subscript
    6 |   cin >> b.at[0].at[0] >> b.at[0].at[1] >> b.at[0].at[2];
      |              ^
a.cc:6:31: error: invalid types '<unresolved overloaded function type>[int]' for array subscript
    6 |   cin >> b.at[0].at[0] >> b.at[0].at[1] >> b.at[0].at[2];
      |                               ^
a.cc:6:48: error: invalid types '<unresolved overloaded function type>[int]' for array subscript
    6 |   cin >> b.at[0].at[0] >> b.at[0].at[1] >> b.at[0].at[2];
      |                                                ^
a.cc:7:14: error: invalid types '<unresolved overloaded function type>[int]' for array subscript
    7 |   cin >> b.at[1].at[0] >> b.at[1].at[1] >> b.at[1].at[2];
      |              ^
a.cc:7:31: error: invalid types '<unresolved overloaded function type>[int]' for array subscript
    7 |   cin >> b.at[1].at[0] >> b.at[1].at[1] >> b.at[1].at[2];
      |                               ^
a.cc:7:48: error: invalid types '<unresolved overloaded function type>[int]' for array subscript
    7 |   cin >> b.at[1].at[0] >> b.at[1].at[1] >> b.at[1].at[2];
      |                                                ^
a.cc:8:14: error: invalid types '<unresolved overloaded function type>[int]' for array subscript
    8 |   cin >> b.at[2].at[0] >> b.at[2].at[1] >> b.at[2].at[2];
      |              ^
a.cc:8:31: error: invalid types '<unresolved overloaded function type>[int]' for array subscript
    8 |   cin >> b.at[2].at[0] >> b.at[2].at[1] >> b.at[2].at[2];
      |                               ^
a.cc:8:48: error: invalid types '<unresolved overloaded function type>[int]' for array subscript
    8 |   cin >> b.at[2].at[0] >> b.at[2].at[1] >> b.at[2].at[2];
      |                                                ^
a.cc:12:7: error: 'i' was not declared in this scope
   12 |   for(i=0;i<n;i++;){
      |       ^
a.cc:12:18: error: expected ')' before ';' token
   12 |   for(i=0;i<n;i++;){
      |      ~           ^
      |                  )
a.cc:12:19: error: expected primary-expression before ')' token
   12 |   for(i=0;i<n;i++;){
      |                   ^
a.cc:15:7: error: 'i' was not declared in this scope
   15 |   for(i=0;i<n;i++){
      |       ^
a.cc:16:9: error: 'j' was not declared in this scope
   16 |     for(j=0;j<3;j++){
      |         ^
a.cc:17:11: error: 'k' was not declared in this scope
   17 |       for(k=0;k<3;k++){
      |           ^
a.cc:24:10: error: invalid types '<unresolved overloaded function type>[int]' for array subscript
   24 |   if(b.at[0].at[0]+b.at[0].at[1]+b.at[0].at[2]==3000){
      |          ^
a.cc:24:24: error: invalid types '<unresolved overloaded function type>[int]' for array subscript
   24 |   if(b.at[0].at[0]+b.at[0].at[1]+b.at[0].at[2]==3000){
      |                        ^
a.cc:24:38: error: invalid types '<unresolved overloaded function type>[int]' for array subscript
   24 |   if(b.at[0].at[0]+b.at[0].at[1]+b.at[0].at[2]==3000){
      |                                      ^
a.cc:27:16: error: invalid types '<unresolved overloaded function type>[int]' for array subscript
   27 |   }else if(b.at[1].at[0]+b.at[1].at[1]+b.at[1].at[2]==3000){
      |                ^
a.cc:27:30: error: invalid types '<unresolved overloaded function type>[int]' for array subscript
   27 |   }else if(b.at[1].at[0]+b.at[1].at[1]+b.at[1].at[2]==3000){
      |                              ^
a.cc:27:44: error: invalid types '<unresolved overloaded function type>[int]' for array subscript
   27 |   }else if(b.at[1].at[0]+b.at[1].at[1]+b.at[1].at[2]==3000){
      |                                            ^
a.cc:30:16: error: invalid types '<unresolved overloaded function type>[int]' for array subscript
   30 |   }else if(b.at[2].at[0]+b.at[2].at[1]+b.at[2].at[2]==3000){
      |                ^
a.cc:30:30: error: invalid types '<unresolved overloaded function type>[int]' for array subscript
   30 |   }else if(b.at[2].at[0]+b.at[2].at[1]+b.at[2].at[2]==3000){
      |                              ^
a.cc:30:44: error: invalid types '<unresolved overloaded function type>[int]' for array subscript
   30 |   }else if(b.at[2].at[0]+b.at[2].at[1]+b.at[2].at[2]==3000){
      |                                            ^
a.cc:33:16: error: invalid types '<unresolved overloaded function type>[int]' for array subscript
   33 |   }else if(b.at[0].at[0]+b.at[1].at[0]+b.at[2].at[0]==3000){
      |                ^
a.cc:33:30: error: invalid types '<unresolved overloaded function type>[int]' for array subscript
   33 |   }else if(b.at[0].at[0]+b.at[1].at[0]+b.at[2].at[0]==3000){
      |                              ^
a.cc:33:44: error: invalid types '<unresolved overloaded function type>[int]' for array subscript
   33 |   }else if(b.at[0].at[0]+b.at[1].at[0]+b.at[2].at[0]==3000){
      |                                            ^
a.cc:36:16: error: invalid types '<unresolved overloaded function type>[int]' for array subscript
   36 |   }else if(b.at[0].at[1]+b.at[1].at[1]+b.at[2].at[1]==3000){
      |                ^
a.cc:36:30: error: invalid types '<unresolved overloaded function type>[int]' for array subscript
   36 |   }else if(b.at[0].at[1]+b.at[1].at[1]+b.at[2].at[1]==3000){
      |                              ^
a.cc:36:44: error: invalid types '<unresolved overloaded function type>[int]' for array subscript
   36 |   }else if(b.at[0].at[1]+b.at[1].at[1]+b.at[2].at[1]==3000){
      |                                            ^
a.cc:39:16: error: invalid types '<unresolved overloaded function type>[int]' for array subscript
   39 |   }else if(b.at[0].at[2]+b.at[1].at[2]+b.at[2].at[2]==3000){
      |                ^
a.cc:39:30: error: invalid types '<unresolved overloaded function type>[int]' for array subscript
   39 |   }else if(b.at[0].at[2]+b.at[1].at[2]+b.at[2].at[2]==3000){
      |                              ^
a.cc:39:44: error: invalid types '<unresolved overloaded function type>[int]' for array subscript
   39 |   }else if(b.at[0].at[2]+b.at[1].at[2]+b.at[2].at[2]==3000){
      |                                            ^
a.cc:42:16: error: invalid types '<unresolved overloaded function type>[int]' for array subscript
   42 |   }else if(b.at[0].at[0]+b.at[1].at[1]+b.at[2].at[2]==3000){
      |                ^
a.cc:42:30: error: invalid types '<unresolved overloaded function type>[int]' for array subscript
   42 |   }else if(b.at[0].at[0]+b.at[1].at[1]+b.at[2].at[2]==3000){
      |                              ^
a.cc:42:44: error: invalid types '<unresolved overloaded function type>[int]' for array subscript
   42 |   }else if(b.at[0].at[0]+b.at[1].at[1]+b.at[2].at[2]==3000){
      |                                            ^
a.cc:45:16: error: invalid types '<unresolved overloaded function type>[int]' for array subscript
   45 |   }else if(b.at[0].at[2]+b.at[1].at[1]+b.at[2].at[0]==3000){
      |                ^
a.cc:45:30: error: invalid types '<unresolved overloaded function type>[int]' for array subscript
   45 |   }else if(b.at[0].at[2]+b.at[1].at[1]+b.at[2].at[0]==3000){
      |                              ^
a.cc:45:44: error: invalid types '<unresolved overloaded function type>[int]' for array subscript
   45 |   }else if(b.at[0].at[2]+b.at[1].at[1]+b.at[2].at[0]==3000){
      |                                            ^