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

#include <bits/stdc++.h>
using namespace std;
#define int long long
inline int read()
{
	int x = 0, op = 1; char ch = 0;
	while(not isdigit(ch = getchar())) if(ch == '-') op = -op;
	do x = x * 10 + (ch - '0'); while(isdigit(ch = getchar()));
	return op * x;
}
inline bool check(int a, int x, int y, int z)
{
	int u = 0, v = 0, w = 0;
	#define pows(a, b) \
		u = (a), v = (b), w = 1;\
		while(v) { if(v & 1) w = w * u % x; u = u * u % x, v >>= 1; }
	pows(a, z);
	if(w > 1) { 
		for(int i = 0; i < y; i++) 
			if(w == x - 1) return true;
		return false;
	}
	else return true;
}
bool isprime(int x)
{
	if(x == 2 || x == 7 || x == 61 || x == 3) return true;
	if(!(x % 2 && x % 7 && x % 61 && x % 3) || x == 1) return false;
	int y = 0, z = x - 1; while(!(z & 1)) y++, z >>= 1;
	bool ok = true;	
	ok &= check(2, x, y, z);
	ok &= check(3, x, y, z);
	ok &= check(7, x, y, z);
	ok &= check(61, x, y, z);
	return ok;
}
int n = 0, m = 0, pos[150], whi[300];
bool used[300]; int ans = 0;
int pygo[300]; bool insta[300];
bool dfs(int x, int p)
{
	#define able(a, b) (abs(whi[a] - whi[b]) > 2 && isprime(abs(whi[a] - whi[b])))
	for(int i = 1; i <= m; i++)
		if(not insta[i] && able(x, i) && p != i)
		{
			insta[i] = true;
			if(!pygo[i] || dfs(pygo[i], p))
			{
				pygo[x] = i, pygo[i] = x;
				used[x] = used[i] = true;
				return true;
			}
		}
	return false;
}
signed main()
{
	n = read();
	for(int i = 1; i <= n; i++) pos[i] = read();
	sort(pos + 1, pos + n + 1);
	for(int i = 1; i <= n; i++)
	{
		if(i == 1 || pos[i] != pos[i - 1] + 1) whi[++m] = pos[i];
		if(i == n || pos[i] != pos[i + 1] - 1) whi[++m] = pos[i] + 1;
	}
	for(int i = 1; i <= m; i++)
		if(not used[i]) memset(insta, 0, sizeof sta), dfs(i, i);
	for(int i = 1; i <= n; i++)
		if(used[i]) ans++;
	ans >>= 1LL;
	int tot[2] = {0, 0};
	for(int i = 1; i <= m; i++)
		if(not used[i]) tot[whi[i] & 1]++;
	ans += (((tot[0] >> 1LL) + (tot[1] >> 1LL)) << 1LL) + (tot[0] & 1LL) * 3LL;
	cout << ans << endl;
	return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:67:57: error: 'sta' was not declared in this scope; did you mean 'std'?
   67 |                 if(not used[i]) memset(insta, 0, sizeof sta), dfs(i, i);
      |                                                         ^~~
      |                                                         std
Language: C++

#include <cstdio>
#include <cstdlib>
#include <cstring>
#include <cmath>
#include <iostream>
#include <algorithm>
#define fo(i,a,b) for(int i=a;i<=b;i++)
#define fod(i,a,b) for(int i=a;i>=b;i--)
#define N 2005
using namespace std;
int l[N],n,a[N],r[N],w[N],pr[5000005],f[N],a1[N][N];
bool bz[20000005],bp[N];
void prp()
{
	fo(i,2,20000000)
	{
		if(!bz[i]) pr[++pr[0]]=i;
		for(int j=1;j<=pr[0]&&i*pr[j]<=20000000;j++)
		{
			bz[i*pr[j]]=1;
			if(i%pr[j]==0) break;
		}
	}
	bz[2]=1-;
}
bool find(int k)
{
	fo(i,1,a1[k][0])
	{
		int p=a1[k][i];
		if(!bp[p])
		{
			bp[p]=1;
			if(!f[p]||find(f[p])) 
			{
				f[p]=k;
				return 1;
			}
		}
	}
	return 0;
}
int main()
{
	cin>>n;
	prp();
	fo(i,1,n) scanf("%d",&a[i]);
	sort(a+1,a+n+1);
	fo(i,1,n) 
	{
		if(i==1||a[i-1]!=a[i]-1) w[++w[0]]=i;
		if(a[i+1]!=a[i]+1) w[++w[0]]=i+1;
	}
	sort(w+1,w+w[0]+1);
	fo(i,1,w[0]) 
		if(w[i]%2==0) l[++l[0]]=i;
		else r[++r[0]]=i;
	fo(i,1,l[0])
	{
		fo(j,1,r[0])
		{
			if(!bz[abs(l[i]-r[j])]) a1[i][++a1[i][0]]=j;
		}
	}
	long long s=0;
	fo(i,1,l[0]) 
	{
		memset(bp,0,sizeof(bp));
		if(find(i)) s++;
	}
	printf("%lld",s+2*(long long)((l[0]-s)/2)+2*(long long)((r[0]-s)/2)+3*(long long)((l[0]-s)%2));
}

Compiler output:
a.cc: In function 'void prp()':
a.cc:24:17: error: expected primary-expression before ';' token
   24 |         bz[2]=1-;
      |                 ^
Language: C++

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

#define abs(x) ((x) > 0 ? (x) : -(x))
bool prime[11000000];
bool b[11000000];
int n;
bool used[210], go[210][210];
int ans;
int ind[210];
int cnt0, cnt1;
int m;
int Link[210];

bool fi(int x) {
	for (int i = 1; i <= m; i++)
		if (go[x][i] && !used[i]) {
			if (!Link[i] || fi(Link[i])) {
				Link[i] = x;
				return true;
			}
		}
	return false;
}

int main() {
	scanf("%d", &n);
	for (int i = 2; i <= 10000000; i++)
		prime[i] = true;
	for (int i = 1; i * i <= 10000000; i++)
		if (prime[i])
			for (int j = i * i; j <= 10000000; j += i)
				prime[j] = false;
	prime[2] = false;

	for (int i = 1; i <= n; i++) {
		int t;
		scanf("%d", &t);
		b[t] ^= 1;
		b[t + 1] ^= 1;
	}
	for (int i = 1; i <= 10000001; i++)
		if (b[i]) {
			m += 1;
			ind[m] = i;
		}
	for (int i = 1; i <= m; i++)
		if (ind[i] % 2 == 0) {
			cnt0 += 1;
			for (int j = 1; j <= m; j++)
				if (ind[j] % 2 == 1 && prime[abs(ind[i] - ind[j])])
					go[i][j] = true;
		}
	int ans = 0;
	for (int i = 1; i <= m; i++)
		if (ind[i] % 2 == 0) {
			memset(used, false, sizeof used);
			if (fi(i))
				ans += 1;
		}
	int aa = ans;
	cnt1 = m - cnt0;
	// printf("?? %d %d\n", cnt0, cnt1);
	cnt0 -= ans;
	cnt1 -= ans;
	if (cnt0 % 2 == 0)
		aa += cnt0 + cnt1;
	else
		aa += 3 + (cnt0 - 1) + cnt1 - 1;
	printf("%d\n", aa);
}


Compiler output:
a.cc: In function 'int main()':
a.cc:58:25: error: 'memset' was not declared in this scope
   58 |                         memset(used, false, sizeof used);
      |                         ^~~~~~
a.cc:3:1: note: 'memset' is defined in header '<cstring>'; this is probably fixable by adding '#include <cstring>'
    2 | #include <vector>
  +++ |+#include <cstring>
    3 | using namespace std;
Language: C++

#include<cstdio>
#include<iostream>
#include<algorithm>
#include<cstring>
#include<map>
#include<queue>
#include<cmath>
using namespace std;
typedef long long ll;
const int N=10005,INF=~0u>>2;
struct Edge{int nxt,to;}edge[(N*N)<<3];
int b[N<<1],n,head[N<<1],num_edge,vis[N<<1],lk[N<<1],even[N<<1],odd[N<<1],even_num,odd_num,ans,k,tot,tim;
int read(){
	int x=0,f=1;char ch=getchar();
	while(ch<'0'||ch>'9'){if(ch=='-') f=-1;ch=getchar();}
	while(ch>='0'&&ch<='9'){x=x*10+ch-'0';ch=getchar();}
	return f*x;
}
void add_edge(int from,int to){
	edge[++num_edge].nxt=head[from];
	edge[num_edge].to=to;
	head[from]=num_edge;
}
bool find(int x){
	for(int i=head[x];i;i=edge[i].nxt){
		if(vis[edge[i].to]!=tim){
			vis[edge[i].to]=tim;
			if(!lk[edge[i].to]||find(edge[i].to)){
				lk[edge[i].to]=x;
				return 1;
			}
		}
	}
	return 0;
}
bool check(int x){
	if(x==1) return 0;
	for(int i=2;i*i<=x;++i){
		if(x%i==0) return 0;
	}
	return 1;
}
int main(){
//	freopen("ex.in","r",stdin);
	n=read();
	for(int i=1;i<=n;++i) b[i]=read();b[0]=-1;
	for(int i=1;i<=n;++i){
		if(b[i]!=b[i-1]+1){
			if(b[i]%2) odd[++odd_num]=b[i];
			else even[++even_num]=b[i];
		}
		if(b[i]+1!=b[i+1]){
			if((b[i]+1)%2) odd[++odd_num]=b[i]+1;
			else even[++even_num]=b[i]+1;
		}
	}
	for(int i=1;i<=odd_num;++i){
		for(int j=1;j<=even_num;++j){
			if(check(abs(even[j]-odd[i]))) add_edge(i,j+odd_num);
		}
	}
	for(int i=1;i<=odd_num;++i){
		tim++;
		if(find(i)) k++;
		else break;
	}
	ans=k+((even_num-k)/2+(odd_num-k)/2)*2+((even_num-k)%2)*3;
	printf("%d",ans);
	return 0;
}

Compiler output:
/tmp/cco9QhrO.o: in function `add_edge(int, int)':
a.cc:(.text+0x94): relocation truncated to fit: R_X86_64_PC32 against symbol `head' defined in .bss section in /tmp/cco9QhrO.o
a.cc:(.text+0x9d): relocation truncated to fit: R_X86_64_PC32 against symbol `num_edge' defined in .bss section in /tmp/cco9QhrO.o
a.cc:(.text+0xa6): relocation truncated to fit: R_X86_64_PC32 against symbol `num_edge' defined in .bss section in /tmp/cco9QhrO.o
a.cc:(.text+0xac): relocation truncated to fit: R_X86_64_PC32 against symbol `num_edge' defined in .bss section in /tmp/cco9QhrO.o
a.cc:(.text+0xc7): relocation truncated to fit: R_X86_64_PC32 against symbol `num_edge' defined in .bss section in /tmp/cco9QhrO.o
a.cc:(.text+0xe4): relocation truncated to fit: R_X86_64_PC32 against symbol `num_edge' defined in .bss section in /tmp/cco9QhrO.o
a.cc:(.text+0xf9): relocation truncated to fit: R_X86_64_PC32 against symbol `head' defined in .bss section in /tmp/cco9QhrO.o
/tmp/cco9QhrO.o: in function `find(int)':
a.cc:(.text+0x11e): relocation truncated to fit: R_X86_64_PC32 against symbol `head' defined in .bss section in /tmp/cco9QhrO.o
a.cc:(.text+0x151): relocation truncated to fit: R_X86_64_PC32 against symbol `vis' defined in .bss section in /tmp/cco9QhrO.o
a.cc:(.text+0x15a): relocation truncated to fit: R_X86_64_PC32 against symbol `tim' defined in .bss section in /tmp/cco9QhrO.o
a.cc:(.text+0x17f): additional relocation overflows omitted from the output
collect2: error: ld returned 1 exit status
Language: C++

#include<bits/stdc++.h>
using namespace std;
template<typename T> rread(T &x)
{
	char ch=getchar();
	for (x=0;ch<'0'||ch>'9';ch=getchar());
	for (;ch>='0'&&ch<='9';x=x*10+ch-'0',ch=getchar());
}
#define INF 0x3f3f3f3f
vector<int> odd,even;
bool vis[10000010];
int prime[1000010],p_cnt;
int n;
int a[110];
namespace Network
{
	struct edge{
		int s,t,cap,next;
	}e[100010];
	int head[510],cnt;
	void addedge(int s,int t,int cap)
	{
		e[cnt].s=s;e[cnt].t=t;e[cnt].cap=cap;e[cnt].next=head[s];head[s]=cnt++;
		e[cnt].s=t;e[cnt].t=s;e[cnt].cap=0;e[cnt].next=head[t];head[t]=cnt++;
	}
	queue<int> q;
	int s,t;
	int dis[510]; 
	bool bfs()
	{
		q.push(s);
		memset(dis,0x3f,sizeof(dis));
		dis[s]=0;
		while (!q.empty())
		{
			int tmp=q.front();
			q.pop();
			for (int i=head[tmp];i!=-1;i=e[i].next)
				if (e[i].cap && dis[e[i].t]==INF)
				{
					dis[e[i].t]=dis[tmp]+1;
					q.push(e[i].t);
				}
		}
		return dis[t]!=INF;
	}
	int find(int x,int low)
	{
	    if (x==t)
	        return low;
	    int used=0;
	    for (int i=head[x];i!=-1;i=e[i].next)
	        if (e[i].cap>0 && dis[e[i].t]==dis[x]+1)
	        {
	            int flow=find(e[i].t,min(low-used,e[i].cap));
                e[i].cap-=flow;
                e[i^1].cap+=flow;
                used+=flow;
                if (used==low)
                    return low;
	        }
	    if (!used)
	        dis[x]=-1;
	    return used;
	}
	int dinic()
	{
		memset(head,0xff,sizeof(head));
		cnt=0;
		s=0,t=odd.size()+even.size()+1;
		for (int i=0;i<odd.size();i++)
			addedge(s,i+1,1);
		for (int i=0;i<even.size();i++)
			addedge(odd.size()+i+1,t,1);
		for (int i=0;i<odd.size();i++)
			for (int j=0;j<even.size();j++)
				if (!vis[abs(odd[i]-even[j])])
					addedge(i+1,odd.size()+j+1,1);
	    int ans=0;
	    while (bfs())
	        ans+=find(s,INF);
	    return ans;
	}
}
void ins(int x)
{
	if (x&1)
		odd.push_back(x);
	else
		even.push_back(x);
}
void pre()
{
	vis[1]=1; 
    for (int i=2;i<=10000000;i++)
    {
        if (!vis[i])
            prime[++p_cnt]=i;
        for (int j=1;j<=p_cnt&&i*prime[j]<=10000000;j++)
        {
            vis[i*prime[j]]=1;
            if (i%prime[j]==0)
                break;
        }
    }
}
int main()
{
	rread(n);
	for (int i=1;i<=n;i++)
		rread(a[i]);
	sort(a+1,a+n+1);
	a[0]=-1;
	for (int i=1;i<=n;i++)
	{
		if (a[i-1]!=a[i]-1)
			ins(a[i]);
		if (a[i+1]!=a[i]+1)
			ins(a[i]+1);
	}
	pre();
	int k=Network::dinic();
	printf("%d\n",k+2*((odd.size()-k)/2+(even.size()-k)/2)+3*(odd.size()%2));
	return 0;
}

Compiler output:
a.cc:3:22: error: ISO C++ forbids declaration of 'rread' with no type [-fpermissive]
    3 | template<typename T> rread(T &x)
      |                      ^~~~~
a.cc: In function 'int rread(T&)':
a.cc:8:1: warning: no return statement in function returning non-void [-Wreturn-type]
    8 | }
      | ^
