Language: C++

#include <bits/stdc++.h>
using namespace std;
int main() {
  vector<int>p(3);
  for(int i=0;i<3;i++){
    cin >> p.at(i);}
  vector<int>q(3);
  for(int i=0;i<3;i++){
    cin >> q.at(3);}
  vector<int>r(3);
  for(int i=0;i<3;i++){
    cin >> r.at(3);}
  int n;
  cin >> n;
  vector<int> b(n);
  for(int j=0;j<n;j++){
    cin >> b.at(j);}
  vector<char> x(3);
  vector<char> y(3);
  vector<char> z(3);
  for(int i=0;i<3;i++){
    for(int j=0;j<n;j++){
      if(p.at(i)==b.at(j)){
        x.at(i)="#";}
      else if(q.at(i)==b.at(j)){
        y.at(i)="#";}
      else if(r.at(i)==b.at(j)){
        z.at(i)="#";}
      }}
  if(x.at(0)==y.at(0)==z.at(0)=="#" || x.at(0)==x.at(1)==x.at(2)=="#" || x.at(0)==y.at(1)==z.at(2)=="#" || x.at(1)==y.at(1)==z.at(1)=="#" || x.at(2)==y.at(2)==z.at(2)=="#" || x.at(2)==y.at(2)==z.at(0)=="#" || y.at(0)==y.at(1)==y.at(2)=="#" || z.at(0)==z.at(1)==z.at(2)=="#")
    {cout << "Yes" << endl;}
  else {
    cout << "No" << endl;}
  }
    
    
    


Compiler output:
a.cc: In function 'int main()':
a.cc:24:17: error: invalid conversion from 'const char*' to '__gnu_cxx::__alloc_traits<std::allocator<char>, char>::value_type' {aka 'char'} [-fpermissive]
   24 |         x.at(i)="#";}
      |                 ^~~
      |                 |
      |                 const char*
a.cc:26:17: error: invalid conversion from 'const char*' to '__gnu_cxx::__alloc_traits<std::allocator<char>, char>::value_type' {aka 'char'} [-fpermissive]
   26 |         y.at(i)="#";}
      |                 ^~~
      |                 |
      |                 const char*
a.cc:28:17: error: invalid conversion from 'const char*' to '__gnu_cxx::__alloc_traits<std::allocator<char>, char>::value_type' {aka 'char'} [-fpermissive]
   28 |         z.at(i)="#";}
      |                 ^~~
      |                 |
      |                 const char*
a.cc:30:31: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
   30 |   if(x.at(0)==y.at(0)==z.at(0)=="#" || x.at(0)==x.at(1)==x.at(2)=="#" || x.at(0)==y.at(1)==z.at(2)=="#" || x.at(1)==y.at(1)==z.at(1)=="#" || x.at(2)==y.at(2)==z.at(2)=="#" || x.at(2)==y.at(2)==z.at(0)=="#" || y.at(0)==y.at(1)==y.at(2)=="#" || z.at(0)==z.at(1)==z.at(2)=="#")
      |      ~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~
a.cc:30:65: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
   30 |   if(x.at(0)==y.at(0)==z.at(0)=="#" || x.at(0)==x.at(1)==x.at(2)=="#" || x.at(0)==y.at(1)==z.at(2)=="#" || x.at(1)==y.at(1)==z.at(1)=="#" || x.at(2)==y.at(2)==z.at(2)=="#" || x.at(2)==y.at(2)==z.at(0)=="#" || y.at(0)==y.at(1)==y.at(2)=="#" || z.at(0)==z.at(1)==z.at(2)=="#")
      |                                        ~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~
a.cc:30:99: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
   30 |   if(x.at(0)==y.at(0)==z.at(0)=="#" || x.at(0)==x.at(1)==x.at(2)=="#" || x.at(0)==y.at(1)==z.at(2)=="#" || x.at(1)==y.at(1)==z.at(1)=="#" || x.at(2)==y.at(2)==z.at(2)=="#" || x.at(2)==y.at(2)==z.at(0)=="#" || y.at(0)==y.at(1)==y.at(2)=="#" || z.at(0)==z.at(1)==z.at(2)=="#")
      |                                                                          ~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~
a.cc:30:133: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
   30 |   if(x.at(0)==y.at(0)==z.at(0)=="#" || x.at(0)==x.at(1)==x.at(2)=="#" || x.at(0)==y.at(1)==z.at(2)=="#" || x.at(1)==y.at(1)==z.at(1)=="#" || x.at(2)==y.at(2)==z.at(2)=="#" || x.at(2)==y.at(2)==z.at(0)=="#" || y.at(0)==y.at(1)==y.at(2)=="#" || z.at(0)==z.at(1)==z.at(2)=="#")
      |                                                                                                            ~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~
a.cc:30:167: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
   30 |   if(x.at(0)==y.at(0)==z.at(0)=="#" || x.at(0)==x.at(1)==x.at(2)=="#" || x.at(0)==y.at(1)==z.at(2)=="#" || x.at(1)==y.at(1)==z.at(1)=="#" || x.at(2)==y.at(2)==z.at(2)=="#" || x.at(2)==y.at(2)==z.at(0)=="#" || y.at(0)==y.at(1)==y.at(2)=="#" || z.at(0)==z.at(1)==z.at(2)=="#")
      |                                                                                                                                              ~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~
a.cc:30:201: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
   30 |   if(x.at(0)==y.at(0)==z.at(0)=="#" || x.at(0)==x.at(1)==x.at(2)=="#" || x.at(0)==y.at(1)==z.at(2)=="#" || x.at(1)==y.at(1)==z.at(1)=="#" || x.at(2)==y.at(2)==z.at(2)=="#" || x.at(2)==y.at(2)==z.at(0)=="#" || y.at(0)==y.at(1)==y.at(2)=="#" || z.at(0)==z.at(1)==z.at(2)=="#")
      |                                                                                                                                                                                ~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~
a.cc:30:235: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
   30 |   if(x.at(0)==y.at(0)==z.at(0)=="#" || x.at(0)==x.at(1)==x.at(2)=="#" || x.at(0)==y.at(1)==z.at(2)=="#" || x.at(1)==y.at(1)==z.at(1)=="#" || x.at(2)==y.at(2)==z.at(2)=="#" || x.at(2)==y.at(2)==z.at(0)=="#" || y.at(0)==y.at(1)==y.at(2)=="#" || z.at(0)==z.at(1)==z.at(2)=="#")
      |                                                                                                                                                                                                                  ~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~
a.cc:30:269: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
   30 |   if(x.at(0)==y.at(0)==z.at(0)=="#" || x.at(0)==x.at(1)==x.at(2)=="#" || x.at(0)==y.at(1)==z.at(2)=="#" || x.at(1)==y.at(1)==z.at(1)=="#" || x.at(2)==y.at(2)==z.at(2)=="#" || x.at(2)==y.at(2)==z.at(0)=="#" || y.at(0)==y.at(1)==y.at(2)=="#" || z.at(0)==z.at(1)==z.at(2)=="#")
      |                                                                                                                                                                                                                                                    ~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~