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

n = input()
if '9' in n:
    print('Yes')
else:
    print('No')

Compiler output:
a.cc:3:11: warning: multi-character character constant [-Wmultichar]
    3 |     print('Yes')
      |           ^~~~~
a.cc:5:11: warning: multi-character character constant [-Wmultichar]
    5 |     print('No')
      |           ^~~~
a.cc:1:1: error: 'n' does not name a type
    1 | n = input()
      | ^
Language: C++

#include <bits/stdc++.h>
using namespace std;
 
int main() {
  string a;
  cin >> a;
  bool b = false;
  for(int i = 0; i < a.length(); i++) {
    if (a[i] == "9") {
      b = true;
    }
  }
  if (b) {
    cout << "Yes" << endl;
  } else {
    cout << "No" << endl;
  }
}

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

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

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

Compiler output:
a.cc: In function 'int main()':
a.cc:10:18: error: lvalue required as increment operand
   10 |   if (S.at(0) == '9' ++S.at(1) == '9') {
      |                  ^~~
a.cc:10:24: error: expected ')' before 'S'
   10 |   if (S.at(0) == '9' ++S.at(1) == '9') {
      |      ~                 ^
      |                        )
Language: C++

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

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

Compiler output:
a.cc: In function 'int main()':
a.cc:6:9: error: 'string' was not declared in this scope; did you mean 'stdin'?
    6 |         string N;
      |         ^~~~~~
      |         stdin
a.cc:7:5: error: 'cin' was not declared in this scope; did you mean 'sin'?
    7 |     cin >> N;
      |     ^~~
      |     sin
a.cc:7:12: error: 'N' was not declared in this scope
    7 |     cin >> N;
      |            ^
a.cc:8:13: error: 's' was not declared in this scope
    8 |         if (s[1] == 9)
      |             ^
a.cc:9:9: error: 'cout' was not declared in this scope
    9 |         cout << "Yes";
      |         ^~~~
a.cc:11:9: error: 'cout' was not declared in this scope
   11 |         cout << "No";
      |         ^~~~
Language: C++

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

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

Compiler output:
a.cc: In function 'int main()':
a.cc:6:9: error: 'string' was not declared in this scope; did you mean 'stdin'?
    6 |         string N;
      |         ^~~~~~
      |         stdin
a.cc:7:13: error: 's' was not declared in this scope
    7 |         if (s[1] == 9)
      |             ^
a.cc:8:9: error: 'cout' was not declared in this scope
    8 |         cout << "Yes";
      |         ^~~~
a.cc:10:9: error: 'cout' was not declared in this scope
   10 |         cout << "No";
      |         ^~~~
Language: C++

#include<iostream>
using namespace std;
int main(){
  int n;
  int sum=0;
  cin >> n;
  for(i=0;i<n;i++){
    int a,b;
    cin >> a >> b;
    sum+=b-a+1;
  }
  cout << sum;
  return 0;
}
  


Compiler output:
a.cc: In function 'int main()':
a.cc:7:7: error: 'i' was not declared in this scope
    7 |   for(i=0;i<n;i++){
      |       ^
Language: C++

#include<iostream>
using namespace std;
int main(){
  int n,i;
  int sum=0;
  cin >> n;
  int l[2][n]
  for(i=0;i<n;i++){
    cin >> l[i][0] >> l[i][1];
    sum+=l[i][0]-l[i][1]+1;
  }
  cout << sum;
  return 0;
}
  


Compiler output:
a.cc: In function 'int main()':
a.cc:8:3: error: expected initializer before 'for'
    8 |   for(i=0;i<n;i++){
      |   ^~~
a.cc:8:18: error: expected ';' before ')' token
    8 |   for(i=0;i<n;i++){
      |                  ^
      |                  ;
Language: C++

#include<iostream>
using namespace std;
int main(){
  int n,i;
  int sum=0;
  cin >> n;
  int l[2,n];
  for(i=0;i<n;i++){
    cin >> l[i,0] >> l[i,1];
    sum+=l[i,0]-l[i,1]+1;
  }
  cout << sum;
  return 0;
}
  


Compiler output:
a.cc: In function 'int main()':
a.cc:7:10: error: expected ']' before ',' token
    7 |   int l[2,n];
      |          ^
      |          ]
a.cc:7:12: error: expected initializer before ']' token
    7 |   int l[2,n];
      |            ^
a.cc:9:12: error: 'l' was not declared in this scope
    9 |     cin >> l[i,0] >> l[i,1];
      |            ^
Language: C++

#include<iostream>
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: In function 'int main()':
a.cc:6:14: error: expected primary-expression before '||' token
    6 |   if(n/10=9= || n%10==9){
      |              ^~
Language: C++

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

Compiler output:
a.cc:2:7: error: expected nested-name-specifier before 'namespave'
    2 | using namespave std;
      |       ^~~~~~~~~
a.cc: In function 'int main()':
a.cc:5:3: error: 'cin' was not declared in this scope; did you mean 'std::cin'?
    5 |   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:7:5: error: 'cout' was not declared in this scope; did you mean 'std::cout'?
    7 |     cout << "Yes";
      |     ^~~~
      |     std::cout
/usr/include/c++/14/iostream:63:18: note: 'std::cout' declared here
   63 |   extern ostream cout;          ///< Linked to standard output
      |                  ^~~~
a.cc:9:5: error: 'cout' was not declared in this scope; did you mean 'std::cout'?
    9 |     cout << "No";
      |     ^~~~
      |     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.util.*;
public class Main {
	public static void main(String[] args){
		Scanner sc = new Scanner(System.in);
		int a = sc.nextInt();
		if(a%b==9 || a/10==9){System.out.println("Yes");}
		else{System.out.println("No");}
	}
}


Compiler output:
Main.java:6: error: cannot find symbol
		if(a%b==9 || a/10==9){System.out.println("Yes");}
		     ^
  symbol:   variable b
  location: class Main
1 error
Language: C++

#include <iostream>
#include <vector>
#include <string>
#include <math.h>
#include <algorithm>
#include <set>
#include <iomanip>
#include <stdio.h>
#include <sstream>
#include <string>
using namespace std;
int main(void){
    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:15:12: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
   15 |     if(n[0]=="9"||n[1]=="9"){
a.cc:15:23: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
   15 |     if(n[0]=="9"||n[1]=="9"){
Language: C++

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

Compiler output:
a.cc: In function 'int main()':
a.cc:11:1: error: expected primary-expression before '}' token
   11 | }
      | ^
a.cc:10:11: error: expected ';' before '}' token
   10 |     return
      |           ^
      |           ;
   11 | }
      | ~
Language: C++

#include<iostream>
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:5:19: error: expected primary-expression before '||' token
    5 |   if(n % 10 == 9; || n / 10 == 9) cout << "Yes" << endl;
      |                   ^~
Language: C++

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

int main() {
  int N;
  string ans="No"
  cin >> N;
  if(N/10==9) ans="Yes";
  if(N%10==9) ans="Yes";
  cout << ans << endl;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:7:3: error: expected ',' or ';' before 'cin'
    7 |   cin >> N;
      |   ^~~
Language: C++

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

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

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

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



Compiler output:
a.cc: In function 'int main()':
a.cc:7:30: error: '\U00004e86' was not declared in this scope
    7 |     if (a[0]=='9'||a[1]=='9')了
      |                              ^~
Language: C++

#include <bits/stdc++.h>
using namespace std;
typedef long long ll;
typedef unsigned long long ull;
typedef pair<int,int> P;

#define rep(i, n) for (int i = 0; i < (int)(n); i++)
#define repl(i, n) for (ll i = 0; i < (ll)(n); i++)
#define repr(i, n) for(int i = n; i >= 0; i--)
#define reprl(i, n) for(ll i = n; i >= 0; i--)
#define fori(i, m, n) for(int i = m; i < (int)n; i++)
#define forl(i, m, n) for(ll i = m; i < (ll)n; i++)
#define all(v) v.begin(), v.end()
ll gcd(ll a,ll b) {
  return b? gcd(b,a%b): a;  
}
ll lcm(ll a,ll b) {
  return a*b/gcd(a,b);
}
bool isLowerCase(char c){
  return (c>='a'&&c<='z');
}
const string btos(bool ans){
  return (ans?"Yes":"No");
}
int main() {
  int n;cin>>n;
  bool ans=n%10==9;
  n/=10;
  ans=ans||n%10==9;
  cout<<btos(btos(ans))<<endl;
  return 0;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:31:18: error: cannot convert 'const std::string' {aka 'const std::__cxx11::basic_string<char>'} to 'bool'
   31 |   cout<<btos(btos(ans))<<endl;
      |              ~~~~^~~~~
      |                  |
      |                  const std::string {aka const std::__cxx11::basic_string<char>}
a.cc:23:24: note:   initializing argument 1 of 'const std::string btos(bool)'
   23 | const string btos(bool ans){
      |                   ~~~~~^~~
Language: C++

#include <bits/stdc++.h>
using namespace std;
typedef long long ll;
typedef unsigned long long ull;
typedef pair<int,int> P;

#define rep(i, n) for (int i = 0; i < (int)(n); i++)
#define repl(i, n) for (ll i = 0; i < (ll)(n); i++)
#define repr(i, n) for(int i = n; i >= 0; i--)
#define reprl(i, n) for(ll i = n; i >= 0; i--)
#define fori(i, m, n) for(int i = m; i < (int)n; i++)
#define forl(i, m, n) for(ll i = m; i < (ll)n; i++)
#define all(v) v.begin(), v.end()
ll gcd(ll a,ll b) {
  return b? gcd(b,a%b): a;  
}
ll lcm(ll a,ll b) {
  return a*b/gcd(a,b);
}
bool isLowerCase(char c){
  return (c>='a'&&c<='z');
}
const string btos(bool ans){
  return (ans?"Yes":"No");
}
int main() {
  string n;cin>>n;
  cout<<btos(s.find('9')!=npos)<<endl;
  return 0;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:28:14: error: 's' was not declared in this scope
   28 |   cout<<btos(s.find('9')!=npos)<<endl;
      |              ^
a.cc:28:27: error: 'npos' was not declared in this scope
   28 |   cout<<btos(s.find('9')!=npos)<<endl;
      |                           ^~~~
Language: C++

#include <bits/stdc++.h>
using namespace std;
typedef long long ll;
typedef unsigned long long ull;
typedef pair<int,int> P;

#define rep(i, n) for (int i = 0; i < (int)(n); i++)
#define repl(i, n) for (ll i = 0; i < (ll)(n); i++)
#define repr(i, n) for(int i = n; i >= 0; i--)
#define reprl(i, n) for(ll i = n; i >= 0; i--)
#define fori(i, m, n) for(int i = m; i < (int)n; i++)
#define forl(i, m, n) for(ll i = m; i < (ll)n; i++)
#define all(v) v.begin(), v.end()
ll gcd(ll a,ll b) {
  return b? gcd(b,a%b): a;  
}
ll lcm(ll a,ll b) {
  return a*b/gcd(a,b);
}
bool isLowerCase(char c){
  return (c>='a'&&c<='z');
}
const string btos(bool ans){
  return (ans?"Yes":"No");
}
int main() {
  string n;cin>>n;
  cout<<btos(s.find('9')!=s.end())<<endl;
  return 0;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:28:14: error: 's' was not declared in this scope
   28 |   cout<<btos(s.find('9')!=s.end())<<endl;
      |              ^
Language: C++

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

int main() {
  int n;
  cin >> n;
  
  if( n>89 || n%10=9 )
    cout << "Yes" << endl;
  else
    cout << "No" << endl;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:8:12: error: lvalue required as left operand of assignment
    8 |   if( n>89 || n%10=9 )
      |       ~~~~~^~~~~~~
Language: C++

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

int main() {
  int n;
  cin >> n;
  
  if( n>89 || n%10=9 )
    cout << "Yes" << endl;
  else
    cout << "NO" << endl;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:8:12: error: lvalue required as left operand of assignment
    8 |   if( n>89 || n%10=9 )
      |       ~~~~~^~~~~~~
Language: C++

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

int main() {
  int n;
  cin >> n;
  int x=0;
  
  for(int i=0;i<n;i++){
    int l,r;
    cin >> l >> r;
    X +=r-l+1
  }
  
  cout << x <<endl;
    
}


Compiler output:
a.cc: In function 'int main()':
a.cc:12:5: error: 'X' was not declared in this scope
   12 |     X +=r-l+1
      |     ^
Language: C++

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

int main(){
	int n; cin >> n;
  	bool f=false
  	while(n!=0){
      if(n%10==9) f= true;
      n/=10;
    }
  	cout << (f?"Yes":"No");
}

Compiler output:
a.cc: In function 'int main()':
a.cc:7:9: error: expected ',' or ';' before 'while'
    7 |         while(n!=0){
      |         ^~~~~
Language: C++

#include<bits/stdc++.h>
using namespace std;
int main(){
   string s;
   cin>>s;
   int i,k=0;
   for(i=0;i<=s.size-1;i++){
        if(s[i]=='9'){
            cout<<"Yes";
            k=1;
            break;
        }
    }
    if(k==0)cout<<"No";
}

Compiler output:
a.cc: In function 'int main()':
a.cc:7:17: error: invalid use of member function 'std::__cxx11::basic_string<_CharT, _Traits, _Alloc>::size_type std::__cxx11::basic_string<_CharT, _Traits, _Alloc>::size() const [with _CharT = char; _Traits = std::char_traits<char>; _Alloc = std::allocator<char>; size_type = long unsigned int]' (did you forget the '()' ?)
    7 |    for(i=0;i<=s.size-1;i++){
      |               ~~^~~~
      |                     ()
Language: C++

#include<bits/stdc++.h>
using namespace std;
int main(){
   string s;
   cin>>s;
   int i,k=0;
   for(i=0;i<=s.zize-1;i++){
        if(s[i]=='9'){
            cout<<"Yes";
            k=1;
            break;
        }
    }
    if(k==0)cout<<"No";
}

Compiler output:
a.cc: In function 'int main()':
a.cc:7:17: error: 'std::string' {aka 'class std::__cxx11::basic_string<char>'} has no member named 'zize'; did you mean 'size'?
    7 |    for(i=0;i<=s.zize-1;i++){
      |                 ^~~~
      |                 size
Language: C++

#include <bits/stdc++.h>
using namespace std;
#define pp pair<int,int>
#define rep(i,n) for(int (i)=0;(i)<(n);(i)++)
#define ll long long
#define ld long double
#define all(a) (a).begin(),(a).end()
#define mk make_pair
ll MOD=1000000007;
ll mod=998244353;
int inf=1000001000;
ll INF=1e18+5;


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


Compiler output:
a.cc: In function 'int main()':
a.cc:18:48: error: 'enel' was not declared in this scope
   18 |   if (s[0]=='9' || s[1]=='9') cout << "Yes" << enel;
      |                                                ^~~~
Language: C++

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

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

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

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

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

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

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

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

int main(void){
    int n = 0; 

    scanf("%d", &n);

    if(n / 10 == 9 || n % 10 == 9){
        printf("Yes\n");
    }else{
        printf("No\n");
    }

    return 0;

} 


Compiler output:
a.cc:16:14: error: stray '\16' in program
   16 |     return 0;<U+000E>
      |              ^~~~~~~~
Language: C++

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

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

Compiler output:
a.cc: In function 'int main()':
a.cc:13:17: error: 'asn' was not declared in this scope; did you mean 'ans'?
   13 |         cout << asn << endl;
      |                 ^~~
      |                 ans
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:17: error: invalid types '<unresolved overloaded function type>[int]' for array subscript
    6 |         if (n.at[0] == '9' || n.at[1] == '9') {
      |                 ^
a.cc:6:35: error: invalid types '<unresolved overloaded function type>[int]' for array subscript
    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:1:9: fatal error: bits/stdc++h.: No such file or directory
    1 | #include<bits/stdc++h.>
      |         ^~~~~~~~~~~~~~~
compilation terminated.
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;
}

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

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

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

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

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

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

int main() {
  
  int N, L, R, sum;
  cin >> N;
  
   rep(i, n) {
   
   cin >> L >> R;
    
    if(i == L){
    cout << sum + R - L++ << endl;
    }
   }
  } 

Compiler output:
a.cc: In function 'int main()':
a.cc:10:11: error: 'n' was not declared in this scope
   10 |    rep(i, n) {
      |           ^
a.cc:3:45: note: in definition of macro 'rep'
    3 | #define rep(i, n) for (int i = 0; i < (int)(n); i++)
      |                                             ^
Language: C++

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

}


Compiler output:
a.cc: In function 'int main()':
a.cc:15:15: error: invalid operands of types 'const char [4]' and '<unresolved overloaded function type>' to binary 'operator<<'
   15 |     cout<"Yes"<<endl;
      |          ~~~~~^~~~~~
Language: C++

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

}


Compiler output:
a.cc: In function 'int main()':
a.cc:15:10: error: expected primary-expression before ',' token
   15 |     cout<,"Yes"<<endl;
      |          ^
a.cc:15:16: error: invalid operands of types 'const char [4]' and '<unresolved overloaded function type>' to binary 'operator<<'
   15 |     cout<,"Yes"<<endl;
      |           ~~~~~^~~~~~
Language: C++

#include <bits/stdc++.h>
using namespace std;
typedef long long int ll;
typedef long double ld;
template<class T> inline bool chmax(T& a, T b) { if (a < b) { a = b; return 1; } return 0; }
template<class T> inline bool chmin(T& a, T b) { if (a > b) { a = b; return 1; } return 0; }
const long long INF = 1LL << 60;
 
typedef pair<ll,ll> pairs;
vector<pairs> p;
bool pairCompare(const pair<double,ll>& firstElof, const pair<double,ll>& secondElof){
    return firstElof.first < secondElof.first;
}
#define MAX_N 1000100
bool x[MAX_N];
ll num[MAX_N];
ll fibl[MAX_N]={0};
 
ll fib(ll a){
    if (fibl[a]!=0)return fibl[a];
    if (a==0){
        return 0;
    }else if (a==1){
        return 1;
    }
    return fibl[a]=fib(a-1)+fib(a-2);
}
 
ll eratosthenes(ll n) {
    int p = 0;
    for (ll i=0; i<=n; ++i) x[i] = true;
    x[0] = x[1] = false;
    for(int i=2; i<=n; ++i) {
        if(x[i]) {
            p++;
            for(int j=2*i; j<=n; j+=i) x[j] = false;
        }
        
        num[i] = p;
    }
    return p;
}
 
ll gcd(ll a,ll b){
    if (a%b==0)return(b);
    else return(gcd(b,a%b));
}
 
ll keta(ll N){
    int tmp{};
    while( N > 0 ){
        tmp += ( N % 10 );
        N /= 10;
    }
    N = tmp;
    return N;
}

int 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 'int main()':
a.cc:64:31: error: expected ';' before 'return'
   64 |     else cout << "No << endl;"
      |                               ^
      |                               ;
   65 | 
   66 |     return 0;
      |     ~~~~~~
Language: C++

#include <bits/stdc++.h>
using namespace std;
int main(){
  string 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:6:10: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
    6 |   if(s[0]=="9"||s[1]=="9")cout<<"Yes"<<endl;
a.cc:6:21: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
    6 |   if(s[0]=="9"||s[1]=="9")cout<<"Yes"<<endl;
Language: Java

import java.util.*;

class Main {
public static void main(String[] args){

Scanner sc = new Scanner(System.in);
String a = sc.next();
String ans = "No";
for(int i = 0;i < a.length();i++){
  if(a.sustring(i,++i).equals("9")){
    ans = "Yes";
  }
}
System.out.println(ans);

}
}

Compiler output:
Main.java:10: error: cannot find symbol
  if(a.sustring(i,++i).equals("9")){
      ^
  symbol:   method sustring(int,int)
  location: variable a of type String
1 error
Language: C++

#include<iostream>
#include<string>
#include<algorithm>
#include<vector>
#include<queue>
#include<map>
#include<math.h>
#include<iomanip>
#include<set>
#include<numeric>
#include<cstring>
#include<cstdio>
#include<functional>
#include<bitset>
#include<limits.h>
#include<cassert>
#include<iterator>
#include<complex>
#include<stack>
#include<sstream>
using namespace std;
typedef  long long int lint;
typedef pair<int, int> P;
typedef pair<lint, lint> LLP;
typedef pair<char, char>CP;
#define rep(i, n) for (int i = 0; i < n; i++)
#define repr(i, n) for (int i = n; i >= 0; i--)
#define sort(v) sort((v).begin(), (v).end())
#define reverse(v) reverse((v).begin(), (v).end())
#define upper(v,hoge) upper_bound(v.begin(),v.end(),hoge)
#define lower(v,hoge) lower_bound(v.begin(),v.end(),hoge)
#define llower(v,hoge) *lower_bound(v.begin(), v.end(), hoge)
#define lupper(v,hoge) *upper_bound(v.begin(), v.end(), hoge)
/*
vector<char>al(26);
al = {'a','b','c','d','e','f','g','h','i','j','k','l','m','n','o','p','q','r','s','t','u','v','w','x','y','z'};
vector<char>AL(26);
AL = {'A','B','C','D','E','F','G','H','I','J','K','L','M','N','O','P','Q','R','S','T','U','V','W','X','Y','Z'};
vector<char>NUM(10);
	NUM = { '0','1','2' ,'3' ,'4' ,'5' ,'6' ,'7' ,'8' ,'9' };
*/



int main() {
	string 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:52:37: error: expected ';' before ':' token
   52 |                 cout << "No" << endl:
      |                                     ^
      |                                     ;
Language: Java

import java.util.*;

public class Main{

	public static void main(String[] args){
		Scanner sc = new Scanner(System.in);
		int N = sc.nextInt();
		
		if(N%10==9 || n/10==9){
			System.out.println("Yes");
		} else{
			System.out.println("No");
		}
	}
}

Compiler output:
Main.java:9: error: cannot find symbol
		if(N%10==9 || n/10==9){
		              ^
  symbol:   variable n
  location: class Main
1 error
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" << nedl;
  }else{
    cout << "No" << endl;
  }
}

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

package contest;

import java.io.PrintWriter;
import java.util.ArrayList;
import java.util.HashMap;
import java.util.Scanner;

public class Main {
	public static void main(final String args[]) {
		Scanner sc = new Scanner(System.in);
		PrintWriter out = new PrintWriter(System.out);
		int N = Integer.parseInt(sc.next());
		int M = Integer.parseInt(sc.next());
		int R = Integer.parseInt(sc.next());
		edge[] e = new edge[M];
		int dist[][] = new int[N][N];
		for(int i=0;i<N;i++){
			for(int j=0;j<N;j++){
				if(i!=j) dist[i][j] = Integer.MAX_VALUE;
				else dist[i][j] = 0;
			}
		}
		ArrayList<Integer> cities = new ArrayList<>();
		for (int i = 0; i < R; i++) {
			cities.add(Integer.parseInt(sc.next()));
		}
		for (int i = 0; i < M; i++) {
			int a = Integer.parseInt(sc.next()) - 1;
			int b = Integer.parseInt(sc.next()) - 1;
			int c = Integer.parseInt(sc.next());
			edge[i] = new edge(a,b,c);
			dist[a][b] = Math.min(c,dist[a][b]);
			dist[b][a] = Math.min(c,dist[b][a]);
		}

		for(int k=0;k<N;k++){
			for(int i=0;i<N;i++){
				for(int j=0;j<N;j++){
					dist[i][j] = Math.min(dist[i][j],dist[i][k]+dist[k][j]);
				}
			}
		}

		int result = 0;
		for(int i=0;i<cities.size()-1;i++){
			result += dist[i][i+1];
		}


		out.println(result);
		out.flush();
	}
}
 public class edge {
	int cost;

	public edge(int a, int b, int c) {
		this.cost = c;
	}
 }

}

Compiler output:
a.cc:1:1: error: 'package' does not name a type
    1 | package contest;
      | ^~~~~~~
a.cc:3:1: error: 'import' does not name a type
    3 | import java.io.PrintWriter;
      | ^~~~~~
a.cc:3:1: note: C++20 'import' only available with '-fmodules-ts'
a.cc:4:1: error: 'import' does not name a type
    4 | import java.util.ArrayList;
      | ^~~~~~
a.cc:4:1: note: C++20 'import' only available with '-fmodules-ts'
a.cc:5:1: error: 'import' does not name a type
    5 | import java.util.HashMap;
      | ^~~~~~
a.cc:5:1: note: C++20 'import' only available with '-fmodules-ts'
a.cc:6:1: error: 'import' does not name a type
    6 | import java.util.Scanner;
      | ^~~~~~
a.cc:6:1: note: C++20 'import' only available with '-fmodules-ts'
a.cc:8:1: error: expected unqualified-id before 'public'
    8 | public class Main {
      | ^~~~~~
a.cc:54:2: error: expected unqualified-id before 'public'
   54 |  public class edge {
      |  ^~~~~~
a.cc:62:1: error: expected declaration before '}' token
   62 | }
      | ^
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:30: error: expected ')' before '{' token
    7 |   if((N/10 == 9)||(N%10 == 9){
      |     ~                        ^
      |                              )
a.cc:12:1: error: expected primary-expression before '}' token
   12 | }
      | ^
Language: Java

import java.util.*;
public class Main {
  public static void main(String[] args){
    Scanner sc = new Scanner(System.in);
    
    String s = sc.nextInt();
    
    String tens = s.substring(0, 1);
    String ones = s.substring(1, 2);
    
    if (tens.equals("9") || ones.equals("9")) {
      System.out.println("Yes");
    } else {
      System.out.println("No");
    }
  }
}

Compiler output:
Main.java:6: error: incompatible types: int cannot be converted to String
    String s = sc.nextInt();
                         ^
1 error
Language: C++


#include <iostream>


using namespace std;
int main()
{

    int r;
    cin>>r;
if(r>=10 &&  r<=99){
    
    if((s%10==9) ||(s/10==9)){
    cout<<"Yes";

    }
    else{
        cout<<"No";
    }
}
else cout<<"WRONG";
    return 0;
}


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


#include <iostream>


using namespace std;
int main()
{

    int r;
    cin>>r;

    
    if((s%10==9) ||(s/10==9)){
    cout<<"Yes";

    }
    else{
        cout<<"No";
    }

    return 0;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:13:9: error: 's' was not declared in this scope
   13 |     if((s%10==9) ||(s/10==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:7:11: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
    7 |   if(n[0] == "9" || n[1] == "9"){
a.cc:7:26: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
    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"){
  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" || n[1]=="9"){
a.cc:7:23: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
    7 |   if(n[0]=="9" || n[1]=="9"){
a.cc:9:3: error: expected '}' before 'else'
    9 |   else cout << "No" << endl;
      |   ^~~~
a.cc:7:29: note: to match this '{'
    7 |   if(n[0]=="9" || n[1]=="9"){
      |                             ^
a.cc: At global scope:
a.cc:11:1: error: expected declaration before '}' token
   11 | }
      | ^
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:7:10: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
    7 |   if(n[0]=="9" || n[1]=="9") cout << "Yes" << endl;
a.cc:7:23: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
    7 |   if(n[0]=="9" || n[1]=="9") cout << "Yes" << endl;
Language: C++

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


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

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

Compiler output:
a.cc: In function 'int main()':
a.cc:7:7: error: invalid types 'int[int]' for array subscript
    7 |   if(a[0]||a[1]==9)
      |       ^
a.cc:7:13: error: invalid types 'int[int]' for array subscript
    7 |   if(a[0]||a[1]==9)
      |             ^
Language: Java

import java.util.*;

public class September_9 {
    public static void main(String[] args) {

        Scanner sc = new Scanner(System.in);
        int N = sc.nextInt();
        int first = N%10;
        int tenth = (N-first)/10;
        sc.close();
            
        if(first == 9 || tenth == 9){
            System.out.println("Yes");
        }else{
            System.out.println("No");
        }
    }
}

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

#include <stdio.h>

int main(void){
  int N,n;
  scanf("%d",&N);
  n= N/10;
  M=N*10;
  if(n%9==0){
    printf("Yes");
  }else if((N-M)%9==0){
    printf("Yes");
  }else{
    printf("No");
  }
  return 0;
}
  

Compiler output:
main.c: In function 'main':
main.c:7:3: error: 'M' undeclared (first use in this function)
    7 |   M=N*10;
      |   ^
main.c:7:3: note: each undeclared identifier is reported only once for each function it appears in
Language: C++



#include<bits/stdc++.h>
using namespace std;
#define inf INT_MAX
#define INF LLONG_MAX
#define ll long long
#define ull unsigned long long
#define M (int)(1e9+7)
#define P pair<int,int>
#define FOR(i,m,n) for(int i=(int)m;i<(int)n;i++)
#define RFOR(i,m,n) for(int i=(int)m;i>=(int)n;i--)
#define rep(i,n) FOR(i,0,n)
#define rrep(i,n) RFOR(i,n,0)
#define all(a) a.begin(),a.end()
const int vx[4] = {0,1,0,-1};
const int vy[4] = {1,0,-1,0};
#define F first
#define S second
#define PB push_back
#define EB emplace_back
#define int ll
#define vi vector<int>
#define IP pair<int,P>
#define PI pair<P,int>
#define PP pair<P,P>
#define Yes(f){cout<<(f?"Yes":"No")<<endl;}
#define YES(f){cout<<(f?"YES":"NO")<<endl;}
#define MPlus(x,y) {x=(x+y)%M;}
#define MSub(x,y) {x=(x-y+M)%M;}
#define MMul(x,y) {x=(x*y)%M;}


signed main(){
  cin.tie(0);
  ios::sync_with_stdio(false);
  cout<<fixed<<setprecision(20);

  int n;
  cin>>n;

  cout<<Yes(n%10==9||n/10==9)<<endl;


}

Compiler output:
a.cc: In function 'int main()':
a.cc:27:15: error: expected primary-expression before '{' token
   27 | #define Yes(f){cout<<(f?"Yes":"No")<<endl;}
      |               ^
a.cc:42:9: note: in expansion of macro 'Yes'
   42 |   cout<<Yes(n%10==9||n/10==9)<<endl;
      |         ^~~
a.cc:42:30: error: expected primary-expression before '<<' token
   42 |   cout<<Yes(n%10==9||n/10==9)<<endl;
      |                              ^~
Language: C++

#include<bits/stdc++.h>
using namespace std;
using ll = long long;
static const ll mod = 1000000007;
# define INF (1 < <29)
/* ちゃんと考えて実装して問題なくACできた時嬉しいよ！！ */

int dist[210][210];
void warshall_floyd(int n){
    for(int k=1; k<=n; k++){
        for(int i=1; i<=n; i++){
            for(int j=1; j<=n; j++){
                dist[i][j] = min(dist[i][j], dist[i][k] + dist[k][j]);
            }
        }
    }
}

int main(void){
    int n,m,r;
    cin >> n >> m >> r;
    vector<int> cities;
    for(int i=1; i<=r; i++){
        int x; cin >> x;
        cities.push_back(x);
    }

    // 初期化
    for(int i=1; i<=n; i++){
        for(int j=1; j<=n; j++){
            if(i==j){
                dist[i][j] = 0;
            }
            else{
                dist[i][j] = INF;
            }
        }
    }

    // グラフの受け取り
    for(int i=1; i<=m; i++){
        int a,b,c;
        cin >> a >> b >> c;
        dist[a][b] = c;
        dist[b][a] = c;
    }

    // 全街の間の最短路がわかる
    warshall_floyd(n);

    // 答えを求めよう
    // 貪欲の反例を見つけたｧｧぁ
    ll ans = INF;

    // r個の並び全てについて距離を調べられる
    // next_permutation使う
    sort(cities.begin(), cities.end());
    do{
        ll tmp_ans = 0;
        for(int i=0; i<r-1; i++){
            tmp_ans += dist[cities[i]][cities[i+1]];
        }
        if(tmp_ans <= ans){
            ans = tmp_ans;
        }
    }while(next_permutation(cities.begin(), cities.end()));

    cout << ans;
    return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:5:19: error: expected primary-expression before '<' token
    5 | # define INF (1 < <29)
      |                   ^
a.cc:35:30: note: in expansion of macro 'INF'
   35 |                 dist[i][j] = INF;
      |                              ^~~
a.cc:5:19: error: expected primary-expression before '<' token
    5 | # define INF (1 < <29)
      |                   ^
a.cc:53:14: note: in expansion of macro 'INF'
   53 |     ll ans = INF;
      |              ^~~
Language: C++

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

int main(){
int n;
  cin >> n;
  int ans=0;
  int a,b
  rep(i, n){
    cin >> a >> b;
    ans += b-a+1;
  }
  cout << ans << endl;

	return 0;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:3:19: error: expected initializer before 'for'
    3 | #define rep(i, n) for (int i=0; i<(int)(n); i++)
      |                   ^~~
a.cc:10:3: note: in expansion of macro 'rep'
   10 |   rep(i, n){
      |   ^~~
a.cc:10:7: error: 'i' was not declared in this scope
   10 |   rep(i, n){
      |       ^
a.cc:3:33: note: in definition of macro 'rep'
    3 | #define rep(i, n) for (int i=0; i<(int)(n); i++)
      |                                 ^
Language: C++

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

Compiler output:
a.cc:9:3: error: expected unqualified-id before 'else'
    9 |   else if(n%10==9){cout<<"Yes"<<endl;}
      |   ^~~~
a.cc:10:3: error: expected unqualified-id before 'else'
   10 |   else{cout << "No" << endl;}
      |   ^~~~
a.cc:12:3: error: expected unqualified-id before 'return'
   12 |   return 0;
      |   ^~~~~~
a.cc:13:1: error: expected declaration before '}' token
   13 | }
      | ^
Language: C

#include<stdio.h>

int main(){
	int a;
	
	scanf("%d",&a);
	if(a==19 or a==29 or a==39 or a==49 or a==59 or a==69 or a==79 or a==89 or a==90 
	or a==91 or a==92 or a==93 or a==94 or a==95 or a==96 or a==97 or a==98 or a==99){
		printf("Yes");
	}
	else{
		printf("No");
	}
}


Compiler output:
main.c: In function 'main':
main.c:7:17: error: expected ')' before 'or'
    7 |         if(a==19 or a==29 or a==39 or a==49 or a==59 or a==69 or a==79 or a==89 or a==90
      |           ~     ^~~
      |                 )
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{
        cour << "No" << endl;
    }
}

Compiler output:
a.cc: In function 'int main()':
a.cc:11:9: error: 'cour' was not declared in this scope
   11 |         cour << "No" << endl;
      |         ^~~~
Language: C++

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

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

 	return 0;
}

Compiler output:
a.cc:3:2: error: invalid preprocessing directive #includek; did you mean #include?
    3 | #includek<string>
      |  ^~~~~~~~
      |  include
Language: C++

using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace ABC073A
{
    class Program
    {
        static void Main(string[] args)
        {
            string n;
            n = Console.ReadLine();

            if (n[0] == '9' || n[1] == '9')
                Console.WriteLine("Yes");
            else
                Console.WriteLine("No");
            Console.ReadKey();
        }
    }
}

Compiler output:
a.cc:1:7: error: expected nested-name-specifier before 'System'
    1 | using System;
      |       ^~~~~~
a.cc:2:7: error: expected nested-name-specifier before 'System'
    2 | using System.Collections.Generic;
      |       ^~~~~~
a.cc:3:7: error: expected nested-name-specifier before 'System'
    3 | using System.Linq;
      |       ^~~~~~
a.cc:4:7: error: expected nested-name-specifier before 'System'
    4 | using System.Text;
      |       ^~~~~~
a.cc:5:7: error: expected nested-name-specifier before 'System'
    5 | using System.Threading.Tasks;
      |       ^~~~~~
a.cc:11:26: error: 'string' has not been declared
   11 |         static void Main(string[] args)
      |                          ^~~~~~
a.cc:11:35: error: expected ',' or '...' before 'args'
   11 |         static void Main(string[] args)
      |                                   ^~~~
a.cc:22:6: error: expected ';' after class definition
   22 |     }
      |      ^
      |      ;
a.cc: In static member function 'static void ABC073A::Program::Main(int*)':
a.cc:13:13: error: 'string' was not declared in this scope
   13 |             string n;
      |             ^~~~~~
a.cc:14:13: error: 'n' was not declared in this scope
   14 |             n = Console.ReadLine();
      |             ^
a.cc:14:17: error: 'Console' was not declared in this scope
   14 |             n = Console.ReadLine();
      |                 ^~~~~~~
Language: C++

using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace ABC073A
{
    class Program
    {
        static void Main(string[] args)
        {
            string n;
            n = Console.ReadLine();

            if (n[0] == '9' || n[1] == '9')
                Console.WriteLine("Yes");
            else
                Console.WriteLine("NO");

            Console.ReadKey();

          
        }
    }
}


Compiler output:
a.cc:1:7: error: expected nested-name-specifier before 'System'
    1 | using System;
      |       ^~~~~~
a.cc:2:7: error: expected nested-name-specifier before 'System'
    2 | using System.Collections.Generic;
      |       ^~~~~~
a.cc:3:7: error: expected nested-name-specifier before 'System'
    3 | using System.Linq;
      |       ^~~~~~
a.cc:4:7: error: expected nested-name-specifier before 'System'
    4 | using System.Text;
      |       ^~~~~~
a.cc:5:7: error: expected nested-name-specifier before 'System'
    5 | using System.Threading.Tasks;
      |       ^~~~~~
a.cc:11:26: error: 'string' has not been declared
   11 |         static void Main(string[] args)
      |                          ^~~~~~
a.cc:11:35: error: expected ',' or '...' before 'args'
   11 |         static void Main(string[] args)
      |                                   ^~~~
a.cc:25:6: error: expected ';' after class definition
   25 |     }
      |      ^
      |      ;
a.cc: In static member function 'static void ABC073A::Program::Main(int*)':
a.cc:13:13: error: 'string' was not declared in this scope
   13 |             string n;
      |             ^~~~~~
a.cc:14:13: error: 'n' was not declared in this scope
   14 |             n = Console.ReadLine();
      |             ^
a.cc:14:17: error: 'Console' was not declared in this scope
   14 |             n = Console.ReadLine();
      |                 ^~~~~~~
Language: C++

#include <bits/stdc++.h>
#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 (n[0]=="9"||n[1]=="9") {
    cout << "Yes" << endl;
  } else {
    cout << "No" << endl;
  }
  return 0;
}

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

#include<bits/stdc++.h>
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/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: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");}
      |                           ^