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

#include<iostream>
main(){string s;std::cin>>s;if(s[0]=='9'||s[1]=='9')printf("Yes\n");else printf("No\n");}

Compiler output:
a.cc:2:1: warning: ISO C++ forbids declaration of 'main' with no type [-Wreturn-type]
    2 | main(){string s;std::cin>>s;if(s[0]=='9'||s[1]=='9')printf("Yes\n");else printf("No\n");}
      | ^~~~
a.cc: In function 'int main()':
a.cc:2:8: error: 'string' was not declared in this scope
    2 | main(){string s;std::cin>>s;if(s[0]=='9'||s[1]=='9')printf("Yes\n");else printf("No\n");}
      |        ^~~~~~
a.cc:2:8: note: suggested alternatives:
In file included from /usr/include/c++/14/iosfwd:41,
                 from /usr/include/c++/14/ios:40,
                 from /usr/include/c++/14/ostream:40,
                 from /usr/include/c++/14/iostream:41,
                 from a.cc:1:
/usr/include/c++/14/bits/stringfwd.h:77:33: note:   'std::string'
   77 |   typedef basic_string<char>    string;
      |                                 ^~~~~~
In file included from /usr/include/c++/14/bits/locale_classes.h:40,
                 from /usr/include/c++/14/bits/ios_base.h:41,
                 from /usr/include/c++/14/ios:44:
/usr/include/c++/14/string:76:11: note:   'std::pmr::string'
   76 |     using string    = basic_string<char>;
      |           ^~~~~~
a.cc:2:27: error: 's' was not declared in this scope
    2 | main(){string s;std::cin>>s;if(s[0]=='9'||s[1]=='9')printf("Yes\n");else printf("No\n");}
      |                           ^
Language: C++

#import<cstdio>
main(){string s;std::cin>>s;if(s[0]=='9'||s[1]=='9')printf("Yes\n");else printf("No\n");}

Compiler output:
a.cc:1:2: warning: #import is a deprecated GCC extension [-Wdeprecated]
    1 | #import<cstdio>
      |  ^~~~~~
a.cc:2:1: warning: ISO C++ forbids declaration of 'main' with no type [-Wreturn-type]
    2 | main(){string s;std::cin>>s;if(s[0]=='9'||s[1]=='9')printf("Yes\n");else printf("No\n");}
      | ^~~~
a.cc: In function 'int main()':
a.cc:2:8: error: 'string' was not declared in this scope; did you mean 'stdin'?
    2 | main(){string s;std::cin>>s;if(s[0]=='9'||s[1]=='9')printf("Yes\n");else printf("No\n");}
      |        ^~~~~~
      |        stdin
a.cc:2:22: error: 'cin' is not a member of 'std'
    2 | main(){string s;std::cin>>s;if(s[0]=='9'||s[1]=='9')printf("Yes\n");else printf("No\n");}
      |                      ^~~
a.cc:2:1: note: 'std::cin' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>'
    1 | #import<cstdio>
  +++ |+#include <iostream>
    2 | main(){string s;std::cin>>s;if(s[0]=='9'||s[1]=='9')printf("Yes\n");else printf("No\n");}
a.cc:2:27: error: 's' was not declared in this scope
    2 | main(){string s;std::cin>>s;if(s[0]=='9'||s[1]=='9')printf("Yes\n");else printf("No\n");}
      |                           ^
Language: C++

#import<iostream>
main(){string s;std::cin>>s;if(s[0]=='9'||s[1]=='9')printf("Yes\n");else printf("No\n");}

Compiler output:
a.cc:1:2: warning: #import is a deprecated GCC extension [-Wdeprecated]
    1 | #import<iostream>
      |  ^~~~~~
a.cc:2:1: warning: ISO C++ forbids declaration of 'main' with no type [-Wreturn-type]
    2 | main(){string s;std::cin>>s;if(s[0]=='9'||s[1]=='9')printf("Yes\n");else printf("No\n");}
      | ^~~~
a.cc: In function 'int main()':
a.cc:2:8: error: 'string' was not declared in this scope
    2 | main(){string s;std::cin>>s;if(s[0]=='9'||s[1]=='9')printf("Yes\n");else printf("No\n");}
      |        ^~~~~~
a.cc:2:8: note: suggested alternatives:
In file included from /usr/include/c++/14/iosfwd:41,
                 from /usr/include/c++/14/ios:40,
                 from /usr/include/c++/14/ostream:40,
                 from /usr/include/c++/14/iostream:41,
                 from a.cc:1:
/usr/include/c++/14/bits/stringfwd.h:77:33: note:   'std::string'
   77 |   typedef basic_string<char>    string;
      |                                 ^~~~~~
In file included from /usr/include/c++/14/bits/locale_classes.h:40,
                 from /usr/include/c++/14/bits/ios_base.h:41,
                 from /usr/include/c++/14/ios:44:
/usr/include/c++/14/string:76:11: note:   'std::pmr::string'
   76 |     using string    = basic_string<char>;
      |           ^~~~~~
a.cc:2:27: error: 's' was not declared in this scope
    2 | main(){string s;std::cin>>s;if(s[0]=='9'||s[1]=='9')printf("Yes\n");else printf("No\n");}
      |                           ^
Language: C++

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

int main (){
int n ;
cin >> n ;
bool nine = false;
for(int i =0;i<n.size();i++){
if(n.at(i) == 9) nine = true;
}
}
    


