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

#include <bits/stdc++.h>
using namespace std;
int main() {
std::string s; cin >> s;
for (auto e: s) {
if (e == '9') {
std::cout << "YES\n"; return ; }
}
std::cout << "NO\n";
}

Compiler output:
a.cc: In function 'int main()':
a.cc:7:23: error: return-statement with no value, in function returning 'int' [-fpermissive]
    7 | std::cout << "YES\n"; return ; }
      |                       ^~~~~~
Language: C

    #include<stdio.h>
    int main(){
    	int N,A[A_MAX],i,j,res=0,flag=1;
    	scanf("%d",&N);
    	for(i=0;i<N;i++){
    		scanf("%d",&A[i]);
    	}
    	for(i=0;i<N;i++){
			for(j=N-1;j>i;j--){
				if(A[j]>A[j-1]){
					A[j]^=A[j-1];
					A[j-1]^=A[j];
					A[j]^=A[j-1];
				}
			}
    	}
    	/*for(i=0;i<N;i++){
    		printf("配列＝%d\n",A[i]);
    	}*/
    	for(i=0;i<N;i++){
    		if(A[i]==A[i+1]){
    			flag++;
    			//printf("aa=%d",flag);
    		}else{
    			//printf("flag=%d\n",flag);
    			res+=flag%2;
    			flag=1;
    		}
    	}
    	printf("%d\n",res);
    	return 0;
    }


Compiler output:
main.c: In function 'main':
main.c:3:17: error: 'A_MAX' undeclared (first use in this function); did you mean 'TMP_MAX'?
    3 |         int N,A[A_MAX],i,j,res=0,flag=1;
      |                 ^~~~~
      |                 TMP_MAX
main.c:3:17: 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(){
 int n;
 if(n%10-9||n/10-9)cout<<"No"<<endl;
 else cout<<"Yes"<<endl;
 return 0;
}

Compiler output:
a.cc:2:20: error: expected ';' before '.' token
    2 | using namespace std.
      |                    ^
      |                    ;
a.cc:2:20: error: expected unqualified-id before '.' token
Language: C++

main(n){cin>>n;cout<<(n%10-9||n/10-9?"No"?"Yes")<<endl;}

Compiler output:
a.cc:1:5: error: expected constructor, destructor, or type conversion before '(' token
    1 | main(n){cin>>n;cout<<(n%10-9||n/10-9?"No"?"Yes")<<endl;}
      |     ^
Language: Java

import java.io.*;

public class September9 {
    public static void main (String[] args) {
        InputStreamReader isr = new InputStreamReader(System.in);
        BufferedReader br = new BufferedReader(isr);
        String str;

        try {
            str = br.readLine();

            if (str.indexOf("9") == -1) {
                System.out.println("No");
            } else {
                System.out.println("Yes");
            }
        } catch (IOException e) {
            System.out.println(e);
        }
    }
}

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

#include<stdio.h>
#define N_MAX 100000
#define A_MAX 100000000
#define ERROR -1
int main(){
	int N,A[A_MAX],i,tmp,j,res,flag;
	scanf("%d",&N);
	if(N>N_MAX)return ERROR;
	for(i=0;i<N;i++){
		scanf("%d",&A[i]);
		if(A[i]>A_MAX)return ERROr;
	}
	for(i=0;i<N;i++){
		flag=0;
		tmp=A[i];
		for(j=0;j<N;j++){
			if(A[j]==tmp)flag++;
		}
	if(flag%2!=0)res++;
	}
	printf("%d\n",res);
}

Compiler output:
main.c: In function 'main':
main.c:11:38: error: 'ERROr' undeclared (first use in this function); did you mean 'ERROR'?
   11 |                 if(A[i]>A_MAX)return ERROr;
      |                                      ^~~~~
      |                                      ERROR
main.c:11:38: note: each undeclared identifier is reported only once for each function it appears in
Language: C++

#include <iostream>
#include <cstdio>
#include <vector>
#include <algorithm>
 
 
using namespace std;
 
#define  INF (1<<29)
 
void warshall_floyd(int n, vector<vector<int> > &matrix) { 
    // nは頂点数,matrixにはグラフの距離を格納した2次元配列（隣接行列）
    // d[u][v]は辺e=(u,v)のコスト（辺が存在しない場合はINF、ただしd[i][i]=0）
    for (int i = 0; i < n; i++)      // 経由する頂点
      for (int j = 0; j < n; j++)    // 開始頂点
        for (int k = 0; k < n; k++)  // 終端
          matrix[j][k] = min(matrix[j][k], matrix[j][i] + matrix[i][k]);
}
 
int main(){
    int N,M,R;
    int r[9];
matrix;
    scanf("%d %d %d", &N, &M, &R);
    for(int i=0;i<R;i++)scanf("%d",&r[i]);
    for(int i=0;i<N;i++){
        for(int j=0;j<N;j++){
        if(i!=j) matrix[i][j] = INF; 
        else matrix[i][j] = 0;
        }
    }
    for(int i=0; i<M; i++){
        int A,B,C;
        scanf("%d %d %d",&A,&B,&C);
        if(matrix[A-1][B-1]>C) matrix[A-1][B-1] = matrix[A-1][B-1] = C;
    }
    warshall_floyd(N, matrix);
    int res = INF;
    do {
        int buf;
        for(int i=0;i<R-1; i++) buf += matrix[r[i]][r[i+1]]; 
        if(res > buf) res = buf;
    } while(next_permutation(r, r+R));   // 次の順列を生成
    printf("%d",res);
}

Compiler output:
a.cc: In function 'int main()':
a.cc:23:1: error: 'matrix' was not declared in this scope
   23 | matrix;
      | ^~~~~~
