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

#include <cstdio>
#include <algorithm>
#include <cmath>
#include <queue>
#include <vector>
#include <map>
#include <set>

using namespace std;

typedef pair<int , int> P2;
typedef pair<pair<int , int> , int> P3;
typedef pair<pair<int , int> , pair<int , int> > P4;
#define Fst first
#define Snd second
#define PB(a) push_back(a)
#define MP(a , b) make_pair((a) , (b))
#define M3P(a , b , c) make_pair(make_pair((a) , (b)) , (c))
#define M4P(a , b , c , d) make_pair(make_pair((a) , (b)) , make_pair((c) , (d)))
#define repp(i,a,b) for(int i = (int)(a) ; i < (int)(b) ; ++i)
#define repm(i,a,b) for(int i = (int)(a) ; i > (int)(b) ; --i)
#define repv(t,it,v) for(vector<t>::iterator it = v.begin() ; it != v.end() ; ++it)

int N;
int A[2017];
bool e[2017][2017];
bool b[2017];

int gcd(int x , int y){
	return y > 0 ? gcd(y,x%y) : x;
}

vector<int> mer(vector<int> &S , vector<int> &T){
	vector<int> V;
	int i = 0 , j = 0;
	while(i != (int)S.size() || j != (int)T.size()){
		if(i == (int)S.size()) V.PB(T[j++]);
		else if(j == (int)T.size()) V.PB(S[i++]);
		else V.PB(A[S[i]] > A[T[j]] ? S[i++] : T[j++]);
	}
	return V;
}

vector<int> func(int k){
	vector<int> V;
	b[k] = 1;
	repp(i,0,N){
		if(!e[k][i] || b[i]) continue;
		V = mer(V,func(i));
	}
	V.insert(V.begin(),k);
	return V;
}

int main(){
	scanf("%d" , &N);
	repp(i,0,N){
		scanf("%d" , A + i);
	}
	sort(A,A+N);
	repp(i,0,N){
		repp(j,i+1,N){
			if(gcd(A[i],A[j]) > 1){
				e[i][j] = e[j][i] = 1;
			}
		}
	}
	vector<int> V;
	repp(i,0,N){
		if(b[i]) continue;
		V = mer(V,func(i));
	}
	repp(i,0,N){
		printf("%d%c" , A[V[i]] , i+1==N ? '\n' : ' ');
	}
	return 0;
}


Compiler output:
a.cc: In function 'std::vector<int> func(int)':
a.cc:49:31: error: cannot bind non-const lvalue reference of type 'std::vector<int>&' to an rvalue of type 'std::vector<int>'
   49 |                 V = mer(V,func(i));
      |                           ~~~~^~~