Language: C++

#include<bits/stdc++.h>
using namespace std;
template<typename T> read(T &x)
{
	char ch=getchar();
	for (x=0;ch<'0'||ch>'9';ch=getchar());
	for (;ch>='0'&&ch<='9';x=x*10+ch-'0',ch=getchar());
}
#define INF 0x3f3f3f3f
vector<int> odd,even;
bool vis[10000010];
int prime[1000010],p_cnt;
int n;
int a[110];
namespace Network
{
	struct edge{
		int s,t,cap,next;
	}e[100010];
	int head[510],cnt;
	void addedge(int s,int t,int cap)
	{
		e[cnt].s=s;e[cnt].t=t;e[cnt].cap=cap;e[cnt].next=head[s];head[s]=cnt++;
		e[cnt].s=t;e[cnt].t=s;e[cnt].cap=0;e[cnt].next=head[t];head[t]=cnt++;
	}
	queue<int> q;
	int s,t;
	int dis[510]; 
	bool bfs()
	{
		q.push(s);
		memset(dis,0x3f,sizeof(dis));
		dis[s]=0;
		while (!q.empty())
		{
			int tmp=q.front();
			q.pop();
			for (int i=head[tmp];i!=-1;i=e[i].next)
				if (e[i].cap && dis[e[i].t]==INF)
				{
					dis[e[i].t]=dis[tmp]+1;
					q.push(e[i].t);
				}
		}
		return dis[t]!=INF;
	}
	int find(int x,int low)
	{
	    if (x==t)
	        return low;
	    int used=0;
	    for (int i=head[x];i!=-1;i=e[i].next)
	        if (e[i].cap>0 && dis[e[i].t]==dis[x]+1)
	        {
	            int flow=find(e[i].t,min(low-used,e[i].cap));
                e[i].cap-=flow;
                e[i^1].cap+=flow;
                used+=flow;
                if (used==low)
                    return low;
	        }
	    if (!used)
	        dis[x]=-1;
	    return used;
	}
	int dinic()
	{
		memset(head,0xff,sizeof(head));
		cnt=0;
		s=0,t=odd.size()+even.size()+1;
		for (int i=0;i<odd.size();i++)
			addedge(s,i+1,1);
		for (int i=0;i<even.size();i++)
			addedge(odd.size()+i+1,t,1);
		for (int i=0;i<odd.size();i++)
			for (int j=0;j<even.size();j++)
				if (!vis[abs(odd[i]-even[j])])
					addedge(i+1,odd.size()+j+1,1);
	    int ans=0;
	    while (bfs())
	        ans+=find(s,INF);
	    return ans;
	}
}
void ins(int x)
{
	if (x&1)
		odd.push_back(x);
	else
		even.push_back(x);
}
void pre()
{
	vis[1]=1; 
    for (int i=2;i<=10000000;i++)
    {
        if (!vis[i])
            prime[++p_cnt]=i;
        for (int j=1;j<=p_cnt&&i*prime[j]<=10000000;j++)
        {
            vis[i*prime[j]]=1;
            if (i%prime[j]==0)
                break;
        }
    }
}
int main()
{
	read(n);
	for (int i=1;i<=n;i++)
		read(a[i]);
	sort(a+1,a+n+1);
	a[0]=-1;
	for (int i=1;i<=n;i++)
	{
		if (a[i-1]!=a[i]-1)
			ins(a[i]);
		if (a[i+1]!=a[i]+1)
			ins(a[i]+1);
	}
	pre();
	int k=Network::dinic();
	printf("%d\n",k+2*((odd.size()-k)/2+(even.size()-k)/2)+3*(odd.size()%2));
	return 0;
}

