Language: C++

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

int main(){
  vector <int> vec1(9);
  vector <int> vec2(9);
int N;
int i;
 int j;
  int P;
  
  for(i=0;i<9;i++){
cin>>vec1.at(i);
    vec2.at(i)=0;
  }
cin >> N;
  for (i=0;i<N;i++){
    cin >>  P;
    j=0;
  	while(j<9){
      if (P==vec.at(j)){
        vec2.at(j)=1;
        j=10;
      }
      j++;
    }
  }

 if(vec2.at(0)+vec2.at(1)+vec2.at(2)=3){
   cort<< "Yes" <<endl;
   break;
 }else if(vec2.at(3)+vec2.at(4)+vec2.at(5)=3){
cout << "Yes" << endl;
   break;
 }else if(vec2.at(6)+vec2.at(7)+vec2.at(8)=3){
cout << "Yes" << endl;
   break;
 }else if(vec2.at(0)+vec2.at(3)+vec2.at(6)=3){
cout << "Yes" << endl;
   break;
 }else if(vec2.at(1)+vec2.at(4)+vec2.at(7)=3){
cout << "Yes" << endl;
   break;
 }else if(vec2.at(2)+vec2.at(5)+vec2.at(8)=3){
cout << "Yes" << endl;
   break;
 }else if(vec2.at(0)+vec2.at(4)+vec2.at(8)=3){
cout << "Yes" << endl;
   break;
 }else if(vec2.at(2)+vec2.at(4)+vec2.at(6)=3){
cout << "Yes" << endl;
   break;
 }else{
   cout << "No" << endl;
 }
  
}

Compiler output:
a.cc: In function 'int main()':
a.cc:21:14: error: 'vec' was not declared in this scope; did you mean 'vec2'?
   21 |       if (P==vec.at(j)){
      |              ^~~
      |              vec2
a.cc:29:26: error: lvalue required as left operand of assignment
   29 |  if(vec2.at(0)+vec2.at(1)+vec2.at(2)=3){
      |     ~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~
a.cc:30:4: error: 'cort' was not declared in this scope; did you mean 'cbrt'?
   30 |    cort<< "Yes" <<endl;
      |    ^~~~
      |    cbrt
a.cc:31:4: error: break statement not within loop or switch
   31 |    break;
      |    ^~~~~
a.cc:32:32: error: lvalue required as left operand of assignment
   32 |  }else if(vec2.at(3)+vec2.at(4)+vec2.at(5)=3){
      |           ~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~
a.cc:34:4: error: break statement not within loop or switch
   34 |    break;
      |    ^~~~~
a.cc:35:32: error: lvalue required as left operand of assignment
   35 |  }else if(vec2.at(6)+vec2.at(7)+vec2.at(8)=3){
      |           ~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~
a.cc:37:4: error: break statement not within loop or switch
   37 |    break;
      |    ^~~~~
a.cc:38:32: error: lvalue required as left operand of assignment
   38 |  }else if(vec2.at(0)+vec2.at(3)+vec2.at(6)=3){
      |           ~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~
a.cc:40:4: error: break statement not within loop or switch
   40 |    break;
      |    ^~~~~
a.cc:41:32: error: lvalue required as left operand of assignment
   41 |  }else if(vec2.at(1)+vec2.at(4)+vec2.at(7)=3){
      |           ~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~
a.cc:43:4: error: break statement not within loop or switch
   43 |    break;
      |    ^~~~~
a.cc:44:32: error: lvalue required as left operand of assignment
   44 |  }else if(vec2.at(2)+vec2.at(5)+vec2.at(8)=3){
      |           ~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~
a.cc:46:4: error: break statement not within loop or switch
   46 |    break;
      |    ^~~~~
a.cc:47:32: error: lvalue required as left operand of assignment
   47 |  }else if(vec2.at(0)+vec2.at(4)+vec2.at(8)=3){
      |           ~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~
a.cc:49:4: error: break statement not within loop or switch
   49 |    break;
      |    ^~~~~
a.cc:50:32: error: lvalue required as left operand of assignment
   50 |  }else if(vec2.at(2)+vec2.at(4)+vec2.at(6)=3){
      |           ~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~
a.cc:52:4: error: break statement not within loop or switch
   52 |    break;
      |    ^~~~~