Language: C++

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

using namespace std;

int main() {
  array<array<int, 3>, 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> v(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:30:10: error: 'class std::vector<int>' has no member named 'find'
   30 |   if ((v.find(row[0][0]) != v.end() &&
      |          ^~~~
a.cc:31:10: error: 'class std::vector<int>' has no member named 'find'
   31 |        v.find(row[0][1]) != v.end() &&
      |          ^~~~
a.cc:32:10: error: 'class std::vector<int>' has no member named 'find'
   32 |        v.find(row[0][2]) != v.end()) ||
      |          ^~~~
a.cc:33:10: error: 'class std::vector<int>' has no member named 'find'
   33 |       (v.find(row[0][0]) != v.end() &&
      |          ^~~~
a.cc:34:10: error: 'class std::vector<int>' has no member named 'find'
   34 |        v.find(row[1][0]) != v.end() &&
      |          ^~~~
a.cc:35:10: error: 'class std::vector<int>' has no member named 'find'
   35 |        v.find(row[2][0]) != v.end()) ||
      |          ^~~~
a.cc:36:10: error: 'class std::vector<int>' has no member named 'find'
   36 |       (v.find(row[2][0]) != v.end() &&
      |          ^~~~
a.cc:37:10: error: 'class std::vector<int>' has no member named 'find'
   37 |        v.find(row[2][1]) != v.end() &&
      |          ^~~~
a.cc:38:10: error: 'class std::vector<int>' has no member named 'find'
   38 |        v.find(row[2][2]) != v.end()) ||
      |          ^~~~
a.cc:39:10: error: 'class std::vector<int>' has no member named 'find'
   39 |       (v.find(row[0][2]) != v.end() &&
      |          ^~~~
a.cc:40:10: error: 'class std::vector<int>' has no member named 'find'
   40 |        v.find(row[1][2]) != v.end() &&
      |          ^~~~
a.cc:41:10: error: 'class std::vector<int>' has no member named 'find'
   41 |        v.find(row[2][2]) != v.end()) ||
      |          ^~~~
a.cc:42:10: error: 'class std::vector<int>' has no member named 'find'
   42 |       (v.find(row[0][0]) != v.end() &&
      |          ^~~~
a.cc:43:10: error: 'class std::vector<int>' has no member named 'find'
   43 |        v.find(row[1][1]) != v.end() &&
      |          ^~~~
a.cc:44:10: error: 'class std::vector<int>' has no member named 'find'
   44 |        v.find(row[2][2]) != v.end()) ||
      |          ^~~~
a.cc:45:10: error: 'class std::vector<int>' has no member named 'find'
   45 |       (v.find(row[0][2]) != v.end() &&
      |          ^~~~
a.cc:46:10: error: 'class std::vector<int>' has no member named 'find'
   46 |        v.find(row[1][1]) != v.end() &&
      |          ^~~~
a.cc:47:10: error: 'class std::vector<int>' has no member named 'find'
   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