Compiler output:
a.cc:3:22: error: ISO C++ forbids declaration of 'read' with no type [-fpermissive]
    3 | template<typename T> read(T &x)
      |                      ^~~~
a.cc: In function 'int read(T&)':
a.cc:8:1: warning: no return statement in function returning non-void [-Wreturn-type]
    8 | }
      | ^
Language: C++

#include<iostream>
#include<queue>
#include<vector>
#include<algorithm>
#include<cmath>
#include<cstdlib>

using namespace std;

using vi = vector<int>;
vi X;
int n;
vector<vi> C;
int used[207];
bool isprime(int n) {
	if (n <= 2)return false;
	for (int i = 2; i*i <= n; i++) {
		if (n%i == 0)return false;
	}
	return true;
}
bool dfs(int v) {
	used[v] = true;
	for (int i = 0; i < X.size() + 2; i++) {
		if (!used[i] && C[v][i] > 0) {
			if (dfs(i)) {
				C[v][i]--;
				C[i][v]++;
				return true;
			}
		}
	}
	return false;
}
int main() {
	cin >> n;
	vi evens;
	vi odds;
	for (int i = 0; i < n; i++) {
		int x;
		cin >> x;
		if (!X.empty() && X.back() == x) {
			X.pop_back();
			X.push_back(x + 1);
		}
		else {
			X.push_back(x);
			X.push_back(x + 1);
		}
	}
	int E = 0;
	int O = 0;
	for (int x : X) {
		if (x % 2 == 0) {
			E++;
		}
		else {
			O++;
		}
	}
		
	C.resize(X.size()+2, vi(X.size()+2, 0));
	for (int i = 0; i < X.size(); i++) {
		if (X[i] % 2 == 0) {
			C[X.size()][i] = 1;
		}
		else {
			C[i][X.size() + 1] = 1;
		}
	}
	for (int i = 0; i < X.size(); i++) {
		for (int j = i; j < X.size(); j++) {
			if (isprime(abs(X[i] - X[j]))) {
				int a = i;
				int b = j;
				if (b % 2 == 0)swap(a, b);
				C[a][b] = 1;
			}
		}
	}
	int ans = 0;
	while (dfs(X.size())) {
		memset(used, false, sizeof(used));
		ans++;
	}
	if ((E - ans) % 2 == 0) {
		cout << ans + (E - ans + O - ans) << endl;
	}
	else {
		cout << ans + (E - ans - 1 + O - ans - 1) + 3 << endl;
	}
}




Compiler output:
a.cc: In function 'int main()':
a.cc:83:17: error: 'memset' was not declared in this scope
   83 |                 memset(used, false, sizeof(used));
      |                 ^~~~~~
