Language: C++

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

int main() {
  vector<vector<int>> bingo;
  vector<vector<bool>> judge;
  for(i = 0; i < 3; i++)
  {
    for(j= 0; j< 3;j++)
    {
      cin >> bingo.at(i).at(j);
      judge.at(i).at(j) = false;
    }
  }
  int N =0;
  cin >> N;
  for(i = 0;i< N; i++)
  {
    int b;
    cin >> b;
    for(j = 0; j<3;j++)
    {
      for(k = 0; k< 3;k++)
      {
        if(b == bingo.at(j).at(k))
        {
          judge.at(j).at(k) = true;
        }
      }
    }
  }
  if(IsYoko(judge) || IsTate(judge) || IsNaname(judge))
  {
    cout << "Yes" << endl;
  }
  else
  {
    cout << "No" << endl;
  }
}

bool IsYoko(vector<vector<bool> judge)
{
  	for(j = 0; j<3;j++)
    {
      if(judge.at(i).at(0) && judge.at(i).at(1) && judge.at(i).at(2))
      {
        return true;
      }
    } 
  return false;
}

bool IsTate(vector<vector<bool> judge)
{
  	for(j = 0; j<3;j++)
    {
      if(judge.at(0).at(j) && judge.at(1).at(j) && judge.at(2).at(j))
      {
        return true;
      }
    } 
  return false;
}

bool IsNaname(vector<vector<bool> judge)
{
  if(judge.at(0).at(0) && judge.at(1).at(1) && judge.at(2).at(2))
  {
    return true;
  }
  if(judge.at(2).at(0) && judge.at(1).at(1) && judge.at(0).at(2))
  {
    return true;
  }
  return false;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:7:7: error: 'i' was not declared in this scope
    7 |   for(i = 0; i < 3; i++)
      |       ^
a.cc:9:9: error: 'j' was not declared in this scope; did you mean 'jn'?
    9 |     for(j= 0; j< 3;j++)
      |         ^
      |         jn
a.cc:17:7: error: 'i' was not declared in this scope
   17 |   for(i = 0;i< N; i++)
      |       ^
a.cc:21:9: error: 'j' was not declared in this scope
   21 |     for(j = 0; j<3;j++)
      |         ^
a.cc:23:11: error: 'k' was not declared in this scope
   23 |       for(k = 0; k< 3;k++)
      |           ^
a.cc:32:6: error: 'IsYoko' was not declared in this scope
   32 |   if(IsYoko(judge) || IsTate(judge) || IsNaname(judge))
      |      ^~~~~~
a.cc:32:23: error: 'IsTate' was not declared in this scope
   32 |   if(IsYoko(judge) || IsTate(judge) || IsNaname(judge))
      |                       ^~~~~~
a.cc:32:40: error: 'IsNaname' was not declared in this scope
   32 |   if(IsYoko(judge) || IsTate(judge) || IsNaname(judge))
      |                                        ^~~~~~~~
a.cc: At global scope:
a.cc:42:33: error: template argument 1 is invalid
   42 | bool IsYoko(vector<vector<bool> judge)
      |                                 ^~~~~
a.cc:42:33: error: template argument 2 is invalid
a.cc:42:33: error: template argument 1 is invalid
a.cc:42:33: error: template argument 2 is invalid
a.cc:42:33: error: template argument 1 is invalid
a.cc:42:33: error: template argument 2 is invalid
a.cc:42:13: error: invalid template-id
   42 | bool IsYoko(vector<vector<bool> judge)
      |             ^~~~~~
a.cc:42:38: error: missing template arguments before ')' token
   42 | bool IsYoko(vector<vector<bool> judge)
      |                                      ^
a.cc:54:33: error: template argument 1 is invalid
   54 | bool IsTate(vector<vector<bool> judge)
      |                                 ^~~~~
a.cc:54:33: error: template argument 2 is invalid
a.cc:54:33: error: template argument 1 is invalid
a.cc:54:33: error: template argument 2 is invalid
a.cc:54:33: error: template argument 1 is invalid
a.cc:54:33: error: template argument 2 is invalid
a.cc:54:13: error: invalid template-id
   54 | bool IsTate(vector<vector<bool> judge)
      |             ^~~~~~
a.cc:54:38: error: missing template arguments before ')' token
   54 | bool IsTate(vector<vector<bool> judge)
      |                                      ^
a.cc:66:35: error: template argument 1 is invalid
   66 | bool IsNaname(vector<vector<bool> judge)
      |                                   ^~~~~
a.cc:66:35: error: template argument 2 is invalid
a.cc:66:35: error: template argument 1 is invalid
a.cc:66:35: error: template argument 2 is invalid
a.cc:66:35: error: template argument 1 is invalid
a.cc:66:35: error: template argument 2 is invalid
a.cc:66:15: error: invalid template-id
   66 | bool IsNaname(vector<vector<bool> judge)
      |               ^~~~~~
a.cc:66:40: error: missing template arguments before ')' token
   66 | bool IsNaname(vector<vector<bool> judge)
      |                                        ^