Language: C++

#include <iostream>
#include <cstdlib>
#include <string>
#include <vector>
#include <array>

using namespace std;

int main() {
  array<int, 3> row;
  for (int i = 0; i < 3; i++) {
    array<int, 3> column;
    int a1, a2, a3;
    scanf("%d %d %d", &a1, &a2, &a3);
    column[0] = a1;
    column[1] = a2;
    column[2] = a3;
    row[i] = column;
  }
  int n;
  scanf("%d", &n);
  vector<int> B(n);
  for (int i = 0; i < n; i++) {
    int b;
    scanf("%d", &b);
    v[i] = b;
  }
  
  bool bingo = false;
  if ((v.find(row[0][0]) != v.end() &&
       v.find(row[0][1]) != v.end() &&
       v.find(row[0][2]) != v.end()) ||
      (v.find(row[0][0]) != v.end() &&
       v.find(row[1][0]) != v.end() &&
       v.find(row[2][0]) != v.end()) ||
      (v.find(row[2][0]) != v.end() &&
       v.find(row[2][1]) != v.end() &&
       v.find(row[2][2]) != v.end()) ||
      (v.find(row[0][2]) != v.end() &&
       v.find(row[1][2]) != v.end() &&
       v.find(row[2][2]) != v.end()) ||
      (v.find(row[0][0]) != v.end() &&
       v.find(row[1][1]) != v.end() &&
       v.find(row[2][2]) != v.end()) ||
      (v.find(row[0][2]) != v.end() &&
       v.find(row[1][1]) != v.end() &&
       v.find(row[2][0]) != v.end())) {
    bingo = true;
  }
  
  cout << (bing ? "Yes": "No") << endl;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:18:14: error: cannot convert 'std::array<int, 3>' to 'std::array<int, 3>::value_type' {aka 'int'} in assignment
   18 |     row[i] = column;
      |              ^~~~~~
      |              |
      |              std::array<int, 3>
a.cc:26:5: error: 'v' was not declared in this scope
   26 |     v[i] = b;
      |     ^
a.cc:30:8: error: 'v' was not declared in this scope
   30 |   if ((v.find(row[0][0]) != v.end() &&
      |        ^
a.cc:30:21: error: invalid types 'std::array<int, 3>::value_type {aka int}[int]' for array subscript
   30 |   if ((v.find(row[0][0]) != v.end() &&
      |                     ^
a.cc:31:21: error: invalid types 'std::array<int, 3>::value_type {aka int}[int]' for array subscript
   31 |        v.find(row[0][1]) != v.end() &&
      |                     ^
a.cc:32:21: error: invalid types 'std::array<int, 3>::value_type {aka int}[int]' for array subscript
   32 |        v.find(row[0][2]) != v.end()) ||
      |                     ^
a.cc:33:21: error: invalid types 'std::array<int, 3>::value_type {aka int}[int]' for array subscript
   33 |       (v.find(row[0][0]) != v.end() &&
      |                     ^
a.cc:34:21: error: invalid types 'std::array<int, 3>::value_type {aka int}[int]' for array subscript
   34 |        v.find(row[1][0]) != v.end() &&
      |                     ^
a.cc:35:21: error: invalid types 'std::array<int, 3>::value_type {aka int}[int]' for array subscript
   35 |        v.find(row[2][0]) != v.end()) ||
      |                     ^
a.cc:36:21: error: invalid types 'std::array<int, 3>::value_type {aka int}[int]' for array subscript
   36 |       (v.find(row[2][0]) != v.end() &&
      |                     ^
a.cc:37:21: error: invalid types 'std::array<int, 3>::value_type {aka int}[int]' for array subscript
   37 |        v.find(row[2][1]) != v.end() &&
      |                     ^
a.cc:38:21: error: invalid types 'std::array<int, 3>::value_type {aka int}[int]' for array subscript
   38 |        v.find(row[2][2]) != v.end()) ||
      |                     ^
a.cc:39:21: error: invalid types 'std::array<int, 3>::value_type {aka int}[int]' for array subscript
   39 |       (v.find(row[0][2]) != v.end() &&
      |                     ^
a.cc:40:21: error: invalid types 'std::array<int, 3>::value_type {aka int}[int]' for array subscript
   40 |        v.find(row[1][2]) != v.end() &&
      |                     ^
a.cc:41:21: error: invalid types 'std::array<int, 3>::value_type {aka int}[int]' for array subscript
   41 |        v.find(row[2][2]) != v.end()) ||
      |                     ^
a.cc:42:21: error: invalid types 'std::array<int, 3>::value_type {aka int}[int]' for array subscript
   42 |       (v.find(row[0][0]) != v.end() &&
      |                     ^
a.cc:43:21: error: invalid types 'std::array<int, 3>::value_type {aka int}[int]' for array subscript
   43 |        v.find(row[1][1]) != v.end() &&
      |                     ^
a.cc:44:21: error: invalid types 'std::array<int, 3>::value_type {aka int}[int]' for array subscript
   44 |        v.find(row[2][2]) != v.end()) ||
      |                     ^
a.cc:45:21: error: invalid types 'std::array<int, 3>::value_type {aka int}[int]' for array subscript
   45 |       (v.find(row[0][2]) != v.end() &&
      |                     ^
a.cc:46:21: error: invalid types 'std::array<int, 3>::value_type {aka int}[int]' for array subscript
   46 |        v.find(row[1][1]) != v.end() &&
      |                     ^
a.cc:47:21: error: invalid types 'std::array<int, 3>::value_type {aka int}[int]' for array subscript
   47 |        v.find(row[2][0]) != v.end())) {
      |                     ^
a.cc:51:12: error: 'bing' was not declared in this scope; did you mean 'bingo'?
   51 |   cout << (bing ? "Yes": "No") << endl;
      |            ^~~~
      |            bingo