a.cc:7:1: note: 'memset' is defined in header '<cstring>'; this is probably fixable by adding '#include <cstring>'
    6 | #include<cstdlib>
  +++ |+#include <cstring>
    7 |
Language: C++

#include<iostream>
#include<queue>
#include<vector>
#include<algorithm>
#include<cmath>
#include<cstdlib>

using namespace std;

using vi = vector<int>;
vi X;
int n;
vector<vi> C;
int used[207];
bool isprime(int n) {
	for (int i = 2; i*i < n; i++) {
		if (n%i == 0)return false;
	}
	return true;
}
bool dfs(int v) {
	used[v] = true;
	for (int i = 0; i < X.size() + 2; i++) {
		if (!used[i] && C[v][i] > 0) {
			if (dfs(i)) {
				C[v][i]--;
				C[i][v]++;
				return true;
			}
		}
	}
	return false;
}
int main() {
	cin >> n;
	vi evens;
	vi odds;
	for (int i = 0; i < n; i++) {
		int x;
		cin >> x;
		if (!X.empty() && X.back() == x) {
			X.pop_back();
			X.push_back(x + 1);
		}
		else {
			X.push_back(x);
			X.push_back(x + 1);
		}
	}
	int E = 0;
	int O = 0;
	for (int x : X) {
		if (x % 2 == 0) {
			E++;
		}
		else {
			O++;
		}
	}
		
	C.resize(X.size()+2, vi(X.size()+2, 0));
	for (int i = 0; i < X.size(); i++) {
		if (X[i] % 2 == 0) {
			C[n][i] = 1;
		}
		else {
			C[i][n + 1] = 1;
		}
	}
	for (int i = 0; i < X.size(); i++) {
		for (int j = i; j < n; j++) {
			if (isprime(abs(X[i] - X[j]))) {
				C[i][j] = 1;
			}
		}
	}
	int ans = 0;
	while (dfs(X.size())) {
		memset(used, false, sizeof(used));
		ans++;
	}
	if ((E - ans) % 2 == 0) {
		cout << ans + (E - ans + O - ans) << endl;
	}
	else {
		cout << ans + (E - ans - 1 + O - ans - 1) + 3 << endl;
	}
}




Compiler output:
a.cc: In function 'int main()':
a.cc:79:17: error: 'memset' was not declared in this scope
   79 |                 memset(used, false, sizeof(used));
      |                 ^~~~~~
a.cc:7:1: note: 'memset' is defined in header '<cstring>'; this is probably fixable by adding '#include <cstring>'
    6 | #include<cstdlib>
  +++ |+#include <cstring>
    7 |
Language: C++

#include<iostream>
#include<queue>
#include<vector>
#include<algorithm>
#include<cmath>

using namespace std;

using vi = vector<int>;
vi X;
int n;
vector<vi> C;
int used[207];
bool isprime(int n) {
	for (int i = 2; i*i < n; i++) {
		if (n%i == 0)return false;
	}
	return true;
}
bool dfs(int v) {
	used[v] = true;
	for (int i = 0; i < X.size() + 2; i++) {
		if (!used[i] && C[v][i] > 0) {
			if (dfs(i)) {
				C[v][i]--;
				C[i][v]++;
				return true;
			}
		}
	}
	return false;
}
int main() {
	cin >> n;
	vi evens;
	vi odds;
	for (int i = 0; i < n; i++) {
		int x;
		cin >> x;
		if (!X.empty() && X.back() == x) {
			X.pop_back();
			X.push_back(x + 1);
		}
		else {
			X.push_back(x);
			X.push_back(x + 1);
		}
	}
	int E = 0;
	int O = 0;
	for (int x : X) {
		if (x % 2 == 0) {
			E++;
		}
		else {
			O++;
		}
	}
		
	C.resize(X.size()+2, vi(X.size()+2, 0));
	for (int i = 0; i < X.size(); i++) {
		if (X[i] % 2 == 0) {
			C[n][i] = 1;
		}
		else {
			C[i][n + 1] = 1;
		}
	}
	for (int i = 0; i < X.size(); i++) {
		for (int j = i; j < n; j++) {
			if (isprime(abs(X[i] - X[j]))) {
				C[i][j] = 1;
			}
		}
	}
	int ans = 0;
	while (dfs(X.size())) {
		memset(used, false, sizeof(used));
		ans++;
	}
	if ((E - ans) % 2 == 0) {
		cout << ans + (E - ans + O - ans) << endl;
	}
	else {
		cout << ans + (E - ans - 1 + O - ans - 1) + 3 << endl;
	}
}




Compiler output:
a.cc: In function 'int main()':
a.cc:78:17: error: 'memset' was not declared in this scope
   78 |                 memset(used, false, sizeof(used));
      |                 ^~~~~~
a.cc:6:1: note: 'memset' is defined in header '<cstring>'; this is probably fixable by adding '#include <cstring>'
    5 | #include<cmath>
  +++ |+#include <cstring>
    6 |
Language: C++

#include <bits/stdc++.h>
#define pb push_back
using namespace std;
typedef vector<int> vi;

struct hopcroft_karp {
	int N,M;
	vector<vector<int>> E;
	vector<int> dist,match,Q;
	hopcroft_karp(int n, int m):N(n),M(m),E(N),dist(N+M),match(N+M,-1),Q(N+M){}

	inline void add_edge(int i, int j) {E[i].push_back(j);}

	bool bfs() {
		fill(&dist[0],&dist[0]+N+M,-1);
		int qf = 0, qb = 0, u;
		bool ok = false;
		for(int i = 0; i < N; ++i)
			if(match[i] == -1)
				Q[qb++] = i, dist[i] = 0;
		while(qf != qb) {
			if((u = Q[qf++]) < N) {
				for(int v : E[u])
					if(dist[N+v] == -1)
						dist[Q[qb++] = N+v] = dist[u] + 1;
			} else {
				if(match[u] == -1) ok = true;
				else if(dist[match[u]] == -1)
					dist[Q[qb++] = match[u]] = dist[u] + 1;
			}
		}
		return ok;
	}

	bool dfs(int u) {
		for(int &i = Q[u]; i < E[u].size(); ++i) {
			int v = N+E[u][i];
			if(dist[v] == dist[u]+1 && (match[v] == -1 || (dist[match[v]] == dist[v]+1 && dfs(match[v])))) {
				match[v] = u, match[u] = v-N;
				return true;
			}
		}
		return false;
	}

	int solve() {
		int ans = 0;
		while(bfs()) {
			fill(&Q[0],&Q[0]+N,0);
			for(int i = 0; i < N; ++i)
				if(match[i] == -1 && dfs(i))
					++ans;
		}
		return ans;
	}
};

const int N = 105, P = 1e6+5;
int a[N]={-1};
bool p[P];
vi odd,evn;

inline void add(int i) {
	((i&1)?odd:evn).pb(i);
}