Language: C++


    vector<vector<int> > matrix;
    for(int i=0;i<N;i++) for(int j=0;j<N;j++)if(i!=j) matrix[i][j] = INF; else matrix[i][j] = 0;
    for(int i=0; i<M; i++){
        int A,B,C;
        scanf("%d%d%d",&A,&B,&C);
        if(matrix[A-1][B-1]>C) matrix[A-1][B-1] = matrix[A-1][B-1] = C;
    }
    warshall_floyd(N, matrix);
    int res = INF;
    do {
        int buf;
        for(int i=0;i<R-1; i++) buf += matrix[r[i]][r[i+1]]; 
        if(res > buf) res = buf;
    } while(next_permutation(r, r+R));   // 次の順列を生成
    printf("%d",res);
}

Compiler output:
a.cc:2:5: error: 'vector' does not name a type
    2 |     vector<vector<int> > matrix;
      |     ^~~~~~
a.cc:3:5: error: expected unqualified-id before 'for'
    3 |     for(int i=0;i<N;i++) for(int j=0;j<N;j++)if(i!=j) matrix[i][j] = INF; else matrix[i][j] = 0;
      |     ^~~
a.cc:3:17: error: 'i' does not name a type
    3 |     for(int i=0;i<N;i++) for(int j=0;j<N;j++)if(i!=j) matrix[i][j] = INF; else matrix[i][j] = 0;
      |                 ^
a.cc:3:21: error: 'i' does not name a type
    3 |     for(int i=0;i<N;i++) for(int j=0;j<N;j++)if(i!=j) matrix[i][j] = INF; else matrix[i][j] = 0;
      |                     ^
a.cc:3:38: error: 'j' does not name a type
    3 |     for(int i=0;i<N;i++) for(int j=0;j<N;j++)if(i!=j) matrix[i][j] = INF; else matrix[i][j] = 0;
      |                                      ^
a.cc:3:42: error: 'j' does not name a type
    3 |     for(int i=0;i<N;i++) for(int j=0;j<N;j++)if(i!=j) matrix[i][j] = INF; else matrix[i][j] = 0;
      |                                          ^
a.cc:3:75: error: expected unqualified-id before 'else'
    3 |     for(int i=0;i<N;i++) for(int j=0;j<N;j++)if(i!=j) matrix[i][j] = INF; else matrix[i][j] = 0;
      |                                                                           ^~~~
