Language: C++

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

int main() {
 vector<vector<int>>bingo(3,vector<int>(3)); 
  for(int i=0;i<3;i++){
      for(int j=0;j<3;j++){
          cin >> bingo.at(i).at(j);
      }
  }
  int n;
  cin >> n;
  vector<int> vec(n);
  for(int i=0;i<n;i++){
      cin >> vec.at(i);
  }
 vector<vector<int>>ok(3,vector<int>(3,0));
  for(int k: vec){
    for(int i=0;i<3;i++){
       for(int j=0;j<3;j++){
          if (bingo.at(i).at(j) == k){
            ok.at(i).at(j) = 1;
          }
      }
    }
    bool ans =false;
    
    //よこ
    for(int i=0;i<3;i++){
        if ((ok.at(i).at(0) == ok.at(i).at(1) && ok.at(i).at(1) == ok.at(i).at(2))ans =true;
    }
    for(int i=0;i<3;i++){
        if ((ok.at(0).at(i) == ok.at(1).at(i) && ok.at(1).at(i) == ok.at(2).at(i))ans =true;
  }
  
  if ((ok.at(0).at(0) == ok.at(1).at(1) && ok.at(1).at(1) == ok.at(2).at(2))ans =true;
  
  else if ((ok.at(0).at(2) == ok.at(1).at(1) && ok.at(1).at(1) == ok.at(2).at(0))ans =true;

  if (ans = true) cout << "Yes"<< endl;
  else cout << "No" << endl;
  }
}
  


Compiler output:
a.cc: In function 'int main()':
a.cc:30:83: error: expected ';' before 'ans'
   30 |         if ((ok.at(i).at(0) == ok.at(i).at(1) && ok.at(i).at(1) == ok.at(i).at(2))ans =true;
      |                                                                                   ^~~
      |                                                                                   ;
a.cc:31:5: error: expected primary-expression before '}' token
   31 |     }
      |     ^
a.cc:30:93: error: expected ')' before '}' token
   30 |         if ((ok.at(i).at(0) == ok.at(i).at(1) && ok.at(i).at(1) == ok.at(i).at(2))ans =true;
      |            ~                                                                                ^
      |                                                                                             )
   31 |     }
      |     ~                                                                                        
a.cc:31:5: error: expected primary-expression before '}' token
   31 |     }
      |     ^
a.cc:33:83: error: expected ';' before 'ans'
   33 |         if ((ok.at(0).at(i) == ok.at(1).at(i) && ok.at(1).at(i) == ok.at(2).at(i))ans =true;
      |                                                                                   ^~~
      |                                                                                   ;
a.cc:34:3: error: expected primary-expression before '}' token
   34 |   }
      |   ^
a.cc:33:93: error: expected ')' before '}' token
   33 |         if ((ok.at(0).at(i) == ok.at(1).at(i) && ok.at(1).at(i) == ok.at(2).at(i))ans =true;
      |            ~                                                                                ^
      |                                                                                             )
   34 |   }
      |   ~                                                                                          
a.cc:34:3: error: expected primary-expression before '}' token
   34 |   }
      |   ^
a.cc:36:77: error: expected ';' before 'ans'
   36 |   if ((ok.at(0).at(0) == ok.at(1).at(1) && ok.at(1).at(1) == ok.at(2).at(2))ans =true;
      |                                                                             ^~~
      |                                                                             ;
a.cc:38:3: error: expected primary-expression before 'else'
   38 |   else if ((ok.at(0).at(2) == ok.at(1).at(1) && ok.at(1).at(1) == ok.at(2).at(0))ans =true;
      |   ^~~~
a.cc:36:87: error: expected ')' before 'else'
   36 |   if ((ok.at(0).at(0) == ok.at(1).at(1) && ok.at(1).at(1) == ok.at(2).at(2))ans =true;
      |      ~                                                                                ^
      |                                                                                       )
   37 | 
   38 |   else if ((ok.at(0).at(2) == ok.at(1).at(1) && ok.at(1).at(1) == ok.at(2).at(0))ans =true;
      |   ~~~~