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

#include<iostream>
#include<algorithm>
#include<string>
#include<cstdlib>
#include<map>
#include<iomanip>
#include<sstream>
#include<vector>
#include<stack>
#include<math.h>
#include<queue>
#include<complex>
#include<random>
#include<ctime>
#include<set>
using namespace std;


const long long int mod=1000000007;
const long long int INF=99999999999999999;

long long int n,v,u;
long long int useda[100003]={},usedt[100003]={};
long long int a[100003],b[100003],aoki[100003]={},takahashi[100003]={};
vector<long long int> ed[100004];
queue<long long int>taska,taskt;

int main() {
	cout << fixed << setprecision(18);
    cin>>n>>u>>v;
    for(int i=0;i<n-1;i++){
        cin>>a[i]>>b[i];
        ed[a[i]].push_back(b[i]);
        ed[b[i]].push_back(a[i]);
    }
    taska.push(v);
    useda[v]=1;
    while(!taska.empty()){
        for(int i=0;i<ed[taska.front()].size();i++){
            if(useda[ed[taska.front()][i]]==0){
                useda[ed[taska.front()][i]]=1;
                aoki[ed[taska.front()][i]]=aoki[taska.front()]+1;
                taska.push(ed[taska.front()][i]);
            }
        }

        taska.pop();
    }
    taskt.push(u);
    usedt[u]=1;
    while(!taskt.empty()){
        for(int i=0;i<ed[taskt.front()].size();i++){
            if(usedt[ed[taskt.front()][i]]==0){
                usedt[ed[taskt.front()][i]]=1;
                takahashi[ed[taskt.front()][i]]=takahashi[taskt.front()]+1;
                taskt.push(ed[taskt.front()][i]);
            }
        }

        taskt.pop();
    }
    long long int res=0;
    for(int i=1;i<=n;i++){
        if(takahashi[i]<aoki[i]){
            res=aoki[i]-1
        }
    }
    cout<<res;
} 

Compiler output:
a.cc: In function 'int main()':
a.cc:65:26: error: expected ';' before '}' token
   65 |             res=aoki[i]-1
      |                          ^
      |                          ;
   66 |         }
      |         ~
Language: Java

import java.io.IOException;
import java.io.InputStream;
import java.io.PrintWriter;
import java.util.HashMap;
import java.util.NoSuchElementException;

public class Main {
	static int[][] edge;
	public static void main(String args[]) {
		FastScanner sc = new FastScanner();
		PrintWriter out = new PrintWriter(System.out);
		int N = sc.nextInt();
		int u = sc.nextInt();
		int v= sc.nextInt();
		edge = new int[N-1][N-1];
		for(int i=0;i<N;i++) {
			int a = sc.nextInt()-1;
			int b = sc.nextInt()-1;
			edge[a][b] = 1;
		}
		int result = dps(u,-1,v,0);
		result += dps2(v,0,0);
		out.println(result);



		out.flush();
	}

	static int dps(int now,int prev, int dest,int dist) {
		if(now==dest) return dist;
		else{
			for(int next: edge[now]) {
				if(next != prev) {;
					prev = now;
					return dps(next,prev, dest,dist+1);
				}
			}
		}
	}
	
	static int dps2(int now,int prev, int dist) {
		if(edge[now].length==1) return dist;
		for(int next: edge[now]) {
			if(next!=prev) {
				prev = now;
				return dps2(next,prev, dist);
			}
		}
	}
}

class FastScanner {
	private final InputStream in = System.in;
	private final byte[] buffer = new byte[1024];
	private int ptr = 0;
	private int buflen = 0;
	private boolean hasNextByte() {
		if (ptr < buflen) {
			return true;
		}else{
			ptr = 0;
			try {
				buflen = in.read(buffer);
			} catch (IOException e) {
				e.printStackTrace();
			}
			if (buflen <= 0) {
				return false;
			}
		}
		return true;
	}
	private int readByte() { if (hasNextByte()) return buffer[ptr++]; else return -1;}
	private static boolean isPrintableChar(int c) { return 33 <= c && c <= 126;}
	public boolean hasNext() { while(hasNextByte() && !isPrintableChar(buffer[ptr])) ptr++; return hasNextByte();}
	public String next() {
		if (!hasNext()) throw new NoSuchElementException();
		StringBuilder sb = new StringBuilder();
		int b = readByte();
		while(isPrintableChar(b)) {
			sb.appendCodePoint(b);
			b = readByte();
		}
		return sb.toString();
	}
	public long nextLong() {
		if (!hasNext()) throw new NoSuchElementException();
		long n = 0;
		boolean minus = false;
		int b = readByte();
		if (b == '-') {
			minus = true;
			b = readByte();
		}
		if (b < '0' || '9' < b) {
			throw new NumberFormatException();
		}
		while(true){
			if ('0' <= b && b <= '9') {
				n *= 10;
				n += b - '0';
			}else if(b == -1 || !isPrintableChar(b)){
				return minus ? -n : n;
			}else{
				throw new NumberFormatException();
			}
			b = readByte();
		}
	}
	public int nextInt() {
		long nl = nextLong();
		if (nl < Integer.MIN_VALUE || nl > Integer.MAX_VALUE) throw new NumberFormatException();
		return (int) nl;
	}
	public double nextDouble() { return Double.parseDouble(next());}
}




Compiler output:
Main.java:40: error: missing return statement
	}
	^
Main.java:50: error: missing return statement
	}
	^
2 errors
Language: Java

import java.io.IOException;
import java.io.InputStream;
import java.io.PrintWriter;
import java.util.HashMap;
import java.util.NoSuchElementException;

public class Main {
	static int[][] edge;
	public static void main(String args[]) {
		FastScanner sc = new FastScanner();
		PrintWriter out = new PrintWriter(System.out);
		int N = sc.nextInt();
		int u = sc.nextInt();
		int v= sc.nextInt();
		edge = new int[N-1][N-1];
		for(int i=0;i<N;i++) {
			int a = sc.nextInt()-1;
			int b = sc.nextInt()-1;
			edge[a][b] = 1;
		}
		int result = dps(u,-1,v,0);
		result += dps2(v,0,0);
		out.println(result);



		out.flush();
	}

	static int dps(int now,int prev, int dest,int dist) {
		if(now==dest) return dist;
		else{
			for(int next: edge[now]) {
				if(next != prev) {;
					prev = now;
					return dps(next,prev, dest,dist+1);
				}
			}
		}
	}
	
	static int dps2(int now,int prev, int dist) {
		if(edge[now].length==1) return dist;
		for(int next: edge[now]) {
			if(next!=prev) {
				prev = now;
				return dps2(next,prev, dist);
			}
		}
	}
}