int main() {
	fill(p,p+P,1);
	for(int i = 2; i < P; ++i)
		if(p[i])
			for(ll j = 1LL * i * i; j < P; j += i)
				p[j] = false;
	p[2] = false;
	int n;
	scanf("%d",&n);
	for(int i = 1; i <= n; ++i)
		scanf("%d",a+i);
	sort(a,a+n); //maybe
	for(int i = 1; i <= n; ++i) {
		if(a[i-1] != a[i]-1) add(a[i]-1);
		if(a[i+1] != a[i]+1) add(a[i]);
	}
	hopcroft_karp HK(evn.size(), odd.size());
	for(int i = 0; i < evn.size(); ++i)
		for(int j = 0; j < odd.size(); ++j)
			if(p[abs(i-j)])
				HK.add_edge(i,j);
	int k = HK.solve();
	printf("%d\n",k + int((odd.size()-k)/2*2 + (evn.size()-k)/2*2 + ((odd.size()-k)&1)*3));
}

Compiler output:
a.cc: In function 'int main()':
a.cc:71:29: error: 'll' was not declared in this scope
   71 |                         for(ll j = 1LL * i * i; j < P; j += i)
      |                             ^~
a.cc:71:49: error: 'j' was not declared in this scope
   71 |                         for(ll j = 1LL * i * i; j < P; j += i)
      |                                                 ^
Language: C++

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

const int maxn = 2e5+7;
const int maxm = 1e7+7;
int n,a[maxm];
vector<int>v[2],E[maxn];
bool bio[maxn];
int conn[maxn];
void init(){
    scanf("%d",&n);
    for(int i=1;i<=n;i++){
        int x;
        scanf("%d",&x);
        a[x]=1;
    }
}
bool prime(int x){
    if(x==1)return false;
    for(int i=2;i*i<=x;i++)
        if(x%i==0)return false;
    return true;
}
bool dfs(int x){
    if(bio[x])return false;
    bio[x]=true;
    for(auto it : E[x]){
        if(conn[it] == -1 || dfs(conn[it])){
            conn[it] = x;
            return true;
        }
    }
    return false;
}
int main(){
    init();
    memset(conn,-1,sizeof(conn));
    for(int i=maxm-1;i;i--){
        a[i]^=a[i-1];
        if(a[i])v[i%2].push_back(i);
    }
    for(int i=0;i<v[0].size();i++){
        for(int j=0;j<v[1].size();j++){
            if(prime(abs(v[0][i]-v[1][j]))){
                E[i].push_back(j);
            }
        }
    }
    
    int match = 0;
    for(int i=0;i<v[0].size();i++){
        memset(bio,false,sizeof(bio));
        match+=dfs(i);
    }
    cout<<v[0].size()+v[1].size()-match+(v[0].size()-match)%2;
    return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:39:5: error: 'memset' was not declared in this scope
   39 |     memset(conn,-1,sizeof(conn));
      |     ^~~~~~
a.cc:4:1: note: 'memset' is defined in header '<cstring>'; this is probably fixable by adding '#include <cstring>'
    3 | #include<vector>
  +++ |+#include <cstring>
    4 | using namespace std;
Language: C++

#include <bits/stdc++.h>

using namespace std;

#define MAXN 10000000
#define PI acos(-1.0)
#define mo 1000000007
#define INF 0x3f3f3f3f
#define eps 1e-8
typedef long long LL;

int n, a[110];
int f[110][110][2];

int p[MAXN + 10];
bool vis[MAXN + 10];

void Prime()
{
    g[1] = 3;
    for(int i = 2; i <= MAXN; ++i){
        if(!vis[i]){
            p[++p[0]] = i;
            if(i == 2) g[i] = 2;
            else g[i] = 1;
        }
        else if(i & 1) g[i] = 3;
        else g[i] = 2;
        for(int j = 1; j <= p[0] && 1LL * i * p[j] <= MAXN; ++j){
            vis[i * p[j]] = true;
            if(!(i % p[j])) break;
        }
    }
}

void Init()
{
    scanf("%d", &n);
    for(int i = 1; i <= n; ++i){
        scanf("%d", a + i);
        f[i][i][0] = 3;
        f[i][i][1] = 0;
    }
    for(i = 1; i <= 10000000; ++i)
}

void DP()
{
    for(j = 1; j < n; ++j){
        for(i = 1; i + j <= n; ++i){
            for(k = i; k <= i + j; ++k){
                f[i][i + j][0] = min(f[i][i + j][0], f[i][k][0] + f[k + 1][j][0]);
                f[i][i + j][0] = min(f[i][i + j][0], f[i][k][1] + f[k][j][1] + g[a[i + j] - a[i] + 1]);
                f[i][i + j][1] = min(f[i][i + j][1], f[i][k][0] + f[k + 1][j][0] + g[a[i + j] - a[i] + 1]);
                f[i][i + j][1] = min(f[i][i + j][1], f[i][k][1] + f[k][j][1]);
            }
        }
    }
    printf("%d\n", f[1][n]);
}

int main()
{
    Init();
    RMI();
    Work();
    return 0;
}


Compiler output:
a.cc: In function 'void Prime()':
a.cc:20:5: error: 'g' was not declared in this scope
   20 |     g[1] = 3;
      |     ^
a.cc: In function 'void Init()':
a.cc:44:9: error: 'i' was not declared in this scope
   44 |     for(i = 1; i <= 10000000; ++i)
      |         ^
a.cc:45:1: error: expected primary-expression before '}' token
   45 | }
      | ^
