Language: C++

#include<bits/stdc++.h>
#define rep(i,n) for(int i=0;i<(int)(n);i++)
# define ALL(x) (x).begin(), (x).end()
using namespace std;
int main(){
  // int型の2次元配列(3×4要素の)の宣言
  vector<vector<int>> data(3, vector<int>(3));
 
  // 入力 (2重ループを用いる)
  for (int k = 0; k < 3; k++) {
    for (int j = 0; j < 3; j++) {
      cin >> data.at(k).at(j);
    }
  }
    int n,b;
  cin>>n;
  vector<int> b;
  rep(i,n){cin>>b.at(i);
  
    for (int k = 0; k < n k++) {
    for (int j = 0; j < n; j++) {if(data[k][1]==b.at(i)&&data[k][2]==b.at(i)&&data[k][3]==b[i])
    {cout<<"Yes"<<endl;
    return 0;}
if(data[1][j]==b[i]&&data[2][j]==b[i]&&data[3][j]==b[i])
 {cout<<"Yes"<<endl;
    return 0;}
      if(data.at(1).at(1)==b[i]&&data.at(2).at(2)==b[i]&&data.at(3).at(3)==b[i]
      ){cout<<"Yes"<<endl;
    return 0;} }}}cout<<"No"<<endl;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:17:15: error: conflicting declaration 'std::vector<int> b'
   17 |   vector<int> b;
      |               ^
a.cc:15:11: note: previous declaration as 'int b'
   15 |     int n,b;
      |           ^
a.cc:18:19: error: request for member 'at' in 'b', which is of non-class type 'int'
   18 |   rep(i,n){cin>>b.at(i);
      |                   ^~
a.cc:20:26: error: expected ';' before 'k'
   20 |     for (int k = 0; k < n k++) {
      |                          ^~
      |                          ;
a.cc:21:51: error: request for member 'at' in 'b', which is of non-class type 'int'
   21 |     for (int j = 0; j < n; j++) {if(data[k][1]==b.at(i)&&data[k][2]==b.at(i)&&data[k][3]==b[i])
      |                                                   ^~
a.cc:21:72: error: request for member 'at' in 'b', which is of non-class type 'int'
   21 |     for (int j = 0; j < n; j++) {if(data[k][1]==b.at(i)&&data[k][2]==b.at(i)&&data[k][3]==b[i])
      |                                                                        ^~
a.cc:21:92: error: invalid types 'int[int]' for array subscript
   21 |     for (int j = 0; j < n; j++) {if(data[k][1]==b.at(i)&&data[k][2]==b.at(i)&&data[k][3]==b[i])
      |                                                                                            ^
a.cc:24:17: error: invalid types 'int[int]' for array subscript
   24 | if(data[1][j]==b[i]&&data[2][j]==b[i]&&data[3][j]==b[i])
      |                 ^
a.cc:24:35: error: invalid types 'int[int]' for array subscript
   24 | if(data[1][j]==b[i]&&data[2][j]==b[i]&&data[3][j]==b[i])
      |                                   ^
a.cc:24:53: error: invalid types 'int[int]' for array subscript
   24 | if(data[1][j]==b[i]&&data[2][j]==b[i]&&data[3][j]==b[i])
      |                                                     ^
a.cc:27:29: error: invalid types 'int[int]' for array subscript
   27 |       if(data.at(1).at(1)==b[i]&&data.at(2).at(2)==b[i]&&data.at(3).at(3)==b[i]
      |                             ^
a.cc:27:53: error: invalid types 'int[int]' for array subscript
   27 |       if(data.at(1).at(1)==b[i]&&data.at(2).at(2)==b[i]&&data.at(3).at(3)==b[i]
      |                                                     ^
a.cc:27:77: error: invalid types 'int[int]' for array subscript
   27 |       if(data.at(1).at(1)==b[i]&&data.at(2).at(2)==b[i]&&data.at(3).at(3)==b[i]
      |                                                                             ^