Language: C++

#include<cstdio>
#include<cstring>
#include<iostream>
using namespace std;
int main(){
   int x, y;
   cin >> x >> y;
   set<int>s1, s2, s3;
   int a[] = {1, 3, 4, 7, 8, 10, 12}, b[] = {4, 6, 9, 11}, c[] = {2};
   for(int i = 0; i<strlen(a); ++i)s1.insert(a[i]);
   for(int i = 0; i<strlen(b); ++i)s1.insert(b[i]);
   for(int i = 0; i<strlen(c); ++i)s1.insert(c[i]);
   if(s1.count(x) && s1.count(y) || s2.count(x) && s2.count(y) || s3.count(x) && s3.count(y))
       cout << "Yes"<< endl;
   else cout << "No" << endl;
   return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:8:4: error: 'set' was not declared in this scope
    8 |    set<int>s1, s2, s3;
      |    ^~~
a.cc:4:1: note: 'std::set' is defined in header '<set>'; this is probably fixable by adding '#include <set>'
    3 | #include<iostream>
  +++ |+#include <set>
    4 | using namespace std;
a.cc:8:8: error: expected primary-expression before 'int'
    8 |    set<int>s1, s2, s3;
      |        ^~~
a.cc:10:28: error: cannot convert 'int*' to 'const char*'
   10 |    for(int i = 0; i<strlen(a); ++i)s1.insert(a[i]);
      |                            ^
      |                            |
      |                            int*
In file included from /usr/include/c++/14/cstring:43,
                 from a.cc:2:
/usr/include/string.h:407:35: note:   initializing argument 1 of 'size_t strlen(const char*)'
  407 | extern size_t strlen (const char *__s)
      |                       ~~~~~~~~~~~~^~~
a.cc:10:36: error: 's1' was not declared in this scope
   10 |    for(int i = 0; i<strlen(a); ++i)s1.insert(a[i]);
      |                                    ^~
a.cc:11:28: error: cannot convert 'int*' to 'const char*'
   11 |    for(int i = 0; i<strlen(b); ++i)s1.insert(b[i]);
      |                            ^
      |                            |
      |                            int*
/usr/include/string.h:407:35: note:   initializing argument 1 of 'size_t strlen(const char*)'
  407 | extern size_t strlen (const char *__s)
      |                       ~~~~~~~~~~~~^~~
a.cc:11:36: error: 's1' was not declared in this scope
   11 |    for(int i = 0; i<strlen(b); ++i)s1.insert(b[i]);
      |                                    ^~
a.cc:12:28: error: cannot convert 'int*' to 'const char*'
   12 |    for(int i = 0; i<strlen(c); ++i)s1.insert(c[i]);
      |                            ^
      |                            |
      |                            int*
/usr/include/string.h:407:35: note:   initializing argument 1 of 'size_t strlen(const char*)'
  407 | extern size_t strlen (const char *__s)
      |                       ~~~~~~~~~~~~^~~
a.cc:12:36: error: 's1' was not declared in this scope
   12 |    for(int i = 0; i<strlen(c); ++i)s1.insert(c[i]);
      |                                    ^~
a.cc:13:7: error: 's1' was not declared in this scope
   13 |    if(s1.count(x) && s1.count(y) || s2.count(x) && s2.count(y) || s3.count(x) && s3.count(y))
      |       ^~
a.cc:13:37: error: 's2' was not declared in this scope
   13 |    if(s1.count(x) && s1.count(y) || s2.count(x) && s2.count(y) || s3.count(x) && s3.count(y))
      |                                     ^~
a.cc:13:67: error: 's3' was not declared in this scope
   13 |    if(s1.count(x) && s1.count(y) || s2.count(x) && s2.count(y) || s3.count(x) && s3.count(y))
      |                                                                   ^~