a.cc: In function 'void DP()':
a.cc:49:9: error: 'j' was not declared in this scope
   49 |     for(j = 1; j < n; ++j){
      |         ^
a.cc:50:13: error: 'i' was not declared in this scope
   50 |         for(i = 1; i + j <= n; ++i){
      |             ^
a.cc:51:17: error: 'k' was not declared in this scope
   51 |             for(k = i; k <= i + j; ++k){
      |                 ^
a.cc:53:80: error: 'g' was not declared in this scope
   53 |                 f[i][i + j][0] = min(f[i][i + j][0], f[i][k][1] + f[k][j][1] + g[a[i + j] - a[i] + 1]);
      |                                                                                ^
a.cc: In function 'int main()':
a.cc:65:5: error: 'RMI' was not declared in this scope
   65 |     RMI();
      |     ^~~
a.cc:66:5: error: 'Work' was not declared in this scope; did you mean 'fork'?
   66 |     Work();
      |     ^~~~
      |     fork
Language: C++

#include <bits/stdc++.h>
#define arep(a,i,n) for(ll i=(a);i<(n);i++)
#define rep(i,n) for(ll i=0;i<(n);i++)
#define cinf(x,n) for(ll i=0;i<(n);i++)cin>>x[i];
#define coutf(x,n) for(ll i=0;i<(n);i++)cout<<x[i]<<endl;
ll scan(){ll tmp;cin>>tmp;return tmp;}
typedef long long ll;
typedef unsigned long long ull;
typedef long double ld;

using namespace std;

int main(){
	cout << "ABC" << scan() << endl;
}

Compiler output:
a.cc:6:1: error: 'll' does not name a type
    6 | ll scan(){ll tmp;cin>>tmp;return tmp;}
      | ^~
a.cc: In function 'int main()':
a.cc:14:26: error: 'scan' was not declared in this scope; did you mean 'scanf'?
   14 |         cout << "ABC" << scan() << endl;
      |                          ^~~~
      |                          scanf
Language: C++

#include <bits/stdc++.h>
int main(){int N;std::cin>>N;std::cout<<"ABC"<<N<<endl;}

Compiler output:
a.cc: In function 'int main()':
a.cc:2:51: error: 'endl' was not declared in this scope; did you mean 'std::endl'?
    2 | int main(){int N;std::cin>>N;std::cout<<"ABC"<<N<<endl;}
      |                                                   ^~~~
      |                                                   std::endl
In file included from /usr/include/c++/14/istream:41,
                 from /usr/include/c++/14/sstream:40,
                 from /usr/include/c++/14/complex:45,
                 from /usr/include/c++/14/ccomplex:39,
                 from /usr/include/x86_64-linux-gnu/c++/14/bits/stdc++.h:127,
                 from a.cc:1:
/usr/include/c++/14/ostream:744:5: note: 'std::endl' declared here
  744 |     endl(basic_ostream<_CharT, _Traits>& __os)
      |     ^~~~
Language: C++

#include<cstdio>
int main(){int N;std::cin>>N;std::cout<<"ABC"<<N<<endl;}

Compiler output:
a.cc: In function 'int main()':
a.cc:2:23: error: 'cin' is not a member of 'std'
    2 | int main(){int N;std::cin>>N;std::cout<<"ABC"<<N<<endl;}
      |                       ^~~
a.cc:2:1: note: 'std::cin' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>'
    1 | #include<cstdio>
  +++ |+#include <iostream>
    2 | int main(){int N;std::cin>>N;std::cout<<"ABC"<<N<<endl;}
a.cc:2:35: error: 'cout' is not a member of 'std'
    2 | int main(){int N;std::cin>>N;std::cout<<"ABC"<<N<<endl;}
      |                                   ^~~~
a.cc:2:35: note: 'std::cout' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>'
a.cc:2:51: error: 'endl' was not declared in this scope
    2 | int main(){int N;std::cin>>N;std::cout<<"ABC"<<N<<endl;}
      |                                                   ^~~~
Language: C++

#include <stdio.h>
using namespace std;

int main()
{
  string a;
  cin>>a;
  cout<<"ABC"<<a;
  return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:6:3: error: 'string' was not declared in this scope
    6 |   string a;
      |   ^~~~~~
a.cc:2:1: note: 'std::string' is defined in header '<string>'; this is probably fixable by adding '#include <string>'
    1 | #include <stdio.h>
  +++ |+#include <string>
    2 | using namespace std;
a.cc:7:3: error: 'cin' was not declared in this scope
    7 |   cin>>a;
      |   ^~~
a.cc:2:1: note: 'std::cin' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>'
    1 | #include <stdio.h>
  +++ |+#include <iostream>
    2 | using namespace std;
a.cc:7:8: error: 'a' was not declared in this scope
    7 |   cin>>a;
      |        ^
a.cc:8:3: error: 'cout' was not declared in this scope
    8 |   cout<<"ABC"<<a;
      |   ^~~~
a.cc:8:3: note: 'std::cout' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>'
Language: C++

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

 int main () {
  int a;
  cin >>a;
  
  cout << "ABC" << a << endl;
  }

Compiler output:
a.cc:2:2: error: invalid preprocessing directive #using
    2 | #using namespace std;
      |  ^~~~~
a.cc:1:1: error: 'include' does not name a type
    1 | include <bits/stdc++.h>
      | ^~~~~~~
Language: Java

import java.util.*;
public class Main {
	public static void main(String[] args){
		Scanner sc = new Scanner(System.in);
		// 整数の入力
		int a = sc.nextInt();
		System.out.println("ABC "+ a);
        }
	}
}

Compiler output:
Main.java:10: error: class, interface, enum, or record expected
}
^
1 error
Language: Java

import java.util.*;
public class Main {
	public static void main(String[] args){
		Scanner sc = new Scanner(System.in);
		// 整数の入力
		String a = sc.next();
		System.out.println(ABC + a);
        }
}

Compiler output:
Main.java:7: error: cannot find symbol
		System.out.println(ABC + a);
		                   ^
  symbol:   variable ABC
  location: class Main
1 error
Language: Java

import java.util.*;
public class Main {
	public static void main(String[] args){
		Scanner sc = new Scanner(System.in);
		// 整数の入力
		String a = sc.next();
		System.out.println(ABC + a);
        }
	}
}

Compiler output:
Main.java:10: error: class, interface, enum, or record expected
}
^
1 error
Language: Java

import java.util.*;
 
public class Main {
    public static void main(String[] args) throws Exception {
        // Your code here!
            Scanner sc = new Scanner(System.in);
            int a = sc.nextInt();
            
            System.out.println("ABC"+ a);
        
    }

Compiler output:
Main.java:11: error: reached end of file while parsing
    }
     ^
1 error
Language: C++

#include <bits/stdc++.h>
#define rep(i,n) for (int i=0;i < (n); ++i)
#define ALL(x) (x).begin(), (x).end()
using namespace std;
typedef long long ll;
typedef vector<int> V;
typedef pair<int,int> P;
typedef vector<vector<int>> Graph;