class FastScanner {
	private final InputStream in = System.in;
	private final byte[] buffer = new byte[1024];
	private int ptr = 0;
	private int buflen = 0;
	private boolean hasNextByte() {
		if (ptr < buflen) {
			return true;
		}else{
			ptr = 0;
			try {
				buflen = in.read(buffer);
			} catch (IOException e) {
				e.printStackTrace();
			}
			if (buflen <= 0) {
				return false;
			}
		}
		return true;
	}
	private int readByte() { if (hasNextByte()) return buffer[ptr++]; else return -1;}
	private static boolean isPrintableChar(int c) { return 33 <= c && c <= 126;}
	public boolean hasNext() { while(hasNextByte() && !isPrintableChar(buffer[ptr])) ptr++; return hasNextByte();}
	public String next() {
		if (!hasNext()) throw new NoSuchElementException();
		StringBuilder sb = new StringBuilder();
		int b = readByte();
		while(isPrintableChar(b)) {
			sb.appendCodePoint(b);
			b = readByte();
		}
		return sb.toString();
	}
	public long nextLong() {
		if (!hasNext()) throw new NoSuchElementException();
		long n = 0;
		boolean minus = false;
		int b = readByte();
		if (b == '-') {
			minus = true;
			b = readByte();
		}
		if (b < '0' || '9' < b) {
			throw new NumberFormatException();
		}
		while(true){
			if ('0' <= b && b <= '9') {
				n *= 10;
				n += b - '0';
			}else if(b == -1 || !isPrintableChar(b)){
				return minus ? -n : n;
			}else{
				throw new NumberFormatException();
			}
			b = readByte();
		}
	}
	public int nextInt() {
		long nl = nextLong();
		if (nl < Integer.MIN_VALUE || nl > Integer.MAX_VALUE) throw new NumberFormatException();
		return (int) nl;
	}
	public double nextDouble() { return Double.parseDouble(next());}
}
}



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

#include <stdio.h>
#include <stdlib.h>

typedef struct node
{
  int depth;
  int parent;
  int num_child;
  int *child;
} Node;

int main()
{
  int n, u, v, a, b;
  scanf("%d %d %d",&n, &u, &v);
  
  Node *nodes = (Node*)malloc(sizeof(Node)*n);
  for (int i = 0; i < n; ++i) {
    nodes[i].depth = n+1;
    nodes[i].num_child = 0;
    nodes[i].child = (int*)malloc(sizeof(int)*n);
  }
  for (int i = 0; i < n; ++i) {
    scanf("%d %d", &a, &b);
    if (nodes[a-1].depth < nodes[b-1].depth) {
      nodes[a-1].child[nodes[a-1].num_child] = b-1;
      nodes[a-1].num_child++;
      if (nodes[a-1].depth == n+1)
        nodes[a-1].depth = 0;
      else
        nodes[a-1].depth++;
      
      if (nodes[b-1].depth == n+1)
        nodes[b-1].depth = nodes.[a-1].depth + 1;
    }
    else {
      nodes[b-1].child[nodes[b-1].num_child] = a-1;
      nodes[b-1].num_child++;
      if (nodes[b-1].depth == n+1)
        nodes[b-1].depth = 0;
      else
        nodes[b-1].depth++;
      
      if (nodes[a-1].depth == n+1)
        nodes[a-1].depth = nodes.[b-1].depth + 1;
    }
  }
  printf("%d\n",nodes[u-1].depth - nodes[v-1].depth);
}


Compiler output:
main.c: In function 'main':
main.c:34:34: error: expected identifier before '[' token
   34 |         nodes[b-1].depth = nodes.[a-1].depth + 1;
      |                                  ^
main.c:45:34: error: expected identifier before '[' token
   45 |         nodes[a-1].depth = nodes.[b-1].depth + 1;
      |                                  ^
Language: C++

//#include<iostream>
//#include<cstdio> 
//#include<cstring>
//#include<stack>
//#include<queue>
//#include<set>
//#include<map>
//#include<vector>
//#include<list>
//#include<cmath>
//#include<algorithm>
//#define lson node<<1,st,mid
//#define rson node<<1|1,mid+1,ed
//#define mem(a,x) memset(a,x,sizeof(a))
//#define me(a) memset(a,0,sizeof(a))
//#define IOS ios::sync_with_stdio(false)
//#define lowbit(x) x&(-x)
//typedef long long ll;
//const ll mod=1e9+7;
//const ll INF=0x3f3f3f3f;
//const ll maxn=1e6+5;
//const double pi = acos(-1.0);
//using namespace std;
//ll a[50],b[50];
//ll main(){
//	ll n;
////	a[1]=1;
////	a[2]=2;
////	a[3]=3;
////	for(ll i=4;i<=100;i++){
////		a[i]=i*a[i-2];
////	}
////	for(ll i=1;i<=100;i++){
////		cout<<a[i]<<endl;
////	}
//	a[0]=0;
//	b[0]=0;
//	b[1]=9;b[2]=99;b[3]=999;b[4]=9999;b[5]=99999;b[6]=999999;
//	b[7]=9999999;b[8]=99999999;b[9]=999999999;b[10]=9999999999;b[11]=99999999999;b[12]=999999999999;
//	b[13]=9999999999999;b[14]=99999999999999;b[15]=999999999999999;b[16]=9999999999999999;b[17]=99999999999999999;b[18]=999999999999999999;
//	b[19]=9999999999999999999;
//	
//	for(ll i=1;i<=20;i++){
//		a[i]+=b[i];
//	}
//	cin>>n;
//	if(n<10) cout<<"0"<<endl;
//	else{
//		if(n%2==0) {
//			ll ans=lower(a,a+20,n)-a;
//			if()
//		}
//		else cout<<"0"<<endl;
//	}
//	
//}
#include<iostream>
#include<cstdio> 
#include<cstring>
#include<stack>
#include<queue>
#include<set>
#include<map>
#include<vector>
#include<list>
#include<cmath>
#include<algorithm>
#include<fstream>
#include<sstream>
#define lson node<<1,st,mid
#define rson node<<1|1,mid+1,ed
#define mem(a,x) memset(a,x,sizeof(a))
#define me(a) memset(a,0,sizeof(a))
#define IOS ios::sync_with_stdio(false)
#define lowbit(x) x&(-x)
typedef long long ll;
const ll mod=1e9+7;
const ll INF=0x3f3f3f3f;
const ll maxn=1e5+5;
const double pi = acos(-1.0);
using namespace std;
ll n,m;
ll dist[maxn],head[maxn];
bool vis[maxn];
struct code{
	ll to,w,next;
}edge[maxn];
struct node{
	ll to,w;
	bool operator <(const node &x) const{
		return w>x.w;
	}
};
priority_queue<node>q;
ll cnt;
void lln(){
	cnt=0;
	mem(head,-1);
	mem(vis,false);
	mem(dist,INF);
	
}
void add(ll u,ll v,ll w){
	cnt++;
	edge[cnt].to=v;
	edge[cnt].w=w;
	edge[cnt].next=head[u];
	head[u]=cnt;
}
void dijkstra(ll u){
	dist[u]=0;
	q.push(node {u,dist[u]});
	
	while(!q.empty()){
		node x=q.top();
		q.pop();
		if(vis[x.to]) continue;
		vis[x.to]=true;
		for(ll i=head[x.to];i!=-1;i=edge[i].next){
			ll v=edge[i].to;
			if(dist[v]>dist[x.to]+edge[i].w){
				dist[v]=dist[x.to]+edge[i].w;
				q.push(node {v,dist[v]});
			}
		}
	}
}
int main(){
	ll n,x,y;
	cin>>n>>x>>y;
	if(x==y) cout<<"0"<<endl;
	else{
		intn();
		n--;
		while(n--){
			ll u,v,w;
			scanf("%lld%lld",&u,&v);
			add(u,v,1);
			add(v,u,1);
		}
		dijkstra(x);
		ll res=dist[y];
		if(res%2==0) cout<<res/2<<endl;
		else if(res==1&&abs(x-y)==1) cout<<"0"<<endl;
		else cout<<res/2+1<<endl;
	}
	
}

