Language: C++

#include<cstdio>
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:5:4: error: 'cin' was not declared in this scope
    5 |    cin >> x >> y;
      |    ^~~
a.cc:2:1: note: 'std::cin' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>'
    1 | #include<cstdio>
  +++ |+#include <iostream>
    2 | using namespace std;
a.cc:6:4: error: 'set' was not declared in this scope
    6 |    set<int>s1, s2, s3;
      |    ^~~
a.cc:2:1: note: 'std::set' is defined in header '<set>'; this is probably fixable by adding '#include <set>'
    1 | #include<cstdio>
  +++ |+#include <set>
    2 | using namespace std;
a.cc:6:8: error: expected primary-expression before 'int'
    6 |    set<int>s1, s2, s3;
      |        ^~~
a.cc:8:21: error: 'strlen' was not declared in this scope
    8 |    for(int i = 0; i<strlen(a); ++i)s1.insert(a[i]);
      |                     ^~~~~~
a.cc:2:1: note: 'strlen' is defined in header '<cstring>'; this is probably fixable by adding '#include <cstring>'
    1 | #include<cstdio>
  +++ |+#include <cstring>
    2 | using namespace std;
a.cc:8:36: error: 's1' was not declared in this scope
    8 |    for(int i = 0; i<strlen(a); ++i)s1.insert(a[i]);
      |                                    ^~
a.cc:9:21: error: 'strlen' was not declared in this scope
    9 |    for(int i = 0; i<strlen(b); ++i)s1.insert(b[i]);
      |                     ^~~~~~
a.cc:9:21: note: 'strlen' is defined in header '<cstring>'; this is probably fixable by adding '#include <cstring>'
a.cc:9:36: error: 's1' was not declared in this scope
    9 |    for(int i = 0; i<strlen(b); ++i)s1.insert(b[i]);
      |                                    ^~
a.cc:10:21: error: 'strlen' was not declared in this scope
   10 |    for(int i = 0; i<strlen(c); ++i)s1.insert(c[i]);
      |                     ^~~~~~
a.cc:10:21: note: 'strlen' is defined in header '<cstring>'; this is probably fixable by adding '#include <cstring>'
a.cc:10:36: error: 's1' was not declared in this scope
   10 |    for(int i = 0; i<strlen(c); ++i)s1.insert(c[i]);
      |                                    ^~
a.cc:11:7: error: 's1' was not declared in this scope
   11 |    if(s1.count(x) && s1.count(y) || s2.count(x) && s2.count(y) || s3.count(x) && s3.count(y))
      |       ^~
a.cc:11:37: error: 's2' was not declared in this scope
   11 |    if(s1.count(x) && s1.count(y) || s2.count(x) && s2.count(y) || s3.count(x) && s3.count(y))
      |                                     ^~
a.cc:11:67: error: 's3' was not declared in this scope
   11 |    if(s1.count(x) && s1.count(y) || s2.count(x) && s2.count(y) || s3.count(x) && s3.count(y))
      |                                                                   ^~
a.cc:12:8: error: 'cout' was not declared in this scope
   12 |        cout << "Yes"<< endl;
      |        ^~~~
a.cc:12:8: note: 'std::cout' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>'
a.cc:12:24: error: 'endl' was not declared in this scope
   12 |        cout << "Yes"<< endl;
      |                        ^~~~
a.cc:2:1: note: 'std::endl' is defined in header '<ostream>'; this is probably fixable by adding '#include <ostream>'
    1 | #include<cstdio>
  +++ |+#include <ostream>
    2 | using namespace std;
a.cc:13:9: error: 'cout' was not declared in this scope
   13 |    else cout << "No" << endl;
      |         ^~~~
a.cc:13:9: note: 'std::cout' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>'
a.cc:13:25: error: 'endl' was not declared in this scope
   13 |    else cout << "No" << endl;
      |                         ^~~~
a.cc:13:25: note: 'std::endl' is defined in header '<ostream>'; this is probably fixable by adding '#include <ostream>'