criyle/codenet-compile-errors huggingface dataset:
Language: C++

// template
#include <bits/stdc++.h>
using namespace std;
typedef long long int ll;
typedef pair<long long, long long> LP;
#define INF 999999999
#define MOD 1000000007
#define REP(i, n) for(ll i = 0, i##_len = (n); i < i##_len; ++i)
#define REP_AB(i, a, b) for (ll i = ll(a); i <= ll(b); ++i)
#define ALL(v) v.begin(), v.end()
#define SORT(v) sort(ALL(v))
#define UNIQUE(v) sort(ALL(v));v.erase(unique(ALL(v)), v.end());
#define SIZE(x) ((ll)(x).size())
#define REVERSE(v) reverse(ALL(v))
ll gcd(ll a,ll b){return b?gcd(b,a%b):a;}
ll lcm(ll a,ll b){return (a / gcd(a, b)) * b;}
int dx[4]={1,0,-1,0};
int dy[4]={0,1,0,-1};
#define out cout
#define in cin
template<class T>bool chmax(T &a, const T &b) { if (a<b) { a=b; return 1; } return 0; }
template<class T>bool chmin(T &a, const T &b) { if (b<a) { a=b; return 1; } return 0; }
// template end

int main()
{
    ios::sync_with_stdio(false);
    cin.tie(0);
    ll x, y;
    in >> x >> y;

    vector<ll> g1 = {1, 3, 5, 7, 8, 10, 12};
    vector<ll> g2 = {4, 6, 9, 11};
    vector<ll> g3 = {2};

    ll xg, xy;
    REP(i, g1.size()){
        if(g1[i] == x) xg = "g1";
        if(g1[i] == y) yg = "g1";
    }
    REP(i, g2.size()){
        if(g2[i] == x) xg = "g2";
        if(g2[i] == y) yg = "g2";
    }
    REP(i, g3.size()){
        if(g3[i] == x) xg = "g3";
        if(g3[i] == y) yg = "g3";
    }
    if(xg == yg) out << "Yes" << endl;
    else out << "No" << endl;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:38:29: error: invalid conversion from 'const char*' to 'll' {aka 'long long int'} [-fpermissive]
   38 |         if(g1[i] == x) xg = "g1";
      |                             ^~~~
      |                             |
      |                             const char*
a.cc:39:24: error: 'yg' was not declared in this scope; did you mean 'xg'?
   39 |         if(g1[i] == y) yg = "g1";
      |                        ^~
      |                        xg
a.cc:42:29: error: invalid conversion from 'const char*' to 'll' {aka 'long long int'} [-fpermissive]
   42 |         if(g2[i] == x) xg = "g2";
      |                             ^~~~
      |                             |
      |                             const char*
a.cc:43:24: error: 'yg' was not declared in this scope; did you mean 'xg'?
   43 |         if(g2[i] == y) yg = "g2";
      |                        ^~
      |                        xg
a.cc:46:29: error: invalid conversion from 'const char*' to 'll' {aka 'long long int'} [-fpermissive]
   46 |         if(g3[i] == x) xg = "g3";
      |                             ^~~~
      |                             |
      |                             const char*
a.cc:47:24: error: 'yg' was not declared in this scope; did you mean 'xg'?
   47 |         if(g3[i] == y) yg = "g3";
      |                        ^~
      |                        xg
a.cc:49:14: error: 'yg' was not declared in this scope; did you mean 'xg'?
   49 |     if(xg == yg) out << "Yes" << endl;
      |              ^~
      |              xg
Language: C++

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

int main(int argc, char *argv[]) {
  ios::sync_with_stdio(false);
	cin.tie(nullptr);
	cout.tie(nullptr);

  int x,y;cin>>x>>y;

  int a[]={1,3,5,7,8,10,12};
  int b[]={4,6,9,11};

  int t=0;
  for(int i=0;i<n;i++){
    if(a[i]==x||a[i]==y){
      t++;
    }
  }
  if(t==2){cout<<"Yes"<<endl;return 0;}
  t=0;
  for(int i=0;i<n;i++){
    if(b[i]==x||b[i]==y){
      t++;
    }
  }
  if(t==2){cout<<"Yes"<<endl;return 0;}
  cout<<"No"<<endl;

  return 0;
}


Compiler output:
a.cc: In function 'int main(int, char**)':
a.cc:16:17: error: 'n' was not declared in this scope
   16 |   for(int i=0;i<n;i++){
      |                 ^
a.cc:23:17: error: 'n' was not declared in this scope
   23 |   for(int i=0;i<n;i++){
      |                 ^
Language: C++

#include <iostream>
#include <cstring>
#include <map>
#include <iomanip>
#include <algorithm>
#include <cmath>
#include <set>
#include <vector>
#include <queue>
#include <list>
#include <numeric>
#include <stdio.h>
#include <string>
#include <cstdlib>
#include <math.h>
#include <stack>
#include <climits>
#include <bitset>

using namespace std;
typedef long long ll;

//最小公倍数
ll gcd(ll x, ll y) {
  ll tmp = 0;
  if (x < y){
    tmp=x;
    x=y;
    y=tmp;
  }
  while (y > 0) {
    ll r = x % y;
    x = y;
    y = r;
  }
  return x;
}

//最大公倍数
ll lcm(ll x,ll y){
  return x/gcd(x,y)*y;
}

//階乗
ll kaijo(ll k){
    ll sum = 1;
    for (ll i = 1; i <= k; ++i)
    {
        sum *= i;
        sum%=1000000000+7;
    }
    return sum;
}

//for(int i = ; i < ; i++){}

int main(){
  int x,y;
  cin>>x>>y;
  if(x%2==1&&y%2==1) {
    cout<<"Yes"<<endl;
    return 0;
  }
  else if(x%2==0&&y%2==0){
    if(x==2&&y==2) cout<<"Yes"<<endl;
    else if(x>=4&&y>=4){
      cout<<"Yes"<<endl
    }
    return 0;
  }
  cout<<"No"<<endl;
  return 0;
}

  



Compiler output:
a.cc: In function 'int main()':
a.cc:67:24: error: expected ';' before '}' token
   67 |       cout<<"Yes"<<endl
      |                        ^
      |                        ;
   68 |     }
      |     ~
Language: C++

#include <bits/stdc++.h>

using namespace std;

int main() {
  int x, y;
  cin >> x >> y;
  int g[12] = {1, 3, 1, 2, 1, 2, 1, 1, 2, 1, 2, 1};
  if (g[x - 1] == g[y - 1]) cout << "Yes" << endl;
  else << "No" << endl;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:10:8: error: expected primary-expression before '<<' token
   10 |   else << "No" << endl;
      |        ^~
Language: C++

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

int main(){
	cin.tie(0);
	ios::sync_with_stdio(false);
	int a[] = {0, 1, 3, 1, 2, 1, 2, 1, 1, 2, 1, 2, 1};
	int x, y;
	cin >> x >> y;
	if (a[x] == a[y]){ cout << "Yes" << endl; }
	else { cout << "No" <> endl; }
}


Compiler output:
a.cc: In function 'int main()':
a.cc:11:30: error: expected primary-expression before '>' token
   11 |         else { cout << "No" <> endl; }
      |                              ^
Language: C++

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

int main() {
vector<int>vec(12)={0,1,0,2,0,2,0,0,2,0,2,0};
  int X,Y;
  cin >>X>>Y;
  if(vec[X]==vec[Y]){
    cout <<"Yes";
  }
  else{
    cout <<"No";
  }
     

}
 

Compiler output:
a.cc: In function 'int main()':
a.cc:5:19: error: expected ',' or ';' before '=' token
    5 | vector<int>vec(12)={0,1,0,2,0,2,0,0,2,0,2,0};
      |                   ^
Language: C++

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

int main() {
vector<int>vec[12]={0,1,0,2,0,2,0,0,2,0,2,0};
  int X,Y;
  cin >>X>>Y;
  if(vec[X]==vec[Y]){
    cout <<"Yes";
  }
  else{
    cout <<"No";
  }
     

}
 

Compiler output:
a.cc: In function 'int main()':
a.cc:5:21: error: conversion from 'int' to non-scalar type 'std::vector<int>' requested
    5 | vector<int>vec[12]={0,1,0,2,0,2,0,0,2,0,2,0};
      |                     ^
a.cc:5:23: error: conversion from 'int' to non-scalar type 'std::vector<int>' requested
    5 | vector<int>vec[12]={0,1,0,2,0,2,0,0,2,0,2,0};
      |                       ^
a.cc:5:25: error: conversion from 'int' to non-scalar type 'std::vector<int>' requested
    5 | vector<int>vec[12]={0,1,0,2,0,2,0,0,2,0,2,0};
      |                         ^
a.cc:5:27: error: conversion from 'int' to non-scalar type 'std::vector<int>' requested
    5 | vector<int>vec[12]={0,1,0,2,0,2,0,0,2,0,2,0};
      |                           ^
a.cc:5:29: error: conversion from 'int' to non-scalar type 'std::vector<int>' requested
    5 | vector<int>vec[12]={0,1,0,2,0,2,0,0,2,0,2,0};
      |                             ^
a.cc:5:31: error: conversion from 'int' to non-scalar type 'std::vector<int>' requested
    5 | vector<int>vec[12]={0,1,0,2,0,2,0,0,2,0,2,0};
      |                               ^
a.cc:5:33: error: conversion from 'int' to non-scalar type 'std::vector<int>' requested
    5 | vector<int>vec[12]={0,1,0,2,0,2,0,0,2,0,2,0};
      |                                 ^
a.cc:5:35: error: conversion from 'int' to non-scalar type 'std::vector<int>' requested
    5 | vector<int>vec[12]={0,1,0,2,0,2,0,0,2,0,2,0};
      |                                   ^
a.cc:5:37: error: conversion from 'int' to non-scalar type 'std::vector<int>' requested
    5 | vector<int>vec[12]={0,1,0,2,0,2,0,0,2,0,2,0};
      |                                     ^
a.cc:5:39: error: conversion from 'int' to non-scalar type 'std::vector<int>' requested
    5 | vector<int>vec[12]={0,1,0,2,0,2,0,0,2,0,2,0};
      |                                       ^
a.cc:5:41: error: conversion from 'int' to non-scalar type 'std::vector<int>' requested
    5 | vector<int>vec[12]={0,1,0,2,0,2,0,0,2,0,2,0};
      |                                         ^
a.cc:5:43: error: conversion from 'int' to non-scalar type 'std::vector<int>' requested
    5 | vector<int>vec[12]={0,1,0,2,0,2,0,0,2,0,2,0};
      |                                           ^
Language: C++

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

int main() {
vec[12]={0,1,0,2,0,2,0,0,2,0,2,0};
  int X,Y;
  cin >>X>>Y;
  if(vec[X]==vec[Y]){
    cout <<"Yes";
  }
  else{
    cout <<"No";
  }
     

}
 

Compiler output:
a.cc: In function 'int main()':
a.cc:5:1: error: 'vec' was not declared in this scope
    5 | vec[12]={0,1,0,2,0,2,0,0,2,0,2,0};
      | ^~~
Language: C++

#include<iostream>
#include<vector>
using namespace std;

int main() {
	int f1[] = { 1,3,5,7,8,10,12 };
	int f2[] = {4,6,9,11};
	int x, y; cin >> x >> y;
	bool f = false;
	if (x == 2 || y == 2) cout << "No" << endl;
	auto search =  [&](auto sf){
		for (auto s1: sf) {
			if (s1 == x) {
				for (auto ss1 : sf) {
					if (ss1 == y) f = true;
				}
			}
		}
	};
	search(f1);  search(f2);
	if (f == true) cout << "Yes" << endl;
	else  cout << "No" << endl;

	return 0;
}

Compiler output:
a.cc: In instantiation of 'main()::<lambda(auto:1)> [with auto:1 = int*]':
a.cc:20:8:   required from here
   20 |         search(f1);  search(f2);
      |         ~~~~~~^~~~
a.cc:12:17: error: 'begin' was not declared in this scope; did you mean 'std::begin'?
   12 |                 for (auto s1: sf) {
      |                 ^~~
      |                 std::begin
In file included from /usr/include/c++/14/string:53,
                 from /usr/include/c++/14/bits/locale_classes.h:40,
                 from /usr/include/c++/14/bits/ios_base.h:41,
                 from /usr/include/c++/14/ios:44,
                 from /usr/include/c++/14/ostream:40,
                 from /usr/include/c++/14/iostream:41,
                 from a.cc:1:
/usr/include/c++/14/bits/range_access.h:114:37: note: 'std::begin' declared here
  114 |   template<typename _Tp> const _Tp* begin(const valarray<_Tp>&) noexcept;
      |                                     ^~~~~
a.cc:12:17: error: 'end' was not declared in this scope; did you mean 'std::end'?
   12 |                 for (auto s1: sf) {
      |                 ^~~
      |                 std::end
/usr/include/c++/14/bits/range_access.h:116:37: note: 'std::end' declared here
  116 |   template<typename _Tp> const _Tp* end(const valarray<_Tp>&) noexcept;
      |                                     ^~~
a.cc:14:33: error: 'begin' was not declared in this scope; did you mean 'std::begin'?
   14 |                                 for (auto ss1 : sf) {
      |                                 ^~~
      |                                 std::begin
/usr/include/c++/14/bits/range_access.h:114:37: note: 'std::begin' declared here
  114 |   template<typename _Tp> const _Tp* begin(const valarray<_Tp>&) noexcept;
      |                                     ^~~~~
a.cc:14:33: error: 'end' was not declared in this scope; did you mean 'std::end'?
   14 |                                 for (auto ss1 : sf) {
      |                                 ^~~
      |                                 std::end
/usr/include/c++/14/bits/range_access.h:116:37: note: 'std::end' declared here
  116 |   template<typename _Tp> const _Tp* end(const valarray<_Tp>&) noexcept;
      |                                     ^~~
Language: C++

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

using ll = long long;
#define ld long double
#define ull unsigned long long int

#define rep(i, n) for (int i = 0; i < (int)(n); i++)  // (i, 10) i=0～i=9まで
#define repr(i, n) for (int i = n; i >= 0; i--)   // (i, 10) i=10～i=0まで
#define FOR(i, m, n) for (int i = m; i < n; i++)  // (i, 3, 10) i=3～i=9まで
#define SORT(v, n) sort(v, v + n);
#define VSORT(v) sort(v.begin(), v.end());
#define all(x) (x).begin(), (x).end()
#define sz(x) ((int)(x).size())
#define pb push_back
#define ret return

typedef pair<int, int>    pii;
typedef vector<int>       vi;
typedef vector<vi>        vii;
typedef vector<long long> vl;

// 総数を1000000007で割った余り
const long long mod = 1e9 + 7;
#define EPS (1e-7)
#define INF (1e9)
#define PI (acos(-1))

int main() {
    // cin.tie(0);
    // ios::sync_with_stdio(false);
    // cout << fixed << setprecision(5);

    // 入力
    int x, y;
    cin >> x >> y;
    int group[] = {0, 1, 2, 1, 3, 1, 3, 1, 1, 3, 1, 3, 1};

    // 処理
    // 出力
    cout << (groug[x] == group[y]) ? "Yes" : "No" << endl;

    return 0;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:42:14: error: 'groug' was not declared in this scope; did you mean 'group'?
   42 |     cout << (groug[x] == group[y]) ? "Yes" : "No" << endl;
      |              ^~~~~
      |              group
a.cc:42:51: error: invalid operands of types 'const char [3]' and '<unresolved overloaded function type>' to binary 'operator<<'
   42 |     cout << (groug[x] == group[y]) ? "Yes" : "No" << endl;
      |                                              ~~~~~^~~~~~~
Language: C++

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

using ll = long long;
#define ld long double
#define ull unsigned long long int

#define rep(i, n) for (int i = 0; i < (int)(n); i++)  // (i, 10) i=0～i=9まで
#define repr(i, n) for (int i = n; i >= 0; i--)   // (i, 10) i=10～i=0まで
#define FOR(i, m, n) for (int i = m; i < n; i++)  // (i, 3, 10) i=3～i=9まで
#define SORT(v, n) sort(v, v + n);
#define VSORT(v) sort(v.begin(), v.end());
#define all(x) (x).begin(), (x).end()
#define sz(x) ((int)(x).size())
#define pb push_back
#define ret return

typedef pair<int, int>    pii;
typedef vector<int>       vi;
typedef vector<vi>        vii;
typedef vector<long long> vl;

// 総数を1000000007で割った余り
const long long mod = 1e9 + 7;
#define EPS (1e-7)
#define INF (1e9)
#define PI (acos(-1))

int main() {
    // cin.tie(0);
    // ios::sync_with_stdio(false);
    // cout << fixed << setprecision(5);

    // 入力
    int x, y;
    cin >> x >> y;
    int group[] = {1, 2, 1, 3, 1, 3, 1, 1, 3, 1, 3, 1};

    // 処理
    // 出力
    cout << (groug[x] == group[y]) ? "Yes" : "No" << endl;

    return 0;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:42:14: error: 'groug' was not declared in this scope; did you mean 'group'?
   42 |     cout << (groug[x] == group[y]) ? "Yes" : "No" << endl;
      |              ^~~~~
      |              group
a.cc:42:51: error: invalid operands of types 'const char [3]' and '<unresolved overloaded function type>' to binary 'operator<<'
   42 |     cout << (groug[x] == group[y]) ? "Yes" : "No" << endl;
      |                                              ~~~~~^~~~~~~
Language: C++

#include <bits/stdc++.h>
#define rep(i,n) for (int i = 0; i < (n); i++)
#define rep1(i,n) for (int i = 1; i <= (n); i++)
#define repi(i,a,b) for (int i = (a); i < (b); i++)
#define all(x) (x).begin(),(x).end()
using namespace std;
using uint = unsigned int;
using ll = long long;
using ull = unsigned long long;
using vi = vector<int>;
using vvi = vector<vi>;
using pii = pair<int, int>;
using vc = vector<char>;
using vvc = vector<vc>;
using vs = vector<string>;

int main() {
  int x, y;
  cin >> x >> y;
  
  vi a = {0, 1, 3, 1, 2, 1, 2, 1, 1, 2, 1, 2, 1}
  cout << (a.at(x) == a.at(y) ? "Yes" : "No") << endl;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:22:3: error: expected ',' or ';' before 'cout'
   22 |   cout << (a.at(x) == a.at(y) ? "Yes" : "No") << endl;
      |   ^~~~
Language: C++

#include"bits/stdc++.h"
#define int long long
#define _overload3(_1,_2,_3,name,...) name
#define _rep(i,n) repi(i,0,n)
#define repi(i,a,b) for(int i=(a);i<(b);++i)
#define rep(...) _overload3(__VA_ARGS__,repi,_rep,)(__VA_ARGS__)
#define itr(i,x) for(auto i=(x).begin();i!=(x).end();++i)
#define All(x) (x).begin(),(x).end()
#define gridif(a,x,b) if((a)<=(x)&&(x)<(b))

using namespace std;
using Graph = vector<vector<int>>;
typedef pair<int,int> P;
const int mod=1000000007;

int digitsum(int n,int b){
	if(b<2) return -1;
	if(n<b) return n;
	return digitsum(n/b,b)+n%b;
}
int mpow(int a,int x);
int m_inv(int n);
vector<int> split(int n,int a);
string xal_number(int n,int x);
int gcd(int x,int y){return y?gcd(y,x%y):x;}
int lcm(int x,int y){return x*y/gcd(x,y);}
class Factorial{
private:
	vector<int> fac;
public:
	Factorial(int N){
		fac.push_back(1);
		rep(i,N) fac.push_back(fac[i]*(i+1)%mod);
	}
	int fact(int a){return fac[a];}
	int ifac(int a){return m_inv(fac[a]);}
	int cmb(int n,int r);
};
struct UnionFind {
    vector<int> par; // 親ノード
    UnionFind(int n = 1) { init(n);}
    void init(int n = 1) {
        par.resize(n);
        rep(i,n) par[i] = -1;
    }
    int root(int x) {
        if (par[x] <0) return x;
        else return par[x] = root(par[x]);      
    }
    int size(int x){ return -par[root(x)];}
    bool issame(int x, int y) {return root(x)==root(y);}
    bool connect(int x, int y);
};

signed main(){
	int x,y;
	cin>>x>>y;
	UnionFind uni(13);
	uni.connect(1,3);uni.connect(1,5);uni.connect(1,7);uni.connect(1,8);uni.connect(1,10);uni.connect(1,12);
	uni.connect(4,6);uni.connect(4,9);uni.connect(4,11);
	if(uni.issame(x,y)) cout<<"Yes"<<endl;
	else cout<<"No"<<endl;
}

Compiler output:
/usr/bin/ld: /tmp/ccEBzGbO.o: in function `main':
a.cc:(.text+0x12e): undefined reference to `UnionFind::connect(long long, long long)'
/usr/bin/ld: a.cc:(.text+0x144): undefined reference to `UnionFind::connect(long long, long long)'
/usr/bin/ld: a.cc:(.text+0x15a): undefined reference to `UnionFind::connect(long long, long long)'
/usr/bin/ld: a.cc:(.text+0x170): undefined reference to `UnionFind::connect(long long, long long)'
/usr/bin/ld: a.cc:(.text+0x186): undefined reference to `UnionFind::connect(long long, long long)'
/usr/bin/ld: /tmp/ccEBzGbO.o:a.cc:(.text+0x19c): more undefined references to `UnionFind::connect(long long, long long)' follow
collect2: error: ld returned 1 exit status
Language: C++

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

int main() {
  int x, y; cin >> x >> y;
  set<int> s;
  s = {4, 6, 9, 11);
  if (x == 2 || y == 2) {
    cout << "No" << endl;
  }
  else if (s.count(x) == 1 && s.count(y) == 1) {
    cout << "Yes" << endl;
  }
  else if (s.count(x) == 0 && s.count(y) == 0) {
    cout << "Yes" << endl;
  }
  else cout << "No" << endl;
  return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:7:19: error: expected '}' before ')' token
    7 |   s = {4, 6, 9, 11);
      |       ~           ^
a.cc:7:19: error: expected ';' before ')' token
    7 |   s = {4, 6, 9, 11);
      |                   ^
      |                   ;
Language: C++

#include <bits/stdc++.h>
using namespace std;
int main()  {
  vector<int> data(12)={0,2,0,1,0,1,0,0,1,0,1,0};
  int a, b; cin >> a >> b;
  int A=data[a], B=data[b];
  if(A==B){
    cout << "Yes" << endl;
  }
  else {
    cout << "No" << endl;
  }
}

Compiler output:
a.cc: In function 'int main()':
a.cc:4:23: error: expected ',' or ';' before '=' token
    4 |   vector<int> data(12)={0,2,0,1,0,1,0,0,1,0,1,0};
      |                       ^
Language: C++

#include <bits/stdc++.h>
using namespace std;
int main() {
  int x[]={1,3,1,2,1,2,1,1,2,1,2,1};
  int a,b;
  cin >>a>>b;
  if (x.at(a-1)==x.at(b-1)) {
    cout <<"Yes"<<endl;
  }
  else {
    cout <<"No"<<endl;
  }
}

Compiler output:
a.cc: In function 'int main()':
a.cc:7:9: error: request for member 'at' in 'x', which is of non-class type 'int [12]'
    7 |   if (x.at(a-1)==x.at(b-1)) {
      |         ^~
a.cc:7:20: error: request for member 'at' in 'x', which is of non-class type 'int [12]'
    7 |   if (x.at(a-1)==x.at(b-1)) {
      |                    ^~
Language: C++

#include<bits/stdc++.h>
using namespace std;
int main(void){
	int x,y;
	vector<int> a={0,1,2,1,3,1,3,1,1,3,1,3,1};
	cin >> x >> y;
	if(a.at(x)==a.at(y)) cout << "Yes" << endl;
	else cout << "No" << endl;
	return 0;


Compiler output:
a.cc: In function 'int main()':
a.cc:9:18: error: expected '}' at end of input
    9 |         return 0;
      |                  ^
a.cc:3:15: note: to match this '{'
    3 | int main(void){
      |               ^
Language: C++

#include <bits/stdc++.h>
using namespace std;
 
int main() {
  int x, y;
  cin >> x >> y;　
  vector<int> a = { 0, 2, 0, 1, 0, 1, 0, 0, 1, 0, 1, 0 };
  　
  if (a[x-1] == a[y-1]) {
  	cout << "Yes" << endl;
  }
  else {
  	cout << "No" << endl;
  }
}


Compiler output:
a.cc:6:17: error: extended character 　 is not valid in an identifier
    6 |   cin >> x >> y;　
      |                 ^
a.cc:8:3: error: extended character 　 is not valid in an identifier
    8 |   　
      |   ^
a.cc: In function 'int main()':
a.cc:6:17: error: '\U00003000' was not declared in this scope
    6 |   cin >> x >> y;　
      |                 ^~
a.cc:8:5: error: expected ';' before 'if'
    8 |   　
      |     ^
      |     ;
    9 |   if (a[x-1] == a[y-1]) {
      |   ~~ 
a.cc:12:3: error: 'else' without a previous 'if'
   12 |   else {
      |   ^~~~
Language: C++

#include <bits/stdc++.h>
using namespace std;
 
int main() {
  int x, y ;
  cin >> x >> y ;

  if ((x<y) && ((x == 1 || x == 3 || x == 5 || x == 7 || x == 8 || x == 10 || x ==12) && (y == 1 || y == 3 || y == 5 || y == 7 || y == 8 || y == 10 || y == 12)) ){
    cout << "Yes" << endl;
  }
    else if((x<y) && ((x == 4 || x == 6 || x == 9 || x == 11 ) && (y == 4 || y == 6 || y == 9 || y == 11){
      cout << "Yes" << endl;
    }
      else {
        cout << " No " << endl;
}
                      }
      
    
  


Compiler output:
a.cc: In function 'int main()':
a.cc:11:106: error: expected ')' before '{' token
   11 |     else if((x<y) && ((x == 4 || x == 6 || x == 9 || x == 11 ) && (y == 4 || y == 6 || y == 9 || y == 11){
      |                      ~                                                                                   ^
      |                                                                                                          )
a.cc:13:6: error: expected ')' before 'else'
   13 |     }
      |      ^
      |      )
   14 |       else {
      |       ~~~~
a.cc:11:12: note: to match this '('
   11 |     else if((x<y) && ((x == 4 || x == 6 || x == 9 || x == 11 ) && (y == 4 || y == 6 || y == 9 || y == 11){
      |            ^
a.cc:17:23: error: expected primary-expression before '}' token
   17 |                       }
      |                       ^
Language: C++

#include <bits/stdc++.h>
using namespace std;
 
int main() {
  int x, y ;
  cin >> x >> y ;

  if ((x<y) && ((x == 1 || x == 3 || x == 5 || x == 7 || x == 8 || x == 10 || x ==12) && (y == 1 || y == 3 || y == 5 || y == 7 || y == 8 || y == 10 || y == 12) ){
    cout << "Yes" << endl;
  }
    else if((x<y) && ((x == 4 || x == 6 || x == 9 || x == 11 ) && (y == 4 || y == 6 || y == 9 || y == 11){
      cout << "Yes" << endl;
    }
      else {
        cout << " No " << endl;
}
                      }
      
    
  


Compiler output:
a.cc: In function 'int main()':
a.cc:8:162: error: expected ')' before '{' token
    8 |   if ((x<y) && ((x == 1 || x == 3 || x == 5 || x == 7 || x == 8 || x == 10 || x ==12) && (y == 1 || y == 3 || y == 5 || y == 7 || y == 8 || y == 10 || y == 12) ){
      |      ~                                                                                                                                                           ^
      |                                                                                                                                                                  )
a.cc:17:23: error: expected primary-expression before '}' token
   17 |                       }
      |                       ^
Language: C++

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

int main(){
  int x,y;
  cin >> x >> y;
  int anko = {0,1,3,1,2,1,2,1,1,2,1,2,1};
  if(a[x] == a[y]) cout << "Yes" << endl;
  else cout << "No" << endl;
  
  return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:7:7: error: scalar object 'anko' requires one element in initializer
    7 |   int anko = {0,1,3,1,2,1,2,1,1,2,1,2,1};
      |       ^~~~
a.cc:8:6: error: 'a' was not declared in this scope
    8 |   if(a[x] == a[y]) cout << "Yes" << endl;
      |      ^
Language: C++

#include <bits/stdc++.h>
using namespace std;
int main(){
  int a[]={0,1,3,1,2,1,2,1,1,2,1,2,1}
  int x,y;
  cin >> x >> y;
  if (a[x]==a[y]){
    cout << "Yes" << endl;
  }
  else {
    cout << "No" << endl;
  }
}

Compiler output:
a.cc: In function 'int main()':
a.cc:5:3: error: expected ',' or ';' before 'int'
    5 |   int x,y;
      |   ^~~
a.cc:6:10: error: 'x' was not declared in this scope
    6 |   cin >> x >> y;
      |          ^
a.cc:6:15: error: 'y' was not declared in this scope
    6 |   cin >> x >> y;
      |               ^
Language: C++

#include <iostream>
#include <cstdio>
#include <algorithm>
#include <cmath>
#include <string>
#include <vector>
#include <list>
#include <set>
#include <map>
#include <queue>
#include <stack>
#include <cctype>
#include <climits>
#include <bitset>
using namespace std;
typedef long double ld;
typedef long long int ll;
typedef unsigned long long int ull;
typedef vector<int> vi;
typedef vector<char> vc;
typedef vector<string> vs;
typedef vector<pair<int,int>> vpii;
typedef vector<vector<int>> vvi;
typedef vector<vector<char>> vvc;
typedef vector<vector<string>> vvs;
#define rep(i,n) for(int i=0;i<n;i++)
#define fin(ans) cout<<(ans)<<endl
#define P 1000000007
#define STI(s) atoi(s.c_str())//string to int
#define mp(p,q) make_pair(p,q)
#define Sort(a) sort(a.begin(),a.end())
template<class T> inline bool chmax(T& a,T b){if(a<b){a=b;return 1;}return 0;}
template<class T> inline bool chmin(T& a,T b){if(a>b){a=b;return 1;}return 0;}
const int INF = INT_MAX;
const long long LLINF = 1LL<<60;
//g++ -std=c++1z temp.cpp
//./a.exe
    
int main(void){ios::sync_with_stdio(false);cin.tie(0);
//////////////////////////////////////////////////////
    
  	int x,y;
	cin >> x >> y;
	if (x == 2 || y == 2) {
		cout << "No" << endl;
		return 0;
	}
	else if (x == 4 || x == 6 || x == 9 || x == 11) {
		if (y == 4 || y == 6 || y == 9 || y == 11) {
			cout << "Yes" << endl;
			return 0;
		}
		else {
			cout << "No" << endl;
		}
	}
	else {
		if (y == 4 || y == 6 || y == 9 || y == 11) {
			cout << "No" << endl;
			return 0;
		}
		else {
			cout << "Yes" << endl;
		}
	}
}

  
 
//////////////////////////////////////////////////////
return 0;}

Compiler output:
a.cc:71:1: error: expected unqualified-id before 'return'
   71 | return 0;}
      | ^~~~~~
a.cc:71:10: error: expected declaration before '}' token
   71 | return 0;}
      |          ^
Language: C++

#include<bits/stdc++.h>
#include <math.h>
#include<iostream>
#include <string>
using namespace std;
typedef long long ll;
#define pb pushback
#define fr(i,n) for(int i=0;i<n;i++)
#define ifr(i,n) for(int i=n-1;i>=0;i--)


int main() {
  　int a[]={-1,0,2,0,1,0,1,0,0,1,0,1,0};
    int x,y;
	cin >> x>> y;
    string ans;
    if(a[x]==a[y])ans="Yes";
    else ans = "No";
      cout << ans << endl;
}


Compiler output:
a.cc:13:3: error: extended character 　 is not valid in an identifier
   13 |   　int a[]={-1,0,2,0,1,0,1,0,0,1,0,1,0};
      |   ^
a.cc: In function 'int main()':
a.cc:13:3: error: '\U00003000int' was not declared in this scope
   13 |   　int a[]={-1,0,2,0,1,0,1,0,0,1,0,1,0};
      |   ^~~~~
a.cc:17:8: error: 'a' was not declared in this scope
   17 |     if(a[x]==a[y])ans="Yes";
      |        ^
Language: C++

#include<bits/stdc++.h>
#include <math.h>
#include<iostream>
#include <string>
using namespace std;
typedef long long ll;
#define pb pushback
#define fr(i,n) for(int i=0;i<n;i++)
#define ifr(i,n) for(int i=n-1;i>=0;i--)


int main() {
  　int a[12]={0,2,0,1,0,1,0,0,1,0,1,0};
    int x,y;
	cin >> x>> y;
    string ans;
    if(a[x]==a[y])ans="Yes";
    else ans = "No";
      cout << ans << endl;
}


Compiler output:
a.cc:13:3: error: extended character 　 is not valid in an identifier
   13 |   　int a[12]={0,2,0,1,0,1,0,0,1,0,1,0};
      |   ^
a.cc: In function 'int main()':
a.cc:13:3: error: '\U00003000int' was not declared in this scope
   13 |   　int a[12]={0,2,0,1,0,1,0,0,1,0,1,0};
      |   ^~~~~
a.cc:17:8: error: 'a' was not declared in this scope
   17 |     if(a[x]==a[y])ans="Yes";
      |        ^
Language: C++

#include<bits/stdc++.h>
#include <math.h>
#include<iostream>
#include <string>
using namespace std;
typedef long long ll;
#define pb pushback
#define fr(i,n) for(int i=0;i<n;i++)
#define ifr(i,n) for(int i=n-1;i>=0;i--)


int main() {
  　int a[12]={0,2,0,1,0,1,0,0,1,0,1,0}
    int x,y;
	cin >> x>> y;
    string ans;
    if(a[x]==a[y])ans="Yes";
    else ans = "No";
      cout << ans << endl;
}

Compiler output:
a.cc:13:3: error: extended character 　 is not valid in an identifier
   13 |   　int a[12]={0,2,0,1,0,1,0,0,1,0,1,0}
      |   ^
a.cc: In function 'int main()':
a.cc:13:3: error: '\U00003000int' was not declared in this scope
   13 |   　int a[12]={0,2,0,1,0,1,0,0,1,0,1,0}
      |   ^~~~~
a.cc:17:8: error: 'a' was not declared in this scope
   17 |     if(a[x]==a[y])ans="Yes";
      |        ^
Language: C++

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

int main() {
  cin>>x>>y;
  int x, y;
  vector<int> X={0,1,3,1,2,1,2,1,1,2,1,2,1,};
  if (X[x]=X[y]){
    cout<<"Yes"<<endl;
  }
  else{cout<<"No"<<endl;}
}

Compiler output:
a.cc: In function 'int main()':
a.cc:5:8: error: 'x' was not declared in this scope
    5 |   cin>>x>>y;
      |        ^
a.cc:5:11: error: 'y' was not declared in this scope; did you mean 'yn'?
    5 |   cin>>x>>y;
      |           ^
      |           yn
Language: C++

#include <bits/stdc++.h>
using namespace std;
int main(){
  int x, y;
  cin >> x >> y;
  if(x==2){
    cout << "No" << endl;
  }
  
  if(x==4||x==6||x==9||x==11){
    if(y==4||y==6||y==9||y==11){
      cout << "Yes" << endl;
    }
    
    else{
      cout << "No" << endl;
    }
    
  else{
    if(y==2||y==4||y==6||y==9||y==11){
      cout << "No" << endl;
    }
    else{
      cout << "Yes" << endl;
    }
  }
  }

Compiler output:
a.cc: In function 'int main()':
a.cc:19:3: error: expected '}' before 'else'
   19 |   else{
      |   ^~~~
a.cc:10:30: note: to match this '{'
   10 |   if(x==4||x==6||x==9||x==11){
      |                              ^
Language: C++

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

int main(){
  int a,b;
  cin>>a>>b;
  if(a==2||b==2){
    cout<<No<<endl;
  }
  else if(b<8){
    if(b-a==2){
      cout<<Yes<<endl;
    }
    else{
      cout<<No<<endl;
}
  }
  else{
    if(b-a==2){
      cout<<Yes<<endl;
    }
    else{
      cout<<No<<endl;
    }
  }
}


Compiler output:
a.cc: In function 'int main()':
a.cc:8:11: error: 'No' was not declared in this scope
    8 |     cout<<No<<endl;
      |           ^~
a.cc:12:13: error: 'Yes' was not declared in this scope
   12 |       cout<<Yes<<endl;
      |             ^~~
a.cc:15:13: error: 'No' was not declared in this scope
   15 |       cout<<No<<endl;
      |             ^~
a.cc:20:13: error: 'Yes' was not declared in this scope
   20 |       cout<<Yes<<endl;
      |             ^~~
a.cc:23:13: error: 'No' was not declared in this scope
   23 |       cout<<No<<endl;
      |             ^~
Language: C++

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

int main(){
  int a,b;
  cin>>a>>b;
  if(a==2||b==2){
    cout<<No<<endl;
  }
  else if(b<8){
    if(b-a==2){
      cout<<Yes<<endl;
    }
    else{
      cout<<No<<endl;
}
  }
  else{
    if(b-a==2){
      cout<<Yes<<endl;
    }
    else{
      cout<<No<<endl;
    }
  }
}


Compiler output:
a.cc:1:9: fatal error: bits/stdc++: No such file or directory
    1 | #include<bits/stdc++>
      |         ^~~~~~~~~~~~~
compilation terminated.
Language: C++

#include <bits/stdc++.h>
using  namespace  std;
using ll=long long;
int main(){
  int a,b;
  cin>>a>>b;,
  vector<int> s={0,1,2,1,3,1,3,1,1,3,1,3,1};
  cout<<(s.at(a)==s.at(b)?"Yes":"No")<<endl;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:6:13: error: expected primary-expression before ',' token
    6 |   cin>>a>>b;,
      |             ^
a.cc:7:15: error: expected primary-expression before 's'
    7 |   vector<int> s={0,1,2,1,3,1,3,1,1,3,1,3,1};
      |               ^
a.cc:8:10: error: 's' was not declared in this scope
    8 |   cout<<(s.at(a)==s.at(b)?"Yes":"No")<<endl;
      |          ^
Language: C++

#include <bits/stdc++.h>
using  namespace  std;
using ll=long long;
int main(){
  int a,b;
  cin>>a>>b;,
  vector<int> s={0,1,2,1,3,1,3,1,1,3,1,3,1};
  cout<<s.at(a)==s.at(b)?"Yes":"No"<<endl;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:6:13: error: expected primary-expression before ',' token
    6 |   cin>>a>>b;,
      |             ^
a.cc:7:15: error: expected primary-expression before 's'
    7 |   vector<int> s={0,1,2,1,3,1,3,1,1,3,1,3,1};
      |               ^
a.cc:8:9: error: 's' was not declared in this scope
    8 |   cout<<s.at(a)==s.at(b)?"Yes":"No"<<endl;
      |         ^
a.cc:8:36: error: invalid operands of types 'const char [3]' and '<unresolved overloaded function type>' to binary 'operator<<'
    8 |   cout<<s.at(a)==s.at(b)?"Yes":"No"<<endl;
      |                                ~~~~^~~~~~
Language: C

#include <stdio.h>

int main() {
  int group_name[12] = {0, 2, 0, 1, 0, 1, 0, 0, 1, 0, 1, 0};
  scanf("%d %d", &number_x, &number_y);
  if(group_name[number_x-1] == group_name[number_y-1]) {
    printf("Yes\n");
  } else {
    printf("No\n");
  }
  return 0;
}


Compiler output:
main.c: In function 'main':
main.c:5:19: error: 'number_x' undeclared (first use in this function)
    5 |   scanf("%d %d", &number_x, &number_y);
      |                   ^~~~~~~~
main.c:5:19: note: each undeclared identifier is reported only once for each function it appears in
main.c:5:30: error: 'number_y' undeclared (first use in this function)
    5 |   scanf("%d %d", &number_x, &number_y);
      |                              ^~~~~~~~
Language: C++

#include <bits/stdc++.h>

using namespace std;

void main() {
  unordered_set<int> set2;
  set2.insert(4);
  set2.insert(6);
  set2.insert(9);
  set2.insert(1);
  int x, y;
  cin >> x >> y;
  if (x == 2 || y == 2) {
    cout << "No" << endl;
  } else if (set2.count(x) && set2.count(y)) {
    cout << "Yes" << endl;
  } else if (!set2.count(x) && !set2.count(y)) {
    cout << "Yes" << endl;
  } else {
    cout << "No" << endl;
  }
}


Compiler output:
a.cc:5:1: error: '::main' must return 'int'
    5 | void main() {
      | ^~~~
Language: C++

#include <iostream>
#include <vector>
using namespace std;
int main(void){
  int a,b;
  cin >> a >> b;
  
  vector<int>abc(12) = {1,3,1,2,1,2,1,1,2,1,2,1};
  
  if(abc[a - 1] == abc[b - 1])
    cout << "Yes" << endl;
  else
    cout << "No" << endl;
  
  return 0;
}
#include <iostream>
#include <vector>
using namespace std;
int main(void){
  int a,b;
  cin >> a >> b;
  
  vector<int>abc = {1,3,1,2,1,2,1,1,2,1,2,1};
  
  if(abc[a - 1] == abc[b - 1])
    cout << "Yes" << endl;
  else
    cout << "No" << endl;
  
  return 0;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:8:22: error: expected ',' or ';' before '=' token
    8 |   vector<int>abc(12) = {1,3,1,2,1,2,1,1,2,1,2,1};
      |                      ^
a.cc: At global scope:
a.cc:20:5: error: redefinition of 'int main()'
   20 | int main(void){
      |     ^~~~
a.cc:4:5: note: 'int main()' previously defined here
    4 | int main(void){
      |     ^~~~
Language: C++

#include <iostream>
#include <vector>
using namespace std;
int main(void){
  int a,b;
  cin >> a >> b;
  
  vector<int>abc(12) = {1,3,1,2,1,2,1,1,2,1,2,1};
  
  if(abc[a - 1] == abc[b - 1])
    cout << "Yes" << endl;
  else
    cout << "No" << endl;
  
  return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:8:22: error: expected ',' or ';' before '=' token
    8 |   vector<int>abc(12) = {1,3,1,2,1,2,1,1,2,1,2,1};
      |                      ^
Language: C++

#include <iostream>
#include <vector>
using namespace std;
int main(void){
  int a,b;
  cin >> a >> b;
  
  vector<char>abc(12) = {'a','c','a','b','a','b','a','a','b','a','b','a'};
  
  if(abc[a - 1] == abc[b - 1])
    cout << "Yes" << endl;
  else
    cout << "No" << endl;
  
  return 0;

Compiler output:
a.cc: In function 'int main()':
a.cc:8:23: error: expected ',' or ';' before '=' token
    8 |   vector<char>abc(12) = {'a','c','a','b','a','b','a','a','b','a','b','a'};
      |                       ^
a.cc:15:12: error: expected '}' at end of input
   15 |   return 0;
      |            ^
a.cc:4:15: note: to match this '{'
    4 | int main(void){
      |               ^
Language: C++

#include <iostream>
#include <vector>
using namespace std;
int main(void){
  int a,b;
  cin >> a >> b;
  
  vector<char>abc(12);
  abc = ['a','c','a','b','a','b','a','a','b','a','b','a'];
  
  if(abc[a - 1] == abc[b - 1])
    cout << "Yes" << endl;
  else
    cout << "No" << endl;
  
  return 0;

Compiler output:
a.cc: In function 'int main()':
a.cc:9:10: error: expected identifier before 'a'
    9 |   abc = ['a','c','a','b','a','b','a','a','b','a','b','a'];
      |          ^~~
a.cc:9:13: error: expected ']' before ',' token
    9 |   abc = ['a','c','a','b','a','b','a','a','b','a','b','a'];
      |             ^
      |             ]
a.cc: In lambda function:
a.cc:9:13: error: expected '{' before ',' token
a.cc: In function 'int main()':
a.cc:9:13: error: no match for 'operator=' (operand types are 'std::vector<char>' and 'main()::<lambda()>')
In file included from /usr/include/c++/14/vector:72,
                 from a.cc:2:
/usr/include/c++/14/bits/vector.tcc:210:5: note: candidate: 'std::vector<_Tp, _Alloc>& std::vector<_Tp, _Alloc>::operator=(const std::vector<_Tp, _Alloc>&) [with _Tp = char; _Alloc = std::allocator<char>]'
  210 |     vector<_Tp, _Alloc>::
      |     ^~~~~~~~~~~~~~~~~~~
/usr/include/c++/14/bits/vector.tcc:211:42: note:   no known conversion for argument 1 from 'main()::<lambda()>' to 'const std::vector<char>&'
  211 |     operator=(const vector<_Tp, _Alloc>& __x)
      |               ~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~
In file included from /usr/include/c++/14/vector:66:
/usr/include/c++/14/bits/stl_vector.h:766:7: note: candidate: 'std::vector<_Tp, _Alloc>& std::vector<_Tp, _Alloc>::operator=(std::vector<_Tp, _Alloc>&&) [with _Tp = char; _Alloc = std::allocator<char>]'
  766 |       operator=(vector&& __x) noexcept(_Alloc_traits::_S_nothrow_move())
      |       ^~~~~~~~
/usr/include/c++/14/bits/stl_vector.h:766:26: note:   no known conversion for argument 1 from 'main()::<lambda()>' to 'std::vector<char>&&'
  766 |       operator=(vector&& __x) noexcept(_Alloc_traits::_S_nothrow_move())
      |                 ~~~~~~~~~^~~
/usr/include/c++/14/bits/stl_vector.h:788:7: note: candidate: 'std::vector<_Tp, _Alloc>& std::vector<_Tp, _Alloc>::operator=(std::initializer_list<_Tp>) [with _Tp = char; _Alloc = std::allocator<char>]'
  788 |       operator=(initializer_list<value_type> __l)
      |       ^~~~~~~~
/usr/include/c++/14/bits/stl_vector.h:788:46: note:   no known conversion for argument 1 from 'main()::<lambda()>' to 'std::initializer_list<char>'
  788 |       operator=(initializer_list<value_type> __l)
      |                 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~
a.cc:16:12: error: expected '}' at end of input
   16 |   return 0;
      |            ^
a.cc:4:15: note: to match this '{'
    4 | int main(void){
      |               ^
Language: C++

#include <iostream>
#include <vector>
using namespace std;
int main(void){
  int a,b;
  cin >> a >> b;
  
  vector<char>abc(12) = ['a','c','a','b','a','b','a','a','b','a','b','a'];
  
  if(abc[a - 1] == abc[b - 1])
    cout << "Yes" << endl;
  else
    cout << "No" << endl;
  
  return 0;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:8:23: error: expected ',' or ';' before '=' token
    8 |   vector<char>abc(12) = ['a','c','a','b','a','b','a','a','b','a','b','a'];
      |                       ^
Language: C++

#include <iostream>
int main () {
int a [] = {0 , 1 , 3 , 1 , 2 , 1 , 2 , 1 , 1 , 2 , 1 , 2 , 1};
int x , y ; cin >> x >> y ;
cout << ( a [ x ] == a [ y ] ? " Yes " : " No ") << endl ;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:4:13: error: 'cin' was not declared in this scope; did you mean 'std::cin'?
    4 | int x , y ; cin >> x >> y ;
      |             ^~~
      |             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:5:1: error: 'cout' was not declared in this scope; did you mean 'std::cout'?
    5 | cout << ( a [ x ] == a [ y ] ? " Yes " : " No ") << endl ;
      | ^~~~
      | std::cout
/usr/include/c++/14/iostream:63:18: note: 'std::cout' declared here
   63 |   extern ostream cout;          ///< Linked to standard output
      |                  ^~~~
a.cc:5:53: error: 'endl' was not declared in this scope; did you mean 'std::endl'?
    5 | cout << ( a [ x ] == a [ y ] ? " Yes " : " No ") << endl ;
      |                                                     ^~~~
      |                                                     std::endl
In file included from /usr/include/c++/14/iostream:41:
/usr/include/c++/14/ostream:744:5: note: 'std::endl' declared here
  744 |     endl(basic_ostream<_CharT, _Traits>& __os)
      |     ^~~~
Language: C++

#include<stdio.h>
int main () {
int a [] = {0 , 1 , 3 , 1 , 2 , 1 , 2 , 1 , 1 , 2 , 1 , 2 , 1};
int x , y ; cin >> x >> y ;
cout << ( a [ x ] == a [ y ] ? " Yes " : " No ") << endl ;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:4:13: error: 'cin' was not declared in this scope
    4 | int x , y ; cin >> x >> y ;
      |             ^~~
a.cc:5:1: error: 'cout' was not declared in this scope
    5 | cout << ( a [ x ] == a [ y ] ? " Yes " : " No ") << endl ;
      | ^~~~
a.cc:5:53: error: 'endl' was not declared in this scope
    5 | cout << ( a [ x ] == a [ y ] ? " Yes " : " No ") << endl ;
      |                                                     ^~~~
Language: C++

#include<bits/stdc++.h>
using namespace std;
int main(){
int x,y;
  cin>>x>>y;
  
vector<int>vec1={1,3,5,7,8,10,12};
vector<int>vec2={4,6,9,11}
  
  int sum1=0;
  int sum2=0;
  
  
  
  for(int i=0;i<vec1.size() ;i++ ){
    if(vec1.at(i)==x){
      sum1++;
    }
    else if(vec1.at(i)==y){
      sum1++;
    }
    
  }
    for(int j=0;j<vec2.size(); j++){
    if(vec2.at(j)==x){
      sum2++;
    }
      else if(vec2.at(j)==y){
        sum2++;
    }
    }
  
      
  
      
   
  if(sum1==2||sum2==2){
    cout<<"Yes"<<endl;
  }
  else{
    cout<<"No"<<endl;
  }
}

    
      
    

    

Compiler output:
a.cc: In function 'int main()':
a.cc:10:3: error: expected ',' or ';' before 'int'
   10 |   int sum1=0;
      |   ^~~
a.cc:17:7: error: 'sum1' was not declared in this scope; did you mean 'sum2'?
   17 |       sum1++;
      |       ^~~~
      |       sum2
a.cc:20:7: error: 'sum1' was not declared in this scope; did you mean 'sum2'?
   20 |       sum1++;
      |       ^~~~
      |       sum2
a.cc:37:6: error: 'sum1' was not declared in this scope; did you mean 'sum2'?
   37 |   if(sum1==2||sum2==2){
      |      ^~~~
      |      sum2
Language: C++

#include<bits/stdc++.h>
using namespace std;
int main(){
int x,y;
  cin>>x>>y;
  
vector<int>vec1={1,3,5,7,8,10,12};
vector<int>vec2={4,6,9,11};
  
  int sum1=0;
  int sum2=0;
  
  
  for((int i=0,int j=0);(i<vec1.size(),j<vec1.size());(i++,j++)){
    if(vec1.at(i)==x&&vec.at(j)==y){
      sum1++;
    }
  }
    for(int i=0;int j=0;i<vec2.size();j<vec2.size();i++;j++){
    if(vec2.at(i)==x&&vec2.at(j)==y){
      sum2++;
    }
    }
  
      
  
      
   
  if(sum1==1||sum2==1){
    cout<<"Yes"<<endl;
  }
  else{
    cout<<"No"<<endl;
  }
}

    
      
    

Compiler output:
a.cc: In function 'int main()':
a.cc:14:8: error: expected primary-expression before 'int'
   14 |   for((int i=0,int j=0);(i<vec1.size(),j<vec1.size());(i++,j++)){
      |        ^~~
a.cc:14:8: error: expected ')' before 'int'
   14 |   for((int i=0,int j=0);(i<vec1.size(),j<vec1.size());(i++,j++)){
      |       ~^~~
      |        )
a.cc:14:26: error: 'i' was not declared in this scope
   14 |   for((int i=0,int j=0);(i<vec1.size(),j<vec1.size());(i++,j++)){
      |                          ^
a.cc:14:40: error: 'j' was not declared in this scope
   14 |   for((int i=0,int j=0);(i<vec1.size(),j<vec1.size());(i++,j++)){
      |                                        ^
a.cc:15:23: error: 'vec' was not declared in this scope; did you mean 'vec2'?
   15 |     if(vec1.at(i)==x&&vec.at(j)==y){
      |                       ^~~
      |                       vec2
a.cc:19:38: error: expected ')' before ';' token
   19 |     for(int i=0;int j=0;i<vec2.size();j<vec2.size();i++;j++){
      |        ~                             ^
      |                                      )
a.cc:19:39: error: 'j' was not declared in this scope
   19 |     for(int i=0;int j=0;i<vec2.size();j<vec2.size();i++;j++){
      |                                       ^
a.cc:19:53: error: 'i' was not declared in this scope
   19 |     for(int i=0;int j=0;i<vec2.size();j<vec2.size();i++;j++){
      |                                                     ^
Language: C++

#include<bits/stdc++.h>
using namespace std;
int main(){
int x,y;
  cin>>x>>y;
  
vector<int>vec1={1,3,5,7,8,10,12};
vector<int>vec2={4,6,9,11}
  
  int sum1=0;
  int sum2=0;
  
  
  for(int i=0;int j=0;i<vec1.size();j<vec1.size();i++;j++){
    if(vec1.at(i)==x&&vec.at(j)==y){
      sum1++;
    }
  }
    for(int i=0;int j=0;i<vec2.size();j<vec2.size();i++;j++){
    if(vec2.at(i)==x&&vec2.at(j)==y){
      sum2++;
    }
    }
  
      
  
      
   
  if(sum1==1||sum2==1){
    cout<<"Yes"<<endl;
  }
  else{
    cout<<"No"<<endl;
  }
}

    
      
    

Compiler output:
a.cc: In function 'int main()':
a.cc:10:3: error: expected ',' or ';' before 'int'
   10 |   int sum1=0;
      |   ^~~
a.cc:14:36: error: expected ')' before ';' token
   14 |   for(int i=0;int j=0;i<vec1.size();j<vec1.size();i++;j++){
      |      ~                             ^
      |                                    )
a.cc:14:37: error: 'j' was not declared in this scope
   14 |   for(int i=0;int j=0;i<vec1.size();j<vec1.size();i++;j++){
      |                                     ^
a.cc:14:51: error: 'i' was not declared in this scope
   14 |   for(int i=0;int j=0;i<vec1.size();j<vec1.size();i++;j++){
      |                                                   ^
a.cc:19:38: error: expected ')' before ';' token
   19 |     for(int i=0;int j=0;i<vec2.size();j<vec2.size();i++;j++){
      |        ~                             ^
      |                                      )
a.cc:29:6: error: 'sum1' was not declared in this scope; did you mean 'sum2'?
   29 |   if(sum1==1||sum2==1){
      |      ^~~~
      |      sum2