Compiler output:
a.cc: In function 'int main()':
a.cc:9:18: error: request for member 'size' in 'n', which is of non-class type 'int'
    9 | for(int i =0;i<n.size();i++){
      |                  ^~~~
a.cc:10:6: error: request for member 'at' in 'n', which is of non-class type 'int'
   10 | if(n.at(i) == 9) nine = true;
      |      ^~
Language: C++

#include<iostream>
using namespace std;
int main(){
string n;
cin>>n;
if (n[i]=='9'){
 cout<<"Yes";
}
else
cout<<"No";
}


Compiler output:
a.cc: In function 'int main()':
a.cc:6:7: error: 'i' was not declared in this scope
    6 | if (n[i]=='9'){
      |       ^
Language: C

    #include <stdio.h>
    #include <stdlib.h>
     
    int main() {
      
      int import = 0;
      
      scanf("%d", &import);
      
      int ten = import / 10;
      
      
      if( (import - 90) >= 0) {
        printf("Yes");
       else if( (import - (ten*10)) == 9) {
         printf("Yes");
       } else {
         printf("No");
       }
      
      return 0;
    }

Compiler output:
main.c: In function 'main':
main.c:15:8: error: expected '}' before 'else'
   15 |        else if( (import - (ten*10)) == 9) {
      |        ^~~~
Language: C

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

int main() {
  
  int import = 0;
  
  scanf("%d", &import);
  
  ten = import / 10;
  
  
  if( (import - 90) >= 0) {
    printf("Yes");
   else if( (import - (ten*10)) == 9) {
     printf("Yes");
   } else {
     printf("No");
   }
  
  return 0;
}

Compiler output:
main.c: In function 'main':
main.c:10:3: error: 'ten' undeclared (first use in this function)
   10 |   ten = import / 10;
      |   ^~~
main.c:10:3: note: each undeclared identifier is reported only once for each function it appears in
main.c:15:4: error: expected '}' before 'else'
   15 |    else if( (import - (ten*10)) == 9) {
      |    ^~~~
Language: C++

#include <bits/stdc++.h>
using namespace std;
typedef long long ll;
int main(){
  stirng s;
  cin >>s;
  if(s[0]=='9' || s[1] == '9'){
    cout << "Yes" << endl;
  }
  else{
    cout << "No" << endl;
  }
}




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

#include <bits/stdc++.h>
using namespace std;
typedef long long ll;
int main(){
  stirng n;
  cin >>n;
  if(s[0]=='9' || s[1] == '9'){
    cout << "Yes" << endl;
  }
  else{
    cout << "No" << endl;
  }
}




Compiler output:
a.cc: In function 'int main()':
a.cc:5:3: error: 'stirng' was not declared in this scope
    5 |   stirng n;
      |   ^~~~~~
a.cc:6:9: error: 'n' was not declared in this scope; did you mean 'yn'?
    6 |   cin >>n;
      |         ^
      |         yn
a.cc:7:6: error: 's' was not declared in this scope
    7 |   if(s[0]=='9' || s[1] == '9'){
      |      ^
Language: C++

#include <bits/stdc++.h>
using namespace std;
typedef long long ll;
int main(){
  stirng n;
  cin >>n;
  if(s[0]=='9' || s[1] == '9'){
    cout << "Yes" << endl;
  }
  else{
    cout << "No" << endl
  }
}




Compiler output:
a.cc: In function 'int main()':
a.cc:5:3: error: 'stirng' was not declared in this scope
    5 |   stirng n;
      |   ^~~~~~
a.cc:6:9: error: 'n' was not declared in this scope; did you mean 'yn'?
    6 |   cin >>n;
      |         ^
      |         yn
a.cc:7:6: error: 's' was not declared in this scope
    7 |   if(s[0]=='9' || s[1] == '9'){
      |      ^
a.cc:11:25: error: expected ';' before '}' token
   11 |     cout << "No" << endl
      |                         ^
      |                         ;
   12 |   }
      |   ~
Language: C++

#include<stdio.h>

int main(){
	int a;
	
	scanf("%d",&a);
	
	if(a%10==a || a/10==a){
		printf("Yes\n";
	}
	else printf("No\n");
	
	return 0;
}

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

#include<stdio.h>

int main(){
	int a;
	
	scanf("%d",&a);
	
	if(a%10==a || a/10==a){
		printf("Yes\n";)
	}
	else printf("No\n");
	
	return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:9:31: error: expected ')' before ';' token
    9 |                 printf("Yes\n";)
      |                       ~       ^
      |                               )
a.cc:9:32: error: expected primary-expression before ')' token
    9 |                 printf("Yes\n";)
      |                                ^
Language: C++

#include <iosteam>

using namespcae std;

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

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

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

Compiler output:
a.cc:2:5: error: 'cin' does not name a type
    2 |     cin >> N;
      |     ^~~
a.cc:4:5: error: 'string' does not name a type
    4 |     string str;
      |     ^~~~~~
a.cc:5:5: error: 'str' does not name a type
    5 |     str=to_string(N);
      |     ^~~
a.cc:7:5: error: expected unqualified-id before 'if'
    7 |     if(str[0]=='9' | str[1]=='9'){
      |     ^~
a.cc:10:5: error: expected unqualified-id before 'else'
   10 |     else{
      |     ^~~~
Language: C++

#include <bits/stdc++.h>
#define rep(i, a, n) for (int i = (int)(a); i <= (int)(n); ++i)
#define rrep(i, a, n) for (int i = (int)(a); i >= (int)(n); --i)
#define debug(x) cerr << #x << " = " << x << "\n"
#define debugv(x) \
  rep(f, 0, (x.size() - 1)) cerr << x[f] << (f == (x.size() - 1) ? "\n" : " ")
#define all(x) x.begin(), x.end()
#define int long long
using namespace std;
typedef pair<int, int> pii;
typedef vector<int> vi;
const int MX = 1e5 + 5, INF = 5 << 28, MOD = 1e9 + 7;

int N, M, K;
vector<int> A, B;
string S, T;

void input() {
  int x, y, z;
  cin >> N;
  ;
}
void solve() {
  bool ans = false;
  if (N % 10 == 9) ans = true;
  N /= 10;
  if (n % 10 == 9) ans = true;
  cout << (ans ? "Yes" : "No") << endl;
  ;
  ;
}
signed main() {
  input();
  solve();
  return 0;
}

Compiler output:
a.cc: In function 'void solve()':
a.cc:27:7: error: 'n' was not declared in this scope
   27 |   if (n % 10 == 9) ans = true;
      |       ^
Language: C++

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

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


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

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


Compiler output:
a.cc: In function 'int main()':
a.cc:6:8: error: request for member 'at' in 'n', which is of non-class type 'char'
    6 |   if(n.at(0)=="9" || n.at(1)=="9"){
      |        ^~
a.cc:6:24: error: request for member 'at' in 'n', which is of non-class type 'char'
    6 |   if(n.at(0)=="9" || n.at(1)=="9"){
      |                        ^~
Language: C++

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


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

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


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

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

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

Compiler output:
a.cc: In function 'int main()':
a.cc:6:12: error: 'X' was not declared in this scope
    6 |     cin >> X >> t;
      |            ^
a.cc:6:17: error: 't' was not declared in this scope
    6 |     cin >> X >> t;
      |                 ^
Language: Java

import java.util.Scanner;

public class September {

    public static void main(String[] args) {
        int x;
        Scanner input = new Scanner(System.in);
        x = input.nextInt();
        String s = Integer.toString(x);
        if (x >= 10 && x <= 99) {
            if (s.contains("9")) {
                System.out.println("Yes");
            } else {
                System.out.println("No");
            }
        }
    }
}


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

package atcodder;

import java.util.Scanner;

public class September {

    static void main(String[] args) {
        int x;
        Scanner input = new Scanner(System.in);
        x = input.nextInt();
        String s = Integer.toString(x);
        if (x >= 10 && x <= 99) {
            if (s.contains("9")) {
                System.out.println("Yes");
            } else {
                System.out.println("No");
            }

        }
    }
}


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

#include<stdio.h>

int main(){
	int a,c;
	int b == 0;
	scanf("%d",&a);fflush(stdin);
	while(a > 0){
		c = a%10;
		if(c == 9)
			b++;
		a = a/10;
	}
	if(b > 0)
		printf("Yes");
	else
		printf("No");
	return 0;
}

Compiler output:
main.c: In function 'main':
main.c:5:15: error: expected '=', ',', ';', 'asm' or '__attribute__' before '==' token
    5 |         int b == 0;
      |               ^~
main.c:5:15: error: expected expression before '==' token
main.c:10:25: error: 'b' undeclared (first use in this function)
   10 |                         b++;
      |                         ^
main.c:10:25: note: each undeclared identifier is reported only once for each function it appears in
Language: C

#include<stdio.h>

int main(){
	int a;
	scanf("%d",&a);fflush(stdin);
	if(a%10 == 9)
		printf("Yes");
	else
		pritnf("No");
	return 0;
}

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

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

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

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

#pragma GCC optimize ("O3")
#pragma GCC target ("sse4")

#include <bits/stdc++.h>
#include <ext/pb_ds/tree_policy.hpp>
#include <ext/pb_ds/assoc_container.hpp>
#include <iomanip>


using namespace std;
using namespace __gnu_pbds;

typedef long long ll;
typedef long double ld;

typedef pair<int, int> pi;
typedef pair<ll,ll> pl;
typedef pair<ld,ld> pd;

typedef vector<int> vi;
typedef vector<ld> vd;
typedef vector<ll> vl;
typedef vector<pi> vpi;
typedef vector<pl> vpl;

#define rep(i, a, b) for (int i=a; i<(b); i++)
#define rp(i, a) for (int i=0; i<(a); i++)
#define repd(i,a,b) for (int i = (b)-1; i >= a; i--)
#define rpd(i,a) for (int i = (a)-1; i >= 0; i--)

#define sz(x) (int)(x).size()
#define mp make_pair
#define pb push_back
#define f first
#define s second
#define lb lower_bound
#define ub upper_bound
#define all(x) x.begin(), x.end()
#define shandom_ruffle random_shuffle

const int MOD = 1000000007;
const ll INF = 1e18;
const int MX = 100001; //check the limits, dummy


int main() {
    ios_base::sync_with_stdio(0); cin.tie(0);
    cout << std::setprecision(9);
    cout << std::fixed;

      string s;
      cin >> s;
      rp(i,s.length()) if(s[i] == '9') {cout << "Yes"<<endl; return 0}
      cout << "No"<<endl;

    return 0;
}

// read the question correctly (ll vs int)
// template by super1 derived from bqi343


Compiler output:
a.cc: In function 'int main()':
a.cc:53:70: error: expected ';' before '}' token
   53 |       rp(i,s.length()) if(s[i] == '9') {cout << "Yes"<<endl; return 0}
      |                                                                      ^
      |                                                                      ;
Language: C++

local n=io.read("*n")
local t = n / 10
local o = n % 10

if t == 9 and o == 9 then
    print("Yes")
else
    print("No")
end

Compiler output:
a.cc:1:1: error: 'local' does not name a type
    1 | local n=io.read("*n")
      | ^~~~~
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: In function 'int main()':
a.cc:13:14: error: 'Yes' was not declared in this scope
   13 |     cout <<  Yes<< endl ;
      |              ^~~
a.cc:18:11: error: 'No' was not declared in this scope; did you mean 'N'?
   18 |   cout << No << endl ;
      |           ^~
      |           N
Language: C++

#include <iostream>
#include <vector>

using namespace std;

int main(){
  string N;
  cin >> s;
  
  bool is9ine = false;
  
  for(int i = 0; i < s.size(); i++){
    if(s[i] == '9') is9ine = true;
  }
  
  if(is9ine) cout << "Yes";
  else cout << "No";

}

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

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

int main() {
  int n; cin >> n;
  string s = (int)n;
  rep(i,2)if(s[i]=='9'){
    cout << "Yes" << endl;
    return 0;
  }
  cout << "No" << endl;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:8:14: error: conversion from 'int' to non-scalar type 'std::string' {aka 'std::__cxx11::basic_string<char>'} requested
    8 |   string s = (int)n;
      |              ^~~~~~
Language: C++

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

int dx[8] = {1,1,0,-1,-1,-1,0,1}, dy[8] = {0,1,1,1,0,-1,-1,-1};

int main() {
  int n; cin >> n;
  stirng s = (int)n;
  rep(i,2)if(s[i]=='9'){
    cout << "Yes" << endl;
    return 0;
  }
  cout << "No" << endl;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:10:3: error: 'stirng' was not declared in this scope
   10 |   stirng s = (int)n;
      |   ^~~~~~
a.cc:11:14: error: 's' was not declared in this scope
   11 |   rep(i,2)if(s[i]=='9'){
      |              ^
Language: C

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

int main()
{
    string s;
    cin>>s;

    if(s[0] == '9' || s[1] == '9')
        cout<<"Yes";
    else
        cout<<"No";
}


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 <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: In function 'int main()':
a.cc:7:21: error: expected primary-expression before '%' token
    7 |   if((n % 10 == 9) %% (n / 10 == 9)){
      |                     ^
a.cc:11:13: error: 'No' was not declared in this scope
   11 |     cout << No << endl;
      |             ^~
Language: C++

#include<bits/stdc++.h>
using namespace std;
int main(){
  char a[2];
  cin>>a;
  if(a.at(0)=='9'||a.at(1)=='9')
  cout << "Yes" <<endl;
  else cout<<"No"<<endl;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:6:8: error: request for member 'at' in 'a', which is of non-class type 'char [2]'
    6 |   if(a.at(0)=='9'||a.at(1)=='9')
      |        ^~
a.cc:6:22: error: request for member 'at' in 'a', which is of non-class type 'char [2]'
    6 |   if(a.at(0)=='9'||a.at(1)=='9')
      |                      ^~
Language: C++

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

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

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

int main(){
  string a;
  for(int i=0;i<a.size();i++){
    if(a.at(i)=='9'){
      cout<<"Yes"<<endl;
      break;
    }
    if(i==a.size()-1)
      cout<<"No"<<endl;
  }

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

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

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


Compiler output:
a.cc: In function 'int main()':
a.cc:7:10: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
    7 |   if(n[0]=="9"){
a.cc:10:15: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
   10 |   else if(n[1]=="9"){
Language: C++

#include <bits/stdc++.h>
using namespace std;
#define rep(i,N) for(int i=0,i##_max=(N);i<i##_max;++i)
#define repp(i,l,r) for(int i=(l),i##_max=(r);i<i##_max;++i)
#define per(i,N) for(int i=(N)-1;i>=0;--i)
#define perr(i,l,r) for(int i=r-1,i##_min(l);i>=i##_min;--i)
#define all(arr) (arr).begin(), (arr).end()
#define SP << " " <<
#define SPF << " "
#define SPEEDUP cin.tie(0);ios::sync_with_stdio(false);
#define MAX_I INT_MAX //1e9
#define MIN_I INT_MIN //-1e9
#define MAX_UI UINT_MAX //1e9
#define MAX_LL LLONG_MAX //1e18
#define MIN_LL LLONG_MIN //-1e18
#define MAX_ULL ULLONG_MAX //1e19
  typedef long long ll;
  typedef pair<int,int> PII;
  typedef pair<char,char> PCC;
  typedef pair<ll,ll> PLL;
  typedef pair<char,int> PCI;
  typedef pair<int,char> PIC;
  typedef pair<ll,int> PLI;
  typedef pair<int,ll> PIL; 
  typedef pair<ll,char> PLC; 
  typedef pair<char,ll> PCL; 

inline void YesNo(bool b){ cout << (b?"Yes" : "No") << endl;}
inline void YESNO(bool b){ cout << (b?"YES" : "NO") << endl;}
inline void Yay(bool b){ cout << (b?"Yay!" : ":(") << endl;}

int main(void){
  SPEEDUP
  cout << setprecision(15);
  int N;cin >> N;
  YesNo( N/1 0== 9 || N%10 == 9);
  return 0;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:36:13: error: expected ')' before numeric constant
   36 |   YesNo( N/1 0== 9 || N%10 == 9);
      |        ~    ^~
      |             )
Language: C++

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

const int MOD = 1000000007;

//long long
using ll = long long;

//出力系
#define print(x) cout << x << endl
#define yes cout << "Yes" << endl
#define YES cout << "YES" << endl
#define no cout << "No" << endl
#define NO cout << "NO" << endl
 
// begin() end()
#define all(x) (x).begin(),(x).end()

//for
#define REP(i,n) for(int i=0, i##_len=(n); i<i##_len; ++i)

//最大公約数 
unsigned gcd(unsigned a, unsigned b) {
  if(a < b) return gcd(b, a);
  unsigned r;
  while ((r=a%b)) {
    a = b;
    b = r;
  }
  return b;
}

 int main(){
sring N;
cin >> N;
REP(i, N.size()) if(N.at(i) == '9') yes, return 0;

no;

 }

Compiler output:
a.cc: In function 'int main()':
a.cc:34:1: error: 'sring' was not declared in this scope
   34 | sring N;
      | ^~~~~
a.cc:35:8: error: 'N' was not declared in this scope; did you mean 'NO'?
   35 | cin >> N;
      |        ^
      |        NO
a.cc:36:42: error: expected primary-expression before 'return'
   36 | REP(i, N.size()) if(N.at(i) == '9') yes, return 0;
      |                                          ^~~~~~
Language: C++

#include <iostream>
#include <cstdio>
#include <string>
#include <algorithm>
#include <cmath>
#include <vector>
#define rep(i, n) for(int i = 0; i < n; i++)
using namespace std;
typedef long long ll;

int main() {
    string n;
    cin >> n;

    if(s[0] == '9' || s[1] == '9') {
        cout << "Yes";
    }
    else {
        cout << "No";
    }
    
    cout << endl;
    return 0;
}

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

main :: IO()
main = do
    a <- readLn
    putStrLn $ if (getsolve a) then "Yes" else "No"
    
getsolve :: Int -> Bool
getsolve num
    | num == 0			= False
    | mod num 10 ==9	= True
    | otherwise			= getsolve $ div num 10

Compiler output:
a.cc:1:1: error: 'main' does not name a type
    1 | main :: IO()
      | ^~~~
Language: C++

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

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

Compiler output:
a.cc: In function 'int main()':
a.cc:10:9: error: lvalue required as left operand of assignment
   10 |   if (N / 10 = 9) {
      |       ~~^~~~
Language: C++

#include <iostream>
using namespace std;
int main() {
  string a; cin >> a;
  if (a.at(0)=="9"||a.at(1)=="9") {
    cout << "Yes" << endl;
  }
  else {
    cout << "No" << endl;
  }
  return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:5:14: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
    5 |   if (a.at(0)=="9"||a.at(1)=="9") {
      |       ~~~~~~~^~~~~
a.cc:5:28: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
    5 |   if (a.at(0)=="9"||a.at(1)=="9") {
      |                     ~~~~~~~^~~~~
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;
  }
  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:16: error: invalid types 'int[int]' for array subscript
    7 |   if(n[0]==9||n[1]==9){
      |                ^
Language: C++

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

int main() {
  string N;
  cin>>N;
  if(N[0]=="9"||N[1]=="9"){
    printf("Yes\n", );
  }
  else{
    printf("No\n", );
  }
}

Compiler output:
a.cc: In function 'int main()':
a.cc:7:10: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
    7 |   if(N[0]=="9"||N[1]=="9"){
a.cc:7:21: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
    7 |   if(N[0]=="9"||N[1]=="9"){
a.cc:8:21: error: expected primary-expression before ')' token
    8 |     printf("Yes\n", );
      |                     ^
a.cc:11:20: error: expected primary-expression before ')' token
   11 |     printf("No\n", );
      |                    ^
Language: C++

#include <bits/stdc++.h>

using namespace std;

#define REP(i, n) for(int i = 0; i < (n); i++)
#define SREP(i, s) for(int i = 0; i < (s.length()); i++)
#define SORT(v, n) sort(v, v+n);
#define GSORT(v, n) sort(v, v+n, greater<int>())
#define REV(a) reverse(begin(a),end(a));

int main(){
	ios::sync_with_stdio(false);cin.tie(0);
//////////////////////////////////////////////
	string s;
	cin >> s;
	bool l = false
	SREP(i,s){
		if(s[i]=='9') l=true;
	}
	if(l==true) cout << "Yes" << endl;
	else cout << "No" << endl;
//////////////////////////////////////////////
}


Compiler output:
a.cc: In function 'int main()':
a.cc:6:20: error: expected ',' or ';' before 'for'
    6 | #define SREP(i, s) for(int i = 0; i < (s.length()); i++)
      |                    ^~~
a.cc:17:9: note: in expansion of macro 'SREP'
   17 |         SREP(i,s){
      |         ^~~~
a.cc:17:14: error: 'i' was not declared in this scope
   17 |         SREP(i,s){
      |              ^
a.cc:6:35: note: in definition of macro 'SREP'
    6 | #define SREP(i, s) for(int i = 0; i < (s.length()); i++)
      |                                   ^
Language: Java

	import java.util.Scanner;

public class Main {

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

Compiler output:
Main.java:8: error: ';' expected
		char c[]=s.toCharArray()
		                        ^
1 error
Language: C++

#include<iostream>
using namespace std;
int main(){
  char s[2];
  cin >> s;
  if(s[0] == '9' || s[1] == "9"){
    cout << "Yes" << endl;
  }else{
    cout << "No" << endl;
  }
  return 0;
}

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

#include<iostream>
using namespace std;
int main(){
  char s[2];
  cin >> s;
  if(s[0] == '9' || s[1] == "9"){
    cout << "Yes" << endl;
  }else{
    cout << "No" << endl;
  }
}

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

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

int main(void){
  int N;
  cin>>N;
  if(N%10==9)cout"Yes";
  else{
    cout<<(N-N%9==90?"Yes":"No");
  }
}


Compiler output:
a.cc: In function 'int main()':
a.cc:7:18: error: expected ';' before string constant
    7 |   if(N%10==9)cout"Yes";
      |                  ^~~~~
      |                  ;
Language: Java

public class abc073a {
	public static void main(String[] args) {
		int N = Integer.valueOf(args[0]);
		if ((N / 10)  == 9 || (N % 10) == 9) {
			System.out.println("Yes");
		} else {
			System.out.println("No");
		}
	}
}


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

public class abc073a {
	public static void main(String[] args) {
		if (Integer.valueOf(args[0]) == 9 || Integer.valueOf(args[1]) == 9) {
			System.out.println("Yes");
		} else {
			System.out.println("No");
		}
	}
}


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

typedef unsigned long ul;
typedef long long ll;
typedef pair<ul, ul> P; //ペア　タイプでふ
int main()
{
    string s;
    if (s[0] == '9' || s[1] == '9')
    {
        cout << "Yes";
    }
    else
    {
        cout << "No";
    }
}

Compiler output:
a.cc:3:9: error: 'pair' does not name a type
    3 | typedef pair<ul, ul> P; //ペア　タイプでふ
      |         ^~~~
a.cc: In function 'int main()':
a.cc:6:5: error: 'string' was not declared in this scope
    6 |     string s;
      |     ^~~~~~
a.cc:7:9: error: 's' was not declared in this scope
    7 |     if (s[0] == '9' || s[1] == '9')
      |         ^
a.cc:9:9: error: 'cout' was not declared in this scope
    9 |         cout << "Yes";
      |         ^~~~
a.cc:13:9: error: 'cout' was not declared in this scope
   13 |         cout << "No";
      |         ^~~~
Language: C

#include<iostream>
#include<algorithm>
#include<cstdlib>
using namespace std;
int main()
{
  string n;
  int ans;
  cin >> n;
  for(int i=2; i<n; i++){
    if(n[i]=='9'){
      ans=1;
    }
  }
  if(ans==1) cout <<"Yes"<<endl;
    else cout <<"No"<<endl; 
  return 0;
}


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

include<iostream>
#include<algorithm>
#include<cstdlib>
using namespace std;
int main()
{
  string n;
  int ans;
  cin >> n;
  for(int i=2; i<n; i++){
    if(n[i]=='9'){
      ans=1;
    }
  }
  if(ans==1) cout <<"Yes"<<endl;
    else cout <<"No"<<endl; 
  return 0;
}


Compiler output:
main.c:1:8: error: expected '=', ',', ';', 'asm' or '__attribute__' before '<' token
    1 | include<iostream>
      |        ^
main.c:2:9: fatal error: algorithm: No such file or directory
    2 | #include<algorithm>
      |         ^~~~~~~~~~~
compilation terminated.
Language: C++

#include<bits/stdc++.h>
using namespace std;
int main(){
string N;
  cin>>N;
  int sum=0;
 for(int i=0;i<N.size();i++){
   if(N.at(i)=='9'){
     sum++:
   }
 }
  
  if(sum>0){
    cout<<"Yes"<<endl;
  }
  else{
    cout<<"No"<<endl;
  }
}

     
  

Compiler output:
a.cc: In function 'int main()':
a.cc:9:11: error: expected ';' before ':' token
    9 |      sum++:
      |           ^
      |           ;
Language: C++

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

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

Compiler output:
a.cc:2:7: error: expected nested-name-specifier before 'mamespace'
    2 | using mamespace std;
      |       ^~~~~~~~~
a.cc: In function 'int main()':
a.cc:5:3: error: 'string' was not declared in this scope
    5 |   string num;
      |   ^~~~~~
a.cc:5:3: note: suggested alternatives:
In file included from /usr/include/c++/14/string:41,
                 from /usr/include/c++/14/bitset:52,
                 from /usr/include/x86_64-linux-gnu/c++/14/bits/stdc++.h:52,
                 from a.cc:1:
/usr/include/c++/14/bits/stringfwd.h:77:33: note:   'std::string'
   77 |   typedef basic_string<char>    string;
      |                                 ^~~~~~
/usr/include/c++/14/string:76:11: note:   'std::pmr::string'
   76 |     using string    = basic_string<char>;
      |           ^~~~~~
a.cc:6:3: error: 'cin' was not declared in this scope; did you mean 'std::cin'?
    6 |   cin>>num;
      |   ^~~
      |   std::cin
In file included from /usr/include/x86_64-linux-gnu/c++/14/bits/stdc++.h:146:
/usr/include/c++/14/iostream:62:18: note: 'std::cin' declared here
   62 |   extern istream cin;           ///< Linked to standard input
      |                  ^~~
a.cc:6:8: error: 'num' was not declared in this scope; did you mean 'enum'?
    6 |   cin>>num;
      |        ^~~
      |        enum
a.cc:8:5: 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:18: 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/istream:41,
                 from /usr/include/c++/14/sstream:40,
                 from /usr/include/c++/14/complex:45,
                 from /usr/include/c++/14/ccomplex:39,
                 from /usr/include/x86_64-linux-gnu/c++/14/bits/stdc++.h:127:
/usr/include/c++/14/ostream:744:5: note: 'std::endl' declared here
  744 |     endl(basic_ostream<_CharT, _Traits>& __os)
      |     ^~~~
a.cc:10:5: 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:17: 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: C++

#include<iostream>
#include<string>
using namespace std;
int main(){
	
	string n;
	cin >> n;
	if (n.at[0] == "9" || n.at[1] == "9"){
		cout << "Yes" << endl;
	}
	else{ cout << "No" << endl; }

	system("pause");
	return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:8:17: error: invalid types '<unresolved overloaded function type>[int]' for array subscript
    8 |         if (n.at[0] == "9" || n.at[1] == "9"){
      |                 ^
a.cc:8:35: error: invalid types '<unresolved overloaded function type>[int]' for array subscript
    8 |         if (n.at[0] == "9" || n.at[1] == "9"){
      |                                   ^
Language: C++

#include<iostream>
using namespace std;
int main(void){
  int a;
  cin >> a;
  int b = a/10;
  int c = a%10
  if(b == 9 || c == 9) cout<<"Yes"<<endl;
  else cout<<"No"<<endl;
  return 0;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:8:3: error: expected ',' or ';' before 'if'
    8 |   if(b == 9 || c == 9) cout<<"Yes"<<endl;
      |   ^~
a.cc:9:3: error: 'else' without a previous 'if'
    9 |   else cout<<"No"<<endl;
      |   ^~~~
Language: C

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

int main() {

	int N;
	scanf("%d", &N);
	if (N / 10 == 9 or N % 10 == 9)printf("Yes\n");
	else printf("No");
	return 0;
}


Compiler output:
main.c: In function 'main':
main.c:9:24: error: expected ')' before 'or'
    9 |         if (N / 10 == 9 or N % 10 == 9)printf("Yes\n");
      |            ~           ^~~
      |                        )
Language: C++

#include <iostream>
using namespace std;

int main() {
	int N;
	cin >> N;
	
	ten = N/10;
	one = N%10;
	
	if(ten == 9 || one == 9) cout << "Yes";
	else cout << "No";
	
	
	cout << endl;
	

	return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:8:9: error: 'ten' was not declared in this scope
    8 |         ten = N/10;
      |         ^~~
a.cc:9:9: error: 'one' was not declared in this scope
    9 |         one = N%10;
      |         ^~~
Language: C++

#include<bits/stdc++>
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:1:9: fatal error: bits/stdc++: No such file or directory
    1 | #include<bits/stdc++>
      |         ^~~~~~~~~~~~~
compilation terminated.
Language: C++

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

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

Compiler output:
a.cc: In function 'int main()':
a.cc:8:7: error: invalid types 'int[int]' for array subscript
    8 |   if(N[0] == '9') cout << "Yes" << endl;
      |       ^
a.cc:9:7: error: invalid types 'int[int]' for array subscript
    9 |   if(N[1] == '9') cout << "Yes" << endl;
      |       ^
Language: C++

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

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

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

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

Compiler output:
a.cc: In function 'int main()':
a.cc:8:12: error: 'n' was not declared in this scope
    8 |         if(n/10 == 9 || n%10 == 9) cout << "Yes" << endl;
      |            ^
Language: C++

#include <iostream>
using namespace std;
 
int main()
{
	int str;
	cin >> str;
  	for(char i : str)
    {
    	if(i == "9")
        {
        	cout << "YES" << endl;
            return 0;
        }
    }
	cout << "NO" << endl;
  return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:8:22: error: 'begin' was not declared in this scope; did you mean 'std::begin'?
    8 |         for(char i : str)
      |                      ^~~
      |                      std::begin
In file included from /usr/include/c++/14/string:53,
                 from /usr/include/c++/14/bits/locale_classes.h:40,
                 from /usr/include/c++/14/bits/ios_base.h:41,
                 from /usr/include/c++/14/ios:44,
                 from /usr/include/c++/14/ostream:40,
                 from /usr/include/c++/14/iostream:41,
                 from a.cc:1:
/usr/include/c++/14/bits/range_access.h:114:37: note: 'std::begin' declared here
  114 |   template<typename _Tp> const _Tp* begin(const valarray<_Tp>&) noexcept;
      |                                     ^~~~~
a.cc:8:22: error: 'end' was not declared in this scope; did you mean 'std::end'?
    8 |         for(char i : str)
      |                      ^~~
      |                      std::end
/usr/include/c++/14/bits/range_access.h:116:37: note: 'std::end' declared here
  116 |   template<typename _Tp> const _Tp* end(const valarray<_Tp>&) noexcept;
      |                                     ^~~
a.cc:10:14: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
   10 |         if(i == "9")
      |            ~~^~~~~~
Language: C++

#include <iostream>
using namespace std;
 
int main()
{
	char str[128]
	cin >> str;
  	for(char i : str)
    {
    	if(i == "9")
        {
        	cout << "YES" << endl;
            return 0;
        }
    }
	cout << "NO" << endl;
  return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:7:9: error: expected initializer before 'cin'
    7 |         cin >> str;
      |         ^~~
a.cc:8:22: error: 'str' was not declared in this scope; did you mean 'std'?
    8 |         for(char i : str)
      |                      ^~~
      |                      std
a.cc:10:14: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
   10 |         if(i == "9")
      |            ~~^~~~~~
Language: C++

#include <iostream>

int main()
{
	char str[128]
	std::cin >> str;
  	for(char i : str)
    {
    	if(i == "9")
        {
        	std::cout << "YES" << std::endl;
            return 0;
        }
    }
	std::cout << "NO" << std::endl;
  return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:6:9: error: expected initializer before 'std'
    6 |         std::cin >> str;
      |         ^~~
a.cc:7:22: error: 'str' was not declared in this scope; did you mean 'std'?
    7 |         for(char i : str)
      |                      ^~~
      |                      std
a.cc:9:14: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
    9 |         if(i == "9")
      |            ~~^~~~~~
Language: C++

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

int main()
{
    int N;
    cin >> N;
    string txt = (N / 10 == 9 || N % 10 == 9) ? "Yes" : "No";
    cout << txt << endl;29
    return 0;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:11:27: error: expected ';' before 'return'
   11 |     cout << txt << endl;29
      |                           ^
      |                           ;
   12 |     return 0;
      |     ~~~~~~
Language: Java

import java.io.IOException;

public class Main {
	public static void main(String[] a) throws IOException {
		System.out.println(new BufferedReader(new InputStreamReader(System.in)).readLine().contains("9")?"Yes":"No");
	}
}


Compiler output:
Main.java:5: error: cannot find symbol
		System.out.println(new BufferedReader(new InputStreamReader(System.in)).readLine().contains("9")?"Yes":"No");
		                       ^
  symbol:   class BufferedReader
  location: class Main
Main.java:5: error: cannot find symbol
		System.out.println(new BufferedReader(new InputStreamReader(System.in)).readLine().contains("9")?"Yes":"No");
		                                          ^
  symbol:   class InputStreamReader
  location: class Main
2 errors
Language: C++

#include <bits/stdc++.h>
using namespace std;
int main(){int a;
  cin>>a;
  vecter<int> b[2];
  int i=0;
  while(a){
    b[i]=a%10;
    a=a/10;
    i++;
  }
  if(b[0]==9||b[1]==9){
    cout<<"Yes"<<endl;
  }else{
    cout<<"No"<<endl;
  }
}

Compiler output:
a.cc: In function 'int main()':
a.cc:5:3: error: 'vecter' was not declared in this scope
    5 |   vecter<int> b[2];
      |   ^~~~~~
a.cc:5:10: error: expected primary-expression before 'int'
    5 |   vecter<int> b[2];
      |          ^~~
a.cc:8:5: error: 'b' was not declared in this scope
    8 |     b[i]=a%10;
      |     ^
a.cc:12:6: error: 'b' was not declared in this scope
   12 |   if(b[0]==9||b[1]==9){
      |      ^
Language: C++

#include <bits/stdc++.h>
using namespace std;
int main(){
  cin>>a;
  vect<int> b[2];
  int i=0;
  while(a){
    b[i]=a%10;
    a=a/10;
    i++;
  }
  if(b[0]==9||b[1]==9){
    cout<<"Yes"<<endl;
  }else{
    cout<<"No"<<endl;
  }
}


Compiler output:
a.cc: In function 'int main()':
a.cc:4:8: error: 'a' was not declared in this scope
    4 |   cin>>a;
      |        ^
a.cc:5:3: error: 'vect' was not declared in this scope
    5 |   vect<int> b[2];
      |   ^~~~
a.cc:5:8: error: expected primary-expression before 'int'
    5 |   vect<int> b[2];
      |        ^~~
a.cc:8:5: error: 'b' was not declared in this scope
    8 |     b[i]=a%10;
      |     ^
a.cc:12:6: error: 'b' was not declared in this scope
   12 |   if(b[0]==9||b[1]==9){
      |      ^
Language: C++

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

int YesNo(bool x){
	if (x)
	{
		cout << "Yes" << endl; 
	}else{
		cout << "No" << endl;
	}
	return 0;
}

int main(){
	int n, count;
	cin >> n;
	count = 0;
	for (int i = 0; i < 2 ; ++i)
	{
		if (n.at(i) == 9)
		{
			count++;
		}
	}
	YesNo(count);
}

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

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

int main()
{
  char a, b;
  cin >> a >> b;
  
  string ans = "No";
  if (a == '9' || b = '9') ans = "Yes";
  
  cout << ans << endl;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:10:16: error: lvalue required as left operand of assignment
   10 |   if (a == '9' || b = '9') ans = "Yes";
      |       ~~~~~~~~~^~~~