a.cc:4:5: error: expected unqualified-id before 'for'
    4 |     for(int i=0; i<M; i++){
      |     ^~~
a.cc:4:18: error: 'i' does not name a type
    4 |     for(int i=0; i<M; i++){
      |                  ^
a.cc:4:23: error: 'i' does not name a type
    4 |     for(int i=0; i<M; i++){
      |                       ^
a.cc:9:19: error: expected constructor, destructor, or type conversion before '(' token
    9 |     warshall_floyd(N, matrix);
      |                   ^
a.cc:10:15: error: 'INF' was not declared in this scope
   10 |     int res = INF;
      |               ^~~
a.cc:11:5: error: expected unqualified-id before 'do'
   11 |     do {
      |     ^~
a.cc:15:7: error: expected unqualified-id before 'while'
   15 |     } while(next_permutation(r, r+R));   // 次の順列を生成
      |       ^~~~~
a.cc:16:11: error: expected constructor, destructor, or type conversion before '(' token
   16 |     printf("%d",res);
      |           ^
a.cc:17:1: error: expected declaration before '}' token
   17 | }
      | ^
Language: C++

#include<iostream>
using namespace std;
int main()
{int i,j,k;
cin>>i;
j=i%10;

k=i/10;
if(j==9||k==9)
cout<<Yes;
else
cout<<No;
}

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

#include<iostrem>
#include<algorithm>
using namespace std;

int *n;
int ans=0;
int N;


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

    sort(n,n+N);

    while(i<N){
        int cnt,next=n[i];
        while(i<N && n[i]==next){
            cnt++;
            i++;
        }
        ans+=cnt%2;
    }

    cout<<ans<<endl;
    delete[]n;
    return 0;

}

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

#include <cstdio>
#include <string>

using namespace std;

int main(void){
	int N,s=0;
	scanf("%d",&N);

	for(i=0;i<N;i++){
		int l,r;
		scanf("%d%d",&l,&r);
		s+=r-l+1;
	}
	printf(s);
}

Compiler output:
a.cc: In function 'int main()':
a.cc:10:13: error: 'i' was not declared in this scope
   10 |         for(i=0;i<N;i++){
      |             ^
a.cc:15:16: error: invalid conversion from 'int' to 'const char*' [-fpermissive]
   15 |         printf(s);
      |                ^
      |                |
      |                int
In file included from /usr/include/c++/14/cstdio:42,
                 from a.cc:1:
/usr/include/stdio.h:363:43: note:   initializing argument 1 of 'int printf(const char*, ...)'
  363 | extern int printf (const char *__restrict __format, ...);
      |                    ~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~
Language: C++

#include <cstdio>
#include <string>

using namespace std;

int main(void){
	int N;
	scan("%d",&N);
	if(N%10==9||(int)N/10==9){
		printf("Yes");
	}else{
		printf("No");
	}
	return 0;
}

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

using namespace std;
#define FOR(i,a,b) for(int i=(a);i<(b);i++)
#define RFOR(i,a,b) for (int i=(b)-1;i>=(a);i--)
#define REP(i,n) for(int i=0;i<(n);i++)         
#define RREP(i,n) for (int i=(n)-1;i>=0;i--)    
                
#define pb push_back
#define PII pair<int,int>
                
#define VS vector<string>
#define VI vector<int>
#define ll long long int
#define debug(x) cout << x << " :" <<#x << endl  
int main(void) {
    int n = 0;  
    cin >> n;   
    if(n%10 == 9 || n/10 == 9) cout << "Yes" << endl;
    else cout << "No" << endl;                                                                       
}

Compiler output:
a.cc: In function 'int main()':
a.cc:16:5: error: 'cin' was not declared in this scope
   16 |     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 | using namespace std;
a.cc:17:32: error: 'cout' was not declared in this scope
   17 |     if(n%10 == 9 || n/10 == 9) cout << "Yes" << endl;
      |                                ^~~~
a.cc:17:32: note: 'std::cout' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>'
a.cc:17:49: error: 'endl' was not declared in this scope
   17 |     if(n%10 == 9 || n/10 == 9) cout << "Yes" << endl;
      |                                                 ^~~~
a.cc:1:1: note: 'std::endl' is defined in header '<ostream>'; this is probably fixable by adding '#include <ostream>'
  +++ |+#include <ostream>
    1 | using namespace std;
a.cc:18:10: error: 'cout' was not declared in this scope
   18 |     else cout << "No" << endl;
      |          ^~~~
a.cc:18:10: note: 'std::cout' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>'
a.cc:18:26: error: 'endl' was not declared in this scope
   18 |     else cout << "No" << endl;
      |                          ^~~~
a.cc:18:26: note: 'std::endl' is defined in header '<ostream>'; this is probably fixable by adding '#include <ostream>'
Language: C++

using namespace std;
#define FOR(i,a,b) for(int i=(a);i<(b);i++)
#define RFOR(i,a,b) for (int i=(b)-1;i>=(a);i--)
#define REP(i,n) for(int i=0;i<(n);i++)         
#define RREP(i,n) for (int i=(n)-1;i>=0;i--)    
                
#define pb push_back
#define PII pair<int,int>
                
#define VS vector<string>
#define VI vector<int>
#define ll long long int
#define debug(x) cout << x << " :" <<#x << endl  
int main(void) {
    int n = 0;  
    cin >> n;   
    if(n%10 == 9 || n/10 == 9) cout << "Yes" << endl;
    else cout << "No" << endl;                                                                       
}   

Compiler output:
a.cc: In function 'int main()':
a.cc:16:5: error: 'cin' was not declared in this scope
   16 |     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 | using namespace std;
a.cc:17:32: error: 'cout' was not declared in this scope
   17 |     if(n%10 == 9 || n/10 == 9) cout << "Yes" << endl;
      |                                ^~~~
a.cc:17:32: note: 'std::cout' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>'
a.cc:17:49: error: 'endl' was not declared in this scope
   17 |     if(n%10 == 9 || n/10 == 9) cout << "Yes" << endl;
      |                                                 ^~~~
a.cc:1:1: note: 'std::endl' is defined in header '<ostream>'; this is probably fixable by adding '#include <ostream>'
  +++ |+#include <ostream>
    1 | using namespace std;
a.cc:18:10: error: 'cout' was not declared in this scope
   18 |     else cout << "No" << endl;
      |          ^~~~
a.cc:18:10: note: 'std::cout' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>'
a.cc:18:26: error: 'endl' was not declared in this scope
   18 |     else cout << "No" << endl;
      |                          ^~~~
a.cc:18:26: note: 'std::endl' is defined in header '<ostream>'; this is probably fixable by adding '#include <ostream>'
Language: C++

#include <cstdio >
 using namespace std;
 #define INF (1<<29)
int N,M,R;
 int d[201][201];
 int r[9];
 int A,B,C;
 int res;
 bool used[9];

void dfs(int c,int las,int dist) 
{
if(c==R+1) 
{
 if(res>dist)res=dist;
 return;
 } 
for(int i=1;i<=R;i++)if(!used[i]) 
{ used[i]=true;
 if(las==-1)dfs(c+1,i,0);
 else dfs(c+1,i,dist+d[r[las]][r[i]]); used[i]=false;
 }
 }
int main()
 { scanf("%d%d%d",&N,&M,&R);
 for(int i=1;i<=N;i++)for(int j=1;j<=N;j++)if(i!=j)d[i][j]=INF;
 for(int i=1;i<=R;i++)scanf("%d",&r[i]);
 for(int i=1;i<=M;i++)
 {
 scanf("%d%d%d",&A,&B,&C);
 if(d[A][B]>C)d[A][B]=d[B][A]=C;
 }
 for(int k=1;k<=N;k++) for(int i=1;i<=N;i++) for(int j=1;j<=N;j++) if(d[i][j]>d[i][k]+d[k][j]) d[i][j]=d[i][k]+d[k][j];
 res=INF;
 dfs(1,-1,0);
 printf("%d\n",res);
 }


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

#include<iostream>
using namespace std;

int N;

int main(){
cin>>N;
  int a,b;
  a=N/10;
  b=N%10;
  if(a==9||b==9)cout<<Yes<<endl;
  else cout<<No<<endl;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:11:23: error: 'Yes' was not declared in this scope
   11 |   if(a==9||b==9)cout<<Yes<<endl;
      |                       ^~~
a.cc:12:14: error: 'No' was not declared in this scope; did you mean 'N'?
   12 |   else cout<<No<<endl;
      |              ^~
      |              N
Language: C++

#include<iostream>
using namespace std;
int main(){
  int n;
  cin >> n;
  string s = ((n % 10 == 9 || n/10 == 9) ? "Yes" : "No");
  cout << s << endl;
  return 0;


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

#include<iostream>
using namespace std;
int main(){
  int n;
  cin >> n;
  string s = (if (n % 10 == 9 || n/10 == 9) ? "Yes" : "No");
  cout << s << endl;
  return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:6:15: error: expected primary-expression before 'if'
    6 |   string s = (if (n % 10 == 9 || n/10 == 9) ? "Yes" : "No");
      |               ^~
a.cc:6:15: error: expected ')' before 'if'
    6 |   string s = (if (n % 10 == 9 || n/10 == 9) ? "Yes" : "No");
      |              ~^~
      |               )
Language: C

# include < stdio.h >
int N ;
int main ()
{
scanf ( " % d " ,& N );
if ( N %10==9|| N /10==9) puts ( " Yes " );
else puts ( " No " );

return 0;
}

Compiler output:
main.c:1:11: fatal error:  stdio.h : No such file or directory
    1 | # include < stdio.h >
      |           ^~~~~~~~~~~
compilation terminated.
Language: C

# include < cstdio >
int N ;
int main ()
{
scanf ( " % d " ,& N );
if ( N %10==9|| N /10==9) puts ( " Yes " );
else puts ( " No " );

return 0;
}

Compiler output:
main.c:1:11: fatal error:  cstdio : No such file or directory
    1 | # include < cstdio >
      |           ^~~~~~~~~~
compilation terminated.
Language: C

# include < cstdio >
int N ;
int main ()
{
scanf ( " % d " ,& N );
if ( N %10==9|| N /10==9) puts ( " Yes " );
else puts ( " No " );
}

Compiler output:
main.c:1:11: fatal error:  cstdio : No such file or directory
    1 | # include < cstdio >
      |           ^~~~~~~~~~
compilation terminated.
Language: C++

#include<iostream>
using namespace std;
int main(){
string s;
cin>>s;
bool ok = false;
for(int i=0;i<s.size();i++){
if(s[i]=='9'){
ok = true;
break;
}
if(ok)cout<<"Yes";
else cout<<"No"
}

}

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

#include<iostream>
#include<string>
#include<cmath>
#include<queue>
#include<map>
#include<set>
#include<list>
#include<iomanip>
#include<vector>
#include<functional>
#include<algorithm>
#include<cstdio>
#include<unordered_map>
using namespace std;
//---------------------------------------------------
//????????????????????????????????????
#define int long long
#define str string
#define rep(i,j) for(int i=0;i<(int)(j);i++)
typedef long long ll;
typedef long double ld;
const ll inf = 4523372036854775807;
struct P {
    ll pos, cost;
};
bool operator<(P a, P b) { return a.cost < b.cost; }
bool operator>(P a, P b) { return a.cost > b.cost; }
struct B {//??£??\???????????¨???
    ll to, cost;
};
struct S {//???????????±?????\???????????°
    int from, to, cost;
};
struct H {
    int x, y;
};
ll gcm(ll i, ll j) {//?????§??¬?´???°
    if (i > j) swap(i, j);
    if (i == 0) return j;
    return gcm(j%i, i);
}
ld rad(ld a, ld b, ld c, ld d) {
    return sqrt(pow(a - c, 2) + pow(b - d, 2));
}//rad?????§?¨???????2??????????????¢
//---------------------------------------------------
//+++++++++++++++++++++++++++++++++++++++++++++++++++
signed main() {
	string s;
	cin>>s;
	if(s[0]=='9'||a[1]=='9')
		cout<<"Yes\n";
	else
		cout<<"No\n";
    getchar(); getchar();
}


Compiler output:
a.cc: In function 'int main()':
a.cc:50:23: error: 'a' was not declared in this scope
   50 |         if(s[0]=='9'||a[1]=='9')
      |                       ^
Language: C++

#include <cstdint>
#include <iostream>
#include <string>

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

  return 0;
}


Compiler output:
a.cc: In function 'int32_t main()':
a.cc:7:3: error: 'string' was not declared in this scope
    7 |   string N;
      |   ^~~~~~
a.cc:7: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:2:
/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:8:3: error: 'cin' was not declared in this scope; did you mean 'std::cin'?
    8 |   cin >> N;
      |   ^~~
      |   std::cin
/usr/include/c++/14/iostream:62:18: note: 'std::cin' declared here
   62 |   extern istream cin;           ///< Linked to standard input
      |                  ^~~
a.cc:8:10: error: 'N' was not declared in this scope
    8 |   cin >> N;
      |          ^
a.cc:10:5: error: 'cout' was not declared in this scope; did you mean 'std::cout'?
   10 |     cout << "Yes" << endl;
      |     ^~~~
      |     std::cout
/usr/include/c++/14/iostream:63:18: note: 'std::cout' declared here
   63 |   extern ostream cout;          ///< Linked to standard output
      |                  ^~~~
a.cc:10:22: error: 'endl' was not declared in this scope; did you mean 'std::endl'?
   10 |     cout << "Yes" << endl;
      |                      ^~~~
      |                      std::endl
/usr/include/c++/14/ostream:744:5: note: 'std::endl' declared here
  744 |     endl(basic_ostream<_CharT, _Traits>& __os)
      |     ^~~~
a.cc:12:5: error: 'cout' was not declared in this scope; did you mean 'std::cout'?
   12 |     cout << "No" << endl;
      |     ^~~~
      |     std::cout
/usr/include/c++/14/iostream:63:18: note: 'std::cout' declared here
   63 |   extern ostream cout;          ///< Linked to standard output
      |                  ^~~~
a.cc:12:21: error: 'endl' was not declared in this scope; did you mean 'std::endl'?
   12 |     cout << "No" << endl;
      |                     ^~~~
      |                     std::endl
/usr/include/c++/14/ostream:744:5: note: 'std::endl' declared here
  744 |     endl(basic_ostream<_CharT, _Traits>& __os)
      |     ^~~~
Language: C

#include<stdio.h>
#include<string.h>
#include<iso646.h>
 
int main(){
  char N[2];
 
  scanf("%s",N);
 
  if(N[0] == '9' or N[1] == '9'){
    printf("Yes\n");
  }else{
    printf("No\n");
  }
 
return 0;

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

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

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

Compiler output:
a.cc: In function 'int main()':
a.cc:9:8: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
    9 | if(s[i]=="9"){
Language: C++

#include <stdio.h>

int main() {
	//入力してもらう
	int num;
	scanf_s("%d",&num);

	int ten_digit = num / 10;
	int one_digit = num % 10;

	//Yes or No
	if (ten_digit==9||one_digit==9) {
		printf("Yes");
	}
	else {
		printf("No");
	}

	return 0;
}

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

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

int main()
{
	ios::sync_with_stdio(false), cin.tie(0);
	int N;
	cin >> N;
	while (1) {
		cout << "Yes" << '\n'
	}
	return 0;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:10:38: error: expected ';' before '}' token
   10 |                 cout << "Yes" << '\n'
      |                                      ^
      |                                      ;
   11 |         }
      |         ~
Language: C++

#include<bits\stdc++.h>

using namespace std;
typedef long long ll;
int main() {
	int n;
	scanf("%d", &n);
	int a = n % 10;
	int b = n / 10;
	if (a == 9 || b == 9) {
		printf("Yes\n");
	}
	else {
		printf("No\n");
	}
}

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

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

Compiler output:
Main.java:1: error: class A is public, should be declared in a file named A.java
import java.util.Scanner;public class A {    public static void main(String[] args) {        Scanner sc = new Scanner(System.in);        String n = sc.next();        if (n.contains("9")) {            System.out.println("Yes");        } else {            System.out.println("No");        }    }}
                                ^
1 error
Language: C++

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

int main(void){
	int n;
	std::cin >> n;
	if (n >= 90 && n % 10 == 9){
		std::cout << "Yes" << endl;
	}else{
		std::cout << "No" << endl;
	}
	return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:8:39: error: 'endl' was not declared in this scope; did you mean 'std::endl'?
    8 |                 std::cout << "Yes" << endl;
      |                                       ^~~~
      |                                       std::endl
In file included from /usr/include/c++/14/iostream:41,
                 from a.cc:1:
/usr/include/c++/14/ostream:744:5: note: 'std::endl' declared here
  744 |     endl(basic_ostream<_CharT, _Traits>& __os)
      |     ^~~~
a.cc:10:38: error: 'endl' was not declared in this scope; did you mean 'std::endl'?
   10 |                 std::cout << "No" << endl;
      |                                      ^~~~
      |                                      std::endl
/usr/include/c++/14/ostream:744:5: note: 'std::endl' declared here
  744 |     endl(basic_ostream<_CharT, _Traits>& __os)
      |     ^~~~
Language: C++

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

int main(void){
	int n;
	cin >> n;
	if (n >= 90 && n % 10 == 9){
		cout << "Yes" << endl;
	}else{
		cout << "No" << endl;
	}
	return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:6:9: error: 'cin' was not declared in this scope; did you mean 'std::cin'?
    6 |         cin >> n;
      |         ^~~
      |         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:8:17: error: 'cout' was not declared in this scope; did you mean 'std::cout'?
    8 |                 cout << "Yes" << endl;
      |                 ^~~~
      |                 std::cout
/usr/include/c++/14/iostream:63:18: note: 'std::cout' declared here
   63 |   extern ostream cout;          ///< Linked to standard output
      |                  ^~~~
a.cc:8:34: error: 'endl' was not declared in this scope; did you mean 'std::endl'?
    8 |                 cout << "Yes" << endl;
      |                                  ^~~~
      |                                  std::endl
In file included from /usr/include/c++/14/iostream:41:
/usr/include/c++/14/ostream:744:5: note: 'std::endl' declared here
  744 |     endl(basic_ostream<_CharT, _Traits>& __os)
      |     ^~~~
a.cc:10:17: error: 'cout' was not declared in this scope; did you mean 'std::cout'?
   10 |                 cout << "No" << endl;
      |                 ^~~~
      |                 std::cout
/usr/include/c++/14/iostream:63:18: note: 'std::cout' declared here
   63 |   extern ostream cout;          ///< Linked to standard output
      |                  ^~~~
a.cc:10:33: error: 'endl' was not declared in this scope; did you mean 'std::endl'?
   10 |                 cout << "No" << endl;
      |                                 ^~~~
      |                                 std::endl
/usr/include/c++/14/ostream:744:5: note: 'std::endl' declared here
  744 |     endl(basic_ostream<_CharT, _Traits>& __os)
      |     ^~~~
Language: Java

import java.util.Scanner;
class Main{
 public static void main(String args[]){
  String res="No";
  
Scanner scn=new Scanner(System.in);
  
  if(flag){
   res="Yes";
  }
 }
}

Compiler output:
Main.java:8: error: cannot find symbol
  if(flag){
     ^
  symbol:   variable flag
  location: class Main
1 error
Language: Java

class Main{
 public static void main(String args[]){
  
if(flag){
   res="Yes"
  }
  else{
   res="No"
  }
 }
}

Compiler output:
Main.java:5: error: ';' expected
   res="Yes"
            ^
Main.java:8: error: ';' expected
   res="No"
           ^
2 errors
Language: C++

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

int main ()
{
   int n,x;
   while(n--)
   {
       cin>>x;
       if(s.count(x)==1)
       {
           s.erase(x);
       }
       else
       {
           s.insert(x);
       }
   }
   cout<<s.size();
   
   return 0;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:11:11: error: 's' was not declared in this scope
   11 |        if(s.count(x)==1)
      |           ^
a.cc:20:10: error: 's' was not declared in this scope
   20 |    cout<<s.size();
      |          ^
Language: Java

public String Main (int N){
        if(N < 10 || N > 100)
            return null;
        if(Integer.toString(N).contains("9") == true)
            return "Yes";
        else
            return "No";
                
    }

Compiler output:
Main.java:1: error: unnamed classes are a preview feature and are disabled by default.
public String Main (int N){
       ^
  (use --enable-preview to enable unnamed classes)
1 error
Language: Java



public class A {

    public static void main(String[] args) throws IOException {
         java.io.BufferedReader buf = new java.io.BufferedReader( new java.io.InputStreamReader(System.in));
         String input  = buf.readLine();
         if (input.charAt(0) =='9' || input.charAt(1) == '9') {
             System.out.println("Yes"); 
         } else System.out.println("No");
    }

}

Compiler output:
Main.java:3: error: class A is public, should be declared in a file named A.java
public class A {
       ^
Main.java:5: error: cannot find symbol
    public static void main(String[] args) throws IOException {
                                                  ^
  symbol:   class IOException
  location: class A
2 errors
Language: C++

#include <stdio.h>

void main()
{
char a,b;
scanf("%c%c", &a, &b);
if (a == '9' || b == '9') printf("yes");
else printf("no");
}

Compiler output:
a.cc:3:1: error: '::main' must return 'int'
    3 | void main()
      | ^~~~
Language: C++

#include <stdio.h>

int main()
{
char a,b;
scanf("%c%c", &a, &b);
if (a == '9' || b == '9') print("yes");
else print("no");
}

Compiler output:
a.cc: In function 'int main()':
a.cc:7:27: error: 'print' was not declared in this scope; did you mean 'printf'?
    7 | if (a == '9' || b == '9') print("yes");
      |                           ^~~~~
      |                           printf
a.cc:8:6: error: 'print' was not declared in this scope; did you mean 'printf'?
    8 | else print("no");
      |      ^~~~~
      |      printf
Language: C++

#include <stdio.h>

int main()
{
char a,b;
scanf(%c%c", &a, &b);
if (a == '9' || b == '9') print("yes");
else print("no");
}

Compiler output:
a.cc:6:11: warning: missing terminating " character
    6 | scanf(%c%c", &a, &b);
      |           ^
a.cc:6:11: error: missing terminating " character
    6 | scanf(%c%c", &a, &b);
      |           ^~~~~~~~~~~
a.cc: In function 'int main()':
a.cc:6:7: error: expected primary-expression before '%' token
    6 | scanf(%c%c", &a, &b);
      |       ^
a.cc:6:8: error: 'c' was not declared in this scope
    6 | scanf(%c%c", &a, &b);
      |        ^
a.cc:8:1: error: 'else' without a previous 'if'
    8 | else print("no");
      | ^~~~
a.cc:8:6: error: 'print' was not declared in this scope; did you mean 'printf'?
    8 | else print("no");
      |      ^~~~~
      |      printf
Language: C++

#include <iostream>
using namespace std;
 
int main(){
  int a[1000000000];
  int x,y,j;
  cin >> x;
  for(int j = x; j > 0; j--){
  	a[x-1] =0;
  }
  for(int i =0; i < x; i++){
    cin >> y;
    int j =0;
    while(1){
      if(a[j] ==y){
      a[j] = 0;
      }else if(a[j] == 0){
      a[j] = y;
      }else if(a[j] == \0){
        break;
      }else{
        j++;
      }
    }
  }
  cout << x << endl;
  return 0;
}

Compiler output:
a.cc:19:24: error: stray '\' in program
   19 |       }else if(a[j] == \0){
      |                        ^
Language: C++


main = do
  n <- getLine
  if check n
    then putStrLn "Yes"
    else putStrLn "No"

check :: [Char] -> Bool
check (x:xs) = x=='9' || check xs
check [] = False



Compiler output:
a.cc:2:1: error: 'main' does not name a type
    2 | main = do
      | ^~~~
Language: C++

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

Compiler output:
a.cc:10:11: warning: missing terminating ' character
   10 | cout<<"No"'
      |           ^
a.cc:10:11: error: missing terminating ' character
a.cc: In function 'int main()':
a.cc:10:11: error: expected ';' before 'return'
   10 | cout<<"No"'
      |           ^
      |           ;
   11 | return 0;
      | ~~~~~~
Language: C++

#include <bits/stdc++.h>
using namespace std;
bool ans=false;

int main()
{
    long long n;
    cin >> n;
    while(n>0)
    {
        k=n%10;
        n=n/10;
        if(k==9)
        {
            ans=true;
            break;
        }
    }
    if(ans==true)
        cout << "Yes";
    else 
        cout << "No";
}

Compiler output:
a.cc: In function 'int main()':
a.cc:11:9: error: 'k' was not declared in this scope
   11 |         k=n%10;
      |         ^
Language: C

#include <cstdio>
#include <cstring>
#include <iostream>
#include <algorithm>
#include <vector>
#include <queue>
#include <set>
#include <map>
#include <string>
#include <cmath>
#include <cstdlib>
#include <ctime>
using namespace std;
typedef long long LL;

bool check[205];
vector<int> tu[205],cost[205];
int n,m,r,ans;
int vis[205];
void build(int x,int y,int c)
{
	tu[x].push_back(y);
	cost[x].push_back(c);
}
void dfs(int son , int deep,int l)
{
	int i;
	vis[son] = 1;
	for( i = 0 ;i < tu[son].size() ;i ++)
	{
		int k = tu[son][i];
		int c = cost[son][i];
		if(vis[k]) continue;
		if(check[k] == true)
		{
			if(deep == r-1)
			{
				ans = min(ans,l+c);
				vis[son]=0;
				return;
			}
			else
			{
				dfs(k,deep+1,l+c);
			}
		}
		else
		{
			dfs(k,deep,l+c);
		}
	}
	vis[son]=0;
}
int main()
{
	int x,y,c,i;
	ans = (1 << 30);
	scanf("%d%d%d",&n,&m,&r);
	for( i = 1 ; i <= r ; i ++)
	{
		scanf("%d",&x);
		check[x] = true;
	}
	for( i = 1 ; i <= m ; i ++)
	{
		scanf("%d%d%d",&x,&y,&c);
		build(x , y , c);
		build(y , x , c);
	}
	for( i = 1 ; i <= n;i ++)
	{
		if(check[i] == true)
			dfs(i , 1, 0);
		else
			dfs(i , 0, 0);
	}
	printf("%d\n",ans);
}

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

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

Compiler output:
main.c: In function 'main':
main.c:5:12: error: lvalue required as left operand of assignment
    5 |     if(a%10=9 || a>89){
      |            ^
Language: C

#include<stdio.h>
int main(){
    int a;
    int b = 9;
    int c = a ! b;
    scanf("%d", &a);
    if(c==9 || a>89){
    printf("Yes\n");
}
    printf("No\n");
    return 0;
}

Compiler output:
main.c: In function 'main':
main.c:5:15: error: expected ',' or ';' before '!' token
    5 |     int c = a ! b;
      |               ^
Language: C

#include<stdio.h>
int main(){
    int a;
    int b = 9;
    int c = a!b;
    scanf("%d", &a);
    if(c==9 || a>89){
    printf("Yes\n");
}
    printf("No\n");
    return 0;
}

Compiler output:
main.c: In function 'main':
main.c:5:14: error: expected ',' or ';' before '!' token
    5 |     int c = a!b;
      |              ^
Language: C

#include<stdio.h>
int main(){
    int a;
    int c = a!9;
    scanf("%d", &a);
    if(c==9 || a>89){
    printf("Yes\n");
}
    printf("No\n");
    return 0;
}

Compiler output:
main.c: In function 'main':
main.c:4:14: error: expected ',' or ';' before '!' token
    4 |     int c = a!9;
      |              ^
Language: C

#include<stdio.h>
int main(){
    int a;
    int c == a!9;
    scanf("%d", &a);
    if(c==9 || a>89){
    printf("Yes\n");
}
    printf("No\n");
    return 0;
}

Compiler output:
main.c: In function 'main':
main.c:4:11: error: expected '=', ',', ';', 'asm' or '__attribute__' before '==' token
    4 |     int c == a!9;
      |           ^~
main.c:4:11: error: expected expression before '==' token
main.c:6:8: error: 'c' undeclared (first use in this function)
    6 |     if(c==9 || a>89){
      |        ^
main.c:6:8: note: each undeclared identifier is reported only once for each function it appears in
Language: C

#include<stdio.h>
int main(){
    int a,c;
    scanf("%d", &a);
    a!9==c;
    if(c=9 || a>89){
    printf("Yes\n");
}
    printf("No\n");
    return 0;
}

Compiler output:
main.c: In function 'main':
main.c:5:6: error: expected ';' before '!' token
    5 |     a!9==c;
      |      ^
      |      ;
Language: C++

int d[maxn];
void add(int x,int delta) {
	while (x<=n) {
		d[x]+=delta;
		x+=x&(-x);
	}
}
int query(int x) {
	int s=0;
	while (x>0) {
		s+=d[x];
		x-=x&(-x);
	}
	return s ;
}

Compiler output:
a.cc:1:7: error: 'maxn' was not declared in this scope
    1 | int d[maxn];
      |       ^~~~
a.cc: In function 'void add(int, int)':
a.cc:3:19: error: 'n' was not declared in this scope
    3 |         while (x<=n) {
      |                   ^
a.cc:4:17: error: 'd' was not declared in this scope
    4 |                 d[x]+=delta;
      |                 ^
a.cc: In function 'int query(int)':
a.cc:11:20: error: 'd' was not declared in this scope
   11 |                 s+=d[x];
      |                    ^
Language: C

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

Compiler output:
main.c: In function 'main':
main.c:5:9: error: expected ')' before '!' token
    5 |     if(a!10==9 | a>89){
      |       ~ ^
      |         )
Language: C++

int d[maxn];
void add(int x,int delta) {
	while (x<=n) {
		d[x]+=delta;
		x+=x&(-x);
	}
}
int query(int x) {
	int s=0;
	while (x>0) {
		s+=d[x];
		x-=x&(-x);
	}
}


Compiler output:
a.cc:1:7: error: 'maxn' was not declared in this scope
    1 | int d[maxn];
      |       ^~~~
a.cc: In function 'void add(int, int)':
a.cc:3:19: error: 'n' was not declared in this scope
    3 |         while (x<=n) {
      |                   ^
a.cc:4:17: error: 'd' was not declared in this scope
    4 |                 d[x]+=delta;
      |                 ^
a.cc: In function 'int query(int)':
a.cc:11:20: error: 'd' was not declared in this scope
   11 |                 s+=d[x];
      |                    ^
a.cc:14:1: warning: no return statement in function returning non-void [-Wreturn-type]
   14 | }
      | ^
Language: C++

#include<stdio.h>
#include<string.h>

int main() {

	int input;
	scanf_s("%d", &input);
	getchar();

	char kata[4];
	sprintf_s(kata, "%d", input);
	for (int i = 0; i < strlen(kata); i++) {
		if (kata[i] == '9') {
			printf("Yes\n");
			return 0;
		}
	}

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

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

#include <iostream>
#include <\string>

using namespace std;

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

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

#include<bits/stdc++.h>
using namespace std;
int main(){
  int n;
  cin>>n;
  while(n){
    tmp=n%10;
    n/=10;
    if(tmp==9)
      return 0*printf("Yes");
  }
  printf("No");
}

Compiler output:
a.cc: In function 'int main()':
a.cc:7:5: error: 'tmp' was not declared in this scope; did you mean 'tm'?
    7 |     tmp=n%10;
      |     ^~~
      |     tm
Language: C++

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

int x,a;
bool cari;
int main(){
	x=0;
	a=0;
	cari=true;
	cin>>x;
	for(int i =0; i<2 && cari; i++){
		a=x%10;
		if(a==9){
			cout<<"Yes\n";
			cari=false;
		}
		x/=10;
	}
	if(!cari){
		cout<<"No\n";
	}
	
	return 0;
}

Compiler output:
a.cc:2:7: error: expected nested-name-specifier before 'nemaspace'
    2 | using nemaspace std;
      |       ^~~~~~~~~
a.cc: In function 'int main()':
a.cc:10:9: error: 'cin' was not declared in this scope; did you mean 'std::cin'?
   10 |         cin>>x;
      |         ^~~
      |         std::cin
In file included from /usr/include/x86_64-linux-gnu/c++/14/bits/stdc++.h:146,
                 from a.cc:1:
/usr/include/c++/14/iostream:62:18: note: 'std::cin' declared here
   62 |   extern istream cin;           ///< Linked to standard input
      |                  ^~~
a.cc:14:25: error: 'cout' was not declared in this scope; did you mean 'std::cout'?
   14 |                         cout<<"Yes\n";
      |                         ^~~~
      |                         std::cout
/usr/include/c++/14/iostream:63:18: note: 'std::cout' declared here
   63 |   extern ostream cout;          ///< Linked to standard output
      |                  ^~~~
a.cc:20:17: error: 'cout' was not declared in this scope; did you mean 'std::cout'?
   20 |                 cout<<"No\n";
      |                 ^~~~
      |                 std::cout
/usr/include/c++/14/iostream:63:18: note: 'std::cout' declared here
   63 |   extern ostream cout;          ///< Linked to standard output
      |                  ^~~~
Language: Java

import java.io.BufferedReader;
import java.io.IOException;
import java.io.InputStreamReader;
import java.math.BigInteger;
import java.util.HashMap;
import java.util.StringTokenizer;

public class Hello {

	static class FastReader {
		BufferedReader br;
		StringTokenizer st;

		public FastReader() {
			br = new BufferedReader(new InputStreamReader(System.in));
		}

		String next() {
			while (st == null || !st.hasMoreTokens()) {
				try {
					st = new StringTokenizer(br.readLine());
				} catch (IOException e) {
					// TODO Auto-generated catch block
					e.printStackTrace();
				}
			}
			return st.nextToken();
		}

		String nextLine() {
			String str = "";
			try {
				str = br.readLine();
			} catch (IOException e) {
				// TODO Auto-generated catch block
				e.printStackTrace();
			}
			return str;
		}

		int nextInt() {
			return Integer.parseInt(next());
		}

		double nextDouble() {
			return Double.parseDouble(next());
		}

		long nextLong() {
			return Long.parseLong(next());
		}

		BigInteger nextBigIntger() {
			BigInteger bb = new BigInteger(next());
			return bb;
		}
	}

	public static void main(String[] args) {
		FastReader sc = new FastReader();
		HashMap<Character, Integer> map = new HashMap<>();
		char[] aa = sc.nextLine().toCharArray();
		boolean flag = true;
		for (int i = 0; i < aa.length; i++) {
			if (aa[i] == '9') {
				flag = true;
				break;
			} else
				flag = false;
		}
		if(flag)
			System.out.println("Yes");
		else
			System.out.println("No");
	}
}


Compiler output:
Main.java:8: error: class Hello is public, should be declared in a file named Hello.java
public class Hello {
       ^
1 error
Language: C++

#include<stdio.h>

int main(int argc, char** argv) {
    char input[2];
    int i;

    scanf("%s", input);
    for (i = 0; i < 2; i++) {                                                                               
q        if (input[i] == '9') {
            printf("yes\n");
            return 0;
        }
    }
    printf("no\n");
    return 0;
}


Compiler output:
a.cc: In function 'int main(int, char**)':
a.cc:9:1: error: 'q' was not declared in this scope
    9 | q        if (input[i] == '9') {
      | ^
Language: C++

#include<iostream>
#include<string>

using namespace std;

int main(){
 string s;
 cin >> s;
 for(auto c : s){
  if(c == '9'){
   cout "Yes" << endl;
   return 0;
  }
 }
 cout << "No" << endl;
 return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:11:8: error: expected ';' before string constant
   11 |    cout "Yes" << endl;
      |        ^~~~~~
      |        ;
Language: C++

#include<iostream>
#include<string>

using namespace std;

int main(){
 string s;
 cin >> s;
 for(auto c : s){
  if(c == '9'){
   cout "Yes" << endl;return0
  }
 }
 cout << "No" << endl;
 return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:11:8: error: expected ';' before string constant
   11 |    cout "Yes" << endl;return0
      |        ^~~~~~
      |        ;
a.cc:11:23: error: 'return0' was not declared in this scope
   11 |    cout "Yes" << endl;return0
      |                       ^~~~~~~
Language: C++

#include<iostream>
#include<string>

using namespace std;

int main(){
 string s;
 for(auto c : s){
  if(c == '9'){
   return "Yes";
  }
 }
 return "No";
 return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:10:11: error: invalid conversion from 'const char*' to 'int' [-fpermissive]
   10 |    return "Yes";
      |           ^~~~~
      |           |
      |           const char*
a.cc:13:9: error: invalid conversion from 'const char*' to 'int' [-fpermissive]
   13 |  return "No";
      |         ^~~~
      |         |
      |         const char*
Language: C++

#include<iostream>

using namespace std;

int main(){
 string s;
 for(auto c : s){
  if(c == '9'){
   return "Yes";
  }
 }
 return "No";
 return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:9:11: error: invalid conversion from 'const char*' to 'int' [-fpermissive]
    9 |    return "Yes";
      |           ^~~~~
      |           |
      |           const char*
a.cc:12:9: error: invalid conversion from 'const char*' to 'int' [-fpermissive]
   12 |  return "No";
      |         ^~~~
      |         |
      |         const char*