a.cc:33:47: note:   initializing argument 2 of 'std::vector<int> mer(std::vector<int>&, std::vector<int>&)'
   33 | vector<int> mer(vector<int> &S , vector<int> &T){
      |                                  ~~~~~~~~~~~~~^
a.cc: In function 'int main()':
a.cc:71:31: error: cannot bind non-const lvalue reference of type 'std::vector<int>&' to an rvalue of type 'std::vector<int>'
   71 |                 V = mer(V,func(i));
      |                           ~~~~^~~
a.cc:33:47: note:   initializing argument 2 of 'std::vector<int> mer(std::vector<int>&, std::vector<int>&)'
   33 | vector<int> mer(vector<int> &S , vector<int> &T){
      |                                  ~~~~~~~~~~~~~^
Language: C++

#include<iostream>
#include<algorithm>

using namespace std;

int Eulg(int a, int b);

int main(int argc, char *argv[]){

	int N;
	cin>>N;

	int *a = new int[N]();

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

	sort(a, a+N);

	bool flag = true;
	while(flag){
	for(int i=0; i<N; i++){
		for(int j=i+1; j<N; j++){
			if(Eulg(a[i], a[j]) == 1){
				if(a[i]<a[j]){
					int tmp;
					tmp =a[i];
					a[i] = b[j];
					b[j] = tmp;
				}
				else
					flag = false;
				break;
			}
		}

	}
}

for(int i=0; i<N; i++)
	cout<<a[i]<<"  ";



	delete[] a;
	return 0;
}

int Eulg(int a, int b){
	if(a<b){
		int tmp;
		tmp =a;
		a = b;
		b = tmp;
	}

	int r;
	r = a % b;
	while(r){
		a = b;
		b = r;
		r = a % b;
	}
	return b;
}

Compiler output:
a.cc: In function 'int main(int, char**)':
a.cc:29:48: error: 'b' was not declared in this scope
   29 |                                         a[i] = b[j];
      |                                                ^
Language: C++

#include<iostream>
#include<algorithm>

using namespace std;

int Eulg(int a, int b);

int main(int argc, char *argv[]){

	int N;
	cin>>N;

	int *a = new int[N]();

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

	sort(a, a+N);

	bool flag = true;
	while(flag){
	for(int i=0; i<N; i++){
		for(int j=i+1; j<N; j++){
			if(Eulg(a[i], a[j]) == 1){
				if(a[i]<a[j]){
					int tmp;
					tmp =a[i];
					a[i] = b[i];
					b[i] = tmp;
				}
				else
					flag = false;
				break;
			}
		}

	}
}

for(int i=0; i<N; i++)
	cout<<a[i]<<"  ";



	delete[] a;
	return 0;
}

int Eulg(int a, int b){
	if(a<b){
		int tmp;
		tmp =a;
		a = b;
		b = tmp;
	}

	int r;
	r = a % b;
	while(r){
		a = b;
		b = r;
		r = a % b;
	}
	return b;
}

Compiler output:
a.cc: In function 'int main(int, char**)':
a.cc:29:48: error: 'b' was not declared in this scope
   29 |                                         a[i] = b[i];
      |                                                ^
Language: C++

#include<iostream>
#include<algorithm>

using namespace std;

int Eulg(int a, int b);

int main(int argc, char *argv[]){

	int N;
	cin>>N;

	int *a = new int[N]();

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

	sort(a, a+N);

	bool flag = true;
	while(flag){
	for(int i=0; i<N; i++){
		for(int j=i+1; j<N; j++){
			if(Eulg(a[i], a[j]) == 1){
				if(a[i]<a[j]){
					int tmp;
					tmp =a[i];
					a[i] = b[i];
					b[i] = tmp;
				}
				else
					flag = false;
				break;
			}
		}

	}
}

for(int i=0; i<N; i++)
	cout<<a[i]<<"  ";



	delete[] a;
	return 0;
}

int Eulg(int a, int b){
	if(a<b){
		int tmp;
		tmp =a;
		a = b;
		b = tmp;
	}

	int r;
	r = a % b;
	while(r){
		a = b;
		b = a / b;
		r = a % b;
	}
	return b;
}

Compiler output:
a.cc: In function 'int main(int, char**)':
a.cc:29:48: error: 'b' was not declared in this scope
   29 |                                         a[i] = b[i];
      |                                                ^
Language: C++

#include <iostream>
#include <stdio.h>

using namespace std;
const int N = 3005;
int n, tot, a[N], lnk[N], son[N << 1], nxt[N << 1]; bool win[N];
void add(int x, int y) {
    nxt[++tot] = lnk[x], lnk[x] = tot, son[tot] = y;
    
}
void dfs(int x, int p) {
         win[x] = 0;
       for (int j = lnk[x]; j; j = nxt[j]) {
                 if (son[j] == p) continue;
                if (a[x] > a[son[j]]) {
                         dfs(son[j], x);
                         if (!win[son[j]]) win[x] = 1;
            
        }
        
    }
    
}
 int main() {
        scanf_s("%d", &n);
        for (int i = 1; i <= n; i++) scanf_s("%d", &a[i]);
        for (int i = 1, x, y; i < n; i++) {
                 scanf_s("%d%d", &x, &y);
                 add(x, y), add(y, x);
        
    }
         for (int i = 1; i <= n; i++) {
                 dfs(i, 0);
                 if (win[i]) printf("%d ", i);
        
    }
         return 0;
    
}

Compiler output:
a.cc: In function 'int main()':
a.cc:25:9: error: 'scanf_s' was not declared in this scope; did you mean 'scanf'?
   25 |         scanf_s("%d", &n);
      |         ^~~~~~~
      |         scanf
Language: C++

#include <cstdio>
#include <vector>
using namespace std;
int n;
int arr[3005];
int depth[3005];
vector<int> al[3005];

bool dfs(int i){
    if (depth[i]&1){
        bool trap=true;
        for (auto &it:al[i]){
            if (arr[it]<arr[i]) trap=false;
        }
        if (trap) return true;
    }
    
    for (auto &it:al[i]){
        if (arr[it]>=arr[i]) continue;
        
        depth[it]=depth[i]+1;
        if (dfs(it)) return true;
    }
    
    return false;


int main(){
    scanf("%d",&n);
    for (int x=1;x<=n;x++) scanf("%d",&arr[x]);
    
    int a,b;
    for (int x=1;x<n;x++){
        scanf("%d%d",&a,&b);
        al[a].push_back(b);
        al[b].push_back(a);
    }
    
    for (int x=1;x<=n;x++){
        depth[x]=0;
        if (dfs(x)) printf("%d ",x);
    }
}

Compiler output:
a.cc: In function 'bool dfs(int)':
a.cc:28:9: warning: empty parentheses were disambiguated as a function declaration [-Wvexing-parse]
   28 | int main(){
      |         ^~
a.cc:28:9: note: remove parentheses to default-initialize a variable
   28 | int main(){
      |         ^~
      |         --
a.cc:28:9: note: or replace parentheses with braces to value-initialize a variable
a.cc:28:11: error: a function-definition is not allowed here before '{' token
   28 | int main(){
      |           ^
a.cc:43:2: error: expected '}' at end of input
   43 | }
      |  ^
a.cc:9:16: note: to match this '{'
    9 | bool dfs(int i){
      |                ^
Language: C++

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

#define pb push_back
#define ff first
#define ss second

const long long MAXN = 3e3 + 21, LG = 20, inf = 1e18;

int n;
int a[MAXN];
bool dp[MAXN];
vector<int> adj[MAXN];

void dfs(int v, int par = -1){
    dp[v] = 0;
    for(auto &y: adj[v])
        if(y ^ par && a[v] > a[y]) {
            dfs(y, v);
            dp[v] |= (!dp[y]);
        }
}

int main(){
    ios_base::sync_with_stdio(false), can.tie(0), cout.tie(0);
    cin >> n;
    for(int i = 1; i <= n; i++)
        cin >> a[i];
    for(int i = 1; i < n; i++) {
        int u, v;
        cin >> u >> v;
        adj[u].pb(v);
        adj[v].pb(u);
    }

    for(int i = 1; i <= n; i++){
        dfs(i);
        if(dp[i]) 
            cout << i << ' ';
    }
    cout <<'\n';
    return 0;
}



Compiler output:
a.cc: In function 'int main()':
a.cc:25:39: error: 'can' was not declared in this scope; did you mean 'tan'?
   25 |     ios_base::sync_with_stdio(false), can.tie(0), cout.tie(0);
      |                                       ^~~
      |                                       tan
Language: C++

#include<iostream>
#include<vector>
using namespace std;
bool check[3001];
int n,x,y,w[3001];
vector<int> point[3001];

bool dfs(int u,int f) {
	check[u]=false;
	for(int v:point[])if(v!=f&&w[v]<w[u]) {
			dfs(v,u);
			if(!check[v]) {
				check[u]=true;
				break;
		}
	}
}
int main() {
	cin>>n;
	for(int i=1;i<=n;i++)
		scanf("%d",w+i);
	for(int i=1;i<n; i++)
		cin>>x>>y;
	point[x].push_back(y),point[y].push_back(x);
	for(int i=1;i<=n;i++) {
		dfs(i,0);
		if(check[i])
			cout<<i<<" ";
	}
	cout<<endl;
	return 0;
}

Compiler output:
a.cc: In function 'bool dfs(int, int)':
a.cc:10:25: error: expected primary-expression before ']' token
   10 |         for(int v:point[])if(v!=f&&w[v]<w[u]) {
      |                         ^
a.cc:17:1: warning: no return statement in function returning non-void [-Wreturn-type]
   17 | }
      | ^
Language: C++

#include<stdio.h>
#include<vector>
bool check[3005];
int n,x,y,w[3005];
vector<int> point[3005];
int dfs(int a,int k) {
	check[a]=false;
	for(int v:point[a])if(v!=k&&w[v]<w[a]) {
			dfs(v,a);
			if(!check[v]) {
				check[a]=true;
				break;
			}
		}
}

int main() {
	scanf("%d",&n);
	for(int i=1; i<=n; ++i)
		scanf("%d",w+i);
	for(int i=1; i<n; ++i)
		scanf("%d%d",&x,&y);
		point[x].push_back(y),point[y].push_back(x);
	for(int i=1; i<=n; ++i) {
		dfs(i,0);
		if(check[i])
			printf("%d ",i);
	}
	system("pause");
}

Compiler output:
a.cc:5:1: error: 'vector' does not name a type
    5 | vector<int> point[3005];
      | ^~~~~~
a.cc: In function 'int dfs(int, int)':
a.cc:8:19: error: 'point' was not declared in this scope; did you mean 'printf'?
    8 |         for(int v:point[a])if(v!=k&&w[v]<w[a]) {
      |                   ^~~~~
      |                   printf
a.cc:15:1: warning: no return statement in function returning non-void [-Wreturn-type]
   15 | }
      | ^
a.cc: In function 'int main()':
a.cc:23:17: error: 'point' was not declared in this scope; did you mean 'printf'?
   23 |                 point[x].push_back(y),point[y].push_back(x);
      |                 ^~~~~
      |                 printf
a.cc:29:9: error: 'system' was not declared in this scope
   29 |         system("pause");
      |         ^~~~~~
Language: C++

#include <cstdio>
#include <iostream>
#include <algorithm>
#define MN 3010

std::vector<int> v[MN];

int c[MN], p[MN];
bool ok[MN];
bool cmp(int a, int b) {return c[a] < c[b];}

int main()
{
	int n; scanf("%d", &n);
	for(int i = 1; i <= n; i++) scanf("%d", &c[i]), p[i] = i;
	std::sort(p + 1, p + n + 1, cmp);
	for(int i = 1; i < n; i++)
	{
		int a, b; scanf("%d%d", &a, &b);
		v[a].push_back(b); v[b].push_back(a);
	}
	for(int i = 1; i <= n; i++)
	{
		int u = p[i];
		for(int j = 0; j < v[u].size(); j++) 
			if(c[v[u][j]] < c[u] && ok[v[u][j]] == 0) ok[u] = 1; 
	}
	for(int i = 1; i <= n; i++) if(ok[i]) printf("%d ", i);
}

Compiler output:
a.cc:6:6: error: 'vector' in namespace 'std' does not name a template type
    6 | std::vector<int> v[MN];
      |      ^~~~~~
a.cc:4:1: note: 'std::vector' is defined in header '<vector>'; this is probably fixable by adding '#include <vector>'
    3 | #include <algorithm>
  +++ |+#include <vector>
    4 | #define MN 3010
a.cc: In function 'int main()':
a.cc:20:17: error: 'v' was not declared in this scope
   20 |                 v[a].push_back(b); v[b].push_back(a);
      |                 ^
a.cc:25:36: error: 'v' was not declared in this scope
   25 |                 for(int j = 0; j < v[u].size(); j++)
      |                                    ^
Language: C++

#include<bits/stdc++.h>
using namespace std;
bool check[3001];
int n,x,y,w[3001],i;
vector<int> point[3001];
bool dfs(int u,int f)
{
    check[u]=false;
    for(int v:point[u])
		if(v!=f&&w[v]<w[u])
			{
				dfs(v,u);
				if(!check[v])
				{
					check[u]=true;
					break;
				}
}
int main()
{
    cin>>n;
    for(i=1;i<=n;++i)
		scanf("%d",w+i);
    for(i=1;i<n;++i){
		scanf("%d%d",&x,&y);
		point[x].push_back(y);
		point[y].push_back(x);
    }
    for(i=1;i<=n;++i){
        dfs(i,0);
		if(check[i])
		    printf("%d ",i);
	}
	return 0;
}

Compiler output:
a.cc: In function 'bool dfs(int, int)':
a.cc:19:9: warning: empty parentheses were disambiguated as a function declaration [-Wvexing-parse]
   19 | int main()
      |         ^~
a.cc:19:9: note: remove parentheses to default-initialize a variable
   19 | int main()
      |         ^~
      |         --
a.cc:19:9: note: or replace parentheses with braces to value-initialize a variable
a.cc:20:1: error: a function-definition is not allowed here before '{' token
   20 | {
      | ^
a.cc:35:2: error: expected '}' at end of input
   35 | }
      |  ^
a.cc:7:1: note: to match this '{'
    7 | {
      | ^
a.cc:35:2: warning: no return statement in function returning non-void [-Wreturn-type]
   35 | }
      |  ^
Language: C++

#include<bits/stdc++.h>
using namespace std;
bool check[3001];
int n,x,y,w[3001],i;
vector<int> point[3001];
bool dfs(int u,int f)
{
    check[u]=false;
    for(int v:point[u])
		if(v!=f&&w[v]<w[u])
			{
				dfs(v,u);
				if(!check[v])
					check[u]=true,break;
}

int main()
{
    cin>>n;
    for(i=1;i<=n;++i)
		scanf("%d",w+i);
    for(i=1;i<n;++i)
		scanf("%d%d",&x,&y),point[x].push_back(y),point[y].push_back(x);
    for(i=1;i<=n;++i)
		{dfs(i,0);if(check[i])printf("%d ",i);}
}

Compiler output:
a.cc: In function 'bool dfs(int, int)':
a.cc:14:55: error: expected primary-expression before 'break'
   14 |                                         check[u]=true,break;
      |                                                       ^~~~~
a.cc:17:9: warning: empty parentheses were disambiguated as a function declaration [-Wvexing-parse]
   17 | int main()
      |         ^~
a.cc:17:9: note: remove parentheses to default-initialize a variable
   17 | int main()
      |         ^~
      |         --
a.cc:17:9: note: or replace parentheses with braces to value-initialize a variable
a.cc:18:1: error: a function-definition is not allowed here before '{' token
   18 | {
      | ^
a.cc:26:2: error: expected '}' at end of input
   26 | }
      |  ^
a.cc:7:1: note: to match this '{'
    7 | {
      | ^
a.cc:26:2: warning: no return statement in function returning non-void [-Wreturn-type]
   26 | }
      |  ^
Language: C++

#include<cstdio>
#include<cstring>
#include<cstdlib>
#include<algorithm>
using namespace std;
typedef long long ll;
const int maxn=10010;
int pre[maxn], nxt[maxn], to[maxn], A[maxn], tot=1;
bool vis[maxn],res[maxn];
vector<int>ans;
bool dfs(int x){
	if(vis[x])return res[x];
	vis[x]=1;
	bool flag=false;
	for(int t=pre[x];t;t=nxt[t])if(A[to[t]]<A[x]){
		if(!dfs(to[t])){
			flag=true;
			break;
		}
	}
	if(flag)ans.push_back(x);
	return res[x]=flag;
}
int main(){
	int N;
	scanf("%d",&N);
	for(int i=1;i<=N;i++)scanf("%d",A+i);
	for(int i=1;i< N;i++){
		int u,v;
		scanf("%d%d",&u,&v);
		to[tot]=v, nxt[tot]=pre[u], pre[u]=tot++;
		to[tot]=u, nxt[tot]=pre[v], pre[v]=tot++;
	}
	memset(vis,0,sizeof(vis));
	for(int i=1;i<=N;i++)dfs(i);
	sort(ans.begin(), ans.end());
	if(ans.empty())puts(""); else{
		for(int i=0; i<ans.size()-1; i++)printf("%d ", ans[i]);
		printf("%d\n", ans[ans.size()-1]);
	}
	return 0;
}


Compiler output:
a.cc:10:1: error: 'vector' does not name a type
   10 | vector<int>ans;
      | ^~~~~~
a.cc: In function 'bool dfs(int)':
a.cc:21:17: error: 'ans' was not declared in this scope; did you mean 'abs'?
   21 |         if(flag)ans.push_back(x);
      |                 ^~~
      |                 abs
a.cc: In function 'int main()':
a.cc:36:14: error: 'ans' was not declared in this scope; did you mean 'abs'?
   36 |         sort(ans.begin(), ans.end());
      |              ^~~
      |              abs
Language: C++

#include<iostream>
#include<vector>
#include<algorithm>
#include<cstring>
#include<cstdio>
#include<cmath>
#include<cstdlib>
#include<ctime>
#include<queue>
#include<set>
using namespace std;
typedef long long LL;
const int N=3010;
int gi() {
	int w=0;bool q=1;char c=getchar();
	while ((c<'0'||c>'9') && c!='-') c=getchar();
	if (c=='-') q=0,c=getchar();
	while (c>='0'&&c <= '9') w=w*10+c-'0',c=getchar();
	return q? w:-w;
}
int s[N],deg[N],q[N];
bool win[N];
int head[N],next[N],to[N];
int main()
{
	int n=gi(),i,a,b,tot=0,l=0,r=0,k;
	for (i=1;i<=n;i++) s[i]=gi();
	for (i=1;i<n;i++) {
		a=gi(),b=gi();
		if (s[a]>s[b]) swap(a,b);
		if (s[a]<s[b])
			deg[to[++tot]=b]++,next[tot]=head[a],head[a]=tot;
	}
	for (i=1;i<=n;i++) if (!deg[i]) q[++r]=i;
	while (l!=r)
		if (!win[k=q[++l]])
			for (i=head[k];i;i=next[i]) {
				win[to[i]]=true;
				if (!--deg[to[i]]) q[++r]=to[i];
			}
	for (i=1;i<=n;i++) if (win[i]) printf("%d ",i);
	return 0;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:32:44: error: reference to 'next' is ambiguous
   32 |                         deg[to[++tot]=b]++,next[tot]=head[a],head[a]=tot;
      |                                            ^~~~
In file included from /usr/include/c++/14/string:47,
                 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_iterator_base_funcs.h:232:5: note: candidates are: 'template<class _InputIterator> constexpr _InputIterator std::next(_InputIterator, typename iterator_traits<_Iter>::difference_type)'
  232 |     next(_InputIterator __x, typename
      |     ^~~~
a.cc:23:13: note:                 'int next [3010]'
   23 | int head[N],next[N],to[N];
      |             ^~~~
a.cc:37:44: error: reference to 'next' is ambiguous
   37 |                         for (i=head[k];i;i=next[i]) {
      |                                            ^~~~
/usr/include/c++/14/bits/stl_iterator_base_funcs.h:232:5: note: candidates are: 'template<class _InputIterator> constexpr _InputIterator std::next(_InputIterator, typename iterator_traits<_Iter>::difference_type)'
  232 |     next(_InputIterator __x, typename
      |     ^~~~
a.cc:23:13: note:                 'int next [3010]'
   23 | int head[N],next[N],to[N];
      |             ^~~~
Language: C++

#include <bits/stdc++.h>
using namespace std;
#define pb push_back
#define mp make_pair
#define all(x) (x).begin(),(x).end()
#define fi first
#define se second
#define SZ(x) ((int)(x).size())
#define zero(x) (((x)>0?(x):-(x))<eps)
typedef vector<int> VI;
typedef long long LL;
typedef pair<int,int>PII;
const double eps=1e-6;
const double pi=acos(-1.0);
const LL mod=1e18+7;
const int INF=0x3f3f3f3f;
//LL powmod(LL a,LL b) {ll res=1;a%=mod; assert(b>=0); for(;b;b>>=1){if(b&1)res=res*a%mod;a=a*a%mod;}return res;}
VI v[100010];
int sg[3010];
int dfs(int x){
    sg[x]=0;
    for(auto i:v[x]){
        if(~sg[i]) continue;
        dfs(i);
        if(a[x]>a[i]&&sg[i]==0){
            sg[x]=1;
            break;
        }
    }
}
int main(){
//    freopen("in.in","r",stdin);
//    freopen("out.out",";w",stdout);
    int n,x,y;
    cin>>n;
    for(int i=1;i<=n;i++) cin>>a[i];
    for(int i=1;i<n;i++){
        cin>>x>>y;
        v[x].pb(y);
        v[y].pb(x);
    }
    for(int i=1;i<=n;i++){
        memset(sg,-1,sizeof sg);
        if(dfs(i)) cout<<i<<" ";
    }
    puts("");
    return 0;
}
/*

*/


Compiler output:
a.cc: In function 'int dfs(int)':
a.cc:25:12: error: 'a' was not declared in this scope
   25 |         if(a[x]>a[i]&&sg[i]==0){
      |            ^
a.cc:30:1: warning: no return statement in function returning non-void [-Wreturn-type]
   30 | }
      | ^
a.cc: In function 'int main()':
a.cc:36:32: error: 'a' was not declared in this scope
   36 |     for(int i=1;i<=n;i++) cin>>a[i];
      |                                ^
Language: C++

#include <bits/stdc++.h>
using namespace std;
using ll = long long;
using ld = long double;
using u32 = uint32_t;
using vi = vector<int>;    using vvi = vector<vi>;
using vb = vector<bool>;   using vvb = vector<vb>;
using vl = vector<ll>;     using vvl = vector<vl>;
using vd = vector<double>; using vvd = vector<vd>;

#define MAXC(c, x) (c = max(c, x))
#define MINC(c, x) (c = min(c, x))

#define REP(i,n) for(auto i = 0 * (n), i##_len = (n); i < i##_len; ++i)
#define ALL(c) (c).begin(), (c).end()
#define FOR(i,s,n) for(ll i=s, i##_len=(ll)(n); i<i##_len; ++i)
#define TEN(x) ((ll)1e##x)
const ll mod = TEN(9) + 7;

// 制約fを満たす最大値（最小値）の二分探索
// ok < ng なら最大値，ok > ng なら最小値探索になる
template<class T, typename F> T bsearch(T ok, T ng, int loop, F f) {
	for(int i = 0; i < loop; ++i) {
		T middle = (ok + ng) / 2;
		(f(middle) ? ok : ng) = middle;
	}
	return ok;
}

#define EPS (1e-10)

int main() {
	#ifdef INPUT_FROM_FILE
	ifstream cin("sample.in");
	ofstream cout("sample.out");
	#endif
	cin.tie(0);
	ios_base::sync_with_stdio(false);
	cout << fixed << setprecision(50);
	ll n; cin >> n;
	vl A(n); REP(i, n) cin >> A[i];
	vvl path(n);
	REP(i, n) {
		ll a, b; cin >> a >> b;
		a--, b--;
		path[a].push_back(b);
		path[b].push_back(a);
	}
	vb yes(n, false);
	REP(i, n) {
		if (A[i] == 0) {
			for (ll e : path[i]) {if (A[e] != 0) yes[e] = true;
		}

		ll mi = TEN(10);
		for (ll e : path[i]) {
			mi = min(mi, A[e]);
		}

		if (mi >= A[i]) {
			for (ll e : path[i]) {
				if (mi == A[e] && A[i] < mi) yes[e] = true;
				if (mi != A[e] && A[i] <= mi) yes[e] = true;
			}
		}
	}
	REP(i, n) if (yes[i]) cout << i + 1 << " ";
	cout << endl;
}

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

#include <bits/stdc++.h>

using namespace std;

int main(){
 	int x; cin >> x;
  	if(x<1200) cout << "ABC";
  	else cout << "ARC;
}

Compiler output:
a.cc:8:22: warning: missing terminating " character
    8 |         else cout << "ARC;
      |                      ^
a.cc:8:22: error: missing terminating " character
    8 |         else cout << "ARC;
      |                      ^~~~~
a.cc: In function 'int main()':
a.cc:9:1: error: expected primary-expression before '}' token
    9 | }
      | ^
Language: C

#include<stdio.h>
int sum(int a){
  if(a<1200)
    return "ABC";
  else
    return "ARC";
}
int main(){
  int a;
  scnaf("%d",&a);
  printf("%s",sum(a));
  return 0;
}


Compiler output:
main.c: In function 'sum':
main.c:4:12: error: returning 'char *' from a function with return type 'int' makes integer from pointer without a cast [-Wint-conversion]
    4 |     return "ABC";
      |            ^~~~~
main.c:6:12: error: returning 'char *' from a function with return type 'int' makes integer from pointer without a cast [-Wint-conversion]
    6 |     return "ARC";
      |            ^~~~~
main.c: In function 'main':
main.c:10:3: error: implicit declaration of function 'scnaf'; did you mean 'scanf'? [-Wimplicit-function-declaration]
   10 |   scnaf("%d",&a);
      |   ^~~~~
      |   scanf
Language: C

#include<stdio.h>
int may(int a){
  if(a<1200)
    return "ABC";
  else
    return "ARC";
}
int main(){a
  int a;
  scnaf("%d",&a);
  printf("%s",may(a));
  return 0;
}


Compiler output:
main.c: In function 'may':
main.c:4:12: error: returning 'char *' from a function with return type 'int' makes integer from pointer without a cast [-Wint-conversion]
    4 |     return "ABC";
      |            ^~~~~
main.c:6:12: error: returning 'char *' from a function with return type 'int' makes integer from pointer without a cast [-Wint-conversion]
    6 |     return "ARC";
      |            ^~~~~
main.c: In function 'main':
main.c:8:12: error: 'a' undeclared (first use in this function)
    8 | int main(){a
      |            ^
main.c:8:12: note: each undeclared identifier is reported only once for each function it appears in
main.c:8:13: error: expected ';' before 'int'
    8 | int main(){a
      |             ^
      |             ;
    9 |   int a;
      |   ~~~        
main.c:10:3: error: implicit declaration of function 'scnaf'; did you mean 'scanf'? [-Wimplicit-function-declaration]
   10 |   scnaf("%d",&a);
      |   ^~~~~
      |   scanf
Language: C++

#include<iostream>
#include<string>
string may(int a){
  if(a<1200)
    return 'ABC';
  else
    return 'ARC';
}
int main(){
  int a;
  cin>>a;
  cout<<may(a);
  return 0;
}


Compiler output:
a.cc:5:12: warning: multi-character character constant [-Wmultichar]
    5 |     return 'ABC';
      |            ^~~~~
a.cc:7:12: warning: multi-character character constant [-Wmultichar]
    7 |     return 'ARC';
      |            ^~~~~
a.cc:3:1: error: 'string' does not name a type; did you mean 'stdin'?
    3 | string may(int a){
      | ^~~~~~
      | stdin
a.cc: In function 'int main()':
a.cc:11:3: error: 'cin' was not declared in this scope; did you mean 'std::cin'?
   11 |   cin>>a;
      |   ^~~
      |   std::cin
In file included from a.cc:1:
/usr/include/c++/14/iostream:62:18: note: 'std::cin' declared here
   62 |   extern istream cin;           ///< Linked to standard input
      |                  ^~~
a.cc:12:3: error: 'cout' was not declared in this scope; did you mean 'std::cout'?
   12 |   cout<<may(a);
      |   ^~~~
      |   std::cout
/usr/include/c++/14/iostream:63:18: note: 'std::cout' declared here
   63 |   extern ostream cout;          ///< Linked to standard output
      |                  ^~~~
a.cc:12:9: error: 'may' was not declared in this scope
   12 |   cout<<may(a);
      |         ^~~
Language: C++

#include<iostream>
#include<string>
int may(int a){
  string g="ABC";
  string h="ARC";
  if(a<1200)
    return g;
  else
    return h;
}
int main(){
  int a;
  cin>>a;
  cout<<may(a);
  return 0;
}


Compiler output:
a.cc: In function 'int may(int)':
a.cc:4:3: error: 'string' was not declared in this scope
    4 |   string g="ABC";
      |   ^~~~~~
a.cc:4:3: note: suggested alternatives:
In file included from /usr/include/c++/14/iosfwd:41,
                 from /usr/include/c++/14/ios:40,
                 from /usr/include/c++/14/ostream:40,
                 from /usr/include/c++/14/iostream:41,
                 from a.cc:1:
/usr/include/c++/14/bits/stringfwd.h:77:33: note:   'std::string'
   77 |   typedef basic_string<char>    string;
      |                                 ^~~~~~
In file included 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:
/usr/include/c++/14/string:76:11: note:   'std::pmr::string'
   76 |     using string    = basic_string<char>;
      |           ^~~~~~
a.cc:5:9: error: expected ';' before 'h'
    5 |   string h="ARC";
      |         ^~
      |         ;
a.cc:7:12: error: 'g' was not declared in this scope
    7 |     return g;
      |            ^
a.cc:9:12: error: 'h' was not declared in this scope
    9 |     return h;
      |            ^
a.cc: In function 'int main()':
a.cc:13:3: error: 'cin' was not declared in this scope; did you mean 'std::cin'?
   13 |   cin>>a;
      |   ^~~
      |   std::cin
/usr/include/c++/14/iostream:62:18: note: 'std::cin' declared here
   62 |   extern istream cin;           ///< Linked to standard input
      |                  ^~~
a.cc:14:3: error: 'cout' was not declared in this scope; did you mean 'std::cout'?
   14 |   cout<<may(a);
      |   ^~~~
      |   std::cout
/usr/include/c++/14/iostream:63:18: note: 'std::cout' declared here
   63 |   extern ostream cout;          ///< Linked to standard output
      |                  ^~~~
Language: C++

#include<iostream>
#include<string>
int may(int a){
  string g='ABC';
  string h='ARC';
  if(a<1200)
    return g;
  else
    return h;
}
int main(){
  int a;
  cin>>a;
  cout<<may(a);
  return 0;
}


Compiler output:
a.cc:4:12: warning: multi-character character constant [-Wmultichar]
    4 |   string g='ABC';
      |            ^~~~~
a.cc:5:12: warning: multi-character character constant [-Wmultichar]
    5 |   string h='ARC';
      |            ^~~~~
a.cc: In function 'int may(int)':
a.cc:4:3: error: 'string' was not declared in this scope
    4 |   string g='ABC';
      |   ^~~~~~
a.cc:4:3: note: suggested alternatives:
In file included from /usr/include/c++/14/iosfwd:41,
                 from /usr/include/c++/14/ios:40,
                 from /usr/include/c++/14/ostream:40,
                 from /usr/include/c++/14/iostream:41,
                 from a.cc:1:
/usr/include/c++/14/bits/stringfwd.h:77:33: note:   'std::string'
   77 |   typedef basic_string<char>    string;
      |                                 ^~~~~~
In file included 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:
/usr/include/c++/14/string:76:11: note:   'std::pmr::string'
   76 |     using string    = basic_string<char>;
      |           ^~~~~~
a.cc:5:9: error: expected ';' before 'h'
    5 |   string h='ARC';
      |         ^~
      |         ;
a.cc:7:12: error: 'g' was not declared in this scope
    7 |     return g;
      |            ^
a.cc:9:12: error: 'h' was not declared in this scope
    9 |     return h;
      |            ^
a.cc: In function 'int main()':
a.cc:13:3: error: 'cin' was not declared in this scope; did you mean 'std::cin'?
   13 |   cin>>a;
      |   ^~~
      |   std::cin
/usr/include/c++/14/iostream:62:18: note: 'std::cin' declared here
   62 |   extern istream cin;           ///< Linked to standard input
      |                  ^~~
a.cc:14:3: error: 'cout' was not declared in this scope; did you mean 'std::cout'?
   14 |   cout<<may(a);
      |   ^~~~
      |   std::cout
/usr/include/c++/14/iostream:63:18: note: 'std::cout' declared here
   63 |   extern ostream cout;          ///< Linked to standard output
      |                  ^~~~
Language: C++

#include<iostream>
int may(int a){
  if(a<1200)
    return 'ABC';
  else
    return 'ARC';
}
int main(){
  int a;
  cin>>a;
  cout<<may(a);
  return 0;
}

Compiler output:
a.cc:4:12: warning: multi-character character constant [-Wmultichar]
    4 |     return 'ABC';
      |            ^~~~~
a.cc:6:12: warning: multi-character character constant [-Wmultichar]
    6 |     return 'ARC';
      |            ^~~~~
a.cc: In function 'int main()':
a.cc:10:3: error: 'cin' was not declared in this scope; did you mean 'std::cin'?
   10 |   cin>>a;
      |   ^~~
      |   std::cin
In file included from a.cc:1:
/usr/include/c++/14/iostream:62:18: note: 'std::cin' declared here
   62 |   extern istream cin;           ///< Linked to standard input
      |                  ^~~
a.cc:11:3: error: 'cout' was not declared in this scope; did you mean 'std::cout'?
   11 |   cout<<may(a);
      |   ^~~~
      |   std::cout
/usr/include/c++/14/iostream:63:18: note: 'std::cout' declared here
   63 |   extern ostream cout;          ///< Linked to standard output
      |                  ^~~~
Language: C++

#include <bits/stdc++.h>
using namespace std;
#define int long long
#define rep(i,n) for(long long i=0; i<(int)n; i++)
#define rep2(i,a,n) for(long long i=(a); i<(int)(n); i++)
#define all(vec) vec.begin(),vec.end()
using vi = vector<int>;
using vs = vector<string>;
using vvi = vector<vi>;
using pii = pair<int, int>;
using psi = pair<string, int>;
const int dx[4] = {1, 0,-1, 0};
const int dy[4] = {0, 1, 0,-1};
const int mod = 1e9+7;
int gcd(int a, int b){if(a%b == 0){return(b);}else{return(gcd(b, a%b));}}
int lcm(int a, int b){return a * b / gcd(a, b);}

int N, M, K, H, W, L, R, X;
//string S, T;

signed main(){
  cin >> N;
  if(N>=1200) cout << "ARC" << endl;
  else cout << "ABC" << endl;
  return;
}
  
  

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

    #include<stdio.h>
    #include<string.h>
    using namespace std;
    int main()
    {
        int n;
        while(~scanf("%d",&n))
        {
            if(n<1200)printf("ABC\n");
            else printf("ARC\n");
        }
    }

Compiler output:
main.c:3:5: error: unknown type name 'using'
    3 |     using namespace std;
      |     ^~~~~
main.c:3:21: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'std'
    3 |     using namespace std;
      |                     ^~~
Language: C++

#include<iostream>
using namespace std;

int main()
{	int n;
	cin>>n;
	
	if(n<=1200)
	cout<<"ABC";
	else(n>1200 && n<=3000)
	cout<<"ARC";
}

Compiler output:
a.cc: In function 'int main()':
a.cc:10:32: error: expected ';' before 'cout'
   10 |         else(n>1200 && n<=3000)
      |                                ^
      |                                ;
   11 |         cout<<"ARC";
      |         ~~~~
Language: C++

#include <iostream>

using namespace std;

int main(){
  int r;
  cin >> r;
  if(r < 1200){
    cout << "ABC" << endl;
  else{
    cout << "ARC" << endl;
  }
}

Compiler output:
a.cc: In function 'int main()':
a.cc:10:3: error: expected '}' before 'else'
   10 |   else{
      |   ^~~~
a.cc:8:15: note: to match this '{'
    8 |   if(r < 1200){
      |               ^
Language: C++

#include<iostream>
using namespace std;
int main(){
  cin>>n;
  if(n<1200){
    cout<<"ABC";
  }
  else
    cout<<"ARC";
}

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


#incude<bits/stdc++.h>
using namespace std;
int main()
{
    long long n;
    cin>>n;
    if (n<1200)
    {
        cout<<"ABC"<<endl;
    }
    else
    {
        cout<<"ARC"<<endl;
    }
}

Compiler output:
a.cc:2:2: error: invalid preprocessing directive #incude; did you mean #include?
    2 | #incude<bits/stdc++.h>
      |  ^~~~~~
      |  include
a.cc: In function 'int main()':
a.cc:7:5: error: 'cin' was not declared in this scope
    7 |     cin>>n;
      |     ^~~
a.cc:1:1: note: 'std::cin' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>'
  +++ |+#include <iostream>
    1 | 
a.cc:10:9: error: 'cout' was not declared in this scope
   10 |         cout<<"ABC"<<endl;
      |         ^~~~
a.cc:10:9: note: 'std::cout' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>'
a.cc:10:22: error: 'endl' was not declared in this scope
   10 |         cout<<"ABC"<<endl;
      |                      ^~~~
a.cc:1:1: note: 'std::endl' is defined in header '<ostream>'; this is probably fixable by adding '#include <ostream>'
  +++ |+#include <ostream>
    1 | 
a.cc:14:9: error: 'cout' was not declared in this scope
   14 |         cout<<"ARC"<<endl;
      |         ^~~~
a.cc:14:9: note: 'std::cout' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>'
a.cc:14:22: error: 'endl' was not declared in this scope
   14 |         cout<<"ARC"<<endl;
      |                      ^~~~
a.cc:14:22: note: 'std::endl' is defined in header '<ostream>'; this is probably fixable by adding '#include <ostream>'
Language: Java

import java.util.Scanner;

public class Main {
  public static void main(String[] args) {
    Scanner scanner = new scanner(System.in);
    
    int x = scanner.nextInt();
    
    if(x < 1200) {
      System.out.println("ABC");
    } else {
      System.out.println("ARC");
    }
  }
}

Compiler output:
Main.java:5: error: cannot find symbol
    Scanner scanner = new scanner(System.in);
                          ^
  symbol:   class scanner
  location: class Main
1 error
Language: C

#include <stdio.h>
int main(){
  long x, z, y=0;
  
  scanf("%ld",&x);
  tmp=z;
 
  result+=(z/11)*2;
  z=z%11;
  
  if(7<=z){
    result+=2;
  } else if(1<=z && z<7) {
    result+=1;
  }
  
  printf("%ld",y);
}

Compiler output:
main.c: In function 'main':
main.c:6:3: error: 'tmp' undeclared (first use in this function)
    6 |   tmp=z;
      |   ^~~
main.c:6:3: note: each undeclared identifier is reported only once for each function it appears in
main.c:8:3: error: 'result' undeclared (first use in this function)
    8 |   result+=(z/11)*2;
      |   ^~~~~~
Language: C++

//#include <bits/stdc++.h>
#include <iostream>
#include <cstdio>
#include <algorithm>
#include <cstdlib>
#include <string>
#include <vector>
#include <map>
#include <queue>

using namespace std;

typedef long long ll;
typedef vector<int> vint;
typedef vector<vector<int> > vvint;
typedef vector<long long> vll, vLL;
typedef vector<vector<long long> > vvll, vvLL;
#define FOR(i,a,b) for(int i=(a);i<(b);++i)
#define REP(i,n) for(int i=0;i<n;++i)
#define mod (ll)(1e9+7)
#define FIX(a) ((a)%mod+mod)%mod
#define ALL(obj) (obj).begin(), (obj).end()
#define rALL(obj) (obj).rbegin(), (obj).rend()
#define INF 1000000000 //1e9
#define LLINF 2000000000000000000LL //2e18
#define fi first
#define se second
#define pb push_back
int dy[]={0, 0, 1, -1};
int dx[]={1, -1, 0, 0};

int main(){
    cin.tie(0);
    ios::sync_with_stdio(false);
    int x;
    cin >> x;
    if(x<1200){
        puts("ABC");
    }else{
        puts("ARC")
    }

    return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:40:20: error: expected ';' before '}' token
   40 |         puts("ARC")
      |                    ^
      |                    ;
   41 |     }
      |     ~
Language: Java

import java.util.*;

public class Main{
  public static void main(String[] args){
    Scanner sc = new Sacnner(System.in);
    int x = sc.nextInt();
    System.out.println(x<1200 ? "ABC" : "ARC");
  }
}

Compiler output:
Main.java:5: error: cannot find symbol
    Scanner sc = new Sacnner(System.in);
                     ^
  symbol:   class Sacnner
  location: class Main
1 error
Language: C++

#include <iostream>
using namespace std;
int main(void){
    // Your code here!
   int x;
   cin >>x;
   if(x < 1200)
   {
       cout << ABC << endl;
   }
   if(x > 1200)
   {
       cout << ARC << endl;
   }
}



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

int main(void){
  string s;
  cin >> s;
  int b, e;
  for(int i = 0; i < s.size(); i++){
    if(s.at(i) == 'A'){
      b = i;
      break;
    }
  }
  for(int i = s.size()-1; i>=0; i--){
    if(s.at(i) == 'Z'){
      e = i;
      break;
    }
  }
  cout << e-b+1 << endl;
  return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:2:3: error: 'string' was not declared in this scope
    2 |   string s;
      |   ^~~~~~
a.cc:3:3: error: 'cin' was not declared in this scope
    3 |   cin >> s;
      |   ^~~
a.cc:3:10: error: 's' was not declared in this scope
    3 |   cin >> s;
      |          ^
a.cc:17:3: error: 'cout' was not declared in this scope
   17 |   cout << e-b+1 << endl;
      |   ^~~~
a.cc:17:20: error: 'endl' was not declared in this scope
   17 |   cout << e-b+1 << endl;
      |                    ^~~~
Language: Java

import java.util.Scanner;

public class Abc {
  public static void main(String[] args){
    System.out.println("レートを入力してください。");
    String score = new Scanner(System.in).nextLine();
    int sukeme_score = Integer.parseInt(score);

    if (sukeme_score < 1200 && sukeme_score >= 1){
      System.out.println("ABC");
    } else if (sukeme_score >= 1200 && sukeme_score <= 3000) {
      System.out.println("ARC");
    } else {
      System.out.println("1~3,000で入力してください。");
    }
  }
}


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

import java.util.Scanner;

public class Abc {
  public static void main(String[] args){
    System.out.println("レートを入力してください。");
    String score = new Scanner(System.in).nextLine();
    int sukeme_score = Integer.parseInt(score);

    if (sukeme_score < 1200 && sukeme_score >= 1){
      System.out.println("ABC");
    } else if (sukeme_score >= 1200 && sukeme_score <= 3000) {
      System.out.println("ARC");
    } else {
      System.out.println("1~3,000で入力してください。");
    }
  }
}

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

import java.util.
  
public class Abc {
public static void main(String[] args){
 System.out.println('レートを入力してください。')
 String score = new Scanner(System.in).nextLine();
 int sukeme_score = Integer.parseInt(score);
 
  if (sukeme_score < 1200 && sukeme_score >= 1){
      System.out.println("ABC");
    } else if (sukeme_score >= 1200 && sukeme_score <= 3000) {
      System.out.println("ARC");
    } else {
      System.out.println("1~3,000で入力してください。");
    }
  }
}

Compiler output:
Main.java:1: error: <identifier> expected
import java.util.
                 ^
Main.java:5: error: unclosed character literal
 System.out.println('?????????????')
                    ^
Main.java:5: error: illegal character: '\u3002'
 System.out.println('?????????????')
                                 ^
Main.java:5: error: not a statement
 System.out.println('?????????????')
                      ^
Main.java:5: error: unclosed character literal
 System.out.println('?????????????')
                                  ^
5 errors
Language: C++

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

int main(){
  int x;
  cin>>x;
  
  if(x>=1200){
    cout<<"ARC"<<endl
  }else{
    cout<<"ABC"<<endl;
  }
  
  return 0;
  
}

Compiler output:
a.cc: In function 'int main()':
a.cc:9:22: error: expected ';' before '}' token
    9 |     cout<<"ARC"<<endl
      |                      ^
      |                      ;
   10 |   }else{
      |   ~
Language: C

#include<stdio.h>

int main()
{
 int x;

 scanf("%d");

 if(x<1200)printf("ABC\n");
 else(x>=1200)printf("ARC\n");

 return 0;
}


Compiler output:
main.c: In function 'main':
main.c:10:15: error: expected ';' before 'printf'
   10 |  else(x>=1200)printf("ARC\n");
      |               ^~~~~~
      |               ;
Language: C

#include<stdio.h>

int main()
{
 int x;

 scanf("%d");

 if(x<1200)printf("ABC\n");
 else(x>=1200)printf("ARC\n");

 return 0;
}i


Compiler output:
main.c: In function 'main':
main.c:10:15: error: expected ';' before 'printf'
   10 |  else(x>=1200)printf("ARC\n");
      |               ^~~~~~
      |               ;
main.c: At top level:
main.c:13:1: error: expected '=', ',', ';', 'asm' or '__attribute__' at end of input
   13 | }i
      | ^
Language: C++

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

int main(){
  int x;
  cin >> x;
  if(x < 1200)cout << "ABC\n";
  else cout << "ARC\n;
  
  return 0;
}


Compiler output:
a.cc:8:16: warning: missing terminating " character
    8 |   else cout << "ARC\n;
      |                ^
a.cc:8:16: error: missing terminating " character
    8 |   else cout << "ARC\n;
      |                ^~~~~~~
a.cc: In function 'int main()':
a.cc:10:3: error: expected primary-expression before 'return'
   10 |   return 0;
      |   ^~~~~~
Language: C++

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

int main(){
  int x;
  cin >> x;
  if(x < 1200)cout << "ABC\n";
  else cout << "ARC\n;
}

Compiler output:
a.cc:8:16: warning: missing terminating " character
    8 |   else cout << "ARC\n;
      |                ^
a.cc:8:16: error: missing terminating " character
    8 |   else cout << "ARC\n;
      |                ^~~~~~~
a.cc: In function 'int main()':
a.cc:9:1: error: expected primary-expression before '}' token
    9 | }
      | ^
Language: C++

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

int main() {
  int s;
  cin >> s;
  if (s < 1200) cout << "ABC" << endl;
  else cout << "ARC" <<< endl;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:9:24: error: expected primary-expression before '<' token
    9 |   else cout << "ARC" <<< endl;
      |                        ^
Language: C++

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

int main() {
  int x;
  cin >> x;
  
  if(x < 1200) cout << "ABC" << endl;
  else cout << "ARC" << endl;

Compiler output:
a.cc: In function 'int main()':
a.cc:9:30: error: expected '}' at end of input
    9 |   else cout << "ARC" << endl;
      |                              ^
a.cc:4:12: note: to match this '{'
    4 | int main() {
      |            ^
Language: C++

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

int main() {
  int x;
  
  cin >> x;
  
  if(x<1200)
    cout << "ABC";
  else
    cout << "ARC"
  
}

Compiler output:
a.cc: In function 'int main()':
a.cc:13:18: error: expected ';' before '}' token
   13 |     cout << "ARC"
      |                  ^
      |                  ;
   14 | 
   15 | }
      | ~
Language: C++

#include<iostream>

int main(){
 int x; cin >> x;
 std::cout << (x < 1200 ? "ABC\n" : "ARC\n");
 return 0; 
}

Compiler output:
a.cc: In function 'int main()':
a.cc:4:9: error: 'cin' was not declared in this scope; did you mean 'std::cin'?
    4 |  int x; cin >> x;
      |         ^~~
      |         std::cin
In file included from a.cc:1:
/usr/include/c++/14/iostream:62:18: note: 'std::cin' declared here
   62 |   extern istream cin;           ///< Linked to standard input
      |                  ^~~
Language: C++

#include<iostream>
#include<conio.h>
using namespace std;
int main()
{
    int a;
    cin>>a;
    (a<1200)?cout<<"ABC":cout<<"ARC";
    getch();
}



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

#include <bits/stdc++.h>
using namespace std;
 
#define ll long long int
#define rep(i, n) for(int i = 0; i < n; i++)
#define sort(v) sort((v).begin(), (v).end())
using vi = vector<int>;
const int MOD = 1e9+7;
 
bool IsPrime(int num){
    if (num < 2) return false;
    else if (num == 2) return true;
    else if (num % 2 == 0) return false; // 偶数はあらかじめ除く
    double sqrtNum = sqrt(num);
    for (int i = 3; i <= sqrtNum; i += 2) { if (num % i == 0) return false; }
    return true;
}
 
int main() {
	int x;
  	cinn >> x;
  	if(x < 1200) cout << "ABC" << endl;
  	else cout << "ARC" << endl;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:21:9: error: 'cinn' was not declared in this scope
   21 |         cinn >> x;
      |         ^~~~
Language: C++

#include <bits/stdc++.h>
using namespace std;
 
#define ll long long int
#define rep(i, n) for(int i = 0; i < n; i++)
#define sort(v) sort((v).begin(), (v).end())
using vi = vector<int>;
const int MOD = 1e9+7;

bool IsPrime(int num){
    if (num < 2) return false;
    else if (num == 2) return true;
    else if (num % 2 == 0) return false; // 偶数はあらかじめ除く
    double sqrtNum = sqrt(num);
    for (int i = 3; i <= sqrtNum; i += 2) { if (num % i == 0) return false; }
    return true;
}

int main() {
	int x;
  	cinn >> x;
  	if(x < 1200) cout << ABC << endl;
  	else cout << ARC << endl;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:21:9: error: 'cinn' was not declared in this scope
   21 |         cinn >> x;
      |         ^~~~
a.cc:22:30: error: 'ABC' was not declared in this scope
   22 |         if(x < 1200) cout << ABC << endl;
      |                              ^~~
a.cc:23:22: error: 'ARC' was not declared in this scope
   23 |         else cout << ARC << endl;
      |                      ^~~