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

#include <iostream>
using namespace std;

int main(){
	int x[2],y[i],i;
	for(i=0;i<2;i++){
		cin >> x[i];
		if(x[i]==2) y[i]=0;
		if(x[i]==4||x[i]==6||x[i]==9||x[i]==11) y[i]=1;
		else y[i]=2;
	}
	if(y[0]==y[1]) cout << "Yes" << endl;
	else cout << "No" << endl;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:5:20: error: 'i' was not declared in this scope
    5 |         int x[2],y[i],i;
      |                    ^
a.cc:8:29: error: 'y' was not declared in this scope
    8 |                 if(x[i]==2) y[i]=0;
      |                             ^
a.cc:9:57: error: 'y' was not declared in this scope
    9 |                 if(x[i]==4||x[i]==6||x[i]==9||x[i]==11) y[i]=1;
      |                                                         ^
a.cc:10:22: error: 'y' was not declared in this scope
   10 |                 else y[i]=2;
      |                      ^
a.cc:12:12: error: 'y' was not declared in this scope
   12 |         if(y[0]==y[1]) cout << "Yes" << endl;
      |            ^
Language: C++

#include "bits/stdc++.h"
using namespace std;
typedef long long ll;
#define INF (1<<30)
#define INFLL (1ll<<60)
typedef pair<int, int> P;
typedef pair<ll, P> E;
#define cost first
#define from second.first
#define to second.second
#define MOD (1000000007ll)
#define l_ength size

void mul_mod(ll& a, ll b){
	a *= b;
	a %= MOD;
}

int main(void){
	int g[13]={0,31,28,31,30,31,30,31,31,30,31,30,31},x,y;
	cin >> x >> y;
	cout << ((g[x]==g[y]):"Yes":"No") << endl;
	return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:22:30: error: expected ')' before ':' token
   22 |         cout << ((g[x]==g[y]):"Yes":"No") << endl;
      |                 ~            ^
      |                              )
Language: C++

#include <iostream>
#include <vector>

using namespace std;


int main(void){
	int a, b;

	cin >> a >> b;

	int root[13] = {0, 1, 2, 1, 4, 1, 4, 1, 1, 4, 1, 4, 1, 1};

	if (root[a] == root[b])
		cout << "Yes";
	else
		cout << "No";
}

Compiler output:
a.cc: In function 'int main()':
a.cc:12:65: error: too many initializers for 'int [13]'
   12 |         int root[13] = {0, 1, 2, 1, 4, 1, 4, 1, 1, 4, 1, 4, 1, 1};
      |                                                                 ^
Language: C++

#include<iostream>
#include<vector>

int main() {
	std::vector<std::vector<int>> vv{ {1,3,5,7,8,10,12},{4,6,9,11},{2} };
	int x, y,count=0;
	bool flag=false;

	std::cin >> x >> y;
	
	for (int i = 0; i < 2; i++) {
		auto itr_x = std::find(vv[i].begin(), vv[i].end(), x); 
		auto itr_y = std::find(vv[i].begin(), vv[i].end(), y);

		if (itr_x != vv[i].end() && itr_y != vv[i].end()) {
			flag = true;
			break;
		}
	}

	std::cout << (flag ? "Yes" : "No") << std::endl;

	return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:12:39: error: no matching function for call to 'find(std::vector<int>::iterator, std::vector<int>::iterator, int&)'
   12 |                 auto itr_x = std::find(vv[i].begin(), vv[i].end(), x);
      |                              ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
In file included from /usr/include/c++/14/bits/locale_facets.h:48,
                 from /usr/include/c++/14/bits/basic_ios.h:37,
                 from /usr/include/c++/14/ios:46,
                 from /usr/include/c++/14/ostream:40,
                 from /usr/include/c++/14/iostream:41,
                 from a.cc:1:
/usr/include/c++/14/bits/streambuf_iterator.h:435:5: note: candidate: 'template<class _CharT2> typename __gnu_cxx::__enable_if<std::__is_char<_CharT2>::__value, std::istreambuf_iterator<_CharT> >::__type std::find(istreambuf_iterator<_CharT>, istreambuf_iterator<_CharT>, const _CharT2&)'
  435 |     find(istreambuf_iterator<_CharT> __first,
      |     ^~~~
/usr/include/c++/14/bits/streambuf_iterator.h:435:5: note:   template argument deduction/substitution failed:
a.cc:12:39: note:   '__gnu_cxx::__normal_iterator<int*, std::vector<int> >' is not derived from 'std::istreambuf_iterator<_CharT>'
   12 |                 auto itr_x = std::find(vv[i].begin(), vv[i].end(), x);
      |                              ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
a.cc:13:39: error: no matching function for call to 'find(std::vector<int>::iterator, std::vector<int>::iterator, int&)'
   13 |                 auto itr_y = std::find(vv[i].begin(), vv[i].end(), y);
      |                              ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/usr/include/c++/14/bits/streambuf_iterator.h:435:5: note: candidate: 'template<class _CharT2> typename __gnu_cxx::__enable_if<std::__is_char<_CharT2>::__value, std::istreambuf_iterator<_CharT> >::__type std::find(istreambuf_iterator<_CharT>, istreambuf_iterator<_CharT>, const _CharT2&)'
  435 |     find(istreambuf_iterator<_CharT> __first,
      |     ^~~~
/usr/include/c++/14/bits/streambuf_iterator.h:435:5: note:   template argument deduction/substitution failed:
a.cc:13:39: note:   '__gnu_cxx::__normal_iterator<int*, std::vector<int> >' is not derived from 'std::istreambuf_iterator<_CharT>'
   13 |                 auto itr_y = std::find(vv[i].begin(), vv[i].end(), y);
      |                              ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Language: C++

#include <iostream>
using namespace std;

int main(){
  int x,y; cin >> x >> y;

  if (x == 1 or 3 or 5 or 7 or 8 or 10 or 12 ){
    if (y == 1 or 3 or 5 or 7 or 8 or 10 or 12){
      cout << "G1-Yes" << endl;
    }
  }else{
    if (x ==  4 or 6 or 9 or 11){
      if (y == 4 or 6 or 9 or 11){
        cout << "G2-Yes" << endl;
      }
    }else{
      if (x == 2){
        if (y == 2){
          cout << "G3-Yes" <<endl;
        }
      }else{
        cout << "No" <<endl;
      }
    }
  }

}

}


Compiler output:
a.cc:29:1: error: expected declaration before '}' token
   29 | }
      | ^
Language: C++

#include<iostream>
#include<math.h>
#include<string>
#include<algorithm>
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;
	(a[x]==a[y]) ? cout<<"Yes"<<endl; : cout<<"No"<<endl;
	return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:11:41: error: expected ':' before ';' token
   11 |         (a[x]==a[y]) ? cout<<"Yes"<<endl; : cout<<"No"<<endl;
      |                                         ^
      |                                         :
a.cc:11:41: error: expected primary-expression before ';' token
a.cc:11:43: error: expected primary-expression before ':' token
   11 |         (a[x]==a[y]) ? cout<<"Yes"<<endl; : cout<<"No"<<endl;
      |                                           ^
Language: C++

#include<iostream>
#include<math.h>
#include<string>
#include<algorithm>
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;
	a[x]==a[y] ? cout<<"Yes"<<endl; : cout<<"No"<<endl;
	return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:11:39: error: expected ':' before ';' token
   11 |         a[x]==a[y] ? cout<<"Yes"<<endl; : cout<<"No"<<endl;
      |                                       ^
      |                                       :
a.cc:11:39: error: expected primary-expression before ';' token
a.cc:11:41: error: expected primary-expression before ':' token
   11 |         a[x]==a[y] ? cout<<"Yes"<<endl; : cout<<"No"<<endl;
      |                                         ^
Language: C++

#include<iostream>
#include<math.h>
#include<string>
#include<algorithm>
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;
	return 0;
}

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

#include<iostream>
#include<math.h>
#include<string>
#include<algorithm>
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;
	a[x]==a[y] ? cout<<"Yes"<<endl; : cout<<"No"<<endl;
	return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:9:9: error: expected ',' or ';' before 'int'
    9 |         int x,y;
      |         ^~~
a.cc:10:14: error: 'x' was not declared in this scope
   10 |         cin>>x>>y;
      |              ^
a.cc:10:17: error: 'y' was not declared in this scope
   10 |         cin>>x>>y;
      |                 ^
a.cc:11:39: error: expected ':' before ';' token
   11 |         a[x]==a[y] ? cout<<"Yes"<<endl; : cout<<"No"<<endl;
      |                                       ^
      |                                       :
a.cc:11:39: error: expected primary-expression before ';' token
a.cc:11:41: error: expected primary-expression before ':' token
   11 |         a[x]==a[y] ? cout<<"Yes"<<endl; : cout<<"No"<<endl;
      |                                         ^
Language: C++

#include<iostream>
#include<math.h>
#include<string>
#include<algorithm>
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;
	a[x]==a[y]?cout<<"Yes"<<endl; : cout<<"No"<<endl;
	return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:9:9: error: expected ',' or ';' before 'int'
    9 |         int x,y;
      |         ^~~
a.cc:10:14: error: 'x' was not declared in this scope
   10 |         cin>>x>>y;
      |              ^
a.cc:10:17: error: 'y' was not declared in this scope
   10 |         cin>>x>>y;
      |                 ^
a.cc:11:37: error: expected ':' before ';' token
   11 |         a[x]==a[y]?cout<<"Yes"<<endl; : cout<<"No"<<endl;
      |                                     ^
      |                                     :
a.cc:11:37: error: expected primary-expression before ';' token
a.cc:11:39: error: expected primary-expression before ':' token
   11 |         a[x]==a[y]?cout<<"Yes"<<endl; : cout<<"No"<<endl;
      |                                       ^
Language: C++

#include <algorithm>
#include <climits>
#include <cmath>
#include <cstdio>
#include <cstdlib>
#include <ctime>
#include <iostream>
#include <sstream>
#include <functional>
#include <map>
#include <string>
#include <cstring>
#include <vector>
#include <queue>
#include <stack>
#include <deque>
#include <set>
#include <list>
#include <numeric>
using namespace std;
typedef long long ll;
typedef unsigned long long ull;
typedef pair<ll,ll> P;
const double PI = 3.14159265358979323846;
const double EPS = 1e-12;
const ll INF = 1LL<<29;
const ll mod = 1e9+7;
#define rep(i,n) for(int (i)=0;(i)<(ll)(n);++(i))
#define repd(i,n,d) for(ll (i)=0;(i)<(ll)(n);(i)+=(d))
#define all(v) (v).begin(), (v).end()
#define pb(x) push_back(x)
#define mp(x,y) make_pair((x),(y))
#define mset(m,v) memset((m),(v),sizeof(m))
#define chmin(x,y) (x=min(x,y))
#define chmax(x,y) (x=max(x,y))
#define fst first
#define snd second
#define UNIQUE(x) (x).erase(unique(all(x)),(x).end())
template<class T> ostream &operator<<(ostream &os, const vector<T> &v){int n=v.size();rep(i,n)os<<v[i]<<(i==n-1?"":" ");return os;}

int main(){
	int a[4] = {4, 6, 9, 11}
  int x, y;
  cin>>x>>y;
  if(x==2 || y==2) cout<<"No"<<endl;
  else {
    rep(i, 4) rep(j, 4) if(x==a[i]&&y==a[j]) cout<<"Yes"<<endl;
    cout<<"No"<<endl;
  }
	return 0;
}


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

#include<iostream>
#include<algorithm>
#include<string>
using namespace std;

int main()
{
    int a[2];
    
    cin >> a[0] >> a[1];
    
    for(i = 0; i < 2; i++) {
        if((a[i]==1)||(a[i]==3)||(a[i]==5)||(a[i]==7)||(a[i]==8)||(a[i]==10)||(a[i]==12)) {
            a[i] == 100;
        } else if((a[i]==4)||(a[i]==6)||(a[i]==9)||(a[i]==11)) {
            a[i] == 200;
        }
    }
    
    if(a[0] != a[1]) {
        cout << "No\n";
    } else {
        cout << "Yes\n";
    }
    
    return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:12:9: error: 'i' was not declared in this scope
   12 |     for(i = 0; i < 2; i++) {
      |         ^
Language: C++

#include <bits/stdc++.h>
using namespace std;
int main(){
	int a[7] = {1,3,5,7,8,10,12};
	int b[4] = {4,6,9,11};
	int c,x,y;
	cin >> x >> y;
	c=2;
	for (int i=0;i<=6;i++){
		for(int j=0;j<=6;j++){
			if((x==a[i]&&y==a[j])||(x==a[i]&&y==b[j])||(x==c&&y==c)){
				cout << "Yes" << endl;
				return 0;
			}else{
				cout << "No" << endl;
			}
		}
      }		
	}
	return 0;
}

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

#include<iostream>
using namespace std;

int main(void) {
vector<int> m(13);
m[1] = m[3] = m[5] = m[7] = m[8] = m[10] = m[12] = 31;
m[4] = m[6] = m[9] = m[11] = 30;
m[2] = 28;
int a, b;
cin >> a >> b;
if (m[a] == m[b]) cout << "Yes" << endl;
else cout << "No" << endl;
return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:5:1: error: 'vector' was not declared in this scope
    5 | vector<int> m(13);
      | ^~~~~~
a.cc:2:1: note: 'std::vector' is defined in header '<vector>'; this is probably fixable by adding '#include <vector>'
    1 | #include<iostream>
  +++ |+#include <vector>
    2 | using namespace std;
a.cc:5:8: error: expected primary-expression before 'int'
    5 | vector<int> m(13);
      |        ^~~
a.cc:6:1: error: 'm' was not declared in this scope; did you mean 'tm'?
    6 | m[1] = m[3] = m[5] = m[7] = m[8] = m[10] = m[12] = 31;
      | ^
      | tm
Language: C++

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

int main(){
 int H,W,max,min,ans;
 cin >> N >> W;
 
 if(N*W%3==0)ans=0;

  cout << ans << endl;
  
  return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:6:9: error: 'N' was not declared in this scope
    6 |  cin >> N >> W;
      |         ^
Language: C++

#include <iostream>
 
using namespace std;
 
 
int main()
{
	int month[12];
 
	month[0] = 0, month[1] = 1, month[2] = 0, month[3] = 2, month[4] = 0, month[5] = 2, month[6] = 0, month[7] = 0, month[8] = 2, month[9] = 0, month[10] = 2, month[11] = 0;
 
	int x, y;
	cin >> x >> y;
	if (month[x-1] == month[y-1]) cout << "Yes" << endl;
	else cout << "No" << endl;
	return 0;
}

Compiler output:
a.cc:2:1: error: extended character   is not valid in an identifier
    2 |  
      | ^
a.cc:4:1: error: extended character   is not valid in an identifier
    4 |  
      | ^
a.cc:5:1: error: extended character   is not valid in an identifier
    5 |  
      | ^
a.cc:9:1: error: extended character   is not valid in an identifier
    9 |  
      | ^
a.cc:11:1: error: extended character   is not valid in an identifier
   11 |  
      | ^
a.cc:2:1: error: '\U000000a0' does not name a type
    2 |  
      | ^
a.cc:4:1: error: '\U000000a0' does not name a type
    4 |  
      | ^
Language: C++

group = [0,1,3,1,2,1,2,1,1,2,1,2,1]

x, y = map(int, input().split())

print("Yes" if group[x] == group[y] else "No")


Compiler output:
a.cc:1:1: error: 'group' does not name a type
    1 | group = [0,1,3,1,2,1,2,1,1,2,1,2,1]
      | ^~~~~
Language: C

#include <stdio.h>
 
int main(){
int a[6]={1,3,5,7,8,10,12};
int b[4]={4,6,9,11};
int c=2;
int x,y,flagx=0,flagy=0;
scanf("%d %d",&x,&y);
for("int i=0;i<6;i++){
if(a[i]==x)flagx=1;
if(a[i]==y)flagy=1;
}
for("int i=0;i<4;i++){
if(b[i]==x)flagx=2;
if(b[i]==y)flagy=2;
}
if(flagx==flagy){printf("Yes");}
else{printf("No");
}
return 0;
}

Compiler output:
main.c: In function 'main':
main.c:4:24: warning: excess elements in array initializer
    4 | int a[6]={1,3,5,7,8,10,12};
      |                        ^~
main.c:4:24: note: (near initialization for 'a')
main.c:9:5: warning: missing terminating " character
    9 | for("int i=0;i<6;i++){
      |     ^
main.c:9:5: error: missing terminating " character
    9 | for("int i=0;i<6;i++){
      |     ^~~~~~~~~~~~~~~~~~
main.c:10:1: error: expected expression before 'if'
   10 | if(a[i]==x)flagx=1;
      | ^~
main.c:11:1: error: expected expression before 'if'
   11 | if(a[i]==y)flagy=1;
      | ^~
main.c:12:1: error: expected expression before '}' token
   12 | }
      | ^
main.c:12:1: error: expected expression before '}' token
main.c: At top level:
main.c:13:1: error: expected identifier or '(' before 'for'
   13 | for("int i=0;i<4;i++){
      | ^~~
main.c:13:5: warning: missing terminating " character
   13 | for("int i=0;i<4;i++){
      |     ^
main.c:13:5: error: missing terminating " character
   13 | for("int i=0;i<4;i++){
      |     ^~~~~~~~~~~~~~~~~~
main.c:15:1: error: expected identifier or '(' before 'if'
   15 | if(b[i]==y)flagy=2;
      | ^~
main.c:16:1: error: expected identifier or '(' before '}' token
   16 | }
      | ^
main.c:17:1: error: expected identifier or '(' before 'if'
   17 | if(flagx==flagy){printf("Yes");}
      | ^~
main.c:18:1: error: expected identifier or '(' before 'else'
   18 | else{printf("No");
      | ^~~~
main.c:20:1: error: expected identifier or '(' before 'return'
   20 | return 0;
      | ^~~~~~
main.c:21:1: error: expected identifier or '(' before '}' token
   21 | }
      | ^
Language: C

#include <stdiio.h>

int main(){
int a[6]={1,3,5,7,8,10,12};
int b[4]={4,6,9,11};
int c=2;
int x,y,flagx=0,flagy=0;
scanf("%d %d",&x,&y);
for("int i=0;i<6;i++){
if(a[i]==x)flagx=1;
if(a[i]==y)flagy=1;
}
for("int i=0;i<4;i++){
if(b[i]==x)flagx=2;
if(b[i]==y)flagy=2;
}
if(flagx==flagy){printf("Yes");}
else{printf("No");
}
return 0;
}

Compiler output:
main.c:1:10: fatal error: stdiio.h: No such file or directory
    1 | #include <stdiio.h>
      |          ^~~~~~~~~~
compilation terminated.
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;
  return 0;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:6:3: error: 'cin' was not declared in this scope; did you mean 'std::cin'?
    6 |   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:7:3: error: 'cout' was not declared in this scope; did you mean 'std::cout'?
    7 |   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:7:34: error: 'endl' was not declared in this scope; did you mean 'std::endl'?
    7 |   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 <bits/stdc++.h>g++
using namespace std;

int main(){
	int x,y,a=0,b=0,c=0;
	scanf("%d %d",&x,&y);
	if(x==4 || x==6 || x==9 || x==11){
		a = a + 1;
	}
	else if(x==2){
		b = b + 1;
	}
	else{
		c = c + 1;
	}
	if(a==2 || b==2 || c==2){
		printf("Yes");
	}
	else{
		printf("No");
	}
}

Compiler output:
a.cc:1:26: warning: extra tokens at end of #include directive
    1 | #include <bits/stdc++.h>g++
      |                          ^~
a.cc:1:10: fatal error: bits/stdc++.h>: No such file or directory
    1 | #include <bits/stdc++.h>g++
      |          ^~~~~~~~~~~~~~~~
compilation terminated.
Language: C++

#include <bits/stdc++.h>
using namespace std;
int m(int a1, int a2, int a3) {
	if (a1 > a2) {
		swap(a1, a2);
	}
	if (a2 > a3) {
		swap(a2, a3);
	}
	if (a1 > a2) {
		swap(a1, a2);
	}
	return a3-a1;
}
int f(int H, int W) {
	int r = 10000000;
	int k = H / 3;
	if (k != 0) {
		r = min(r, m(k * W, (H - k)*(W / 2), (H - k)*(W - (W / 2))));
	}
	r = min(r, m((k + 1) * W, (H - k - 1)*(W / 2), (H - k - 1)*(W - (W / 2))));
return r;
}
int main(){
	int H, W;
	cin >> H >> W;
	int res = H;
 
	if (H % 3 == 0 || W % 3 == 0) {
		res = 0;
		cout << 0 << endl;
		return 0;
	}
	res = min(H, W);
	res = min(res, f(H, W));
	res = min(res, f(W, H));
	cout << res << endl;
  return 0;

Compiler output:
a.cc: In function 'int main()':
a.cc:38:12: error: expected '}' at end of input
   38 |   return 0;
      |            ^
a.cc:24:11: note: to match this '{'
   24 | int main(){
      |           ^
Language: Java

import java.util.Scanner;
import java.util.Random;
import java.util.Arrays;

class Main {
	
	public static void main(String[] args) {
		Scanner sc = new Scanner(System.in);
		int[] a = {3, 0, 2, 0, 1, 0, 1, 0, 0, 1, 0, 1, 0}
		int x = sc.nextInt();
    	int y = sc.nextInt();
    	if (a[x] == a[y]) {
    		System.out.println("Yes");
    	}  else {
    		System.out.println("No");
    	}
}
}

Compiler output:
Main.java:9: error: ';' expected
		int[] a = {3, 0, 2, 0, 1, 0, 1, 0, 0, 1, 0, 1, 0}
		                                                 ^
1 error
Language: C++

#include <iostream>
using namespace std;
int main()
{
	int a [] = {0 , 1 , 3 , 1 , 2 , 1 , 2 , 1 , 1 , 2 , 1 , 2 , 1};
// 配列の添字は 0 から始まるので，a [0] は 0 にしている．
int x , y ; cin >> x >> y ;
cout << ( a [ x ] == a [ y ] ? " Yes " : " No ") << endl ;
 
 
 
	return 0;

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

import java.util.Scanner;
 
public class Main {
	public static void main(String[] args) {
		Scanner sc = new Scanner(System.in);
		int x = sc.nextInt();
		int y = sc.nextInt();
		//(0)～12までの数字をグループ化
		int t[] = {0, 1,3,1,2,1,2,1,1,2,1,2,1};
		//()内にif文のようなものを入れる
		System.out.println(t[x] == t[y] ? "Yes" : "No");
	}
}

Compiler output:
a.cc:1:1: error: 'import' does not name a type
    1 | import java.util.Scanner;
      | ^~~~~~
a.cc:1:1: note: C++20 'import' only available with '-fmodules-ts'
a.cc:3:1: error: expected unqualified-id before 'public'
    3 | public class Main {
      | ^~~~~~
Language: C++

#include <bits/stdc++.h>
using namespace std;
 
int main()
{
    set<int> s = { 4,6,9,11 };
    int a, b;
    cin >> a >> b;
    cout << ((a == 2 || b == 2 ) ? "No" : (s.count(a) ^ s.count(b) ? "No" : "Yes” )) << endl;
}

Compiler output:
a.cc:9:77: warning: missing terminating " character
    9 |     cout << ((a == 2 || b == 2 ) ? "No" : (s.count(a) ^ s.count(b) ? "No" : "Yes” )) << endl;
      |                                                                             ^
a.cc:9:77: error: missing terminating " character
    9 |     cout << ((a == 2 || b == 2 ) ? "No" : (s.count(a) ^ s.count(b) ? "No" : "Yes” )) << endl;
      |                                                                             ^~~~~~~~~~~~~~~~~
a.cc: In function 'int main()':
a.cc:10:1: error: expected primary-expression before '}' token
   10 | }
      | ^
a.cc:9:76: error: expected ')' before '}' token
    9 |     cout << ((a == 2 || b == 2 ) ? "No" : (s.count(a) ^ s.count(b) ? "No" : "Yes” )) << endl;
      |                                           ~                                ^
      |                                                                            )
   10 | }
      | ~                                                                           
a.cc:9:76: error: expected ')' before '}' token
    9 |     cout << ((a == 2 || b == 2 ) ? "No" : (s.count(a) ^ s.count(b) ? "No" : "Yes” )) << endl;
      |             ~                                                              ^
      |                                                                            )
   10 | }
      | ~
Language: C++

#include <bits/stdc++.h>
using namespace std;
 
int main()
{
    set<int> s = { 4,6,9,11 };
    int a, b;
    cin >> a >> b;
    cout << ((a == 2 || b == 2 ) ? "No" : ((s.count(a) ^ s.count(b) ? "No" : "Yes” ) << endl;
}

Compiler output:
a.cc:9:78: warning: missing terminating " character
    9 |     cout << ((a == 2 || b == 2 ) ? "No" : ((s.count(a) ^ s.count(b) ? "No" : "Yes” ) << endl;
      |                                                                              ^
a.cc:9:78: error: missing terminating " character
    9 |     cout << ((a == 2 || b == 2 ) ? "No" : ((s.count(a) ^ s.count(b) ? "No" : "Yes” ) << endl;
      |                                                                              ^~~~~~~~~~~~~~~~
a.cc: In function 'int main()':
a.cc:10:1: error: expected primary-expression before '}' token
   10 | }
      | ^
a.cc:9:77: error: expected ')' before '}' token
    9 |     cout << ((a == 2 || b == 2 ) ? "No" : ((s.count(a) ^ s.count(b) ? "No" : "Yes” ) << endl;
      |                                            ~                                ^
      |                                                                             )
   10 | }
      | ~                                                                            
a.cc:9:77: error: expected ')' before '}' token
    9 |     cout << ((a == 2 || b == 2 ) ? "No" : ((s.count(a) ^ s.count(b) ? "No" : "Yes” ) << endl;
      |                                           ~                                 ^
      |                                                                             )
   10 | }
      | ~                                                                            
a.cc:9:77: error: expected ')' before '}' token
    9 |     cout << ((a == 2 || b == 2 ) ? "No" : ((s.count(a) ^ s.count(b) ? "No" : "Yes” ) << endl;
      |             ~                                                               ^
      |                                                                             )
   10 | }
      | ~
Language: C++

#include <bits/stdc++.h>
using namespace std;
 
int main()
{
    set<int> s = { 4,6,9,11 };
    int a, b;
    cin >> a >> b;
    cout << ((a == 2 || b == 2 ) ? "No" : ((s.count(a) ^ s.count(b)) ? "No" : "Yes” ) << endl;
}

Compiler output:
a.cc:9:79: warning: missing terminating " character
    9 |     cout << ((a == 2 || b == 2 ) ? "No" : ((s.count(a) ^ s.count(b)) ? "No" : "Yes” ) << endl;
      |                                                                               ^
a.cc:9:79: error: missing terminating " character
    9 |     cout << ((a == 2 || b == 2 ) ? "No" : ((s.count(a) ^ s.count(b)) ? "No" : "Yes” ) << endl;
      |                                                                               ^~~~~~~~~~~~~~~~
a.cc: In function 'int main()':
a.cc:10:1: error: expected primary-expression before '}' token
   10 | }
      | ^
a.cc:9:78: error: expected ')' before '}' token
    9 |     cout << ((a == 2 || b == 2 ) ? "No" : ((s.count(a) ^ s.count(b)) ? "No" : "Yes” ) << endl;
      |                                           ~                                  ^
      |                                                                              )
   10 | }
      | ~                                                                             
a.cc:9:78: error: expected ')' before '}' token
    9 |     cout << ((a == 2 || b == 2 ) ? "No" : ((s.count(a) ^ s.count(b)) ? "No" : "Yes” ) << endl;
      |             ~                                                                ^
      |                                                                              )
   10 | }
      | ~
Language: C++

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

int main()
{
    set<int> s = { 4,6,9,11 };
    int a, b;
    cin >> a >> b;
    cout << ((a == 2 || b == 2) ? "No" : (s.count(a) ^ s.count(b)) ? "No" : "Yes”) << endl;
}

Compiler output:
a.cc:9:77: warning: missing terminating " character
    9 |     cout << ((a == 2 || b == 2) ? "No" : (s.count(a) ^ s.count(b)) ? "No" : "Yes”) << endl;
      |                                                                             ^
a.cc:9:77: error: missing terminating " character
    9 |     cout << ((a == 2 || b == 2) ? "No" : (s.count(a) ^ s.count(b)) ? "No" : "Yes”) << endl;
      |                                                                             ^~~~~~~~~~~~~~~
a.cc: In function 'int main()':
a.cc:10:1: error: expected primary-expression before '}' token
   10 | }
      | ^
a.cc:9:76: error: expected ')' before '}' token
    9 |     cout << ((a == 2 || b == 2) ? "No" : (s.count(a) ^ s.count(b)) ? "No" : "Yes”) << endl;
      |             ~                                                              ^
      |                                                                            )
   10 | }
      | ~
Language: C++

#include <iostream>
#include <string>



char str[100][100];

using namespace std;
typedef unsigned long long int biginteger;
int main()
{
	int h, w;
	cin >> h >> w;

	
	for (int i = 0; i < h; i++) {
		cin >> str[i];
	}

	string hash;
	for (int i = 0; i < w + 2; i++) {
		hash += '#';
	}

	cout << hash << endl;
	for (int i = 0; i < h; ++i) {
		cout << '#' << str[i] << '#' << endl;
	}
	cout << hash << endl;



	system("pause");
	return 0;

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

#include<iostream>
#include<string>
#include<algorithm>

using namespace std;

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

Compiler output:
a.cc: In function 'int main()':
a.cc:10:13: error: conflicting declaration 'int a [13]'
   10 |         int a[13] = { 0,1,2,1,3,1,3,1,1,3,1,3,1 };
      |             ^
a.cc:8:13: note: previous declaration as 'int a'
    8 |         int a, b, c;
      |             ^
a.cc:11:14: error: invalid types 'int[int]' for array subscript
   11 |         if (a[a] == a[b])cout << "Yes" << endl;
      |              ^
a.cc:11:22: error: invalid types 'int[int]' for array subscript
   11 |         if (a[a] == a[b])cout << "Yes" << endl;
      |                      ^
Language: C++

#include <stdio.h> 
#include <iostream> 
using namespace std; 

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

Compiler output:
a.cc: In function 'int main()':
a.cc:8:1: error: 'lf' was not declared in this scope
    8 | lf(x==4||x==6||x==9||x==11){
      | ^~
Language: C++

import numpy as np
#from scipy.interpolate import interpld
from matplotlib import pyplot as plt
%matplotlib inline
import sys
x, y = [int(i) for i in input().split()]
list = [1,3,5,7,8,10,12,4,6,9,11,2,0]
slice1 = list[0:7]
slice2 = list[7:11]
slice3 = list[11:12]

if x in slice1 and y in slice1:
    print('Yes')
elif x in slice2 and y in slice2:
    print ('Yes')
elif x in slice3 and y in slice3:
    print ('Yes')
else:
    print ('No')

Compiler output:
a.cc:2:2: error: invalid preprocessing directive #from
    2 | #from scipy.interpolate import interpld
      |  ^~~~
a.cc:13:11: warning: multi-character character constant [-Wmultichar]
   13 |     print('Yes')
      |           ^~~~~
a.cc:15:12: warning: multi-character character constant [-Wmultichar]
   15 |     print ('Yes')
      |            ^~~~~
a.cc:17:12: warning: multi-character character constant [-Wmultichar]
   17 |     print ('Yes')
      |            ^~~~~
a.cc:19:12: warning: multi-character character constant [-Wmultichar]
   19 |     print ('No')
      |            ^~~~
a.cc:1:1: error: 'import' does not name a type
    1 | import numpy as np
      | ^~~~~~
a.cc:1:1: note: C++20 'import' only available with '-fmodules-ts'
Language: C

#include <stdio.h>

int main(void){
    
    int x,y;
    scanf("%d %d".&x.&y);
    
    if(x==4||x==6||x==9||x==11)x=1;
    else if(x=2);
    else x=3;
    
    if(y==4||y==6||y==9||y==11)y=1;
    else if(y=2);
    else y=3;

    if(x==y)printf("Yes");
    else printf("No");
    
    return 0;
}

Compiler output:
main.c: In function 'main':
main.c:6:19: error: expected identifier before '&' token
    6 |     scanf("%d %d".&x.&y);
      |                   ^
Language: C++

#include<iostream>
int main(){
	int x[13]={0,1,3,1,2,1,2,1,1,2,1,2,1}

	int x,y;
	cin>>x>>y;
	if(x[x]==x[y])cout<<"Yes"<<endl;
	else{
		cout<<"No"<<endl;
	}
}


Compiler output:
a.cc: In function 'int main()':
a.cc:5:9: error: expected ',' or ';' before 'int'
    5 |         int x,y;
      |         ^~~
a.cc:6:9: error: 'cin' was not declared in this scope; did you mean 'std::cin'?
    6 |         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:6:17: error: 'y' was not declared in this scope
    6 |         cin>>x>>y;
      |                 ^
a.cc:7:13: error: invalid types 'int [13][int [13]]' for array subscript
    7 |         if(x[x]==x[y])cout<<"Yes"<<endl;
      |             ^
a.cc:7:23: error: 'cout' was not declared in this scope; did you mean 'std::cout'?
    7 |         if(x[x]==x[y])cout<<"Yes"<<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:7:36: error: 'endl' was not declared in this scope; did you mean 'std::endl'?
    7 |         if(x[x]==x[y])cout<<"Yes"<<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)
      |     ^~~~
a.cc:9:17: error: 'cout' was not declared in this scope; did you mean 'std::cout'?
    9 |                 cout<<"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:9:29: error: 'endl' was not declared in this scope; did you mean 'std::endl'?
    9 |                 cout<<"No"<<endl;
      |                             ^~~~
      |                             std::endl
/usr/include/c++/14/ostream:744:5: note: 'std::endl' declared here
  744 |     endl(basic_ostream<_CharT, _Traits>& __os)
      |     ^~~~
Language: C++

#include<iostream>
int main(){
	int x[12]={0,1,3,1,2,1,2,1,1,2,1,2,1}

	int x,y;
	cin>>x>>y;
	if(x[x]==x[y])cout<<"Yes"<<endl;
	else{
		cout<<"No"<<endl;
	}
}


Compiler output:
a.cc: In function 'int main()':
a.cc:3:45: error: too many initializers for 'int [12]'
    3 |         int x[12]={0,1,3,1,2,1,2,1,1,2,1,2,1}
      |                                             ^
a.cc:6:9: error: 'cin' was not declared in this scope; did you mean 'std::cin'?
    6 |         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:6:17: error: 'y' was not declared in this scope
    6 |         cin>>x>>y;
      |                 ^
a.cc:7:13: error: invalid types 'int [12][int [12]]' for array subscript
    7 |         if(x[x]==x[y])cout<<"Yes"<<endl;
      |             ^
a.cc:7:23: error: 'cout' was not declared in this scope; did you mean 'std::cout'?
    7 |         if(x[x]==x[y])cout<<"Yes"<<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:7:36: error: 'endl' was not declared in this scope; did you mean 'std::endl'?
    7 |         if(x[x]==x[y])cout<<"Yes"<<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)
      |     ^~~~
a.cc:9:17: error: 'cout' was not declared in this scope; did you mean 'std::cout'?
    9 |                 cout<<"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:9:29: error: 'endl' was not declared in this scope; did you mean 'std::endl'?
    9 |                 cout<<"No"<<endl;
      |                             ^~~~
      |                             std::endl
/usr/include/c++/14/ostream:744:5: note: 'std::endl' declared here
  744 |     endl(basic_ostream<_CharT, _Traits>& __os)
      |     ^~~~
Language: C++

import java.io.BufferedReader;
import java.io.InputStreamReader;

public class Main {
    public static void main(String[] args) throws Exception {
        BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
        String line = br.readLine();
        String[] number = line.split(" ");
        int x = Integer.parseInt(number[0]);
        int y = Integer.parseInt(number[1]);
        int[] groupB = new int[4];
        groupB[0] = 4;
        groupB[1] = 6;
        groupB[2] = 9;
        groupB[3] = 11;
        boolean yorn = false;
        boolean firstif = true;
        
        if((x == 2) || (y == 2)) {
            yorn = false;
        } else {
            for(int i = 0; i < 4; i++) {
                if((groupB[i] == x) && firstif){
                    for(int j = i + 1; j < 4; j++) {
                        if(groupB[j] == y) {
                            yorn = yorn || true;
                        } else {
                            yorn = yorn || false;
                        }
                        firstif = false;
                    }
                } else if(firstif) {
                    yorn = true;
                    for(int j = i + 1; j < 4; j++) {
                        if(groupB[j] == y) {
                            yorn = yorn && false;
                            firstif = false;
                        } else {
                            yorn = yorn && true;
                        }
                    }
                }
            }
        }
        if(yorn) {
            System.out.println("Yes");
        } else {
            System.out.println("No");
        }
    }
}

Compiler output:
a.cc:1:1: error: 'import' does not name a type
    1 | import java.io.BufferedReader;
      | ^~~~~~
a.cc:1:1: note: C++20 'import' only available with '-fmodules-ts'
a.cc:2:1: error: 'import' does not name a type
    2 | import java.io.InputStreamReader;
      | ^~~~~~
a.cc:2:1: note: C++20 'import' only available with '-fmodules-ts'
a.cc:4:1: error: expected unqualified-id before 'public'
    4 | public class Main {
      | ^~~~~~
Language: C++

x,y = map(int,input().split())
a = [1,3,5,7,8,10,12]
b = [4,6,9,11]
if (x in a and y in a) or (x in b and y in b):
	print('Yes')
else:
	print('No')

Compiler output:
a.cc:5:15: warning: multi-character character constant [-Wmultichar]
    5 |         print('Yes')
      |               ^~~~~
a.cc:7:15: warning: multi-character character constant [-Wmultichar]
    7 |         print('No')
      |               ^~~~
a.cc:1:1: error: 'x' does not name a type
    1 | x,y = map(int,input().split())
      | ^
Language: C++

int main() {
int a[] = {0, 1, 3, 1, 2, 1, 2, 1, 1, 2, 1, 2, 1}; // 配列の添字は 0 から始まるので，a[0] は 0 にしている.
int x, y; cin >> x >> y;
cout << (a[x] == a[y] ? "Yes" : "No") << endl;
}

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

let g = [| 0; 1; 3; 1; 2; 1; 2; 1; 1; 2; 1; 2; 1 |]

let solve a b = if g.(a) == g.(b) then "Yes" else "No"

let () = Printf.printf "%s\n" (Scanf.scanf "%d %d" solve)

Compiler output:
a.cc:1:1: error: 'let' does not name a type
    1 | let g = [| 0; 1; 3; 1; 2; 1; 2; 1; 1; 2; 1; 2; 1 |]
      | ^~~
a.cc:1:15: error: expected unqualified-id before numeric constant
    1 | let g = [| 0; 1; 3; 1; 2; 1; 2; 1; 1; 2; 1; 2; 1 |]
      |               ^
a.cc:1:18: error: expected unqualified-id before numeric constant
    1 | let g = [| 0; 1; 3; 1; 2; 1; 2; 1; 1; 2; 1; 2; 1 |]
      |                  ^
a.cc:1:21: error: expected unqualified-id before numeric constant
    1 | let g = [| 0; 1; 3; 1; 2; 1; 2; 1; 1; 2; 1; 2; 1 |]
      |                     ^
a.cc:1:24: error: expected unqualified-id before numeric constant
    1 | let g = [| 0; 1; 3; 1; 2; 1; 2; 1; 1; 2; 1; 2; 1 |]
      |                        ^
a.cc:1:27: error: expected unqualified-id before numeric constant
    1 | let g = [| 0; 1; 3; 1; 2; 1; 2; 1; 1; 2; 1; 2; 1 |]
      |                           ^
a.cc:1:30: error: expected unqualified-id before numeric constant
    1 | let g = [| 0; 1; 3; 1; 2; 1; 2; 1; 1; 2; 1; 2; 1 |]
      |                              ^
a.cc:1:33: error: expected unqualified-id before numeric constant
    1 | let g = [| 0; 1; 3; 1; 2; 1; 2; 1; 1; 2; 1; 2; 1 |]
      |                                 ^
a.cc:1:36: error: expected unqualified-id before numeric constant
    1 | let g = [| 0; 1; 3; 1; 2; 1; 2; 1; 1; 2; 1; 2; 1 |]
      |                                    ^
a.cc:1:39: error: expected unqualified-id before numeric constant
    1 | let g = [| 0; 1; 3; 1; 2; 1; 2; 1; 1; 2; 1; 2; 1 |]
      |                                       ^
a.cc:1:42: error: expected unqualified-id before numeric constant
    1 | let g = [| 0; 1; 3; 1; 2; 1; 2; 1; 1; 2; 1; 2; 1 |]
      |                                          ^
a.cc:1:45: error: expected unqualified-id before numeric constant
    1 | let g = [| 0; 1; 3; 1; 2; 1; 2; 1; 1; 2; 1; 2; 1 |]
      |                                             ^
a.cc:1:48: error: expected unqualified-id before numeric constant
    1 | let g = [| 0; 1; 3; 1; 2; 1; 2; 1; 1; 2; 1; 2; 1 |]
      |                                                ^
Language: C++

(define L (list 0 1 3 1 2 1 2 1 1 2 1 2 1))
(define x (read))
(define y (read))

(define (solve x y)
  (cond
    [(= (list-ref L x) (list-ref L y)) "Yes"]
    [else "No"]))

(display (solve x y))
(newline)

Compiler output:
a.cc:1:8: error: expected ')' before 'L'
    1 | (define L (list 0 1 3 1 2 1 2 1 1 2 1 2 1))
      | ~      ^~
      |        )
Language: Java

import java.util.*;
import java.lang.*;

public class Main {

	int group(int x) {
		switch (x) {
			case 1:
			case 3:
			case 5:
			case 7:
			case 8:
			case 10:
			case 12:
				return 0;
			case 4:
			case 6:
			case 9:
			case 11:
				return 1;
			case 2:
				return 2;
			default:
				return -1;
		}
	}

	public int main (String[] args) {
		Scanner sc = new Scanner(System.in);
		int x = sc.nextInt();
		int y = sc.nextInt();
		
		System.out.println((group(x) == group(y)?"Yes":"No"));	
	}
}

Compiler output:
Main.java:34: error: missing return statement
	}
	^
1 error
Language: Java

import java.util.*;
import java.lang.*;

public class Main {

	int group(int x) {
		switch (x) {
			case 1:
			case 3:
			case 5:
			case 7:
			case 8:
			case 10:
			case 12:
				return 0:
			case 4:
			case 6:
			case 9:
			case 11:
				return 1:
			case 2:
				return 2:
			default:
				return -1:
		}
	}

	public int main (String[] args) {
		Scanner sc = new Scanner(System.in);
		int x = sc.nextInt();
		int y = sc.nextInt();
		
		System.out.println((group(x) == group(y)?"Yes":"No"));	
	}
}

Compiler output:
Main.java:15: error: ';' expected
				return 0:
				        ^
Main.java:20: error: ';' expected
				return 1:
				        ^
Main.java:22: error: ';' expected
				return 2:
				        ^
Main.java:24: error: ';' expected
				return -1:
				         ^
4 errors
Language: C++

// AtCoderSolution.cpp : コンソール アプリケーションのエントリ ポイントを定義します。
//
#include "stdafx.h"
#include <iostream>

using namespace std;
int
main()
{
	int x, y;

	cin >> x >> y;

	if (x == 2 || y == 2) {
		cout << "No";
	}
	else if (x == 4 || x == 6 || x == 9) {
		if (y == 6 || y == 9 || y == 11) {
			cout << "Yes";
		}
		else {
			cout << "No";
		}
	}
	else {
		if (y == 6 || y == 9 || y == 11) {
			cout << "Yes";
		}
		else {
			cout << "No";
		}

	}
	cin >> x;
	return 0;
}

Compiler output:
a.cc:3:10: fatal error: stdafx.h: No such file or directory
    3 | #include "stdafx.h"
      |          ^~~~~~~~~~
compilation terminated.
Language: C++

#include <iostream.h>
using namespace std;
int 
main()
{   
    int x,y;

    cin >> x >>y;

    if(x==2||y==2){
        cout << "No";
    }else if(x==4||x==6||x==9){
        if(y==6||y==9||y==11){
            cout << true;
        }else{
            cout << false;
        }
    }else{
        if(y==6||y==9||y==11){
            cout << false;
        }else{
            cout << true;
        }

    }
}

Compiler output:
a.cc:1:10: fatal error: iostream.h: No such file or directory
    1 | #include <iostream.h>
      |          ^~~~~~~~~~~~
compilation terminated.
Language: Java

public class atcoder {
	int groupA[] = {1, 3, 5, 7, 8, 10, 12 };
	int groupB[] ={4,6,9,11};
	 grouop = new int [0];
	grpupC[0] = 2;
	
	if(x == y){
		System.out.println("Yes");
	}else{
		System.out.println("No");
	}
	
}


Compiler output:
Main.java:4: error: <identifier> expected
	 grouop = new int [0];
	       ^
Main.java:5: error: ']' expected
	grpupC[0] = 2;
	       ^
Main.java:7: error: illegal start of type
	if(x == y){
	^
Main.java:7: error: <identifier> expected
	if(x == y){
	    ^
Main.java:7: error: <identifier> expected
	if(x == y){
	         ^
Main.java:9: error: illegal start of type
	}else{
	 ^
6 errors
Language: Java

import java.util.Scanner;
	public class Main
		{ public static void main(String[] args)4
			{   
			    Scanner scanner = new Scanner(System.in);
			    int x = scanner.nextInt();
			    int y = scanner.nextInt();
			    int a[] = {0,0,2,0,1,0,1,0,0,1,0,1,0};
			    
			    if (a[x] == a[y]) {
			        System.out.println("Yes");
			    } else {
			        System.out.println("No");
			    }
				
				}
			}		
					

Compiler output:
Main.java:3: error: ';' expected
		{ public static void main(String[] args)4
		                                        ^
1 error
Language: Java

import java.util.Scanner;
	public class Algorism
		{ public static void main(String[] args)
			{   
			    Scanner scanner = new Scanner(System.in);
			    int x = scanner.nextInt();
			    int y = scanner.nextInt();
			    int a[] = {0,0,2,0,1,0,1,0,0,1,0,1,0};
			    
			    if (a[x] == a[y]) {
			        System.out.println("Yes");
			    } else {
			        System.out.println("No");
			    }
				
				}
			}		
					

Compiler output:
Main.java:2: error: class Algorism is public, should be declared in a file named Algorism.java
	public class Algorism
	       ^
1 error
Language: Java

import java.util.Scanner;
	public class Algorism
		{ public static void main(String[] args)4
			{   
			    Scanner scanner = new Scanner(System.in);
			    int x = scanner.nextInt();
			    int y = scanner.nextInt();
			    int a[] = {0,0,2,0,1,0,1,0,0,1,0,1,0};
			    
			    if (a[x] == a[y]) {
			        System.out.println("Yes");
			    } else {
			        System.out.println("No");
			    }
				
				}
			}		
					

Compiler output:
Main.java:3: error: ';' expected
		{ public static void main(String[] args)4
		                                        ^
1 error