Language: C++

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

int main(){
  int N,count=0;
  bool ans=0;
  vector<vector<int>> bingo(3, vector<int>(3) );
  vector<int> tama(110);
  
  for(int i=0;i<3;i++){
    for(int j=0;j<3;j++){
      cin>>bingo.at(i).at(j);
    }
  }
  
  cin>>N;
  for(i=0;i<N;){
    cin>>tama(i);
  }
  
  //横判定
  for(int i=0;i<3;i++){
    for(int j=0;j<3;j++){
      for(int k=0;k<N;k++){
        if(bingo.at(i).at(j)==tama[k]){
          ans++;
        }
      }
      if(ans=2){
        ans=1;
        break;
      }
    }
  }
 
  //縦判定
  for(int i=0;i<3;i++){
    for(int j=0;j<3;j++){
      for(int k=0;k<N;k++){
        if(bingo.at(j).at(i)==tama[k]){
          ans++;
        }
      }
      if(ans=2){
        ans=1;
        break;
      }
    }
  }
  
  //左上右下の斜め判定
  for(int i=0;i<3;i++){
    for(int k=0;k<N;k++){
      if(bingo.at(i).at(1)==tama[k]){
        ans++;
      }
    }
    if(ans=2){ 
      ans=1;
      break;
    }
  }
  
  //右上左下斜め判定
  for(int k=0;k<3;i++){
    if(bingo.at(1).at(3)==tama[k]
    && bingo.at(2).at(2)==tama[k}
    && bingo.at(3).at(1)==tama[k}){
      ans=1;
    }
  }
  
  if(ans){
    cout<<"Yes"<<endl;
  }else{
    cout<<"No"<<endl;
  }
                               
}


Compiler output:
a.cc: In function 'int main()':
a.cc:17:7: error: 'i' was not declared in this scope
   17 |   for(i=0;i<N;){
      |       ^
a.cc:26:11: error: use of an operand of type 'bool' in 'operator++' is forbidden in C++17
   26 |           ans++;
      |           ^~~
a.cc:41:11: error: use of an operand of type 'bool' in 'operator++' is forbidden in C++17
   41 |           ans++;
      |           ^~~
a.cc:55:9: error: use of an operand of type 'bool' in 'operator++' is forbidden in C++17
   55 |         ans++;
      |         ^~~
a.cc:65:19: error: 'i' was not declared in this scope
   65 |   for(int k=0;k<3;i++){
      |                   ^
a.cc:67:33: error: expected ']' before '}' token
   67 |     && bingo.at(2).at(2)==tama[k}
      |                                 ^
      |                                 ]
a.cc:67:33: error: expected ')' before '}' token
   67 |     && bingo.at(2).at(2)==tama[k}
      |                                 ^
      |                                 )
a.cc:66:7: note: to match this '('
   66 |     if(bingo.at(1).at(3)==tama[k]
      |       ^
a.cc:67:33: error: expected primary-expression before '}' token
   67 |     && bingo.at(2).at(2)==tama[k}
      |                                 ^
a.cc:68:13: error: expected ';' before '.' token
   68 |     && bingo.at(3).at(1)==tama[k}){
      |             ^
      |             ;
a.cc:68:8: error: label 'bingo' used but not defined
   68 |     && bingo.at(3).at(1)==tama[k}){
      |        ^~~~~
a.cc: At global scope:
a.cc:68:34: error: expected unqualified-id before ')' token
   68 |     && bingo.at(3).at(1)==tama[k}){
      |                                  ^
a.cc:71:3: error: expected declaration before '}' token
   71 |   }
      |   ^
a.cc:73:3: error: expected unqualified-id before 'if'
   73 |   if(ans){
      |   ^~
a.cc:75:4: error: expected unqualified-id before 'else'
   75 |   }else{
      |    ^~~~
a.cc:79:1: error: expected declaration before '}' token
   79 | }
      | ^