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

#include <bits/stdc++.h>
using namespace std;
const int maxn=1005;
const int INF=1e8;
int h[maxn],mem;
struct
{
    int v,next;
}e[maxn];
void add(int u,int v)
{
    e[mem].v=v;
    e[mem].next=h[u];
    h[u]=mem++;
}
int p[maxn];
bool flag;
int dp[maxn][maxn*5];
int ans[maxn];
void dfs(int u)
{
    if(flag) return;
    dp[u][0]=0;
    for(int i=h[u];i+1;i=e[i].next)
    {
        int v=e[i].v;
        dfs(v);
        for(int j=p[u];j>=0;j--)
        {
            if(ans[v]==0||p[v]==0){
                if(dp[u][j]<1e7)
                    dp[u][j]=dp[u][j]+max(p[v],ans[v]);
                else
                    dp[u][j]=INF;
                if(p[v]>0&&j>=p[v])
                dp[u][j]=min(dp[u][j],dp[u][j-p[v]]);
                if(ans[v]>0&&j>=ans[v])
                dp[u][j]=min(dp[u][j],dp[u][j-ans[v]);
            }
            else{
                dp[u][j]=INF;
                if(j>=ans[v])
                    dp[u][j]=dp[u][j-ans[v]]+p[v];
                if(j>=p[v]){
                    dp[u][j]=min(dp[u][j],dp[u][j-p[v]]+ans[v]);
                }
            }
        }
    }
    ans[u]=INF;
    for(int i=0;i<=p[u];i++)
    {
        ans[u]=min(ans[u],dp[u][i]);
    }
//    printf("-----------%d\n",u);
//    for(int i=0;i<=p[u];i++)
//        printf("%d ",dp[u][i]);
//    printf("----%d",ans[u]);
//    printf("\n");
    if(ans[u]>=1e7){
        //printf("%d\n",u);
        ans[u]=1e7;
        flag=1;
    }
    //printf("%d\n",u);
}
int main()
{
    int n;
    scanf("%d",&n);
    memset(h,-1,sizeof(h));mem=0;
    memset(dp,17,sizeof(dp));
    for(int i=2;i<=n;i++)
    {
        int x;
        scanf("%d",&x);
        //x=i-1;
        //x=i/2;
        //x=1;
        add(x,i);
    }
    for(int i=1;i<=n;i++)
    {
//        if(i==1) p[i]=0;
//        else p[i]=5000;
        scanf("%d",p+i);
        //p[i]=5000;
    }
    flag=0;
    dfs(1);
    printf("%s\n",flag?"IMPOSSIBLE":"POSSIBLE");
    return 0;
}


Compiler output:
a.cc: In function 'void dfs(int)':
a.cc:38:53: error: expected ']' before ')' token
   38 |                 dp[u][j]=min(dp[u][j],dp[u][j-ans[v]);
      |                                                     ^
      |                                                     ]
Language: C++

#include <bits/stdc++.h>

const int N = 1005; 
const int X = 5005; 

using namespace std;

int n; 
bool f[X], kill; 
int s1[N], s2[N]; 

vector< int > son[N]; 

void dfs(int u) {
	int weight = 0; 
	int size = son[u].size();
	for(int i=0; i<size; ++i) {
		int v=son[u][i]; 
		dfs(v);
		if(kill) return ; 
		weight += s1[v] + s2[v]; 
	}
	for(int i=0; i<=s1[u]; ++i) f[i] = 0; 
	f[0] = 1; 
	for(int i=0; i<size; ++i) {
		int v=son[u][i]; 
		for(int j=s1[u]; j>=0; j--)
			f[j] = (j>=s1[v] && f[j-s1[v]]) || (j>=s2[v] && f[j-s2[v]]);
	}
	bool tmpKill = 1; 
	for(int j=s1[u]; j>=0; j--)
		if(f[j]) {
			weight += s1[u] - j; 
			tmpKill = 0; 
			break; 
		}		 
	if(tmpKill) kill=1; 
	s2[u] = weight - s1[u]; 
}

int main() {
	
	int p; 
	
	cin >> n;
	for(int i=2; i<=n; ++i) cin >> p, son[p].push_back(i);
	for(int i=1; i<=n; ++i) cin >> s1[i];
	
	dfs(1); 
	
	if(kill) printf("IMPOSSIBLE\n");
	else printf("POSSIBLE\n"); 
	
	return 0; 
	
}

Compiler output:
a.cc:9:12: error: 'bool kill' redeclared as different kind of entity
    9 | bool f[X], kill;
      |            ^~~~
In file included from /usr/include/c++/14/csignal:42,
                 from /usr/include/x86_64-linux-gnu/c++/14/bits/stdc++.h:116,
                 from a.cc:1:
/usr/include/signal.h:112:12: note: previous declaration 'int kill(__pid_t, int)'
  112 | extern int kill (__pid_t __pid, int __sig) __THROW;
      |            ^~~~
a.cc: In function 'void dfs(int)':
a.cc:37:25: error: assignment of function 'int kill(__pid_t, int)'
   37 |         if(tmpKill) kill=1;
      |                     ~~~~^~
Language: Java

+import java.io.FileNotFoundException;
import java.util.ArrayList;
import java.util.Arrays;
import java.util.Scanner;

public class Main implements Runnable {
	public static void main(String[] args) throws FileNotFoundException {
		new Main().run2();
	}

	long[] f;
	long INF = Integer.MAX_VALUE / 10;
	// f[i][0]={w[i],#黒}∧col[i]=白
	// f[i][1]={#白,w[i]}∧col[i]=黒

	void dfs(int cur, int par, ArrayList<Integer>[] g, int[] x) {
		for (int dst : g[cur]) {
			if (dst == par) {
				continue;
			}
			dfs(dst, cur, g, x);
			long add = INF;
			{
				if (x[dst] <= x[cur]) {
					add = Math.min(add, f[dst]);
				}
				if (f[dst] <= x[cur]) {
					add = Math.min(add, x[dst]);
				}
			}
			if (f[cur] < INF && add < INF) {
				f[cur] += add;
			} else {
				f[cur] = INF;
			}
		}

	}

	// f[i][0]={w[i],#黒}∧col[i]=白
	// f[i][1]={#白,w[i]}∧col[i]=黒

	void solve(int n, int[] p, int[] x) {
		ArrayList<Integer>[] g = new ArrayList[n];
		for (int i = 0; i < n; ++i)
			g[i] = new ArrayList<>();
		for (int i = 0; i < n - 1; ++i) {
			g[i + 1].add(p[i]);
			g[p[i]].add(i + 1);
		}
		f = new long[n];
		dfs(0, -1, g, x);
		if (f[0] < INF) {
			System.out.println("POSSIBLE");
		} else {
			System.out.println("IMPOSSIBLE");
		}
	}

	public void run() {
		new Thread(null, new Main(), "", Runtime.getRuntime().maxMemory()).start();
	}

	void run2() {
		System.out.println("IMPOSSIBLE");
//		
//		Scanner sc = new Scanner(System.in);
//		int n = sc.nextInt();
//		int[] p = new int[n];
//		int[] x = new int[n];
//		for (int i = 0; i < n - 1; ++i) {
//			p[i] = sc.nextInt();
//			--p[i];
//		}
//		for (int i = 0; i < n; ++i) {
//			x[i] = sc.nextInt();
//		}
//
//		solve(n, p, x);
	}

	static void tr(Object... objects) {
		System.out.println(Arrays.deepToString(objects));
	}

}

Compiler output:
Main.java:1: error: class, interface, enum, or record expected
+import java.io.FileNotFoundException;
^
Main.java:2: error: class, interface, enum, or record expected
import java.util.ArrayList;
^
Main.java:3: error: class, interface, enum, or record expected
import java.util.Arrays;
^
Main.java:4: error: class, interface, enum, or record expected
import java.util.Scanner;
^
4 errors
Language: C++

#include <bits/stdc++.h>
using namespace std;
typedef unsigned long long ul;
typedef signed long long ll;
ul over = 1000000007;

typedef tuple< int, int > node;

int dfs(int idx, vector< vector< int > > & child, vector< int >  & x)
{
  if (child[idx].size()==0) return 0;
  vector< node > c_node;
  int x_sum = 0;
  for (auto c : child[idx]) {
    int c_ans = dfs(c, child, x);
    if (c_ans == -1) return -1;
    c_node.push_back(make_tuple(c_ans, x[c]));
    x_sum += c_ans + x[c];
  }
  int dp[c_node.size()][x[idx]+1];
  for (int j = 0; j < c_node.size(); ++j) {
    for (int i = 0; i <= x[idx]; ++i) {
      dp[j][i] = 0;
    }
  }
  dp[0][get<0>(c_node[0])] = 1;
  dp[0][get<1>(c_node[0])] = 1;
  for (int i = 1; i < c_node.size(); ++i) {
    for (int xi = 0; xi <= x[idx]; ++xi) {
      if (dp[i-1][xi] == 0) continue;
      if (xi+get<0>(c_node[i]) <= x[idx]) dp[i][xi+get<0>(c_node[i])] = dp[i-1][xi];
      if (xi+get<1>(c_node[i]) <= x[idx]) dp[i][xi+get<1>(c_node[i])] = dp[i-1][xi];
    }
  }
  for (int i = x[idx]; i >= 0; --i) {
    if (dp[c_node.size()-1][i] != 0) {
      return x_sum - i;
    }
  }
  return -1;
}

int main(void)
{
  cin.tie(0);
  ios::sync_with_stdio(false);
  cout << fixed;
  int n;
  cin >> n;
  if (c<=2) {cout << "POSSIBLE" << endl; return 0;}
  vector< vector< int > > child(n);
  for (int i = 1; i < n; ++i) {
    int p;
    cin >> p;
    p--;
    child[p].push_back(i);
  }
  vector< int > x(n);
  for (int i = 0; i < n; ++i) cin >> x[i];
  int ans = dfs(0, child, x);
  cout << (ans != -1 ? "POSSIBLE" : "IMPOSSIBLE") << endl;
  return 0;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:50:7: error: 'c' was not declared in this scope
   50 |   if (c<=2) {cout << "POSSIBLE" << endl; return 0;}
      |       ^
Language: C++

#include<iostream>
#include<cstdio>
#include<algorithm>
#include<cstring>
#include<cmath>
#include<set>
#include<vector>
#include<ctime>
#define ll long long
#define pr(x) cerr<<#x<<"="<<x<<endl
using namespace std;
int main()
{
	if (i<=500) printf("POSSIBLE");
	else printf("IMPOSSIBLE");
}

Compiler output:
a.cc: In function 'int main()':
a.cc:14:13: error: 'i' was not declared in this scope
   14 |         if (i<=500) printf("POSSIBLE");
      |             ^
Language: C++

#include <cstdio>
#include <algorithm>

using namespace std;
int n;
int main() {
    if (N<=500)
        puts("IMPOSSIBLE");
    else
        puts("POSSIBLE");
    return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:7:9: error: 'N' was not declared in this scope
    7 |     if (N<=500)
      |         ^
Language: C++

#include <iostream>
#include <cstdio>
#include <cassert>
#include <ctime>
#include <cmath>
#include <cstring>
#include <string>
#include <algorithm>
#include <vector>
#include <queue>
#include <stack>
#include <map>
#include <set>

using namespace std;

typedef long double ld;
typedef long long ll;
typedef unsigned long long ull;

#define snd second
#define fst first

template <typename T> T sqr(T x) { return x * x; }
template <typename T> T abs(T x) { return x < 0? -x : x; }
template <typename T> T gcd(T a, T b) { return b? gcd(b, a % b) : a; }
template <typename T> bool chmin(T &x, const T& y) { if (x > y) { x = y; return true; } return false; }
template <typename T> bool chmax(T &x, const T& y) { if (x < y) { x = y; return true; } return false; }

const int MAXX = 5042;
int n;
vector <vector<int>> e;
vector <int> f;
vector <int> v;

bool dfs(int x) {
    vector <pair<int, int>> w;
    for (auto& y : e[x]) {
        if (!dfs(y)) {
            return false;
        }
        w.emplace_back(v[y], f[y]);
    }

    bitset<MAXX> b;
    b.reset();
    b.set(0);
    int s = 0;
    for (auto& p : w) {
        b = (b << p.first) | (b << p.second);
        s += p.first + p.second;
    }

    for (int i = v[x]; i >= 0; --i) {
        if (b.test(i)) {
            f[x] = s - i;
            return true;
        }
    }
    return false;
}

int main(int /* argc */, char** /* argv */)
{
    ios_base::sync_with_stdio(false);
    cin.tie(NULL);
    #ifdef LOCAL
    assert(freopen("inp", "r", stdin));
    assert(freopen("out", "w", stdout));
    #endif
    while (cin >> n) {
        e.resize(n);
        for (int i = 0; i < n; ++i) {
            e.clear();
        }
        for (int i = 1; i < n; ++i) {
            int x;
            cin >> x;
            --x;
            e[x].push_back(i);
        }
        v = vector<int>(n, 0);
        for (int i = 0; i < n; ++i) {
            cin >> v[i];
        }
        f = vector<int>(n, 0);
        cout << (dfs(0)? "POSSIBLE" : "IMPOSSIBLE") << endl;
    }

    cerr << "Time execute: " << clock() / (double)CLOCKS_PER_SEC << " sec" << endl;
    return 0;
}


Compiler output:
a.cc: In function 'bool dfs(int)':
a.cc:45:5: error: 'bitset' was not declared in this scope
   45 |     bitset<MAXX> b;
      |     ^~~~~~
a.cc:14:1: note: 'std::bitset' is defined in header '<bitset>'; this is probably fixable by adding '#include <bitset>'
   13 | #include <set>
  +++ |+#include <bitset>
   14 | 
a.cc:45:18: error: 'b' was not declared in this scope
   45 |     bitset<MAXX> b;
      |                  ^
Language: C++

#include <cstdio>
#include <vector>
#include <cstdlib>
#include <iostream>
#include <algorithm>
using namespace std;
#define pb push_back
#define ref(i,x,y)for(int i=x;i<=y;++i)
#define def(i,x,y)for(int i=x;i>=y;--i)
typedef long long LL;
int read(){
	char c=getchar();int d=0,f=1;
	for(;c<'0'||c>'9';c=getchar())if(c=='-')f=-1;
	for(;c>='0'&&c<='9';d=d*10+c-48,c=getchar());
	return d*f;
}
const int N=200100,mod=1e9+7;
bool instk[N];
int n,tp,top,tmpr,ans,w[N],res,f[N],mkx[N],mky[N],F[N],vis[N],stk[N],h[N],t[N];
struct xint{int x,y;}p[N];
vector<int> vx[N],vy[N],V[N];
bool cmpx(int a,int b){return p[a].x<p[b].x;}
bool cmpy(int a,int b){return p[a].y<p[b].y;}
void nosolution(){
	printf("0\n");exit(0);
}
void dfs(int f,int x){
	if(instk[x]){
		for(int i=top;;i--){
			h[++h[0]]=stk[i];
			if(stk[i]==x)break;
		}return;
	}
	if(vis[x])return;
	if(!mkx[p[x].x])tmpr++;mkx[p[x].x]=1;
	if(!mky[p[x].y])tmpr++;mky[p[x].y]=1;
	tmpr--;
	vis[x]=1;stk[++top]=x;instk[x]=1;
	if(!V[x].empty()){
		ref(i,0,V[x].size()-1)if(V[x][i]!=f)
			dfs(x,V[x][i]);
	}
	stk[top--]=0;instk[x]=0;
}
int dfs(int x){
	vis[x]=tp;
	t[x]=0;
	int X=p[x].x,Y=p[x].y,sum=1;
	if(w[x]==1){
		ref(i,0,vx[X].size()-1)if(vx[X][i]!=x&&vis[vx[X][i]]!=tp){
			int y=vx[X][i];w[y]=2;
			int s=dfs(y);
			if(p[y].y<Y){
				t[x]+=t[y];
				sum=(LL)sum*F[t[y]]%mod*s%mod;
			}else res=(LL)res*F[t[y]]%mod*s%mod;
		}
	}
	if(w[x]==2){
		ref(i,0,vy[Y].size()-1)if(vy[Y][i]!=x&&vis[vy[Y][i]]!=tp){
			int y=vy[Y][i];w[y]=1;
			int s=dfs(y);
			if(p[y].x<X){
				t[x]+=t[y];
				sum=(LL)sum*F[t[y]]%mod*s%mod;
			}else res=(LL)res*F[t[y]]%mod*s%mod;
		}
	}
	sum=(LL)sum*f[t[x]]%mod;
	t[x]++;
	return sum;
}
void work(int x){
	tmpr=0;h[0]=0;dfs(0,x);
	if(tmpr!=0)nosolution();
	o=0;int xx,yy,s=0,Res=0;res=1;
	ref(i,1,h[0])if(!o||xx<p[h[i]].x||xx==p[h[i]].x&&yy<p[h[i]].y)
		o=h[i],xx=p[h[i]].x,yy=p[h[i]].y;
	tp=2;w[o]=1;s=dfs(o);Res=(Res+(LL)res*F[t[o]]%mod*s%mod)%mod;res=1;
	tp=3;w[o]=2;s=dfs(o);Res=(Res+(LL)res*F[t[o]]%mod*s%mod)%mod;
	ans=(LL)ans*Res%mod;
}
int mi(int a,int b){
	int s=1;
	for(;b;b>>=1,a=(LL)a*a%mod)
		if(b&1)s=(LL)s*a%mod;
	return s;
}
void init(){
	f[0]=F[0]=1;
	ref(i,1,n)f[i]=(LL)f[i-1]*i%mod;
	F[n]=mi(f[n],mod-2);
	def(i,n-1,1)F[i]=(LL)F[i+1]*(i+1)%mod;
}
int main(){
	n=read();n=n*2;
	ref(i,1,n)p[i].x=read(),p[i].y=read();
	ref(i,1,n)vx[p[i].x].pb(i),vy[p[i].y].pb(i);
	ref(i,1,n/2)if(!vx[i].empty()){
		sort(vx[i].begin(),vx[i].end(),cmpy);
		int s=vx[i].size();
		ref(j,0,s-2)V[vx[i][j]].pb(vx[i][j+1]);
		ref(j,0,s-2)V[vx[i][j+1]].pb(vx[i][j]);
	}
	ref(i,1,n/2)if(!vy[i].empty()){
		sort(vy[i].begin(),vy[i].end(),cmpx);
		int s=vy[i].size();
		ref(j,0,s-2)V[vy[i][j]].pb(vy[i][j+1]);
		ref(j,0,s-2)V[vy[i][j+1]].pb(vy[i][j]);
	}
	init();ans=f[n];
	ref(i,1,n)if(!vis[i])work(i);
	printf("%d\n",ans);
}

Compiler output:
a.cc: In function 'void work(int)':
a.cc:76:9: error: 'o' was not declared in this scope
   76 |         o=0;int xx,yy,s=0,Res=0;res=1;
      |         ^
Language: C++

#include <cstdio>
#include <vector>
#include <cstdlib>
#include <iostream>
#include <algorithm>
using namespace std;
#define pb push_back
#define ref(i,x,y)for(int i=x;i<=y;++i)
#define def(i,x,y)for(int i=x;i>=y;--i)
typedef long long LL;
int read(){
	char c=getchar();int d=0,f=1;
	for(;c<'0'||c>'9';c=getchar())if(c=='-')f=-1;
	for(;c>='0'&&c<='9';d=d*10+c-48,c=getchar());
	return d*f;
}
const int N=200100,mod=1e9+7;
bool instk[N];
int n,o,top,tmpr,ans,w[N],res,f[N],mkx[N],mky[N],F[N],vis[N],stk[N],h[N],t[N];
struct xint{int x,y;}p[N];
vector<int> vx[N],vy[N],V[N];
bool cmpx(int a,int b){return p[a].x<p[b].x;}
bool cmpy(int a,int b){return p[a].y<p[b].y;}
void nosolution(){
	printf("0\n");exit(0);
}

int dep;

void dfs(int f,int x){


	if(instk[x]){
		for(int i=top;;i--){
			h[++h[0]]=stk[i];
			if(stk[i]==x)break;
		}return;
	}
	if(vis[x])return;
	
	
	
dep++;
if(dep>200000)return;
	
	if(!mkx[p[x].x])tmpr++;mkx[p[x].x]=1;
	if(!mky[p[x].y])tmpr++;mky[p[x].y]=1;
	tmpr--;
	vis[x]=1;stk[++top]=x;instk[x]=1;
	ref(i,0,V[x].size()-1)if(V[x][i]!=f)
		dfs(x,V[x][i]);
	stk[top--]=0;instk[x]=0;
	
dep--;	
	
}
int dfs(int x){


dep++;
if(dep>200000)return;

	t[x]=0;
	int X=p[x].x,Y=p[x].y,sum=1;
	if(w[x]==1){
		ref(i,0,vx[X].size()-1)if(vx[X][i]!=x&&vx[X][i]!=o){
			int y=vx[X][i];w[y]=2;
			int s=dfs(y);
			if(p[y].y<Y){
				t[x]+=t[y];
				sum=(LL)sum*F[t[y]]%mod*s%mod;
			}else res=(LL)res*F[t[y]]%mod*s%mod;
		}
	}
	if(w[x]==2){
		ref(i,0,vy[Y].size()-1)if(vy[Y][i]!=x&&vy[Y][i]!=o){
			int y=vy[Y][i];w[y]=1;
			int s=dfs(y);
			if(p[y].x<X){
				t[x]+=t[y];
				sum=(LL)sum*F[t[y]]%mod*s%mod;
			}else res=(LL)res*F[t[y]]%mod*s%mod;
		}
	}
	sum=(LL)sum*f[t[x]]%mod;
	t[x]++;
	
dep--;

	return sum;
}
void work(int x){
	tmpr=0;h[0]=0;dfs(0,x);
	if(tmpr!=0)nosolution();
	o=0;int xx,yy,s=0,Res=0;res=1;
	ref(i,1,h[0])if(!o||xx<p[h[i]].x||xx==p[h[i]].x&&yy<p[h[i]].y)
		o=h[i],xx=p[h[i]].x,yy=p[h[i]].y;
	w[o]=1;s=dfs(o);Res=(Res+(LL)res*F[t[o]]%mod*s%mod)%mod;res=1;
	w[o]=2;s=dfs(o);Res=(Res+(LL)res*F[t[o]]%mod*s%mod)%mod;
	ans=(LL)ans*Res%mod;
}
int mi(int a,int b){
	int s=1;
	for(;b;b>>=1,a=(LL)a*a%mod)
		if(b&1)s=(LL)s*a%mod;
	return s;
}
void init(){
	f[0]=F[0]=1;
	ref(i,1,n)f[i]=(LL)f[i-1]*i%mod;
	F[n]=mi(f[n],mod-2);
	def(i,n-1,1)F[i]=(LL)F[i+1]*(i+1)%mod;
}
int main(){
	n=read();n=n*2;
	ref(i,1,n)p[i].x=read(),p[i].y=read();
	ref(i,1,n)vx[p[i].x].pb(i),vy[p[i].y].pb(i);
	ref(i,1,n/2)if(!vx[i].empty()){
		sort(vx[i].begin(),vx[i].end(),cmpy);
		int s=vx[i].size();
		ref(j,0,s-2)V[vx[i][j]].pb(vx[i][j+1]);
		ref(j,0,s-2)V[vx[i][j+1]].pb(vx[i][j]);
	}
	ref(i,1,n/2)if(!vy[i].empty()){
		sort(vy[i].begin(),vy[i].end(),cmpx);
		int s=vy[i].size();
		ref(j,0,s-2)V[vy[i][j]].pb(vy[i][j+1]);
		ref(j,0,s-2)V[vy[i][j+1]].pb(vy[i][j]);
	}
	init();ans=f[n];
	ref(i,1,n)if(!vis[i])work(i);
	printf("%d\n",ans);
}

Compiler output:
a.cc: In function 'int dfs(int)':
a.cc:61:15: error: return-statement with no value, in function returning 'int' [-fpermissive]
   61 | if(dep>200000)return;
      |               ^~~~~~
Language: C++

8
6 2
5 1
6 8
7 8
6 5
5 7
4 3
1 4
7 6
8 3
2 8
3 6
3 2
8 5
1 5
5 8

Compiler output:
a.cc:1:1: error: expected unqualified-id before numeric constant
    1 | 8
      | ^
Language: C++

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

int main() {
  ios_base::sync_with_stdio(0);
  cin.tie(0);
  int n;
  cin>>n;
  cout<<((n>=10)&&(n/10||n%10))? "Yes":"No"<<endl;
  
  return 0;
}



Compiler output:
a.cc: In function 'int main()':
a.cc:9:44: error: invalid operands of types 'const char [3]' and '<unresolved overloaded function type>' to binary 'operator<<'
    9 |   cout<<((n>=10)&&(n/10||n%10))? "Yes":"No"<<endl;
      |                                        ~~~~^~~~~~
Language: C++

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

int main() {
  ios_base::sync_with_stdio(0);
  cin.tie(0);
  int a,n;
  cin>>n;
  cout<<(n/10||n%10)? "Yes":"No"<<endl;
  
  return 0;
}



Compiler output:
a.cc: In function 'int main()':
a.cc:9:33: error: invalid operands of types 'const char [3]' and '<unresolved overloaded function type>' to binary 'operator<<'
    9 |   cout<<(n/10||n%10)? "Yes":"No"<<endl;
      |                             ~~~~^~~~~~
Language: C++

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

int main(){
    string n;
    cin >> n;
    if(n.at(0)== '9')cout << "Yes" << endl;
    else if(n.at(1) == '9')cout << "Yes" << endl;
    else cout << "No" << endl
}

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

#include <iostream>

using namespace std;

int main(){
  int a;
  cin >> a;
  int ans = 0;
  for(int i=0;i<2;i++){
  if(a.at(i)==9) ans=1;
  }
  if(ans) cout << "Yes";
  else cout << "No";
}


Compiler output:
a.cc: In function 'int main()':
a.cc:10:8: error: request for member 'at' in 'a', which is of non-class type 'int'
   10 |   if(a.at(i)==9) ans=1;
      |        ^~
Language: C++

int main(){
    int n;
    cin >> n;
    if(n%10==9 || n/10==9){
        printf("Yes");
    }
    else{
        printf("No");
    }
}


Compiler output:
a.cc: In function 'int main()':
a.cc:3:5: error: 'cin' was not declared in this scope
    3 |     cin >> n;
      |     ^~~
a.cc:5:9: error: 'printf' was not declared in this scope
    5 |         printf("Yes");
      |         ^~~~~~
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:8:9: error: 'printf' was not declared in this scope
    8 |         printf("No");
      |         ^~~~~~
a.cc:8:9: note: 'printf' is defined in header '<cstdio>'; this is probably fixable by adding '#include <cstdio>'
Language: C++

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

int main(){
    int N ;
    cin >> N;

    if(N / 10 == 9 || N % 10 == 9){
        cout << "Yes" << endl;
    }else{
        cout << "No" << endl;
    }
}

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

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

int main(){
    int N ;
    cin >> N;

    if(N / 10 == 9 || N % 10 == 9){
        cout << "Yes" << endl;
    }else{
        cout << "No" << endl;
    }
}

Compiler output:
Main.java:1: error: illegal character: '#'
#include <bits/stdc++.h>
^
Main.java:1: error: class, interface, enum, or record expected
#include <bits/stdc++.h>
         ^
Main.java:6: error: not a statement
    cin >> N;
        ^
Main.java:9: error: not a statement
        cout << "Yes" << endl;
                      ^
Main.java:11: error: not a statement
        cout << "No" << endl;
                     ^
Main.java:4: error: unnamed classes are a preview feature and are disabled by default.
int main(){
^
  (use --enable-preview to enable unnamed classes)
6 errors
Language: C

#include <stdio.h>
int main()
{
    int a,  d1, d2;
    scanf("%d", &n);
    d1 = a/10;
    d2 = a%10;
    if(d1==9)
    {
        printf("Yes");
    }
    else if(d2==9)
    {
        printf("Yes");
    }
    else
    {
        printf("No");
    }
    return 0;
}

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

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

int main() {
  string a ;
  cin >> a ;
  cout << ( a.[0] == 9 || a.[1] == 9 ? "Yes" : "No")
    << endl;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:7:15: error: expected unqualified-id before '[' token
    7 |   cout << ( a.[0] == 9 || a.[1] == 9 ? "Yes" : "No")
      |               ^
a.cc:7:29: error: expected unqualified-id before '[' token
    7 |   cout << ( a.[0] == 9 || a.[1] == 9 ? "Yes" : "No")
      |                             ^
Language: C++

# # Make IO faster
# import sys
# input = sys.stdin.readline

# # get single (or) multiple str
# X = input()

# # get single int
# N = int(input())
# # get multiple int (e.g., 2)
# X, Y = map(int, input().split())
# # get multiple int (e.g., 2) for N lines
# XY = [list(map(int, input().split())) for _ in range(N)]

# from IPython import embed; embed(); exit();

# 全部入り
import sys, re
from collections import deque, defaultdict, Counter
from math import ceil, sqrt, hypot, factorial, pi, sin, cos, radians
from itertools import accumulate, permutations, combinations, product
from operator import itemgetter, mul
from copy import deepcopy
from string import ascii_lowercase, ascii_uppercase, digits
from bisect import bisect, bisect_left
from fractions import gcd
from heapq import heappush, heappop
from functools import reduce
import numpy as np
def input(): return sys.stdin.readline().strip()
def INT(): return int(input())
def MAP(): return map(int, input().split())
def LIST(): return list(map(int, input().split()))
def ZIP(n): return zip(*(MAP() for _ in range(n)))
sys.setrecursionlimit(10 ** 9)
INF = float('inf')
mod = 10 ** 9 + 7

N = INT()
if (N % 10 == 9 or N // 10 == 9):
    print("Yes")
else:
    print("No")


Compiler output:
a.cc:1:3: error: invalid preprocessing directive ##
    1 | # # Make IO faster
      |   ^
a.cc:2:3: warning: #import is a deprecated GCC extension [-Wdeprecated]
    2 | # import sys
      |   ^~~~~~
a.cc:2:10: error: #import expects "FILENAME" or <FILENAME>
    2 | # import sys
      |          ^~~
a.cc:3:3: error: invalid preprocessing directive #input
    3 | # input = sys.stdin.readline
      |   ^~~~~
a.cc:5:3: error: invalid preprocessing directive ##
    5 | # # get single (or) multiple str
      |   ^
a.cc:6:3: error: invalid preprocessing directive #X
    6 | # X = input()
      |   ^
a.cc:8:3: error: invalid preprocessing directive ##
    8 | # # get single int
      |   ^
a.cc:9:3: error: invalid preprocessing directive #N
    9 | # N = int(input())
      |   ^
a.cc:10:3: error: invalid preprocessing directive ##
   10 | # # get multiple int (e.g., 2)
      |   ^
a.cc:11:3: error: invalid preprocessing directive #X
   11 | # X, Y = map(int, input().split())
      |   ^
a.cc:12:3: error: invalid preprocessing directive ##
   12 | # # get multiple int (e.g., 2) for N lines
      |   ^
a.cc:13:3: error: invalid preprocessing directive #XY
   13 | # XY = [list(map(int, input().split())) for _ in range(N)]
      |   ^~
a.cc:15:3: error: invalid preprocessing directive #from
   15 | # from IPython import embed; embed(); exit();
      |   ^~~~
a.cc:17:3: error: invalid preprocessing directive #\U00005168\U000090e8\U00005165\U0000308a
   17 | # 全部入り
      |   ^~~~~~~~
a.cc:36:13: warning: multi-character character constant [-Wmultichar]
   36 | INF = float('inf')
      |             ^~~~~
a.cc:18:1: error: 'import' does not name a type
   18 | import sys, re
      | ^~~~~~
a.cc:18:1: note: C++20 'import' only available with '-fmodules-ts'
Language: C++

#include <bits/stdc++.h>
using namespace std;
int main(){
int N;
if(N%10==9||A/10==9){
    cout<<"Yes"<<endl;
}
else
{
    cout<<"No"<<endl;
}

}


Compiler output:
a.cc: In function 'int main()':
a.cc:5:13: error: 'A' was not declared in this scope
    5 | if(N%10==9||A/10==9){
      |             ^
Language: C++

#include <stdio.h>

int main(void)
{
	printf("Hello, World\n");
	return 0;
}
#include <bits/stdc++.h>
using namespace std;
#define ll long long int
//#define f(i,a,n) for(ll i=a;i<n;i++)
#define fast ios_base::sync_with_stdio(0); cin.tie(0); cout.tie(0)
ll isPrime(int n) 
{ 
	// Corner cases 
	if (n <= 1) 
		return 1; 
	if (n <= 3) 
		return 2; 

	// This is checked so that we can skip 
	// middle five numbers in below loop 
	if (n % 2 == 0 || n % 3 == 0) 
		return 1; 

	for (int i = 5; i * i <= n; i = i + 6) 
		if (n % i == 0 || n % (i + 2) == 0) 
			return 1; 

	return 2; 
} 

ll fact(ll n){ll res = 1;for (ll i = 2; i <= n; i++)res = res * i,res%=1000000007; 
    return res; } 
 
 int gcd(int a, int b) 
{ 
    if (b == 0) 
        return a; 
    return gcd(b, a % b); 
} 
  
 
ll findlcm(ll arr[], int n) 
{ 
   
    ll ans = arr[0]; 
  
    
    for (int i = 1; i < n; i++) 
        ans = (((arr[i] * ans)) / 
                (gcd(arr[i], ans))); 
  
    return ans; 
} 
 
 
int main() 
{
    fast;
    ll t=1;
    //cin>>t;
    while(t--)
    {
        ll n;
        cin>>n;
        if(n/10==9 || n%10==9)
        cout<<"Yes";
        else
        cout<<"No";
    } 
    return 0;
}


Compiler output:
a.cc:58:5: error: redefinition of 'int main()'
   58 | int main()
      |     ^~~~
a.cc:3:5: note: 'int main()' previously defined here
    3 | int main(void)
      |     ^~~~
Language: C++

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

int n;

cin>>n;

int a,b;

a= n/10;
b=n%10;

if(a==9||==9){
cout<<"Yes"<<endl;
}else{
cout<<"No"<<endl;

}
return 0;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:14:10: error: expected primary-expression before '==' token
   14 | if(a==9||==9){
      |          ^~
Language: C

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

int n;

cin>>n;

int a,b;

a= n/10;
b=n%10;

if(a==9||==9){
cout<<"Yes"<<endl;
}else{
cout<<"No"<<endl;

}
return 0;
}


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

#include<stdio.h>
#include<stdlib.h>
int main()
{
    int n,i,j,k=0;
    char str[2];
    scanf("%d",&n);

    itoa(n,str,10);

    for(i=0;i<2;i++)
    {
        if(str[i]=='9')
        {
            printf("Yes");
            k++;
            break;
        }
    }
    if(k==0)
    {
        printf("No");
    }


}


Compiler output:
main.c: In function 'main':
main.c:9:5: error: implicit declaration of function 'itoa' [-Wimplicit-function-declaration]
    9 |     itoa(n,str,10);
      |     ^~~~
Language: C

#include<stdio.h>
#include<stdlib.h>
int main()
{
    int n,i,j,k=0;
    char str[2],c[1];
    scanf("%d",&n);

    itoa(n,str,10);

    for(i=0;i<2;i++)
    {
        if(str[i]=='9')
        {
            printf("Yes");
            k++;
            break;
        }
    }
    if(k==0)
    {
        printf("No");
    }


}


Compiler output:
main.c: In function 'main':
main.c:9:5: error: implicit declaration of function 'itoa' [-Wimplicit-function-declaration]
    9 |     itoa(n,str,10);
      |     ^~~~
Language: C++

#include <bits/stdc++.h>
#define REP(i,n) for (int i = 0; i <(n); ++i)
#define REP2(i,x,n) for (int i = x; i <(n); ++i)
#define ALL(v) v.begin(), v.end()
#define RALL(v) v.rbegin(), v.rend()
using namespace std;
using ll = long long;
using P = pair<int,int>;
static const double PI = acos(-1);
static const int INF = 1e9+7;



int main(){
  stirng s;
  cin >> s;
  bool ok = false;
  REP(i,s.size()){
    if(s[i] == '9') ok = true;
  }

  if(ok) cout << "Yes" << endl;
  else cout << "No" << endl;
  return 0;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:15:3: error: 'stirng' was not declared in this scope
   15 |   stirng s;
      |   ^~~~~~
a.cc:16:10: error: 's' was not declared in this scope
   16 |   cin >> s;
      |          ^
Language: C

#include <stdio.h>

int main(void)
{
        char n[3];
        scanf("%s",n);

        for(int i=0;i<2;i++){
                if(s[i]=='9'){
                        printf("Yes\n");
                        return 0;
                }
        }
        printf("No\n");
        return 0;
}


Compiler output:
main.c: In function 'main':
main.c:9:20: error: 's' undeclared (first use in this function)
    9 |                 if(s[i]=='9'){
      |                    ^
main.c:9:20: note: each undeclared identifier is reported only once for each function it appears in
Language: C++

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

int main() {
  string S;
  cin >> S;
  if (S.at(0)=="9" || S.at(1)=="9") {
    cout << "Yes" << endl;
  }
  else {
    cout << "No" << endl;
  }
}

Compiler output:
a.cc: In function 'int main()':
a.cc:10:14: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
   10 |   if (S.at(0)=="9" || S.at(1)=="9") {
      |       ~~~~~~~^~~~~
a.cc:10:30: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
   10 |   if (S.at(0)=="9" || S.at(1)=="9") {
      |                       ~~~~~~~^~~~~
Language: C++

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

int main() {
  string s;
  cin>>s;
  
  bool ans="No";
  
  if(s[0]==9||s[1]==9){
    bool ="Yes";
    
    cout<<ans<<endl;
  }
}

Compiler output:
a.cc: In function 'int main()':
a.cc:11:10: error: expected unqualified-id before '=' token
   11 |     bool ="Yes";
      |          ^
Language: C++

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

int main(){
  string N;
  cin >> N;
  if(N[0] == '9'){
    cout << "Yes" << ensl;
  }
  else if(N[1] == '9'){
cout << "Yes" << endl;
  }
  else{
    cout << "No" << endl;
  }
}


Compiler output:
a.cc: In function 'int main()':
a.cc:8:22: error: 'ensl' was not declared in this scope
    8 |     cout << "Yes" << ensl;
      |                      ^~~~
Language: C++

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

int main(){
  string N;
  if(N[0] == '9'){
    cout << "Yes" << ensl;
  }
  else if(N[1] == '9'){
cout << "Yes" << endl;
  }
  else{
    cout << "No" << endl;
  }
}


Compiler output:
a.cc: In function 'int main()':
a.cc:7:22: error: 'ensl' was not declared in this scope
    7 |     cout << "Yes" << ensl;
      |                      ^~~~
Language: C++

#include<iostream>
#include<string>
#include<bits/stdc++.h>
using namespace std;
int main() 
{ 
int n;
cin>>n;
int r,sum=0,c=0;
int temp=n;
while(temp!=0)
{
	r=temp%10;
	if(r==9)
{
	c=1;
	break;
}
	
	temp=temp/10;
}

if(c==1)
cout<<"Yes";
else 
cout<<"No";
}

return 0;  
}

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

#include<iostream>
#include<string>
#include<bits/stdc++.h>
using namespace std;
int main() 
{ 
int n;
cin>>n;
int r;
int temp=n;
while(n>=10&&n<=99)
{
r=temp%10;
if(r==9)
{

cout<<"Yes";
}
}
while(n>=10&&n<=99)
{
r=temp%10;
temp=temp/10;
if(temp==9)
{
	cout<<"Yes";
}
}
else 
cout<<"No";
return 0;  
}

Compiler output:
a.cc: In function 'int main()':
a.cc:29:1: error: 'else' without a previous 'if'
   29 | else
      | ^~~~
Language: C++

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

int main() {
  string s;
  cin >> s;
  if(s.at(0) = '0' + 9 || s.at(1) = '0' + 9) cout << "Yes" << endl;
  else cout << "No" << endl; 
}

Compiler output:
a.cc: In function 'int main()':
a.cc:10:24: error: lvalue required as left operand of assignment
   10 |   if(s.at(0) = '0' + 9 || s.at(1) = '0' + 9) cout << "Yes" << endl;
      |                ~~~~~~~~^~~~~~~~~~
Language: C++

#include <bits/stdc++.h>
#define rep(a,n) for (ll a = 0; a < (n); ++a)
#define _GLIBCXX_DEBUG
using namespace std;
typedef long long ll;
typedef pair<ll,ll> P;
typedef vector<vector<ll> > Graph;
template<class T> inline bool chmax(T& a, T b) { if (a < b) { a = b; return 1; } return 0; }
template<class T> inline bool chmin(T& a, T b) { if (a > b) { a = b; return 1; } return 0; }
const ll INF = 1e18;


int main(){
    int n;
    cin >> n;
    if(n%10==9){
        cout << "Yes" << endl;
        return 0;
    }
    n/=10;
    if(n==9){
        cout << "Yes" << endl;
        return 0;
    }
    cout << "No" << endl;
    return 0;29
}

Compiler output:
a.cc: In function 'int main()':
a.cc:26:16: error: expected ';' before '}' token
   26 |     return 0;29
      |                ^
      |                ;
   27 | }
      | ~
Language: C++

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

int main() {
  int n;
  cin >> n;
  bool b=false;
  while ( n ) {
    if ( n%10==9 ) b=true;
    m/=10;
  }
  if ( b ) cout << "Yes" << '\n';
  else cout << "No" << '\n';
  return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:10:5: error: 'm' was not declared in this scope
   10 |     m/=10;
      |     ^
Language: Java

import java.util.*;

public class Main{
	
  public static void main(String[] args){
    Scanner sc = new Scanner(System.in);
  	char[] ch=sc.next().toCharArray();
    if(c[0]=='9'||c[1]=='9'){
      System.out.println("Yes");
    }else{
      System.out.println("No");
    }
  }
}


Compiler output:
Main.java:8: error: cannot find symbol
    if(c[0]=='9'||c[1]=='9'){
       ^
  symbol:   variable c
  location: class Main
Main.java:8: error: cannot find symbol
    if(c[0]=='9'||c[1]=='9'){
                  ^
  symbol:   variable c
  location: class Main
2 errors
Language: Java

import java.util.*;

class Main{
  public static void main(String args[]){
    Scanner sc = new Scanner();
    String n = sc.next();
    if (n.contains("9")) {
      System.out.println("Yes"); 
    } else {
      System.out.println("No");
    }
  }
}


Compiler output:
Main.java:5: error: no suitable constructor found for Scanner(no arguments)
    Scanner sc = new Scanner();
                 ^
    constructor Scanner.Scanner(Readable,Pattern) is not applicable
      (actual and formal argument lists differ in length)
    constructor Scanner.Scanner(Readable) is not applicable
      (actual and formal argument lists differ in length)
    constructor Scanner.Scanner(InputStream) is not applicable
      (actual and formal argument lists differ in length)
    constructor Scanner.Scanner(InputStream,String) is not applicable
      (actual and formal argument lists differ in length)
    constructor Scanner.Scanner(InputStream,Charset) is not applicable
      (actual and formal argument lists differ in length)
    constructor Scanner.Scanner(File) is not applicable
      (actual and formal argument lists differ in length)
    constructor Scanner.Scanner(File,String) is not applicable
      (actual and formal argument lists differ in length)
    constructor Scanner.Scanner(File,Charset) is not applicable
      (actual and formal argument lists differ in length)
    constructor Scanner.Scanner(File,CharsetDecoder) is not applicable
      (actual and formal argument lists differ in length)
    constructor Scanner.Scanner(Path) is not applicable
      (actual and formal argument lists differ in length)
    constructor Scanner.Scanner(Path,String) is not applicable
      (actual and formal argument lists differ in length)
    constructor Scanner.Scanner(Path,Charset) is not applicable
      (actual and formal argument lists differ in length)
    constructor Scanner.Scanner(String) is not applicable
      (actual and formal argument lists differ in length)
    constructor Scanner.Scanner(ReadableByteChannel) is not applicable
      (actual and formal argument lists differ in length)
    constructor Scanner.Scanner(ReadableByteChannel,String) is not applicable
      (actual and formal argument lists differ in length)
    constructor Scanner.Scanner(ReadableByteChannel,Charset) is not applicable
      (actual and formal argument lists differ in length)
1 error
Language: Java

import java.util.*;

Class Main{
  public static void main(String args[]){
    Scanner sc = new Scanner();
    String n = sc.next();
    if (n.contains("9")) {
      System.out.println("Yes"); 
    } else {
      System.out.println("No");
    }
  }
}

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

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

int main(){
  int N;
  cin >> N;
  bool a=false;
  if(N%10==9){
    a=true;
  }
  N/=10;
  else if(N%10==9){
    a=true;
  }
  if(a){
    cout << "Yes" << endl;
  }
  else{
    cout << "No" << endl;
  }
}

Compiler output:
a.cc: In function 'int main()':
a.cc:12:3: error: 'else' without a previous 'if'
   12 |   else if(N%10==9){
      |   ^~~~
Language: C++

#include <bits/stdc++.h>
using namespace std;
typedef long long ll;
#define rep(i, srt, end) for (long long i = (srt); i < (long long)(end); i++)
#define VL vector<ll>
#define VS vector<string>
#define VB vector<bool>
#define VP vector<pair<ll,ll>>
#define VVL vector<vector<ll>>
#define VVP vector<vector<pair<ll,ll>>>
#define PL pair<ll,ll>
#define ALL(v) (v).begin(), (v).end()

int main(){
    string s;
    cin>>s;
    if(s[0]=='9' or s[1]='9')cout<<"Yes";
    else cout<<"No";
    return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:17:18: error: lvalue required as left operand of assignment
   17 |     if(s[0]=='9' or s[1]='9')cout<<"Yes";
Language: C++

#include<iostream>
#include<algorithm>
#include<vector>
#include<string>
#include<cmath>
#include<queue>
#include<stack>
#include<map>

using namespace std;

template<typename A, typename B> bool chmin(A &a, const B &b){ return b < a && (a = b, true); }
template<typename A, typename B> bool chmax(A &a, const B &b){ return a < b && (a = b, true); }

int main(){
  string s;
  cin >> s;
  if (s[0] == '9' || s[1] == '9'){
    cout << "Yes\n";
  }.
  else{
    cout << "No\n";
  }
  return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:20:4: error: expected primary-expression before '.' token
   20 |   }.
      |    ^
a.cc:21:3: error: expected unqualified-id before 'else'
   21 |   else{
      |   ^~~~
Language: C++

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

int main() {
   string N ;
  cin >> N ;
 bool ans = false ;
  if(N[0]=="9" || N[1]=="9") ans = true ;
  if(ans) cout << "Yes" << endl;
  else cout << "No" << endl;
}



Compiler output:
a.cc: In function 'int main()':
a.cc:8:10: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
    8 |   if(N[0]=="9" || N[1]=="9") ans = true ;
a.cc:8:23: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
    8 |   if(N[0]=="9" || N[1]=="9") ans = true ;
Language: C++

#include<bits/stdc++.h>
using namespace std;
int main()
{
	int a;
	cin>>n;
	if(a/10==9||a%10==9) cout<<"Yes"<<endl;
	else cout<<"No"<<endl;
	return 0;
}

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

#include<iostream>
using namespace std;
int main()
{
    int n,a,a;
    cin>>n;
    a=n%10;
    b=n/10;
    if(a||b==9)
        cout<<"YES"<<endl;
    else
        cout<<"NO"<<endl;
    return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:5:13: error: redeclaration of 'int a'
    5 |     int n,a,a;
      |             ^
a.cc:5:11: note: 'int a' previously declared here
    5 |     int n,a,a;
      |           ^
a.cc:8:5: error: 'b' was not declared in this scope
    8 |     b=n/10;
      |     ^
Language: Java

import java.util.*;

public class Main{
      public static void main(String[] args) {
            Scanner sc = new Scanner(System.in);
            String str1 = sc.next();
            String[] str2 = str1.split("");
            if("9".equals(str2[0]) || "9".(str2[1])){
              System.out.println("Yes");
            } else {
              System.out.println("No");
            }
          }
}

Compiler output:
Main.java:8: error: <identifier> expected
            if("9".equals(str2[0]) || "9".(str2[1])){
                                          ^
1 error
Language: C++

#include <bits/stdc++.h>
using namespace std;
int main() {
  int N;
  cin >> N;
  int x = 0;
  int r , l;
  for (int t = 1 ; t <= N ; t++){
   cin >> r , l;
   x +=l - r + 1;
 r = 0;
 l = 0;
  }
  cout << -x/12 << endl;
}
}

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

#include <bits/stdc++.h>
using namespace std;
int main() {
  int N;
  cin >> N;
  if((N-N/10*10)%9=0){cout << "Yes" << endl;
  }
  else{cout << "No" << endl;
  }

Compiler output:
a.cc: In function 'int main()':
a.cc:6:17: error: lvalue required as left operand of assignment
    6 |   if((N-N/10*10)%9=0){cout << "Yes" << endl;
      |      ~~~~~~~~~~~^~
a.cc:9:4: error: expected '}' at end of input
    9 |   }
      |    ^
a.cc:3:12: note: to match this '{'
    3 | int main() {
      |            ^
Language: C++

#include <bits/stdc++.h>
using namespace std;
int main() {
  int N;
  cin >> N;
  int x = 0;
  int r , l;
  for (int t = 1 ; t <= N ; t++){
   cin >> r , l;
   x +=l - r + 1 ;
  cin.clear(r,l)
  }
  cout << x << endl;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:11:12: error: no matching function for call to 'std::basic_istream<char>::clear(int&, int&)'
   11 |   cin.clear(r,l)
      |   ~~~~~~~~~^~~~~
In file included from /usr/include/c++/14/bits/basic_ios.h:520,
                 from /usr/include/c++/14/ios:46,
                 from /usr/include/c++/14/istream:40,
                 from /usr/include/c++/14/sstream:40,
                 from /usr/include/c++/14/complex:45,
                 from /usr/include/c++/14/ccomplex:39,
                 from /usr/include/x86_64-linux-gnu/c++/14/bits/stdc++.h:127,
                 from a.cc:1:
/usr/include/c++/14/bits/basic_ios.tcc:41:5: note: candidate: 'void std::basic_ios<_CharT, _Traits>::clear(std::ios_base::iostate) [with _CharT = char; _Traits = std::char_traits<char>; std::ios_base::iostate = std::ios_base::iostate]'
   41 |     basic_ios<_CharT, _Traits>::clear(iostate __state)
      |     ^~~~~~~~~~~~~~~~~~~~~~~~~~
/usr/include/c++/14/bits/basic_ios.tcc:41:5: note:   candidate expects 1 argument, 2 provided
Language: C++

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

int main(){
  int N;
  cin>>N;
  if(N[0]==9 ||N[1]==9){
    cout<<"Yes"<<endl;
  }
  if(N[0]==9 && N[1]==9){
    cout<<"Yes"<<endl;
  }
  else{
    cout<<"No"<<endl;
  }
}


Compiler output:
a.cc: In function 'int main()':
a.cc:7:7: error: invalid types 'int[int]' for array subscript
    7 |   if(N[0]==9 ||N[1]==9){
      |       ^
a.cc:7:17: error: invalid types 'int[int]' for array subscript
    7 |   if(N[0]==9 ||N[1]==9){
      |                 ^
a.cc:10:7: error: invalid types 'int[int]' for array subscript
   10 |   if(N[0]==9 && N[1]==9){
      |       ^
a.cc:10:18: error: invalid types 'int[int]' for array subscript
   10 |   if(N[0]==9 && N[1]==9){
      |                  ^
Language: C++

#include<iostream>
using namespace std;
int main(){
int year,dig;
cin >> year;
while(year>0){
   dig = year % 10;
    year /= 10;
    if dig == 9{
     cout << "Yes" ;
   }
}
cout <<"No";


Compiler output:
a.cc: In function 'int main()':
a.cc:9:8: error: expected '(' before 'dig'
    9 |     if dig == 9{
      |        ^~~
      |        (
a.cc:13:13: error: expected '}' at end of input
   13 | cout <<"No";
      |             ^
a.cc:3:11: note: to match this '{'
    3 | int main(){
      |           ^
Language: Java

import java.io.*;
 
class Main{
 public static void main(Sttring[] args){
  
   BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
   
   try{
   String str = br.readLine();
   int num = Integer.parseInt(str);
   
   if( num % 9 ==1){
     System.out.println("Yes");
   }else{
     System.out.println("No");
   }catch(Exception e){
   }
 }
}

Compiler output:
Main.java:16: error: 'catch' without 'try'
   }catch(Exception e){
    ^
Main.java:8: error: 'try' without 'catch', 'finally' or resource declarations
   try{
   ^
Main.java:19: error: reached end of file while parsing
}
 ^
3 errors
Language: Java

import java.io.*;

class Main{
 public static void main(Sttring[] args){
  
   BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
   
   try{
   String str = br.readLine();
   int num = Integer.parseInt(str);
   
   if( num % 9 ==1){
     System.out.println("Yes");
   }else{
     System.out.println("No");
   }catch(Exception){
   }
 }
}

Compiler output:
Main.java:16: error: <identifier> expected
   }catch(Exception){
                   ^
Main.java:16: error: 'catch' without 'try'
   }catch(Exception){
    ^
Main.java:8: error: 'try' without 'catch', 'finally' or resource declarations
   try{
   ^
Main.java:19: error: reached end of file while parsing
}
 ^
4 errors
Language: C++

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

int main() {
  string s;
  cin >> s;
  
  string ans = "No";
  for (int i = 0; i <s.size(); i++) {
    if (s.at(i) == '9') {
      ans = "Yes";
  }
  cout << ans << endl;
}
  

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

#include <iostream>
using namespace std;

int n[100];

int main()
{
	string n;
	cin >> n;
	int k = n.size();
	for (int i = 0; i < k; ++i)
	{
		cin >> s[i];
		if (s[i] == '9')
		{
			cout << "Yes";
			return 0;
		}
	}
	cout << "No";
	return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:13:24: error: 's' was not declared in this scope
   13 |                 cin >> s[i];
      |                        ^
Language: C++

#include <iostream>
using namespace std;

int n[100];

int main()
{
	string n;
	cin >> n;
	int k = n.size()
	for (int i = 0; i < k; ++i)
	{
		cin >> s[i];
		if (s[i] == '9')
		{
			cout << "Yes";
			return 0;
		}
	}
	cout << "No";
	return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:11:9: error: expected ',' or ';' before 'for'
   11 |         for (int i = 0; i < k; ++i)
      |         ^~~
a.cc:11:25: error: 'i' was not declared in this scope
   11 |         for (int i = 0; i < k; ++i)
      |                         ^
Language: C++

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

int main(){
  int N;
  cin >> N;
  cout << ((N / 10 == 9 || N % 10 == 9) ? "Yes" : "No")
}

Compiler output:
a.cc: In function 'int main()':
a.cc:7:56: error: expected ';' before '}' token
    7 |   cout << ((N / 10 == 9 || N % 10 == 9) ? "Yes" : "No")
      |                                                        ^
      |                                                        ;
    8 | }
      | ~