Language: C++

#include<iostream>
#include<cstdio>
#include<vector>
#include<algorithm>
#define ALL(obj) (obj).begin(),(obj).end()
using vi = vector<int>
using namespace std;
int main(){
  int a,b;
  vi c = {1,3,5,7,8,10,12};
  vi d = {4,6,9,11};
  vi e = {2};
  cin >> a >> b;
  bool flag = false;
  if(find(ALL(c),a) != c.end() && find(ALL(c),b) != c.end()) flag = true;
  if(find(ALL(d),a) != d.end() && find(ALL(d),b) != d.end()) flag = true;
  if(find(ALL(e),a) != e.end() && find(ALL(e),b) != e.end()) flag = true;
  if(flag) puts("Yes");
  else puts("No");
}

Compiler output:
a.cc:6:12: error: 'vector' does not name a type
    6 | using vi = vector<int>
      |            ^~~~~~
a.cc: In function 'int main()':
a.cc:10:3: error: 'vi' was not declared in this scope
   10 |   vi c = {1,3,5,7,8,10,12};
      |   ^~
a.cc:11:5: error: expected ';' before 'd'
   11 |   vi d = {4,6,9,11};
      |     ^~
      |     ;
a.cc:12:5: error: expected ';' before 'e'
   12 |   vi e = {2};
      |     ^~
      |     ;
a.cc:13:3: error: 'cin' was not declared in this scope; did you mean 'std::cin'?
   13 |   cin >> a >> b;
      |   ^~~
      |   std::cin
In file included from a.cc:1:
/usr/include/c++/14/iostream:62:18: note: 'std::cin' declared here
   62 |   extern istream cin;           ///< Linked to standard input
      |                  ^~~
a.cc:15:15: error: 'c' was not declared in this scope
   15 |   if(find(ALL(c),a) != c.end() && find(ALL(c),b) != c.end()) flag = true;
      |               ^
a.cc:5:19: note: in definition of macro 'ALL'
    5 | #define ALL(obj) (obj).begin(),(obj).end()
      |                   ^~~
a.cc:15:6: error: 'find' was not declared in this scope; did you mean 'std::find'?
   15 |   if(find(ALL(c),a) != c.end() && find(ALL(c),b) != c.end()) flag = true;
      |      ^~~~
      |      std::find
In file included from /usr/include/c++/14/algorithm:86,
                 from a.cc:4:
/usr/include/c++/14/pstl/glue_algorithm_defs.h:60:1: note: 'std::find' declared here
   60 | find(_ExecutionPolicy&& __exec, _ForwardIterator __first, _ForwardIterator __last, const _Tp& __value);
      | ^~~~
a.cc:16:15: error: 'd' was not declared in this scope
   16 |   if(find(ALL(d),a) != d.end() && find(ALL(d),b) != d.end()) flag = true;
      |               ^
a.cc:5:19: note: in definition of macro 'ALL'
    5 | #define ALL(obj) (obj).begin(),(obj).end()
      |                   ^~~
a.cc:16:6: error: 'find' was not declared in this scope; did you mean 'std::find'?
   16 |   if(find(ALL(d),a) != d.end() && find(ALL(d),b) != d.end()) flag = true;
      |      ^~~~
      |      std::find
/usr/include/c++/14/pstl/glue_algorithm_defs.h:60:1: note: 'std::find' declared here
   60 | find(_ExecutionPolicy&& __exec, _ForwardIterator __first, _ForwardIterator __last, const _Tp& __value);
      | ^~~~
a.cc:17:15: error: 'e' was not declared in this scope
   17 |   if(find(ALL(e),a) != e.end() && find(ALL(e),b) != e.end()) flag = true;
      |               ^
a.cc:5:19: note: in definition of macro 'ALL'
    5 | #define ALL(obj) (obj).begin(),(obj).end()
      |                   ^~~
a.cc:17:6: error: 'find' was not declared in this scope; did you mean 'std::find'?
   17 |   if(find(ALL(e),a) != e.end() && find(ALL(e),b) != e.end()) flag = true;
      |      ^~~~
      |      std::find
/usr/include/c++/14/pstl/glue_algorithm_defs.h:60:1: note: 'std::find' declared here
   60 | find(_ExecutionPolicy&& __exec, _ForwardIterator __first, _ForwardIterator __last, const _Tp& __value);
      | ^~~~