Language: C++

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

int main() {
  vector<vector<int>> vec(3, vector<int>(3));

  for(int i=0; i<3; i++){
    for(int j=0; j<3; j++){
      cin >> vec.at(i).at(j);
    }
  }

  int n;
  vector<int> ans(n);
  for(int i=0; i<n; i++){
    cin >> ans.at(i);

    for(int j=0; j<3; j++){
      for(int k=0; k<3; k++){
        if(ans.at(i) == vec.at(j).at(k)){
          vec.at(j).at(k) == 0;
        }
      }
    }
  }
  bool bingo = false;
  if(ans.at(0).at(0) == 0 and ans.at(0).at(1) == 0 and ans.at(0).at(2) == 0) bingo = true;
  else if(ans.at(1).at(0) == 0 and ans.at(1).at(1) == 0 and ans.at(1).at(2) == 0) bingo = true;
  else if(ans.at(2).at(0) == 0 and ans.at(2).at(1) == 0 and ans.at(2).at(2) == 0) bingo = true;
  else if(ans.at(0).at(0) == 0 and ans.at(1).at(0) == 0 and ans.at(2).at(0) == 0) bingo = true;
  else if(ans.at(0).at(1) == 0 and ans.at(1).at(1) == 0 and ans.at(2).at(1) == 0) bingo = true;
  else if(ans.at(0).at(2) == 0 and ans.at(1).at(2) == 0 and ans.at(2).at(2) == 0) bingo = true;
  else if(ans.at(0).at(0) == 0 and ans.at(1).at(1) == 0 and ans.at(2).at(2) == 0) bingo = true;
  else if(ans.at(0).at(3) == 0 and ans.at(1).at(1) == 0 and ans.at(2).at(0) == 0) bingo = true;

  if(bingo){
    cout << "Yes" << endl;
  }
  else{
    cout << "No" << endl;
  }

  return 0;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:27:16: error: request for member 'at' in 'ans.std::vector<int>::at(0)', which is of non-class type '__gnu_cxx::__alloc_traits<std::allocator<int>, int>::value_type' {aka 'int'}
   27 |   if(ans.at(0).at(0) == 0 and ans.at(0).at(1) == 0 and ans.at(0).at(2) == 0) bingo = true;
      |                ^~
a.cc:27:41: error: request for member 'at' in 'ans.std::vector<int>::at(0)', which is of non-class type '__gnu_cxx::__alloc_traits<std::allocator<int>, int>::value_type' {aka 'int'}
   27 |   if(ans.at(0).at(0) == 0 and ans.at(0).at(1) == 0 and ans.at(0).at(2) == 0) bingo = true;
      |                                         ^~
a.cc:27:66: error: request for member 'at' in 'ans.std::vector<int>::at(0)', which is of non-class type '__gnu_cxx::__alloc_traits<std::allocator<int>, int>::value_type' {aka 'int'}
   27 |   if(ans.at(0).at(0) == 0 and ans.at(0).at(1) == 0 and ans.at(0).at(2) == 0) bingo = true;
      |                                                                  ^~
a.cc:28:21: error: request for member 'at' in 'ans.std::vector<int>::at(1)', which is of non-class type '__gnu_cxx::__alloc_traits<std::allocator<int>, int>::value_type' {aka 'int'}
   28 |   else if(ans.at(1).at(0) == 0 and ans.at(1).at(1) == 0 and ans.at(1).at(2) == 0) bingo = true;
      |                     ^~
a.cc:28:46: error: request for member 'at' in 'ans.std::vector<int>::at(1)', which is of non-class type '__gnu_cxx::__alloc_traits<std::allocator<int>, int>::value_type' {aka 'int'}
   28 |   else if(ans.at(1).at(0) == 0 and ans.at(1).at(1) == 0 and ans.at(1).at(2) == 0) bingo = true;
      |                                              ^~
a.cc:28:71: error: request for member 'at' in 'ans.std::vector<int>::at(1)', which is of non-class type '__gnu_cxx::__alloc_traits<std::allocator<int>, int>::value_type' {aka 'int'}
   28 |   else if(ans.at(1).at(0) == 0 and ans.at(1).at(1) == 0 and ans.at(1).at(2) == 0) bingo = true;
      |                                                                       ^~
a.cc:29:21: error: request for member 'at' in 'ans.std::vector<int>::at(2)', which is of non-class type '__gnu_cxx::__alloc_traits<std::allocator<int>, int>::value_type' {aka 'int'}
   29 |   else if(ans.at(2).at(0) == 0 and ans.at(2).at(1) == 0 and ans.at(2).at(2) == 0) bingo = true;
      |                     ^~
a.cc:29:46: error: request for member 'at' in 'ans.std::vector<int>::at(2)', which is of non-class type '__gnu_cxx::__alloc_traits<std::allocator<int>, int>::value_type' {aka 'int'}
   29 |   else if(ans.at(2).at(0) == 0 and ans.at(2).at(1) == 0 and ans.at(2).at(2) == 0) bingo = true;
      |                                              ^~
a.cc:29:71: error: request for member 'at' in 'ans.std::vector<int>::at(2)', which is of non-class type '__gnu_cxx::__alloc_traits<std::allocator<int>, int>::value_type' {aka 'int'}
   29 |   else if(ans.at(2).at(0) == 0 and ans.at(2).at(1) == 0 and ans.at(2).at(2) == 0) bingo = true;
      |                                                                       ^~
a.cc:30:21: error: request for member 'at' in 'ans.std::vector<int>::at(0)', which is of non-class type '__gnu_cxx::__alloc_traits<std::allocator<int>, int>::value_type' {aka 'int'}
   30 |   else if(ans.at(0).at(0) == 0 and ans.at(1).at(0) == 0 and ans.at(2).at(0) == 0) bingo = true;
      |                     ^~
a.cc:30:46: error: request for member 'at' in 'ans.std::vector<int>::at(1)', which is of non-class type '__gnu_cxx::__alloc_traits<std::allocator<int>, int>::value_type' {aka 'int'}
   30 |   else if(ans.at(0).at(0) == 0 and ans.at(1).at(0) == 0 and ans.at(2).at(0) == 0) bingo = true;
      |                                              ^~
a.cc:30:71: error: request for member 'at' in 'ans.std::vector<int>::at(2)', which is of non-class type '__gnu_cxx::__alloc_traits<std::allocator<int>, int>::value_type' {aka 'int'}
   30 |   else if(ans.at(0).at(0) == 0 and ans.at(1).at(0) == 0 and ans.at(2).at(0) == 0) bingo = true;
      |                                                                       ^~
a.cc:31:21: error: request for member 'at' in 'ans.std::vector<int>::at(0)', which is of non-class type '__gnu_cxx::__alloc_traits<std::allocator<int>, int>::value_type' {aka 'int'}
   31 |   else if(ans.at(0).at(1) == 0 and ans.at(1).at(1) == 0 and ans.at(2).at(1) == 0) bingo = true;
      |                     ^~
a.cc:31:46: error: request for member 'at' in 'ans.std::vector<int>::at(1)', which is of non-class type '__gnu_cxx::__alloc_traits<std::allocator<int>, int>::value_type' {aka 'int'}
   31 |   else if(ans.at(0).at(1) == 0 and ans.at(1).at(1) == 0 and ans.at(2).at(1) == 0) bingo = true;
      |                                              ^~
a.cc:31:71: error: request for member 'at' in 'ans.std::vector<int>::at(2)', which is of non-class type '__gnu_cxx::__alloc_traits<std::allocator<int>, int>::value_type' {aka 'int'}
   31 |   else if(ans.at(0).at(1) == 0 and ans.at(1).at(1) == 0 and ans.at(2).at(1) == 0) bingo = true;
      |                                                                       ^~
a.cc:32:21: error: request for member 'at' in 'ans.std::vector<int>::at(0)', which is of non-class type '__gnu_cxx::__alloc_traits<std::allocator<int>, int>::value_type' {aka 'int'}
   32 |   else if(ans.at(0).at(2) == 0 and ans.at(1).at(2) == 0 and ans.at(2).at(2) == 0) bingo = true;
      |                     ^~
a.cc:32:46: error: request for member 'at' in 'ans.std::vector<int>::at(1)', which is of non-class type '__gnu_cxx::__alloc_traits<std::allocator<int>, int>::value_type' {aka 'int'}
   32 |   else if(ans.at(0).at(2) == 0 and ans.at(1).at(2) == 0 and ans.at(2).at(2) == 0) bingo = true;
      |                                              ^~
a.cc:32:71: error: request for member 'at' in 'ans.std::vector<int>::at(2)', which is of non-class type '__gnu_cxx::__alloc_traits<std::allocator<int>, int>::value_type' {aka 'int'}
   32 |   else if(ans.at(0).at(2) == 0 and ans.at(1).at(2) == 0 and ans.at(2).at(2) == 0) bingo = true;
      |                                                                       ^~
a.cc:33:21: error: request for member 'at' in 'ans.std::vector<int>::at(0)', which is of non-class type '__gnu_cxx::__alloc_traits<std::allocator<int>, int>::value_type' {aka 'int'}
   33 |   else if(ans.at(0).at(0) == 0 and ans.at(1).at(1) == 0 and ans.at(2).at(2) == 0) bingo = true;
      |                     ^~
a.cc:33:46: error: request for member 'at' in 'ans.std::vector<int>::at(1)', which is of non-class type '__gnu_cxx::__alloc_traits<std::allocator<int>, int>::value_type' {aka 'int'}
   33 |   else if(ans.at(0).at(0) == 0 and ans.at(1).at(1) == 0 and ans.at(2).at(2) == 0) bingo = true;
      |                                              ^~
a.cc:33:71: error: request for member 'at' in 'ans.std::vector<int>::at(2)', which is of non-class type '__gnu_cxx::__alloc_traits<std::allocator<int>, int>::value_type' {aka 'int'}
   33 |   else if(ans.at(0).at(0) == 0 and ans.at(1).at(1) == 0 and ans.at(2).at(2) == 0) bingo = true;
      |                                                                       ^~
a.cc:34:21: error: request for member 'at' in 'ans.std::vector<int>::at(0)', which is of non-class type '__gnu_cxx::__alloc_traits<std::allocator<int>, int>::value_type' {aka 'int'}
   34 |   else if(ans.at(0).at(3) == 0 and ans.at(1).at(1) == 0 and ans.at(2).at(0) == 0) bingo = true;
      |                     ^~
a.cc:34:46: error: request for member 'at' in 'ans.std::vector<int>::at(1)', which is of non-class type '__gnu_cxx::__alloc_traits<std::allocator<int>, int>::value_type' {aka 'int'}
   34 |   else if(ans.at(0).at(3) == 0 and ans.at(1).at(1) == 0 and ans.at(2).at(0) == 0) bingo = true;
      |                                              ^~
a.cc:34:71: error: request for member 'at' in 'ans.std::vector<int>::at(2)', which is of non-class type '__gnu_cxx::__alloc_traits<std::allocator<int>, int>::value_type' {aka 'int'}
   34 |   else if(ans.at(0).at(3) == 0 and ans.at(1).at(1) == 0 and ans.at(2).at(0) == 0) bingo = true;
      |                                                                       ^~