Language: C++

#include<bits/stdc++.h>
using namespace std;
int main(){
int N;
  cin>>N;
  bool a;
  vector<vector<int>>date(3,vector<int>(3));
  for(int i=0;i<N;i++){
   vector<int>b(N);
    cin>>b.at(i);
  for(int j=0;j<N;j++){
  cin>>date.at(i).at(j);
  }
  }
    for(int k=0;k<N;k++){
    if(date.at(i).at(j)==b.at(k)){
    a.at(i).at(j)=true;
    
    }
    
   
  }
  for(int i=0;i<3;i++){
  if(a.at(i).at(0)&&a.at(i)at(1)&&a.at(i).at(2)){
  cout<<"Yes"<<endl;
  }
  }
  for(int i=0;i<3;i++){
  if(a.at(0).at(i)&&a.at(1).at(i)&&a.at(2).at(i)){
  cout<<"Yes"<<endl;
  }
  }
  if(a.at(0).at(0)&&a.at(1).at(1)&&a.at(2).at(2)){
  cout<<"Yes"<<endl;
  }
  if(a.at(0).at(2)&&a.at(1).at(1)&&a.at(2).at(0)){
  cout<<"Yes"<<endl;
  }
  cout<<"No"<<endl;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:16:16: error: 'i' was not declared in this scope
   16 |     if(date.at(i).at(j)==b.at(k)){
      |                ^
a.cc:16:22: error: 'j' was not declared in this scope
   16 |     if(date.at(i).at(j)==b.at(k)){
      |                      ^
a.cc:16:26: error: 'b' was not declared in this scope
   16 |     if(date.at(i).at(j)==b.at(k)){
      |                          ^
a.cc:17:7: error: request for member 'at' in 'a', which is of non-class type 'bool'
   17 |     a.at(i).at(j)=true;
      |       ^~
a.cc:24:8: error: request for member 'at' in 'a', which is of non-class type 'bool'
   24 |   if(a.at(i).at(0)&&a.at(i)at(1)&&a.at(i).at(2)){
      |        ^~
a.cc:24:23: error: request for member 'at' in 'a', which is of non-class type 'bool'
   24 |   if(a.at(i).at(0)&&a.at(i)at(1)&&a.at(i).at(2)){
      |                       ^~
a.cc:24:28: error: expected ')' before 'at'
   24 |   if(a.at(i).at(0)&&a.at(i)at(1)&&a.at(i).at(2)){
      |     ~                      ^~
      |                            )
a.cc:29:8: error: request for member 'at' in 'a', which is of non-class type 'bool'
   29 |   if(a.at(0).at(i)&&a.at(1).at(i)&&a.at(2).at(i)){
      |        ^~
a.cc:29:23: error: request for member 'at' in 'a', which is of non-class type 'bool'
   29 |   if(a.at(0).at(i)&&a.at(1).at(i)&&a.at(2).at(i)){
      |                       ^~
a.cc:29:38: error: request for member 'at' in 'a', which is of non-class type 'bool'
   29 |   if(a.at(0).at(i)&&a.at(1).at(i)&&a.at(2).at(i)){
      |                                      ^~
a.cc:33:8: error: request for member 'at' in 'a', which is of non-class type 'bool'
   33 |   if(a.at(0).at(0)&&a.at(1).at(1)&&a.at(2).at(2)){
      |        ^~
a.cc:33:23: error: request for member 'at' in 'a', which is of non-class type 'bool'
   33 |   if(a.at(0).at(0)&&a.at(1).at(1)&&a.at(2).at(2)){
      |                       ^~
a.cc:33:38: error: request for member 'at' in 'a', which is of non-class type 'bool'
   33 |   if(a.at(0).at(0)&&a.at(1).at(1)&&a.at(2).at(2)){
      |                                      ^~
a.cc:36:8: error: request for member 'at' in 'a', which is of non-class type 'bool'
   36 |   if(a.at(0).at(2)&&a.at(1).at(1)&&a.at(2).at(0)){
      |        ^~
a.cc:36:23: error: request for member 'at' in 'a', which is of non-class type 'bool'
   36 |   if(a.at(0).at(2)&&a.at(1).at(1)&&a.at(2).at(0)){
      |                       ^~
a.cc:36:38: error: request for member 'at' in 'a', which is of non-class type 'bool'
   36 |   if(a.at(0).at(2)&&a.at(1).at(1)&&a.at(2).at(0)){
      |                                      ^~