int main() {
    strin s;
    cin >> s;
    cout << "ABC" << s << endl;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:12:5: error: 'strin' was not declared in this scope; did you mean 'stdin'?
   12 |     strin s;
      |     ^~~~~
      |     stdin
a.cc:13:12: error: 's' was not declared in this scope
   13 |     cin >> s;
      |            ^
Language: C++

#include <iostream>
#include <map>
#include <algorithm>
#include <vector>
#include <iomanip>
#include <sstream>
#include <cmath>
#include <math.h>
#include <string>
using namespace std;
typedef long long ll;

int main() {
    ios::sync_with_stdio(false);
    cin.tie(0);
    int n;
    string a;
    cin >> a;
    cout << ABC << a;
}




Compiler output:
a.cc: In function 'int main()':
a.cc:19:13: error: 'ABC' was not declared in this scope
   19 |     cout << ABC << a;
      |             ^~~
Language: C++

#include<iostream>
using namespace std;
int main(){
  int a;
  cin>>a;
  cout<<"ABC"a<<endl;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:6:9: error: unable to find string literal operator 'operator""a' with 'const char [4]', 'long unsigned int' arguments
    6 |   cout<<"ABC"a<<endl;
      |         ^~~~~~
Language: C++

#include <iostream>
using namespace std;
int main ( ) {
int n;
cin >> n;
cout << ”ABC”;
cout << n;
cout << endl ;
return 0 ;
}

Compiler output:
a.cc:6:9: error: extended character ” is not valid in an identifier
    6 | cout << ”ABC”;
      |         ^
a.cc:6:9: error: extended character ” is not valid in an identifier
a.cc: In function 'int main()':
a.cc:6:9: error: '\U0000201dABC\U0000201d' was not declared in this scope
    6 | cout << ”ABC”;
      |         ^~~~~
Language: Java

public class ABC{
  
  public static void main(String [] args){
    
    Scanner scanner = new Scanner(System.in);
    
    int n = scanner.nextInt();
    
    System.out.prontln("ABC" + n);
    
    scanner.close();
    
  }
}
      
                          

Compiler output:
Main.java:1: error: class ABC is public, should be declared in a file named ABC.java
public class ABC{
       ^
Main.java:5: error: cannot find symbol
    Scanner scanner = new Scanner(System.in);
    ^
  symbol:   class Scanner
  location: class ABC
Main.java:5: error: cannot find symbol
    Scanner scanner = new Scanner(System.in);
                          ^
  symbol:   class Scanner
  location: class ABC
Main.java:9: error: cannot find symbol
    System.out.prontln("ABC" + n);
              ^
  symbol:   method prontln(String)
  location: variable out of type PrintStream
4 errors
Language: C++

#include<bit/stdc++.h>
using namespace std;
int main()
{
   int N;
  cin>>N;
  
  cout<<"ABC"<<N;
}

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

import java.util.*;
public class Main{
  public static void main(String[] args){
    Scanner sc = new Scanner(System.in);
    int n = sc.nextInt();
    int j = 2;
    int k = 0; // カウントする数
    while((j <= n)%2 == 0){
      if(n%j == 0){
        j = j* 2;
        k = k+1;
      }else{
        break;
      }
    }
    System.out.println(j);
  }
}


Compiler output:
Main.java:8: error: bad operand types for binary operator '%'
    while((j <= n)%2 == 0){
                  ^
  first type:  boolean
  second type: int
1 error
Language: Java

import java.util.*;
public class Main{
  public static void main(String[] args){
    Scanner sc = new Scaner(System.in);
    int n = sc.nextInt();
    int j = 2;
    int k = 0; // カウントする数
    while( 0 <= j && j <= n){
      if(n%j == 0){
        j = j* 2;
        k = k+1;
      }else{
        System.out.println(j);
      }      
    }
  }
}


Compiler output:
Main.java:4: error: cannot find symbol
    Scanner sc = new Scaner(System.in);
                     ^
  symbol:   class Scaner
  location: class Main
1 error
Language: Java

class Main{
  public static void main(String[] args){
    
    Scanner sc = new Scanner(System.in);
    
    int N = sc.nextInt();
    
    System.out.println("ABC" + N);
    
  }
}

Compiler output:
Main.java:4: error: cannot find symbol
    Scanner sc = new Scanner(System.in);
    ^
  symbol:   class Scanner
  location: class Main
Main.java:4: error: cannot find symbol
    Scanner sc = new Scanner(System.in);
                     ^
  symbol:   class Scanner
  location: class Main
2 errors
Language: Java

import java.util.*;
 
class Main{
  public static void main(String[] args){
    
    Scanner sc = new Scanner(System.in);
    
    System.out.println("ABC" + N);
  }
  
}
      


Compiler output:
Main.java:8: error: cannot find symbol
    System.out.println("ABC" + N);
                               ^
  symbol:   variable N
  location: class Main
1 error
Language: Java

import java.util.*;

class Main{
  public static void main(String[] args){
    
    int N = new.java.util.Scanner(System.in).nextInt();
    
    System.out.println("ABC" + N);
  }
  
}
      
    

Compiler output:
Main.java:6: error: <identifier> expected
    int N = new.java.util.Scanner(System.in).nextInt();
               ^
1 error
Language: Java

import java.util.*;
class Main{
  public static void main(String[] args){
  Scanner sc = new Scanner(System.in);
  int n = sc.nextInt();
  System.out.println('ABC' + n);
  }
}


Compiler output:
Main.java:6: error: unclosed character literal
  System.out.println('ABC' + n);
                     ^
Main.java:6: error: unclosed character literal
  System.out.println('ABC' + n);
                         ^
Main.java:6: error: not a statement
  System.out.println('ABC' + n);
                       ^
Main.java:6: error: not a statement
  System.out.println('ABC' + n);
                             ^
Main.java:6: error: ';' expected
  System.out.println('ABC' + n);
                              ^
5 errors
Language: Java

public class Main(
  public static void main(String[] args){
    
    for(int N = 100; N <= 999; N++){
      
      System.out.println("ABC" + N);
    }
  
  }
}

Compiler output:
Main.java:1: error: '{' expected
public class Main(
                 ^
Main.java:2: error: unnamed classes are a preview feature and are disabled by default.
  public static void main(String[] args){
                ^
  (use --enable-preview to enable unnamed classes)
Main.java:10: error: class, interface, enum, or record expected
}
^
3 errors
Language: Java

import java.util.*;
class Main{
  public static void main(String[] args){
  Scannnr sc = new Scanner(System.in);
  int n = sc.nextInt();
  System.out.println(n);
  }
}


Compiler output:
Main.java:4: error: cannot find symbol
  Scannnr sc = new Scanner(System.in);
  ^
  symbol:   class Scannnr
  location: class Main
1 error
Language: Java

import java.util.*;
class Main{
  public static void main(String[] args){
  Scannner sc = new Scannner(System.in);
  int n = sc.nextInt();
  System.out.println(n);
  }
}


Compiler output:
Main.java:4: error: cannot find symbol
  Scannner sc = new Scannner(System.in);
  ^
  symbol:   class Scannner
  location: class Main
Main.java:4: error: cannot find symbol
  Scannner sc = new Scannner(System.in);
                    ^
  symbol:   class Scannner
  location: class Main
2 errors
Language: Java

public class Main {

	public static void main(String[] args) {

		Scanner sc = new Scanner(System.in);

		String T = sc.next();

		System.out.println("ABC" + T);
	}

}

Compiler output:
Main.java:5: error: cannot find symbol
		Scanner sc = new Scanner(System.in);
		^
  symbol:   class Scanner
  location: class Main
Main.java:5: error: cannot find symbol
		Scanner sc = new Scanner(System.in);
		                 ^
  symbol:   class Scanner
  location: class Main
2 errors
Language: Java

import java.uti.*;
class Main{
  public static void main(String[] args){
  Scannner sc = new Scannner(System.in);
  int n = sc.nextInt();
  System.out.println(n);
  }
}

Compiler output:
Main.java:1: error: package java.uti does not exist
import java.uti.*;
^
Main.java:4: error: cannot find symbol
  Scannner sc = new Scannner(System.in);
  ^
  symbol:   class Scannner
  location: class Main
Main.java:4: error: cannot find symbol
  Scannner sc = new Scannner(System.in);
                    ^
  symbol:   class Scannner
  location: class Main
3 errors
Language: C++

#include <bits/stdc++.h>
#define rep(i,n) for (int i = 0; i < (n); ++i)
using namespace std;
using ll = long long;


int main() {
  string n;
  cin n;
  cout << "ABC" << n << endl;
  return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:9:6: error: expected ';' before 'n'
    9 |   cin n;
      |      ^~
      |      ;
Language: C++

#include <iostream>
using namespace std;
int n;
int max_count(-1);
int max(0);
int main() {
	cin >> n;
	for (int i(1); i <= n; i++) {
		int tmp = i;
		int count(0);
		while (tmp % 2 == 0) {
			tmp /= 2;
			count++;
		}
		if (count > max_count) {
			max_count = count;
			max = i;
		}
	}
	cout << max << endl;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:17:25: error: reference to 'max' is ambiguous
   17 |                         max = i;
      |                         ^~~
In file included from /usr/include/c++/14/string:51,
                 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/stl_algobase.h:303:5: note: candidates are: 'template<class _Tp, class _Compare> constexpr const _Tp& std::max(const _Tp&, const _Tp&, _Compare)'
  303 |     max(const _Tp& __a, const _Tp& __b, _Compare __comp)
      |     ^~~
/usr/include/c++/14/bits/stl_algobase.h:257:5: note:                 'template<class _Tp> constexpr const _Tp& std::max(const _Tp&, const _Tp&)'
  257 |     max(const _Tp& __a, const _Tp& __b)
      |     ^~~
a.cc:5:5: note:                 'int max'
    5 | int max(0);
      |     ^~~
a.cc:20:17: error: reference to 'max' is ambiguous
   20 |         cout << max << endl;
      |                 ^~~
/usr/include/c++/14/bits/stl_algobase.h:303:5: note: candidates are: 'template<class _Tp, class _Compare> constexpr const _Tp& std::max(const _Tp&, const _Tp&, _Compare)'
  303 |     max(const _Tp& __a, const _Tp& __b, _Compare __comp)
      |     ^~~
/usr/include/c++/14/bits/stl_algobase.h:257:5: note:                 'template<class _Tp> constexpr const _Tp& std::max(const _Tp&, const _Tp&)'
  257 |     max(const _Tp& __a, const _Tp& __b)
      |     ^~~
a.cc:5:5: note:                 'int max'
    5 | int max(0);
      |     ^~~
Language: C

#include <stdio.h>

int main(void)
{
  int n;
  
  scanf("%d", &a);
  printf("ABC%d", a);
  
  return 0;
}

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

#include<iostream>
using namespace std;
int main(){
    string N;
    cin >> N;
    if (N[2]==N[3] && N[4]==N[5]){
        cout<<"Yes";
    else{cout<<"No";}
return 0;
 }


Compiler output:
a.cc: In function 'int main()':
a.cc:8:5: error: expected '}' before 'else'
    8 |     else{cout<<"No";}
      |     ^~~~
a.cc:6:34: note: to match this '{'
    6 |     if (N[2]==N[3] && N[4]==N[5]){
      |                                  ^
Language: C++

include <iostream>
using namespace std; 
int main(){
int N;
cin >> N; 
cout<<"ABC"<<N;
return 0; }

Compiler output:
a.cc:1:1: error: 'include' does not name a type
    1 | include <iostream>
      | ^~~~~~~
a.cc: In function 'int main()':
a.cc:5:1: error: 'cin' was not declared in this scope
    5 | cin >> N;
      | ^~~
a.cc:6:1: error: 'cout' was not declared in this scope
    6 | cout<<"ABC"<<N;
      | ^~~~
Language: C++

include<iostream>
using namespace std; 
int main(){
int N;
cin >> N; 
cout<<"ABC"<<N;
return 0; }

Compiler output:
a.cc:1:1: error: 'include' does not name a type
    1 | include<iostream>
      | ^~~~~~~
a.cc: In function 'int main()':
a.cc:5:1: error: 'cin' was not declared in this scope
    5 | cin >> N;
      | ^~~
a.cc:6:1: error: 'cout' was not declared in this scope
    6 | cout<<"ABC"<<N;
      | ^~~~
Language: C++

    int A;
    cin >> A;
    cout << "ABC" << A;

    return 0;


Compiler output:
a.cc:2:5: error: 'cin' does not name a type
    2 |     cin >> A;
      |     ^~~
a.cc:3:5: error: 'cout' does not name a type
    3 |     cout << "ABC" << A;
      |     ^~~~
a.cc:5:5: error: expected unqualified-id before 'return'
    5 |     return 0;
      |     ^~~~~~
Language: C++

#include <iostream>

using namespace std;


int main()
{

int z;
cin>>z;
cout<<"ABC"<<z;
    return 0;


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

https://vjudge.net/contest/366614?fbclid=IwAR240kS_Dj8Tp1AALmrJTdPhF7h0biRYRDqcVT0AC-jgklHcP3T7-GIxvN8#overview

Compiler output:
a.cc:1:1: error: 'https' does not name a type
    1 | https://vjudge.net/contest/366614?fbclid=IwAR240kS_Dj8Tp1AALmrJTdPhF7h0biRYRDqcVT0AC-jgklHcP3T7-GIxvN8#overview
      | ^~~~~
Language: C++

#include<bits/stdc++.h>
using namespace std;
int main(){
  int a;
  cin >> a;
　cout << "ABC" << a;
}


Compiler output:
a.cc:6:1: error: extended character 　 is not valid in an identifier
    6 | 　cout << "ABC" << a;
      | ^
a.cc: In function 'int main()':
a.cc:6:1: error: '\U00003000cout' was not declared in this scope
    6 | 　cout << "ABC" << a;
      | ^~~~~~
Language: C++

#include<iostream>
using namespace std;
int mian(){
int a;
  cin>>a;
  cout<<"ABC"<<a<<endl;
  return 0;
}

Compiler output:
/usr/bin/ld: /usr/lib/gcc/x86_64-linux-gnu/14/../../../x86_64-linux-gnu/Scrt1.o: in function `_start':
(.text+0x17): undefined reference to `main'
collect2: error: ld returned 1 exit status
Language: C

main(n){scanf("%d",&n);printf("ABC%d",n)}

Compiler output:
main.c:1:1: error: return type defaults to 'int' [-Wimplicit-int]
    1 | main(n){scanf("%d",&n);printf("ABC%d",n)}
      | ^~~~
main.c: In function 'main':
main.c:1:1: error: type of 'n' defaults to 'int' [-Wimplicit-int]
main.c:1:9: error: implicit declaration of function 'scanf' [-Wimplicit-function-declaration]
    1 | main(n){scanf("%d",&n);printf("ABC%d",n)}
      |         ^~~~~
main.c:1:1: note: include '<stdio.h>' or provide a declaration of 'scanf'
  +++ |+#include <stdio.h>
    1 | main(n){scanf("%d",&n);printf("ABC%d",n)}
main.c:1:9: warning: incompatible implicit declaration of built-in function 'scanf' [-Wbuiltin-declaration-mismatch]
    1 | main(n){scanf("%d",&n);printf("ABC%d",n)}
      |         ^~~~~
main.c:1:9: note: include '<stdio.h>' or provide a declaration of 'scanf'
main.c:1:24: error: implicit declaration of function 'printf' [-Wimplicit-function-declaration]
    1 | main(n){scanf("%d",&n);printf("ABC%d",n)}
      |                        ^~~~~~
main.c:1:24: note: include '<stdio.h>' or provide a declaration of 'printf'
main.c:1:24: warning: incompatible implicit declaration of built-in function 'printf' [-Wbuiltin-declaration-mismatch]
main.c:1:24: note: include '<stdio.h>' or provide a declaration of 'printf'
main.c:1:41: error: expected ';' before '}' token
    1 | main(n){scanf("%d",&n);printf("ABC%d",n)}
      |                                         ^
      |                                         ;
Language: C++

#include<stdio.h>

int main(void)
{
  int n;
  std::cin>>n;
  
  std::cout<<"ABC"<<n<<std::endl;
  
  return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:6:8: error: 'cin' is not a member of 'std'
    6 |   std::cin>>n;
      |        ^~~
a.cc:2:1: note: 'std::cin' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>'
    1 | #include<stdio.h>
  +++ |+#include <iostream>
    2 | 
a.cc:8:8: error: 'cout' is not a member of 'std'
    8 |   std::cout<<"ABC"<<n<<std::endl;
      |        ^~~~
a.cc:8:8: note: 'std::cout' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>'
a.cc:8:29: error: 'endl' is not a member of 'std'
    8 |   std::cout<<"ABC"<<n<<std::endl;
      |                             ^~~~
a.cc:2:1: note: 'std::endl' is defined in header '<ostream>'; this is probably fixable by adding '#include <ostream>'
    1 | #include<stdio.h>
  +++ |+#include <ostream>
    2 |
Language: C++

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

int main() {
  int a;
  cin >> a;
  cout << "ABC" + (String)a << end;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:7:20: error: 'String' was not declared in this scope
    7 |   cout << "ABC" + (String)a << end;
      |                    ^~~~~~