Compiler output:
a.cc: In function 'int main()':
a.cc:133:17: error: 'intn' was not declared in this scope; did you mean 'int'?
  133 |                 intn();
      |                 ^~~~
      |                 int
Language: C++

#include <iostream>
#include <vector>
#include <queue>

using namespace std;

typedef long long int;

void bfs(vector< vector<int> >& edges, vector<int>& dist, int node){
    queue<int> Q;
    vector<int> state(edges.size());
    Q.push(node);
    dist[node] = 0;
    state[node] = 1;
    while(!Q.empty()){
        node = Q.front();
        Q.pop();
        for(int e : edges[node]){
            if(state[e] == 0){
                state[e]=1;
                dist[e] = dist[node] + 1;
                Q.push(e);
            }
        }
    }
}

int main()
{
    int N, u, v;
    cin >> N >> u >> v;
    --u;
    --v;
    vector< vector<int> > edges(N);
    int a, b;
    for(int i=0;i<N-1;++i){
        cin >> a >> b;
        edges[--a].push_back(--b);
        edges[b].push_back(a);
    }

    vector<int> dist_u(N), dist_v(N);
    bfs(edges, dist_u, u);
    bfs(edges, dist_v, v);

    int d = 0, s = 0;
    for(int i=0;i<N;++i){
        if(dist_v[i] >= dist_u[i]){
            bool flag = false;
            for(int e : edges[i]){
                if(dist_v[e] > dist_u[e]){
                    flag = true;
                    break;
                }
            }
            if(flag && d < dist_u[i]){
                d = dist_u[i];
                if(dist_v[i] > dist_u[i]){
                    s = dist_v[i] - dist_u[i] - 1;
                }
            }
        }
    }
    cout << d + s << endl;
}


Compiler output:
a.cc:7:19: error: declaration does not declare anything [-fpermissive]
    7 | typedef long long int;
      |                   ^~~
Language: C++

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

#define rep(i, n) for (ll i = 0; i < (ll)(n); i++)
#define rept(i,k,n) for(int i = (k); i < (int)(n); i++)
#define Sort(v) sort(v.begin(),v.end())
#define Reverse(v) reverse(v.begin(),v.end())
#define F first
#define S second

typedef long long ll;
typedef pair<double,double> Pdd;
typedef pair<int,int> Pii;

int n;
vector<vector<int> > tree;

void dfs(int s,int p,int l,vector<int> &f){
    f[s]=l;
    for(int x:tree[s]){
        if(x==p) continue;
        dfs(x,s,l+1,f);
    }
    return;
}

int main(){
    cin>>n;
    int u,v;
    cin>>u>>v;
    u--;v--;
    tree.assign(n,vector<int> (0));
    rep(i,n-1){
        int a,b;
        cin>>a>>b;a--;b--;
        tree[a].push_back(b);
        tree[b].push_back(a);
    }
    vector<int> fu(n);
    vector<int> fv(n);
    dfs(u,-1,0,fu);
    dfs(u,-1,0,fv);
    int maxu=0,maxv=0;
    rep(i,n){
        if(fu[i]<fv[i]&&){
            maxu=max(maxu,fv[i]);
        }
    }
    cout<<maxu<<endl;
    return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:45:25: error: expected primary-expression before ')' token
   45 |         if(fu[i]<fv[i]&&){
      |                         ^
Language: C++

#include <bits/stdc++.h>

using namespace std;

#define rep(i,n) for(int i=0;i<(n);i++)
#define repa(i,a,n) for(int i=(a);i<(n);i++)
#define rrep(i,n) for(int i=n;i>=0;i--)
#define rrepa(i,a,n) for(int i=n;i>=(a);i--)
#define all(a) (a).begin(),(a).end()
#define MOD 1000000007
#define cmax(a,b) a=max(a,b)
#define cmin(a,b) a=min(a,b)
#define vc vector

typedef long long ll;
typedef vector<int> vi;
typedef vector<vi> vvi;
typedef vector<ll> vl;
typedef vector<vl> vvl;
typedef vector<double> vd;
typedef vector<vd> vvd;
typedef pair<int,int> pi;

int main(){

    int n;
    vi ta(2);
    cin>>n>>ta[0]>>ta[1];
    ta[0]--;
    ta[1]--;

    vvi to(n);
    int a,b;
    rep(i,n-1){
        cin>>a>>b;
        a--;
        b--;
        to[a].push_back(b);
        to[b].push_back(a);
    }

    vvi dis(2,vi(n,100000));

    rep(i,2){
        queue<int> que;
        que.push(ta[i]);
        dis[i][ta[i]]=0;
        while(!que.empty()){
            int p=que.front();que.pop();
            rep(j,to[p].size()){
                if(dis[i][to[p][j]]!=100000)continue;
                dis[i][to[p][j]]=dis[i][p]+1;
                que.push(to[p][j]);
            }
        }
    }

    //xxx
    {
        int ans=0;
        rep(i,n){
            if(dis[0][i]<dis[1][i])continue;
            cmax(ans,dis[0][i]+((dis[0][i]-dis[1][i])/2));
        }
    }


    cout<<ans<<"\n";

    return 0;

}



Compiler output:
a.cc: In function 'int main()':
a.cc:68:11: error: 'ans' was not declared in this scope; did you mean 'abs'?
   68 |     cout<<ans<<"\n";
      |           ^~~
      |           abs
Language: C++

#include<bits/stdc++.h>
using namespace std;
const int N=100005 ;
vector<int>e[N];
int dep[N] , md[N], fa[N],n,s,t;
void dfs(int u,int f)
{
dep[u]=md[u]=dep[f]+1,fa[u]=f;
for(auto v:e[u])if(v!=f)dfs(v ,u) ,md[u]=max( md[u],md[v]);
}
int main(){
scanf( "%d%d%d",&n, &s,&t);
for(int i=1;i<n;i++)
int u,V;
scanf ( "%d%d" , &u, &v);
e[u]. push_ back(v);
e[v].push_ back(u);
dfs(t,0);
int ans=0,X=S;
while(1)
if(dep[s]-dep[x]>=dep[x]-dep[t])
break ;
ans=max(ans,md[x]-1);
x=fa[x];
}
printf( "%d\n",ans-1);
return 0;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:15:19: error: 'u' was not declared in this scope
   15 | scanf ( "%d%d" , &u, &v);
      |                   ^
a.cc:15:23: error: 'v' was not declared in this scope
   15 | scanf ( "%d%d" , &u, &v);
      |                       ^
a.cc:19:13: error: 'S' was not declared in this scope
   19 | int ans=0,X=S;
      |             ^
a.cc:21:15: error: 'x' was not declared in this scope
   21 | if(dep[s]-dep[x]>=dep[x]-dep[t])
      |               ^
a.cc:23:16: error: 'x' was not declared in this scope
   23 | ans=max(ans,md[x]-1);
      |                ^
a.cc: At global scope:
a.cc:26:7: error: expected constructor, destructor, or type conversion before '(' token
   26 | printf( "%d\n",ans-1);
      |       ^
a.cc:27:1: error: expected unqualified-id before 'return'
   27 | return 0;
      | ^~~~~~
a.cc:28:1: error: expected declaration before '}' token
   28 | }
      | ^
Language: C++

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

#pragma GCC optimize("O3,Ofast,no-stack-protector,unroll-loops,fast-math")

const long long maxn = 1e5 + 10;

long long n;
long long U, V;
bool mark[maxn];
long long f[20][maxn];
long long height[maxn];
vector<long long> adj[maxn];
long long dp[maxn], DP[maxn];
long long ans;

void in();
void solve();
void dfs(long long u);
void calcDP(long long u);
void calcf();
long long lca(long long u, long long v);
long long father(long long u, long long t);
void out();

long long main(){
    in();
    solve();
    out();
}

void in(){
    ios::sync_with_stdio(false);
    cout.tie(0);
    cin.tie(0);
    cin >> n >> U >> V;
    U--;
    V--;
    for(long long i = 1; i < n; i++){
        long long u, v;
        cin >> u >> v;
        u--;
        v--;
        adj[u].push_back(v);
        adj[v].push_back(u);
    }
    memset(f, -1, sizeof f);
    dfs(0);
    calcDP(0);
    calcf();
}

void solve(){
    long long x = lca(U, V);
    long long disV = height[V] - height[x];
    long long disU = height[U] - height[x];
    if(disV <= disU){
        ans += (disV + disU - 1) / 2;
        U = father(U, (disV + disU - 1) / 2);
        ans += dp[U];
        if((disU + disV) % 2 == 0)
            ans++;
    }
    else{
        ans += (disV + disU - 1) / 2;
        U = father(V, (disV + disU) / 2);
        ans += DP[U];
        if((disU + disV) % 2 == 0)
            ans++;
    }
}

void dfs(long long u){
    mark[u] = 1;
    for(auto v: adj[u]){
        if(!mark[v]){
            f[0][v] = u;
            height[v] = height[u] + 1;
            dfs(v);
            dp[u] = max(dp[v] + 1, dp[u]);
        }
    }
}

void calcDP(long long u){
    mark[u] = 0;
    long long maxim = 0;
    long long secmax = 0;
    if(u != 0)
        maxim = DP[u] + 1;
    for(auto v: adj[u]){
        if(mark[v]){
            if(dp[v] >= maxim){
                secmax = maxim;
                maxim = dp[v];
            }
            else if(dp[v] > secmax)
                secmax = dp[v];
        }
    }
    for(auto v: adj[u]){
        if(mark[v]){
            DP[v] = maxim;
            if(dp[v] == maxim)
                DP[v] = secmax;
            calcDP(v);
        }
    }
}

void calcf(){
    for(long long i = 1; i < 20; i++)
        for(long long j = 0; j < n; j++)
            if(f[i - 1][j] != -1)
                f[i][j] = f[i - 1][f[i - 1][j]];
}

long long lca(long long u, long long v){
    if(height[u] > height[v])
        swap(u, v);
    for(long long i = 19; i >= 0; i--)
        if(f[i][v] != -1 && height[f[i][v]] >= height[u])
            v = f[i][v];
    if(u == v)
        return u;
    for(long long i = 19; i >= 0; i--){
        if(f[i][v] != -1 && f[i][u] != -1 && f[i][v] != f[i][u]){
            v = f[i][v];
            u = f[i][u];
        }
    }
    return f[0][u];
}

long long father(long long u, long long t){
    for(long long i = 19; i >= 0; i--){
        if(((1 << i) & t) != 0){
            u = f[i][u];
        }
    }
    return u;
}

void out(){
    cout << ans;
}


Compiler output:
cc1plus: error: '::main' must return 'int'
Language: C++

//JSD
#include<algorithm>
#include<vector>
#include<iostream>
#include<set>
#define ll long long 
using namespace std;
int n,u,v,t,a;
vector<int > T[100001];
bool visited[100001];
int dis[100001]={0};
bool leaf[100001]={0};
bool childOfT[100001]={0};
void dfs(int s,int d,int childOff){	
	visited[s]=1;
	dis[s]=d;	
	if(s==t){
		childOff=1;
	}
	childOfT[s]=childOff;	
	int count=0;
	for(auto x: T[s]){
		if(!visited[x]){			
			dfs(x,d+1,childOff);
			count++;
		}
	}
	if(count==0)
		leaf[s]=1;
}
int main(){
	cin>>n>>t>>a;
	for(int i=0;i<n-1;i++){
		int u,v;
		cin>>u>>v;
		T[u].push_back(v);
		T[v].push_back(u);
	}
	// make dfs and find farthest node on a-t path
	dfs(a,0,0);
	int at=dis[t];
	//search for such leaf which is ChildOfT and at max distance from a
	int dima=INT_MAX;
	for(int i=1;i<=n;i++){
		if(leaf[i] and childOfT[i]){
			dima=min(dima,dis[i]);
		}
	}
	cout<<(dima-at)+(at-1)<<"\n";
	return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:43:18: error: 'INT_MAX' was not declared in this scope
   43 |         int dima=INT_MAX;
      |                  ^~~~~~~
a.cc:6:1: note: 'INT_MAX' is defined in header '<climits>'; this is probably fixable by adding '#include <climits>'
    5 | #include<set>
  +++ |+#include <climits>
    6 | #define ll long long
Language: C++

n, u, v = [int(x) for x in input().split()]
adj     = [[] for _ in range(0, n + 1)]
vs      = [False] * (n + 1)

for i in range(1, n):
	a, b = [int(x) for x in input().split()]
	adj[a].append(b)
	adj[b].append(a)
	
def dfs(i, d, n):
	if i == d:
		return n
	
	vs[i] = True
	
	for j in adj[i]:
		r = dfs(j, d, n + 1)
		if r is not None:
			return r
		
	vs[i] = False
	
	return None
	
r = dfs(u, v, 0)

print(r)


Compiler output:
a.cc:1:1: error: 'n' does not name a type
    1 | n, u, v = [int(x) for x in input().split()]
      | ^
Language: C++

/*
Author : Harsh AKA Codula
*/
#include<iostream>

using namespace std;

#define fast ios_base::sync_with_stdio(false);cin.tie(NULL)
#define ll long long
#define deb(x) cout<<"["<<#x<<"="<<x<<"]"<<"\n";
#define FOR(a,b) for(ll i=a;i<b;++i)
#define read(x) for(auto& i:x)cin>>i
#define pb push_back

class MAIN
{
	public:
		void run()
		{
			ll t=1;//cin>>t;
			while(t--)
			{
				ll a1,a2,a3;
				cin>>a1>>a2>>a3;
				cout<<((a1+a2+a3)=>22?"bust":"win");
				cout<<"\n";
			}
		}	
};

int main()
{
	fast;
	MAIN solution;
	solution.run();
	return 0;
}

Compiler output:
a.cc: In member function 'void MAIN::run()':
a.cc:25:51: error: expected primary-expression before '>' token
   25 |                                 cout<<((a1+a2+a3)=>22?"bust":"win");
      |                                                   ^
Language: C++

#include <stdio.h>
int main () 
{
int a, b, c;
printf("Input three number :\n") ;
scanf("%d %d %d", &a, &b, &c) ;
if ( (a+b+c)>=22) {
printf("bust\n") ;
}
else {
printf("win\n") :
}
}


Compiler output:
a.cc: In function 'int main()':
a.cc:11:16: error: expected ';' before ':' token
   11 | printf("win\n") :
      |                ^~
      |                ;
Language: C++

#include ,stdio.h>

int main()
{
	int r,s,t;
	
	scanf("%d &d %d, &r. &s, &t");
	
	if(r + s + t >= 22)
{   
    printf("bust\n");
    
}   
    else if(r + s + t < 22)
    
{
	printf("win\n");
}
    return 0;
}

Compiler output:
a.cc:1:10: error: #include expects "FILENAME" or <FILENAME>
    1 | #include ,stdio.h>
      |          ^
a.cc: In function 'int main()':
a.cc:7:9: error: 'scanf' was not declared in this scope
    7 |         scanf("%d &d %d, &r. &s, &t");
      |         ^~~~~
a.cc:11:5: error: 'printf' was not declared in this scope
   11 |     printf("bust\n");
      |     ^~~~~~
a.cc:1:1: note: 'printf' is defined in header '<cstdio>'; this is probably fixable by adding '#include <cstdio>'
  +++ |+#include <cstdio>
    1 | #include ,stdio.h>
a.cc:17:9: error: 'printf' was not declared in this scope
   17 |         printf("win\n");
      |         ^~~~~~
a.cc:17:9: note: 'printf' is defined in header '<cstdio>'; this is probably fixable by adding '#include <cstdio>'
Language: C++



int main()
{
	int r,s,t;
	
	scanf("%d &d %d, &r. &s, &t");
	
	if(r + s + t >= 22)
{   
    printf("bust\n");
    
}   
    else if(r + s + t < 22)
    
{
	printf("win\n");
}
    return 0;
	
}

Compiler output:
a.cc: In function 'int main()':
a.cc:7:9: error: 'scanf' was not declared in this scope
    7 |         scanf("%d &d %d, &r. &s, &t");
      |         ^~~~~
a.cc:11:5: error: 'printf' was not declared in this scope
   11 |     printf("bust\n");
      |     ^~~~~~
a.cc:1:1: note: 'printf' is defined in header '<cstdio>'; this is probably fixable by adding '#include <cstdio>'
  +++ |+#include <cstdio>
    1 | 
a.cc:17:9: error: 'printf' was not declared in this scope
   17 |         printf("win\n");
      |         ^~~~~~
a.cc:17:9: note: 'printf' is defined in header '<cstdio>'; this is probably fixable by adding '#include <cstdio>'
Language: C++

#include <stdio.h>

int main(){
	int a,b;
	
	scanf("%d %d", &a,&b);
	
	c=a+b
	if(c==5){
		printf("1");
	}
	else if(c==4){
		printf("2");
	}
	else if(c==3){
		printf("3");
	}
	return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:8:9: error: 'c' was not declared in this scope
    8 |         c=a+b
      |         ^
a.cc:12:9: error: 'else' without a previous 'if'
   12 |         else if(c==4){
      |         ^~~~
Language: C++

#include <stdio.h>

int main()
{

	int A1;
	int A2;
	int A3;
	
	scanf("%d %d %d", &A1, &A2, &A3);
	if (a1 + a2 + a3 >= 22){
		printf("bust\n");	
	}
	else {
		printf("win\n");
	}
	return 0;
	
}


Compiler output:
a.cc: In function 'int main()':
a.cc:11:13: error: 'a1' was not declared in this scope; did you mean 'A1'?
   11 |         if (a1 + a2 + a3 >= 22){
      |             ^~
      |             A1
a.cc:11:18: error: 'a2' was not declared in this scope; did you mean 'A2'?
   11 |         if (a1 + a2 + a3 >= 22){
      |                  ^~
      |                  A2
a.cc:11:23: error: 'a3' was not declared in this scope; did you mean 'A3'?
   11 |         if (a1 + a2 + a3 >= 22){
      |                       ^~
      |                       A3
Language: C++

#include<stdio.h>
int main()
{
int a1;
	int a2;
	int a3;
	scanf("%d %d %d =",&a1,&a2,&a3);
	if(a1+a2+a3>=22){
		printf("bust\n");
	}
	else{
		printf("win\n");
	}
	return 0;	

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

#include<stdio.h>
int main()
{
int a1;
	int a2;
	int a3;
	scanf("%d %d %d =",&a1,&a2,&a3);
	if(a1+a2+a3>=22){
		printf("bust");
	}
	else{
		printf("win");
	}
	return 0;	

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

#include<stdio.h>
int main()
{
int a1;
	int a2;
	int a3;
	scanf("%d + %d + %d =",&a1,&a2,&a3);
	if(a1+a2+a3>=22){
		printf("bust");
	}
	else{
		printf("win");
	}
	return 0;	

Compiler output:
main.c: In function 'main':
main.c:14:9: error: expected declaration or statement at end of input
   14 |         return 0;
      |         ^~~~~~
Language: C++

#include<stdio.h>
int main (){
	int a,b,c,d;
	
	scanf("%d %d %d",&a,&b,&c,&d);
	
	d=a+b+c;
	
	if(d<=21){
		printf("win\n");
	}
	
	else{

		printf("bust\n");
	}
	
	return 0;

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

#include <stdio.h>
int main()
{
    int A1;
    printf("A1: ");
    scanf("%d ", &A1);
    while(A1>=1 && A1<=13){
      int A2;
      printf("A2:");
      scanf("%d ", &A2);
      while(A2>=1 && A2<=13){
        int A3;
        printf("A3:");
        scanf("%d ", &A3);
        if(A3>1 && A3<13){
         if(A1+A2+A3>= 22){
           printf("bust");
          }else{
         printf("win");
         break;
          }

        }
        break;
      }
      break;
    }
  return 0;


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

int main()
{
    int A1;
    printf("A1: ");
    scanf("%d ", &A1);
    while(A1>=1 && A1<=13){
      int A2;
      printf("A2:");
      scanf("%d ", &A2);
      while(A2>=1 && A2<=13){
        int A3;
        printf("A3:");
        scanf("%d ", &A3);
        if(A3>1 && A3<13){
         if(A1+A2+A3>= 22){
           printf("bust");
          }else{
         printf("win");
         break;
          }

        }
        break;
      }
      break;
    }
  return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:4:5: error: 'printf' was not declared in this scope
    4 |     printf("A1: ");
      |     ^~~~~~
a.cc:1:1: note: 'printf' is defined in header '<cstdio>'; this is probably fixable by adding '#include <cstdio>'
  +++ |+#include <cstdio>
    1 | int main()
a.cc:5:5: error: 'scanf' was not declared in this scope
    5 |     scanf("%d ", &A1);
      |     ^~~~~
Language: C++

#include<stdio.h>

int main()
{
	int x, y, z, hasil;
		scanf("%d %d %d", &x, &y, &z);
		hasil=x+y+z;
		if(hasil < 22){
			printf("win\n");
		}
		else if(hasil >= 22){
			printf("bust\n");
		}
	return 0;	

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

#include <stdio.h

int main()
{
  int num1, num2, num3;
  scanf("%d %d %d", &num1, &num2, &num3);
  (num1 + num2 + num3 >= 22) ? puts("bust") : puts("win");
  return 0;
}

Compiler output:
a.cc:1:18: error: missing terminating > character
    1 | #include <stdio.h
      |                  ^
Language: C++

#include <stdio.h>

int main()
{
    int A[3];
    scanf("%d %d %d", &A[0], &A[1], &A[2]);
    int sum = A[0] + A[1] + A[2];
    
    if (sum >= 22) printf("bust") : printf("win");

    return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:9:34: error: expected ';' before ':' token
    9 |     if (sum >= 22) printf("bust") : printf("win");
      |                                  ^~
      |                                  ;
Language: C++

#include <stdio.h>

int main()
{
    int A[3];
    scanf("%d %d %d", &A[0], &A[1], &A[2]);
    sum = A[0] + A[1] + A[2];
    
    if (sum >= 22) printf("bust") : printf("win");

    return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:7:5: error: 'sum' was not declared in this scope
    7 |     sum = A[0] + A[1] + A[2];
      |     ^~~
a.cc:9:34: error: expected ';' before ':' token
    9 |     if (sum >= 22) printf("bust") : printf("win");
      |                                  ^~
      |                                  ;
Language: C

#include<stdio.h>

int main()
{
	int A1;
	int A2;
	int A3;
	
	printf("Masukan Angka = ");
	scanf("%d %d %d",&A1,&A2,&A3);
	int i;
	Ai=A1+A2+A3;
	
	if(1<=Ai<=13){
		printf("Win");
	}
	else
		printf("bust");
	}
	

Compiler output:
main.c: In function 'main':
main.c:12:9: error: 'Ai' undeclared (first use in this function); did you mean 'i'?
   12 |         Ai=A1+A2+A3;
      |         ^~
      |         i
main.c:12:9: note: each undeclared identifier is reported only once for each function it appears in
Language: C++

#include<stdio.h>
	int main(){
		int a1,a2,a3,hasil;
		scanf ("%d", &A1);
		getchar();
		scanf ("%d", &A2);
		getchar();
		scanf ("%d", &A3);
		getchar();
		
		if (A1+A2+A3 >= 22){
			hasil = A1+A2+A3;
			printf ("bust\n");
		}else {
			hasil = A1+A2+A3;
		    printf ("win\n");   
	    }
	}

Compiler output:
a.cc: In function 'int main()':
a.cc:4:31: error: 'A1' was not declared in this scope; did you mean 'a1'?
    4 |                 scanf ("%d", &A1);
      |                               ^~
      |                               a1
a.cc:6:31: error: 'A2' was not declared in this scope; did you mean 'a2'?
    6 |                 scanf ("%d", &A2);
      |                               ^~
      |                               a2
a.cc:8:31: error: 'A3' was not declared in this scope; did you mean 'a3'?
    8 |                 scanf ("%d", &A3);
      |                               ^~
      |                               a3
Language: C++

A1, A2, A3 = map(int, input().split())
if A1 + A2 + A3 >= 22:
  print("bust")
else:
  print("win")

Compiler output:
a.cc:1:1: error: 'A1' does not name a type
    1 | A1, A2, A3 = map(int, input().split())
      | ^~
Language: C

#include<stdio.h>

int main(void){
  int a,b,c;
  scanf("%d %d %d",&a,&b,&c);
  if(a+b+c>=22)[
    printf("bust\n");
    }else{
      printf("win\n");
    }
    return 0;
    }

Compiler output:
main.c: In function 'main':
main.c:6:16: error: expected expression before '[' token
    6 |   if(a+b+c>=22)[
      |                ^
main.c:7:22: error: expected ';' before '}' token
    7 |     printf("bust\n");
      |                      ^
      |                      ;
    8 |     }else{
      |     ~                 
main.c: At top level:
main.c:8:6: error: expected identifier or '(' before 'else'
    8 |     }else{
      |      ^~~~
main.c:11:5: error: expected identifier or '(' before 'return'
   11 |     return 0;
      |     ^~~~~~
main.c:12:5: error: expected identifier or '(' before '}' token
   12 |     }
      |     ^
Language: C++

#include <bits/stdc++.h>
#define FASTIO ios::sync_with_stdio(false);cin.tie(0);
#define ADD +
#define SUBTRACT -
#define MULTIPLY *
#define DIVIDE /
#define MOD %
#define INCREMENT(x) ++x
#define DECREMENT(x) --x
#define in(a,b) cin>>a>>b;
#define out(a,b) cout<<a<<endl<<b<<endl;
#define scan(a) scanf("%d",&a);
#define print(a) printf("%d\n",a);
#define scanii(a,b) scanf("%d %d",&a,&b);
#define printii(a,b) printf("%d\n%d\n",a,b);
#define scaniii(a,b,c) scanf("%d %d %d",&a,&b,&c);
#define pub push_back
#define pob pop_back
#define puf push_front
#define pof pop_front
#define ll long long
#define ull unsigned long long
#define sll signed long long
#define pi acos(-1)
#define mod 1000000007
#define TRUE 1
#define FALSE 0
#define ZERO 0
#define MP make_pair
#define F first
#define S second
#define f1(i,a) for(int i=0;i<a;++i)
#define f2(i,a) for(int i=a-1;i>=0;--i)
#define en puts("");
#define elif else if
typedef ll int lli;
typedef sll int slli;
typedef ull int ulli;
const int sz=10000;
using namespace std;

int clue();
int result();
void show();
bool check(int n) {
    for(int i=2;i*i<=n;++i) {
        if(n%i==0)
        return false;
    }
    return true;
}


// bool cmp(pair<int,int>p,pair<int,int>q) {
//     // return p.first>q.first;//descending by first
//     // return p.first<q.first;//ascending by first
//     // return p.second>q.second;//descending by second
//     return p.second<q.second;//ascending by second
// }

bool cmp(int p,int q) {
    return p>q;//descending
    // return p<q;//ascending
}


int main() {

    int t;
    // cin>>t;
    t=1;
    while(t-->0) {
        clue();
    }

    return 0;
}
int clue() {

    int a,b,c;
    cin>>a>>b>>>c;

    (a+b+c>=22)?cout<<"Bust"<<endl:cout<<"Win"<<endl;
    
    return 0;
}

Compiler output:
a.cc: In function 'int clue()':
a.cc:81:16: error: expected primary-expression before '>' token
   81 |     cin>>a>>b>>>c;
      |                ^
Language: C++

#include"bit/stdc++.h"
using namespace std;
int main(){
	int a, b, c;
  	cin >> a >> b >> c;
  	cout << (a+b+c > 22 ? "win" : "bust") << endl;
}

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

#include <bits/stdc++.h>
using namespace std;
 
int main() {
  int A1;
  int A2;
  int A3;
  cin >> A1 >> A2 >> A3;
 
  if ( A1 + A2 + A3 >= 22 ) {
    cout << "bust" << endl;
  } 
  else (A1 + A2 + A3 <= 21) { 
    cout << "win" << endl;
  }
}


Compiler output:
a.cc: In function 'int main()':
a.cc:13:28: error: expected ';' before '{' token
   13 |   else (A1 + A2 + A3 <= 21) {
      |                            ^~
      |                            ;
Language: C++

#include <bits/stdc++.h>
using namespace std;
 
int main() {
  int A1;
  int A2;
  int A3;
  cin >> A1 >> A2 >> A3;
 
  if ( A1 + A2 + A3 >= 22 ) {
    cout << "bust" << endl;
  } 
  else (A1 + A2 + A3 <= 21) { 
    cout << "win" << endl;
  } }


Compiler output:
a.cc: In function 'int main()':
a.cc:13:28: error: expected ';' before '{' token
   13 |   else (A1 + A2 + A3 <= 21) {
      |                            ^~
      |                            ;
Language: C++

#include <bits/stdc++.h>
using namespace std;
 
int main() {
  int A1;
  int A2;
  int A3;
  cin >> A1 >> A2 >> A3;
 
  if ( A1 + A2 + A3 >= 22 ) {
    cout << "bust" << endl;
  } 
  else (A1 + A2 + A3 >= 21) { 
    cout << "win" << endl;
} }

Compiler output:
a.cc: In function 'int main()':
a.cc:13:28: error: expected ';' before '{' token
   13 |   else (A1 + A2 + A3 >= 21) {
      |                            ^~
      |                            ;
Language: C++

#include <bits/stdc++.h>
using namespace std;
typedef long long ll;
#define INF 1LL<<62
#define inf 1000000007
 

int main() {
	ll a,b,c;
	cin>>a>>b>>c;
	if(a+b+c>=22){
		cout << "bust";
	}
	else{
		cout << "win"
	}
	// your code goes here
	return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:15:30: error: expected ';' before '}' token
   15 |                 cout << "win"
      |                              ^
      |                              ;
   16 |         }
      |         ~
Language: C

#include <bits/stdc++.h>
using namespace std;
 
#define REP(i,n) for(int i=0;i<(n);++i)
#define ll long long
const long long INF = 1LL<<60;
const long long mod = 1e9 + 7;

int main(){
    int a,b,c;
    cin >> a >> b >> c;
    if(a+b+c>=22) cout << "bust" << endl;
    else cout << "win" << endl;
}

Compiler output:
main.c:1:10: fatal error: bits/stdc++.h: No such file or directory
    1 | #include <bits/stdc++.h>
      |          ^~~~~~~~~~~~~~~
compilation terminated.
Language: C

#include <stdio.h>
int main(void)
{
    int A,B,C;
    scanf("%d %d",&A,&B,&C);
    if(A+B+C >= 22){
        printf("bust");
    }else{
        pritf("win");
    }
}

Compiler output:
main.c: In function 'main':
main.c:9:9: error: implicit declaration of function 'pritf'; did you mean 'printf'? [-Wimplicit-function-declaration]
    9 |         pritf("win");
      |         ^~~~~
      |         printf
Language: C++

#include<bits/stdc++.h>
using namespace std;
int main(){
  int a,b,c;
  cin>>a>>b>>c;
  if(a+b+c<=21)cout<<"win"<<endl;
  elsecout<<"bust"<<endl;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:7:3: error: 'elsecout' was not declared in this scope
    7 |   elsecout<<"bust"<<endl;
      |   ^~~~~~~~
Language: C++

#include <bits/stdc++.h>

using namespace std;

int main()
{
  int a, b, c; cin >> a >> b >> c;
  cout << (a+b+c >= 22) ? "bust" : "win" << endl;
  return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:8:42: error: invalid operands of types 'const char [4]' and '<unresolved overloaded function type>' to binary 'operator<<'
    8 |   cout << (a+b+c >= 22) ? "bust" : "win" << endl;
      |                                    ~~~~~~^~~~~~~
Language: C++

#include<>bits/stdc++.h
using namespace std;
int main(){
  int a,b,c;
  cin>>a>>b>>c;
  if(a+b+c>=22){cout<<"bust"<<endl;}
  else{cout<<"win"<<endl;}
}

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


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

using ll = long long;


ll a, b, c, d, e, f, g, h, i, j, k, l, m, n, o, p, q, r;
string s, t, u;
ll v, w, x, y, z;

int main() {
    
    cin >> a >> b >> c;

    cout << (a+b+c >= 22 "bust" : "win") <<endl;


}




Compiler output:
a.cc: In function 'int main()':
a.cc:17:25: error: expected ')' before string constant
   17 |     cout << (a+b+c >= 22 "bust" : "win") <<endl;
      |             ~           ^~~~~~~
      |                         )
Language: C++

//https://atcoder.jp/contests/abc148/tasks/abc148_a
#include <bits/stdc++.h>
#define ll long long int
using namespace std;
int man()
{
	ios::sync_with_stdio(false);
	cin.tie(0);
	ll a1;
	cin>>a1;
	ll a2;
	cin>>a2;
	ll a3;
	cin>>a3;
	if(a1+a2+a3>=22)
	{
		cout<<"bust"<<"\n";
	}
	else
	{
		cout<<"win"<<"\n";
	}
	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

#include<stdio.h>
int main(){
  int sum=0;
  for(int i=0;i<3;i++){
    scanf("%d",a);
    sum+=a;
  }
  if(sum>=22)
    printf("bust");
  else
    printf("win");
}

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

#include<bits/stdc++.h>
void fun(int A1, int A2, int A3)
{
      if((A1+A2+A3)>=22)
      {
           cout<<"bust";
      }
      else
       cout<<"win";
}
void main()
{
     int A1,A2,A3;
     cin<<A1<<A2<<A3;
    fun(A1,A2,A3);
}

Compiler output:
a.cc: In function 'void fun(int, int, int)':
a.cc:6:12: error: 'cout' was not declared in this scope; did you mean 'std::cout'?
    6 |            cout<<"bust";
      |            ^~~~
      |            std::cout
In file included from /usr/include/x86_64-linux-gnu/c++/14/bits/stdc++.h:146,
                 from a.cc:1:
/usr/include/c++/14/iostream:63:18: note: 'std::cout' declared here
   63 |   extern ostream cout;          ///< Linked to standard output
      |                  ^~~~
a.cc:9:8: error: 'cout' was not declared in this scope; did you mean 'std::cout'?
    9 |        cout<<"win";
      |        ^~~~
      |        std::cout
/usr/include/c++/14/iostream:63:18: note: 'std::cout' declared here
   63 |   extern ostream cout;          ///< Linked to standard output
      |                  ^~~~
a.cc: At global scope:
a.cc:11:1: error: '::main' must return 'int'
   11 | void main()
      | ^~~~
a.cc: In function 'int main()':
a.cc:14:6: error: 'cin' was not declared in this scope; did you mean 'std::cin'?
   14 |      cin<<A1<<A2<<A3;
      |      ^~~
      |      std::cin
/usr/include/c++/14/iostream:62:18: note: 'std::cin' declared here
   62 |   extern istream cin;           ///< Linked to standard input
      |                  ^~~
Language: C++

#include<bits/stdc++.h>
#include<conio.h>
void fun(int A1, int A2, int A3)
{
      if((A1+A2+A3)>=22)
      {
           cout<<"bust";
      }
      else
       cout<<"win";
}
void main()
{
     int A1,A2,A3;
     cin<<A1<<A2<<A3;
    fun(A1,A2,A3);
}

Compiler output:
a.cc:2:9: fatal error: conio.h: No such file or directory
    2 | #include<conio.h>
      |         ^~~~~~~~~
compilation terminated.
Language: C++

#include<iostream.h>
#include<conio.h>
void fun(int A1, int A2, int A3)
{
      if((A1+A2+A3)>=22)
      {
           cout<<"bust";
      }
      else
       cout<<"win";
}
void main()
{
     int A1,A2,A3;
     cin>>A1>>A2>>A3;
    fun(A1,A2,A3);
}

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

#include<iostream>
#include<conio.h>
void fun(int A1, int A2, int A3)
{
      if((A1+A2+A3)>=22)
      {
           cout<<"bust";
      }
      else
       cout<<"win";
}
void main()
{
     int A1,A2,A3;
     cin<<A1<<A2<<A3;
    fun(A1,A2,A3);
}

Compiler output:
a.cc:2:9: fatal error: conio.h: No such file or directory
    2 | #include<conio.h>
      |         ^~~~~~~~~
compilation terminated.
Language: C++

#include<iostream>
#include<conio>
void fun(int A1, int A2, int A3)
{
      if((A1+A2+A3)>=22)
      {
           cout<<"bust";
      }
      else
       cout<<"win";
}
void main()
{
     int A1,A2,A3;
     cin<<A1<<A2<<A3;
    fun(A1,A2,A3);
}

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

#include<iostream.h>
#include<conio.h>
void fun(int A1, int A2, int A3)
{
      if((A1+A2+A3)>=22)
      {
           cout<<"bust";
      }
      else
       cout<<"win";
}
void main()
{
     int A1,A2,A3;
     cin<<A1<<A2<<A3;
    fun(A1,A2,A3);
}

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

void fun(int A1, int A2, int A3)
{
      if((A1+A2+A3)>=22)
      {
           cout<<"bust";
      }
      else
       cout<<"win";
}


Compiler output:
a.cc: In function 'void fun(int, int, int)':
a.cc:5:12: error: 'cout' was not declared in this scope
    5 |            cout<<"bust";
      |            ^~~~
a.cc:8:8: error: 'cout' was not declared in this scope
    8 |        cout<<"win";
      |        ^~~~
Language: C++

#include<iostream>
using namespace std ;
int main ()
{
 int a , b , c ;
  cin >>a >> b >> c ;
  if (a + b + c  >=22)
    cout<<"bust";
  else 
    cout << "win";

Compiler output:
a.cc: In function 'int main()':
a.cc:10:19: error: expected '}' at end of input
   10 |     cout << "win";
      |                   ^
a.cc:4:1: note: to match this '{'
    4 | {
      | ^
Language: C++

#include<iostream>
#include<string>
#include<algorithm>
#include<vector>
#include<set>
#include<iomanip>
#define rep(i, a, n) for(int i = a; i < n; i++)
using namespace std;
int main(){
  int a, b, c;
  cin >> a >> b >> c;
  int d = s + b + c;
  if(d > 21){
    cout << "bust\n";
  }
  else{
    cout << "win\n";
  }
}

Compiler output:
a.cc: In function 'int main()':
a.cc:12:11: error: 's' was not declared in this scope
   12 |   int d = s + b + c;
      |           ^
Language: C++

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

int main()
{
  int A,B,C;
  cin >> A >> B >> C;
  
  if (A+B+C > 21)
  {
    cout << "bust" << endl;
  }
  else
  {
    cout << "win" << endl;
  }
  
  return;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:18:3: error: return-statement with no value, in function returning 'int' [-fpermissive]
   18 |   return;
      |   ^~~~~~
Language: C

#include<iostream>
using namespace std;
int main()
{
  int a,b,c;
  cin>>a>>b>>c;
  if(a+b+c>=22)
    cout<<"bust"<<endl;
  else
    cout<<"win"<<endl;
}


Compiler output:
main.c:1:9: fatal error: iostream: No such file or directory
    1 | #include<iostream>
      |         ^~~~~~~~~~
compilation terminated.