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

#include <iostream>
#include <fstream>
#include <cstdio>
#include <cassert>
#include <complex>
#include <cmath>
#include <algorithm>
#include <vector>
#include <string>
#include <cstdlib>
#include <cstring>
#include <iomanip>
#include <numeric>
#include <sstream>
#include <ctime>
#include <cctype>
#include <set>
#include <map>
#include <queue>
#include <bitset>
#include <deque>
#include <stack>
#include <memory.h>
using namespace std;
#define ll long long 
int mx=999;
string to_string(int n)  
{  
    int m=n;  
    int i=0,j=0;  
    char s[mx];  
    char ss[mx];  
    while(m>0)  
    {  
        s[i++]= m%10 + '0';  
        m/=10;  
    }  
    s[i]='\0';  
  
    i=i-1;  
    while(i>=0)  
    {  
        ss[j++]=s[i--];  
    }  
    ss[j]='\0';  
    return ss;  
} 
int main()
{
	int n;
	cin>>n;
	string s;
	s=to_string(n);
	for(int i=0;i<s.size();i++){
		if(s[i]=='9'){
			cout<<"Yes";
			return 0;
		}
	}
	cout<<"No";
    return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:53:20: error: call of overloaded 'to_string(int&)' is ambiguous
   53 |         s=to_string(n);
      |           ~~~~~~~~~^~~
a.cc:27:8: note: candidate: 'std::string to_string(int)'
   27 | string to_string(int n)
      |        ^~~~~~~~~
In file included from /usr/include/c++/14/string:54,
                 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/basic_string.h:4240:3: note: candidate: 'std::string std::__cxx11::to_string(int)'
 4240 |   to_string(int __val)
      |   ^~~~~~~~~
/usr/include/c++/14/bits/basic_string.h:4259:3: note: candidate: 'std::string std::__cxx11::to_string(unsigned int)'
 4259 |   to_string(unsigned __val)
      |   ^~~~~~~~~
/usr/include/c++/14/bits/basic_string.h:4275:3: note: candidate: 'std::string std::__cxx11::to_string(long int)'
 4275 |   to_string(long __val)
      |   ^~~~~~~~~
/usr/include/c++/14/bits/basic_string.h:4294:3: note: candidate: 'std::string std::__cxx11::to_string(long unsigned int)'
 4294 |   to_string(unsigned long __val)
      |   ^~~~~~~~~
/usr/include/c++/14/bits/basic_string.h:4310:3: note: candidate: 'std::string std::__cxx11::to_string(long long int)'
 4310 |   to_string(long long __val)
      |   ^~~~~~~~~
/usr/include/c++/14/bits/basic_string.h:4327:3: note: candidate: 'std::string std::__cxx11::to_string(long long unsigned int)'
 4327 |   to_string(unsigned long long __val)
      |   ^~~~~~~~~
/usr/include/c++/14/bits/basic_string.h:4401:3: note: candidate: 'std::string std::__cxx11::to_string(float)'
 4401 |   to_string(float __val)
      |   ^~~~~~~~~
/usr/include/c++/14/bits/basic_string.h:4411:3: note: candidate: 'std::string std::__cxx11::to_string(double)'
 4411 |   to_string(double __val)
      |   ^~~~~~~~~
/usr/include/c++/14/bits/basic_string.h:4421:3: note: candidate: 'std::string std::__cxx11::to_string(long double)'
 4421 |   to_string(long double __val)
      |   ^~~~~~~~~
Language: C++

#include <algorithm>
#include <cstdio>
#include <iostream>
#include <map>
#include <cmath>
#include <queue>
#include <set>
#include <sstream>
#include <stack>
#include <string>
#include <vector>
#include <stdlib.h>
#include <stdio.h>
#include <bitset>
#include <cstring>
using namespace std;
#define FOR(I,A,B) for(int I = (A); I < (B); ++I)
#define CLR(mat) memset(mat, 0, sizeof(mat))
typedef long long ll;
int main()
{
  ios::sync_with_stdio(false);
  cin.tie(0);
  string s: cin >> s;
  if(s[0] == '9' || s[1] == '9') puts("Yes");
  else puts("No");
  return 0;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:24:11: error: found ':' in nested-name-specifier, expected '::'
   24 |   string s: cin >> s;
      |           ^
      |           ::
a.cc:24:10: error: 's' has not been declared
   24 |   string s: cin >> s;
      |          ^
a.cc:24:17: error: qualified-id in declaration before '>>' token
   24 |   string s: cin >> s;
      |                 ^~
a.cc:25:6: error: 's' was not declared in this scope
   25 |   if(s[0] == '9' || s[1] == '9') puts("Yes");
      |      ^
Language: C++

#include <iostream>
#include <vector>
#include <algorithm>
using namespace std;
constexpr int maxn = 200;
constexpr int inf = 1000000001;
 
int dis[maxn][maxn];
int n, m, r;
vector<int> r_vector;
 
void floyd() {
	for (int k = 0; k < n; ++k)
		for (int i = 0; i < n; ++i)
			for (int j = 0; j < n; ++j)
				dis[i][j] = min(dis[i][j], dis[i][k] + dis[k][j]);
}
 
int main() {
	cin >> n >> m >> r;
	for (int i = 0, a; i < r; ++i) {
		cin >> a;
		r_vector.emplace_back(a - 1);
	}
	for (size_t i = 0; i < maxn; i++)
	{
		for (size_t j = 0; j < maxn; j++)
		{
			dis[i][j] = inf;
		}
	}
	for (int i = 0, a, b, c; i < m; ++i) {
		cin >> a >> b >> c;
		a--; b--;
		dis[a][b] = dis[b][a] = min({ dis[b][a], dis[a][b], c });
	}
	floyd();
	std::sort(r_vector.begin(), r_vector.end());
	int ans = inf;
	do {
		int tmp = 0;
		for (int i = 0; i < r_vector.size() - 1; ++i)
			tmp += dis[r_vector[i]][r_vector[i + 1]];
		ans = min(ans, tmp);
	} while (next_permutation(r_vector.begin(), r_vector.end()));
	cout << ans << endl;
	return 0;
}

Compiler output:
a.cc:7:1: error: extended character   is not valid in an identifier
    7 |  
      | ^
a.cc:11:1: error: extended character   is not valid in an identifier
   11 |  
      | ^
a.cc:18:1: error: extended character   is not valid in an identifier
   18 |  
      | ^
a.cc:7:1: error: '\U000000a0' does not name a type
    7 |  
      | ^
a.cc:11:1: error: '\U000000a0' does not name a type
   11 |  
      | ^
a.cc:18:1: error: '\U000000a0' does not name a type
   18 |  
      | ^
Language: C++

#include<stdio.h>
#include<malloc.h>

int main() {
    int* nums;
    int N;
    int* temp;
    int total = 0;
    int i;
    int max = 0;

    scanf("%d", &N);

    temp = (long int*)malloc(sizeof(long int) * (N+1));

    for(i = 0; i < N; i++) temp[i] = 0;

    for(i = 0; i < N; i++) {
        scanf("%d", &temp[i]);
        if(max < temp[i]) max = temp[i];
    }

    nums = (long int*)malloc(sizeof(long int) * (max+1));

    for(i = 0; i < max; i++) nums[i] = 0;

    for(i = 0; i < N; i++) {
        if(nums[temp[i]] == 0) nums[temp[i]] = 1;
        else nums[temp[i]] = 0;
    }

    for(i = 0; i < max; i++) {
        if(nums[i] == 1) total++;
    }

    printf("%d", total);

    return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:14:12: error: cannot convert 'long int*' to 'int*' in assignment
   14 |     temp = (long int*)malloc(sizeof(long int) * (N+1));
      |            ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
      |            |
      |            long int*
a.cc:23:12: error: cannot convert 'long int*' to 'int*' in assignment
   23 |     nums = (long int*)malloc(sizeof(long int) * (max+1));
      |            ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
      |            |
      |            long int*
Language: C++

    #define __USE_MINGW_ANSI_STDIO 0
    #include <iostream>
    #include <stdio.h>
    #include <stdlib.h>
    #include <vector>
    #include <algorithm>
    #include <queue>
    #include <map>
    #include <set>
    #include <stack>
    #include <string.h>
    #include <math.h>
     
    using namespace std;
     
    #define PI 3.141592653589793
    #define epsilon 0.000000001
    #define INF 1000000000000
    #define MOD 1000000007
     
    int main(){
        //freopen("dec.in", "r", stdin); freopen("dec.out", "w", stdout);
    	int N; cin >> N;
      	if(N/10 == 9 || N%10 == 9) cout << "Yes\";
        else cout << "No\n";
        return 0;
    }

Compiler output:
a.cc:24:44: warning: missing terminating " character
   24 |         if(N/10 == 9 || N%10 == 9) cout << "Yes\";
      |                                            ^
a.cc:24:44: error: missing terminating " character
   24 |         if(N/10 == 9 || N%10 == 9) cout << "Yes\";
      |                                            ^~~~~~~
a.cc: In function 'int main()':
a.cc:25:9: error: expected primary-expression before 'else'
   25 |         else cout << "No\n";
      |         ^~~~
Language: C++

#include <stdlib.h>
#include <stdio.h>
int main()
{
int map[250][250];
int n,m,i,start,end,len;
int r;
int togoto[10];
int tobecho[10];
int a,b,c,d,e,f,g,h;
int minlen;
int totallen;
for(i=0;i<10;i++)
tobecho[i] = 0;
scanf("%d",&n);
scanf("%d",&m);
scanf("%d",&r);
for(i=0;i<r;i++)
scanf("%d",&togoto[i]);
for(i=0;i<m;i++)
{
scanf("%d",&start);
scanf("%d",&end);
scanf("%d",&len);
map[start][end] = len;
map[end][start] = len;
}
totallen = 0;
minlen = 5555555;
for(a=0;a<r;a++)
{
tobecho[a] = 1;
if(r>1)
    for(b=0;b<r;b++)
{
    if(tobecho[b]!=1)
  {
    tobecho[b] = 1;
    totallen += map[b][a];
  }
if(r>2)
    for(c=0;c<r;c++)
{
    if(tobecho[c]!=1)
  {
    tobecho[c] = 1;
    totallen += map[b][c];
  }
if(r>3)
    for(d=0;d<r;d++)
{
    if(tobecho[d]!=1)
  {
    tobecho[d] = 1;
    totallen += map[c][d];
  }
if(r>4)
    for(e=0;e<r;e++)
{
    if(tobecho[e]!=1)
  {
    tobecho[e] = 1;
    totallen += map[e][d];
  }
if(r>5)
    for(f=0;f<r;f++)
{
    if(tobecho[f]!=1)
  {
    tobecho[f] = 1;
    totallen += map[e][f];
  }
if(r>6)
    for(g=0;g<r;g++)
{
    if(tobecho[g]!=1)
  {
    tobecho[g] = 1;
    totallen += map[g][f];
  }
if(r>7)
    for(h=0;h<r;h++)
{
    if(tobecho[h]!=1)
  {
    tobecho[h] = 1;
    totallen += map[h][g];
  }
}}}}}}}
if (totallen<minlen)
minlen = totallen;
 
 
}
printf("%d",minlen);
return 0;
}

Compiler output:
a.cc:92:1: error: extended character   is not valid in an identifier
   92 |  
      | ^
a.cc:93:1: error: extended character   is not valid in an identifier
   93 |  
      | ^
a.cc: In function 'int main()':
a.cc:92:1: error: '\U000000a0' was not declared in this scope
   92 |  
      | ^
Language: C++

#define __USE_MINGW_ANSI_STDIO 0
#include <iostream>
#include <stdio.h>
#include <stdlib.h>
#include <vector>
#include <algorithm>
#include <queue>
#include <map>
#include <set>
#include <stack>
#include <string.h>
#include <math.h>

using namespace std;

#define PI 3.141592653589793
#define epsilon 0.000000001
#define INF 1000000000000
#define MOD 1000000007

int main(){
    //freopen("dec.in", "r", stdin); freopen("dec.out", "w", stdout);
	int N; cin >> N;
  	if(N/10 == 9 || N%10 == 9) cout << "Yes\n;
    else cout << "No\n";
    return 0;
}


Compiler output:
a.cc:24:44: warning: missing terminating " character
   24 |         if(N/10 == 9 || N%10 == 9) cout << "Yes\n;
      |                                            ^
a.cc:24:44: error: missing terminating " character
   24 |         if(N/10 == 9 || N%10 == 9) cout << "Yes\n;
      |                                            ^~~~~~~
a.cc: In function 'int main()':
a.cc:25:5: error: expected primary-expression before 'else'
   25 |     else cout << "No\n";
      |     ^~~~
Language: Java

    read h
    f=$(echo $h|awk '/9/')
    if [ "$f" ]
    then
      echo Yes
    else
      echo No
    fi

Compiler output:
Main.java:1: error: class, interface, enum, or record expected
    read h
    ^
Main.java:2: error: unclosed character literal
    f=$(echo $h|awk '/9/')
                    ^
Main.java:2: error: unclosed character literal
    f=$(echo $h|awk '/9/')
                        ^
3 errors
Language: Java

import java.util.Scanner;

class Main{
	
	public static void main(String[] args){
		Scanner stdln = new Scanner(System.in);
		
		int flag = 0;
		int[] a = new int [1];
		
		for(int i = 0;i < a.length;i++){
			a[i] = stdln.nextInt();
		}
		
		for(int i = 0;i < a.length;i++){
			if(a[i] = 9) flag = 1;
		}
		if(flag = 0) System.out.println("No");		
		if(flag = 1) System.out.println("Yes");
	}
}

Compiler output:
Main.java:16: error: incompatible types: int cannot be converted to boolean
			if(a[i] = 9) flag = 1;
			        ^
Main.java:18: error: incompatible types: int cannot be converted to boolean
		if(flag = 0) System.out.println("No");		
		        ^
Main.java:19: error: incompatible types: int cannot be converted to boolean
		if(flag = 1) System.out.println("Yes");
		        ^
3 errors
Language: Java

import java.util.Scanner;
public class Main {
	public static void main(String args[]){
	@SuppressWarnings("resource")
	int n= new Scanner(System.in).nextInt();
	if(n >9 && n<100){
		if(n>=90){
			System.out.println("OK");
		}else{
			if(n % 10 >= 9){
				System.out.println("OK");
		}else{
			if(n % 10 <= 8)
			System.out.println("NO");
			}
		}
	}
}

Compiler output:
Main.java:18: error: reached end of file while parsing
}
 ^
1 error
Language: Java

import java.util.Scanner;

class Main{
	
	public static void main(String[] args){
		Scanner stdln = new Scanner(System.in);
		
		int flag = 0;
		int[] a = new int a[1];
		
		for(int i = 0;i < a.length;i++){
			a[i] = stdln.nextInt();
		}
		
		for(int i = 0;i < a.length;i++){
			if(a[i] = 9) flag = 1;
		}
		if(flag = 0) System.out.println("No");		
		if(flag = 1) System.out.println("Yes");
	}
}

Compiler output:
Main.java:9: error: '[' expected
		int[] a = new int a[1];
		                 ^
Main.java:9: error: ']' expected
		int[] a = new int a[1];
		                      ^
2 errors
Language: Java

package Contest073;
import java.util.Scanner;
public class Mon1 {
	public static void main(String args[]){
	@SuppressWarnings("resource")
	int n= new Scanner(System.in).nextInt();
	if(n >9 && n<100){
		if(n>=90){
			System.out.println("OK");
		}else{
			if(n % 10 >= 9){
				System.out.println("OK");
		}else{
			if(n % 10 <= 8)
			System.out.println("NO");
			}
		}
	}
}
}


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

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

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

#include<stdio.h>
int main()
{
    int a;
    scanf("%d", &a);
    // 出力

if(a!10=9 || a>89){
    printf("Yes\n",);}
else{
printf("No\n");
}
    return 0;
}

Compiler output:
main.c: In function 'main':
main.c:8:5: error: expected ')' before '!' token
    8 | if(a!10=9 || a>89){
      |   ~ ^
      |     )
main.c:9:20: error: expected expression before ')' token
    9 |     printf("Yes\n",);}
      |                    ^
Language: C++

#include <utility>
#include <cstdio>
#include <vector>

using namespace std;

int main() {
  int N;
  scanf("%d", &N);
  vector<int> log;
  int counter[10000] = {0};
  int pivot = 0;
  for (int i = 0; i < N; i++) {
    int ai;
    scanf("%d", &ai);
    if (count(log.begin(), log.end(), ai) != 0) {
      int j = 0;
      for (; j < log.size(); j++) {
        if (log[j] == ai) break;
      }
      counter[j]++;
    } else {
      log.push_back(ai);
      counter[pivot]++;
      pivot++;
    }
  }
  int answer = 0;
  for (int i = 0; i < N; i++) {
    printf("%d ", counter[i]);
    if (counter[i] % 2 == 1) answer++;
  }
  printf("%d", answer);
}


Compiler output:
a.cc: In function 'int main()':
a.cc:16:9: error: 'count' was not declared in this scope; did you mean 'counter'?
   16 |     if (count(log.begin(), log.end(), ai) != 0) {
      |         ^~~~~
      |         counter
Language: C++

#include<cstdio>
#include<cstdlib>
#include<iostream>
#define K 1000000000
#include<cstring>
using namespace std;
 long long n,f,tot = 0; 
 long long a[K] = {0};
int main(){
	
	scanf("%lld",&n);
	while(scanf("%lld",&f);)
	{
                a[f] = 1-a[f] ; 
		if(a[f]) tot -- ;
                else tot ++;
	}
	printf("%lld",tot);
	return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:12:31: error: expected ')' before ';' token
   12 |         while(scanf("%lld",&f);)
      |              ~                ^
      |                               )
a.cc:12:32: error: expected primary-expression before ')' token
   12 |         while(scanf("%lld",&f);)
      |                                ^
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:7: error: cannot find symbol
      System.out.println(Yes);
                         ^
  symbol:   variable Yes
  location: class Main
Main.java:9: error: cannot find symbol
      System.out.println(No);
                         ^
  symbol:   variable No
  location: class Main
2 errors
Language: C++

#include<stdio.h>
int main() {
	int a, b, c,d,x;
	scanf_s("%d",&a);
	b = 0;
	x = 0;
	while (a > b) {
		scanf_s("%d%d",&c,&d);
		x = x + 1 + (d - c);
		b++;
	}
	printf("%d", a);
	return 0;
}

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

#include<string>
using namespace std;
int main()
{
	// 整数の入力
	int a, b;
	cin >> a;
	b = a - 9;
	if (b % 10 == 0) {
		cout << "Yes" << endl;
		return 0;
	}
	b = a - 90;
	if (b % 9 == 0) {
		cout << "Yes" << endl;
		return 0;
	}
	cout << "No" << endl;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:7:9: error: 'cin' was not declared in this scope
    7 |         cin >> a;
      |         ^~~
a.cc:2:1: note: 'std::cin' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>'
    1 | #include<string>
  +++ |+#include <iostream>
    2 | using namespace std;
a.cc:10:17: error: 'cout' was not declared in this scope
   10 |                 cout << "Yes" << endl;
      |                 ^~~~
a.cc:10:17: note: 'std::cout' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>'
a.cc:10:34: error: 'endl' was not declared in this scope
   10 |                 cout << "Yes" << endl;
      |                                  ^~~~
a.cc:2:1: note: 'std::endl' is defined in header '<ostream>'; this is probably fixable by adding '#include <ostream>'
    1 | #include<string>
  +++ |+#include <ostream>
    2 | using namespace std;
a.cc:15:17: error: 'cout' was not declared in this scope
   15 |                 cout << "Yes" << endl;
      |                 ^~~~
a.cc:15:17: note: 'std::cout' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>'
a.cc:15:34: error: 'endl' was not declared in this scope
   15 |                 cout << "Yes" << endl;
      |                                  ^~~~
a.cc:15:34: note: 'std::endl' is defined in header '<ostream>'; this is probably fixable by adding '#include <ostream>'
a.cc:18:9: error: 'cout' was not declared in this scope
   18 |         cout << "No" << endl;
      |         ^~~~
a.cc:18:9: note: 'std::cout' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>'
a.cc:18:25: error: 'endl' was not declared in this scope
   18 |         cout << "No" << endl;
      |                         ^~~~
a.cc:18:25: note: 'std::endl' is defined in header '<ostream>'; this is probably fixable by adding '#include <ostream>'
Language: C++

#include <bits/stdc++.h>
using namespace std;
typedef long long ll;
typedef long double ld;
template <typename T> inline T sqr(T t) {return t*t;}
#define pb push_back
#define mp make_pair
#define endl "\n"

inline void files()
{
    ios_base::sync_with_stdio(0);cin.tie(0);cout.tie(0);
    #ifdef _WIN32
        return;
    #endif // _WIN32
    //freopen("C.in", "r", stdin);freopen("C.out", "w", stdout);
}



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


Compiler output:
a.cc: In function 'int main()':
a.cc:23:12: error: 'n' was not declared in this scope; did you mean 'yn'?
   23 |     cin >> n;
      |            ^
      |            yn
Language: Java

package Contest073;
public class Mon1 {
	public static void main(String args[]){
	int n = 39;
	if(n >9 && n<100){
		if(n>=90){
			System.out.println("OK");
		}else{
			if(n % 10 >= 9){
				System.out.println("OK");
		}else{
			if(n % 10 <= 8)
			System.out.println("NO");
			}
		}
	}
	}
}


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

public class Mon1 {
	public static void main(String args[]){
	int n = 39;
	if(n >9 && n<100){
		if(n>=90){
			System.out.println("OK");
		}else{
			if(n % 10 >= 9){
				System.out.println("OK");
		}else{
			if(n % 10 <= 8)
			System.out.println("NO");
			}
		}
	}
	}

}


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

public static void main(String args[]){
	int n = 39;
	if(n >9 && n<100){
		if(n>=90){
			System.out.println("OK");
		}else{
			if(n % 10 >= 9){
				System.out.println("OK");
		}else{
			if(n % 10 <= 8)
			System.out.println("NO");
			}
		}
	}
	}

}

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

#include<stdio.h>
int main() {
	int a, b, c;
	scanf_s("%d", &a);
	if (a == 19 || a == 29 || a == 39 || a == 49 || a == 59 || a == 69 || a == 79 || a == 89 || a == 90 || a == 91 || a == 92 || a == 93 || a == 94 || a == 95 || a == 96 || a == 97 || a == 98 || a == 99) {
		printf("Yes");
	}
	else {
		printf("No");
	}
	return 0;
}

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

#include <bits/stdc++.h>
#include <conio.h>
#define REP0(i, n) for (ll i = 0; i < n; i++)
#define REP1(i, n) for (ll i = 1; i <= n; i++)
#define ARRSET(name, i) memset(name, i, sizeof(name))
#define Cn2(i) ((i)*((i)-1)>>1)
using namespace std;
typedef long long ll;
typedef pair<ll, ll> llp;
const ll INF = 9.22e18;
int main() {
    ios_base::sync_with_stdio(false);
    cin.tie(nullptr);
    string s;
    cin >> s;
    for (char c : s) {
        if (c == '9') {
            cout << "Yes\n";
            return 0;
        }
    }
    cout << "No\n";
    return 0;
}


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

#include <iostream>
#include <vector>
using namespace std;
 
int main(){
    int N;
    int A;
    vector<int> all;
    int if_ok;
    cin >> N;
    for(int i = 0; i < N; i += 1){
    	if_ok = 1;
    	cin >> A;
    	for(int i2 = 0; i2 < int(all.size()); i2 += 1){
    		if(all[i2] == A){
    			if_ok = 0;
    		}
    		if(if_ok == 1){
		    	N.push_back(int(A);
    		}
    	}
    }
    cout << int(all.size()) << endl;
	return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:19:27: error: request for member 'push_back' in 'N', which is of non-class type 'int'
   19 |                         N.push_back(int(A);
      |                           ^~~~~~~~~
a.cc:19:43: error: expected ')' before ';' token
   19 |                         N.push_back(int(A);
      |                                    ~      ^
      |                                           )
Language: C++

#include <iostream>
#include <vector>
using namespace std;
 
int main(){
    int N;
    int A;
    vector<int> all;
    int if_ok;
    cin >> N;
    for(int i = 0; i < N; i += 1){
    	if_ok = 1;
    	cin >> A;
    	for(int i2 = 0; i2 < int(all.size()); i2 += 1){
    		if(all[i2] == A){
    			if_ok = 0;
    		}
    		if(if_ok == 1){
		    	N.push_back(A);
    		}
    	}
    }
    cout << int(all.size()) << endl;
	return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:19:27: error: request for member 'push_back' in 'N', which is of non-class type 'int'
   19 |                         N.push_back(A);
      |                           ^~~~~~~~~
Language: C++

#include <bits/stdc++.h>
"include<iostream>
using namespace std;
int main()
{
int N;
cin>>N;
if(N==19){
cout<<"Yes"<<endl;
}
if(N==29){
cout<<"Yes"<<endl;
}
if(N==39){
cout<<"Yes"<<endl;
}
if(N==49){
cout<<"Yes"<<endl;
}
if(N==59){
cout<<"Yes"<<endl;
}
if(N==69){
cout<<"Yes"<<endl;
}
if(N==79){
cout<<"Yes"<<endl;
}
if(N==89){
cout<<"Yes"<<endl;
}
if(N==99){
cout<<"Yes"<<endl;
}
if(N==90){
cout<<"Yes"<<endl;
}if(N==91){
cout<<"Yes"<<endl;
}
if(N==92){
cout<<"Yes"<<endl;
}
if(N==93){
cout<<"Yes"<<endl;
}
if(N==94){
cout<<"Yes"<<endl;
}
if(N==95){
cout<<"Yes"<<endl;
}
if(N==96){
cout<<"Yes"<<endl;
}if(N==97){
cout<<"Yes"<<endl;
}
if(N==98){
cout<<"Yes"<<endl;
}
 
else{
cout <<"No"<<endl;
}
}


Compiler output:
a.cc:2:1: warning: missing terminating " character
    2 | "include<iostream>
      | ^
a.cc:2:1: error: missing terminating " character
    2 | "include<iostream>
      | ^~~~~~~~~~~~~~~~~~
Language: C++

#include <iostream>
using namespace std;
 
int main(){
    int N;
    int A;
    vector<int> all;
    int if_ok;
    cin >> N;
    for(int i = 0; i < N; i += 1){
    	if_ok = 1;
    	cin >> A;
    	for(int i2 = 0; i2 < all.size(); i2 += 1){
    		if(all[i2] == A){
    			if_ok = 0;
    		}
    		if(if_ok == 1){
		    	N.push_back(A);
    		}
    	}
    }
    cout << all.size() << endl;
	return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:7:5: error: 'vector' was not declared in this scope
    7 |     vector<int> all;
      |     ^~~~~~
a.cc:2:1: note: 'std::vector' is defined in header '<vector>'; this is probably fixable by adding '#include <vector>'
    1 | #include <iostream>
  +++ |+#include <vector>
    2 | using namespace std;
a.cc:7:12: error: expected primary-expression before 'int'
    7 |     vector<int> all;
      |            ^~~
a.cc:13:30: error: 'all' was not declared in this scope; did you mean 'atoll'?
   13 |         for(int i2 = 0; i2 < all.size(); i2 += 1){
      |                              ^~~
      |                              atoll
a.cc:18:27: error: request for member 'push_back' in 'N', which is of non-class type 'int'
   18 |                         N.push_back(A);
      |                           ^~~~~~~~~
a.cc:22:13: error: 'all' was not declared in this scope; did you mean 'atoll'?
   22 |     cout << all.size() << endl;
      |             ^~~
      |             atoll
Language: C++

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

Compiler output:
a.cc: In function 'int main()':
a.cc:10:8: error: expected primary-expression before ')' token
   10 |  else () {
      |        ^
Language: C++

#include <iostream>
using namespace std;
 
int main(void){
    int N;
    int A;
    int all[0];
    int if_ok;
    cin >> N;
    for(int i = 0; i < N; i += 1){
    	if_ok = 1;
    	cin >> A;
    	for(int i2 = 0; i2 < sizeof(all) / sizeof(all[0]); i2 += 1){
    		if(all[i2] == A){
    			if_ok = 0;
    		}
    		if(if_ok == 1){
		    	N.push_back(to_string(A));
    		}
    	}
    }
    cout << sizeof(all) / sizeof(all[0]) << endl;
	return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:18:27: error: request for member 'push_back' in 'N', which is of non-class type 'int'
   18 |                         N.push_back(to_string(A));
      |                           ^~~~~~~~~
Language: C++

#include <iostream>
using namespace std;
 
int main(void){
    int N;
    int A;
    int all[0];
    int if_ok;
    cin >> N;
    for(int i = 0; i < N; i += 1){
    	if_ok = 1;
    	cin >> A;
    	for(int i2 = 0; i2 < sizeof(all) / sizeof(all[0]); i2 += 1){
    		if(all[i2] == A){
    			if_ok = 0;
    		}
    		if(if_ok == 1){
		    	N.push_back(to_string(A);
    		}
    	}
    }
    cout << sizeof(all) / sizeof(all[0]) << endl;
	return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:18:27: error: request for member 'push_back' in 'N', which is of non-class type 'int'
   18 |                         N.push_back(to_string(A);
      |                           ^~~~~~~~~
a.cc:18:49: error: expected ')' before ';' token
   18 |                         N.push_back(to_string(A);
      |                                    ~            ^
      |                                                 )
Language: C++

#include <iostream>
using namespace std;
 
int main(void){
    int N;
    int A;
    int all[0] = [];
    int if_ok;
    cin >> N;
    for(int i = 0; i < N; i += 1){
    	if_ok = 1;
    	cin >> A;
    	for(int i2 = 0; i2 < sizeof(all) / sizeof(all[0]); i2 += 1){
    		if(all[i2] == A){
    			if_ok = 0;
    		}
    		if(if_ok == 1){
		    	N.push_back(A);
    		}
    	}
    }
    cout << sizeof(all) / sizeof(all[0]) << endl;
	return 0;
}

Compiler output:
a.cc: In lambda function:
a.cc:7:20: error: expected '{' before ';' token
    7 |     int all[0] = [];
      |                    ^
a.cc: In function 'int main()':
a.cc:7:18: error: array must be initialized with a brace-enclosed initializer
    7 |     int all[0] = [];
      |                  ^~
a.cc:18:27: error: request for member 'push_back' in 'N', which is of non-class type 'int'
   18 |                         N.push_back(A);
      |                           ^~~~~~~~~
Language: C++

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

int main(){
string a;
cin >> a;
for(int i = 0; i < sizeof(a); i++){
if(a[i] == "9"){
  cout << "yes\n";
  return 0;  
}
}
cout << "no\n";
return 0;
}

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

#include <iostream>
using namespace std;
 
int main(void){
    int N;
    int A;
    int all[0] = [];
    int if_ok;
    cin >> N;
    for(int i = 0; i < N; i += 1){
    	if_ok = 1;
    	cin >> A;
    	for(int i2 = 0; i2 < all.size(); i2 += 1){
    		if(all[i2] == A){
    			if_ok = 0;
    		}
    		if(if_ok == 1){
		    	N.push_back(A);
    		}
    	}
    }
    cout << all.size() << endl;
	return 0;
}

Compiler output:
a.cc: In lambda function:
a.cc:7:20: error: expected '{' before ';' token
    7 |     int all[0] = [];
      |                    ^
a.cc: In function 'int main()':
a.cc:7:18: error: array must be initialized with a brace-enclosed initializer
    7 |     int all[0] = [];
      |                  ^~
a.cc:13:34: error: request for member 'size' in 'all', which is of non-class type 'int [0]'
   13 |         for(int i2 = 0; i2 < all.size(); i2 += 1){
      |                                  ^~~~
a.cc:18:27: error: request for member 'push_back' in 'N', which is of non-class type 'int'
   18 |                         N.push_back(A);
      |                           ^~~~~~~~~
a.cc:22:17: error: request for member 'size' in 'all', which is of non-class type 'int [0]'
   22 |     cout << all.size() << endl;
      |                 ^~~~
Language: C++

import numpy as np
hoge = input()
hoge = int(hoge)
if hoge//10 == 9 or hoge%10 == 9: 
    print("Yes")
else:
    print("No")

Compiler output:
a.cc:1:1: error: 'import' does not name a type
    1 | import numpy as np
      | ^~~~~~
a.cc:1:1: note: C++20 'import' only available with '-fmodules-ts'
Language: C++


#include <cstdio>

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


int main() {
    
    int N;
    cin >> N;
    string a;
    ostringstream convert;
    convert << N;
    a = convert.str();
    if ((a[0] == "9")||(a[1] == "9")){
        cout << "Yes" << endl;
    }
    else {cout << "No" << endl;}
    
    return 0;
}


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

#define -Wunused-result

#include <stdio.h>

int main(void) {
	int a;

	scanf("%d", &a);
	if (a % 10 == 9 || a % 100 == 9)
		printf("Yes");
	else
		printf("No");

	return 0;
}

Compiler output:
main.c:1:9: error: macro names must be identifiers
    1 | #define -Wunused-result
      |         ^
Language: C++

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

Compiler output:
a.cc:12:14: warning: missing terminating " character
   12 |   else cout<<"No;
      |              ^
a.cc:12:14: error: missing terminating " character
   12 |   else cout<<"No;
      |              ^~~~
a.cc: In function 'int main()':
a.cc:13:3: error: expected primary-expression before 'return'
   13 |   return 0;
      |   ^~~~~~
Language: C++

#include <iostream>
using namespace std;
 
int main(){
    int N;
    int A;
    int all[0] = [];
    bool if_ok;
    cin >> N;
    for(int i = 0; i < N; i += 1){
    	if_ok = true;
    	cin >> A;
    	for(int i2 = 0; i2 < all.size(); i2 += 1){
    		if(all[i2] == A){
    			if_ok = false;
    		}
    		if(if_ok){
		    	N.push_back(A);
    		}
    	}
    }
    cout << all.size() << endl;
	return 0;
}

Compiler output:
a.cc: In lambda function:
a.cc:7:20: error: expected '{' before ';' token
    7 |     int all[0] = [];
      |                    ^
a.cc: In function 'int main()':
a.cc:7:18: error: array must be initialized with a brace-enclosed initializer
    7 |     int all[0] = [];
      |                  ^~
a.cc:13:34: error: request for member 'size' in 'all', which is of non-class type 'int [0]'
   13 |         for(int i2 = 0; i2 < all.size(); i2 += 1){
      |                                  ^~~~
a.cc:18:27: error: request for member 'push_back' in 'N', which is of non-class type 'int'
   18 |                         N.push_back(A);
      |                           ^~~~~~~~~
a.cc:22:17: error: request for member 'size' in 'all', which is of non-class type 'int [0]'
   22 |     cout << all.size() << endl;
      |                 ^~~~
Language: C++

#include <iostream>
using namespace std;
 
int main(void){
    int N;
    int A;
    int all[0] = [];
    bool if_ok;
    cin >> N;
    for(int i = 0; i < N; i += 1){
    	ok = true;
    	cin >> A;
    	for(int i2 = 0; i2 < all.size(); i2 += 1){
    		if(all[i2] == A){
    			if_ok = false;
    		}
    		if(if_ok){
		    	N.push_back(A);
    		}
    	}
    }
    cout << all.size() << endl;
	return 0;
}

Compiler output:
a.cc: In lambda function:
a.cc:7:20: error: expected '{' before ';' token
    7 |     int all[0] = [];
      |                    ^
a.cc: In function 'int main()':
a.cc:7:18: error: array must be initialized with a brace-enclosed initializer
    7 |     int all[0] = [];
      |                  ^~
a.cc:11:9: error: 'ok' was not declared in this scope
   11 |         ok = true;
      |         ^~
a.cc:13:34: error: request for member 'size' in 'all', which is of non-class type 'int [0]'
   13 |         for(int i2 = 0; i2 < all.size(); i2 += 1){
      |                                  ^~~~
a.cc:18:27: error: request for member 'push_back' in 'N', which is of non-class type 'int'
   18 |                         N.push_back(A);
      |                           ^~~~~~~~~
a.cc:22:17: error: request for member 'size' in 'all', which is of non-class type 'int [0]'
   22 |     cout << all.size() << endl;
      |                 ^~~~
Language: C++

#include<stdio.h>
void main() {
	int N,i=0;
	scanf_s("%d", &N);
	if (N > i) {
			if (N > 18 && N < 20) {
				printf("Yes");
			}
			else if (N > 28 && N < 30) {
				printf("Yes");
			}
			else if (N > 38 && N < 40) {
				printf("Yes");
			}
			else if (N > 48 && N < 50) {
				printf("Yes");
			}
			else if (N > 58 && N < 60) {
				printf("Yes");
			}
			else if (N > 68 && N < 70) {
				printf("Yes");
			}
			else if (N > 78 && N < 80) {
				printf("Yes");
			}
			else if (N > 88) {
				printf("Yes");
			}else{
				printf("No");

	}


}
}

Compiler output:
a.cc:2:1: error: '::main' must return 'int'
    2 | void main() {
      | ^~~~
a.cc: In function 'int main()':
a.cc:4:9: error: 'scanf_s' was not declared in this scope; did you mean 'scanf'?
    4 |         scanf_s("%d", &N);
      |         ^~~~~~~
      |         scanf
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:9:15: error: expected ';' before 'return'
    9 |     cout<<"No"
      |               ^
      |               ;
   10 |     return 0;
      |     ~~~~~~
Language: C++

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

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

Compiler output:
a.cc: In function 'int main()':
a.cc:10:25: error: 'n' was not declared in this scope
   10 |     int a = N / 10, b = n % 10;
      |                         ^
Language: C++

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

typedef long long LL;
typedef unsigned long long ULL;

template<class T>
inline bool read(T &num)  
{
       char in;bool IsN=false;
       while(in=getchar(),in!='-'&&(in<'0'||in>'9'))if(in==EOF)return false;
       in=='-'?(IsN=true,num=0):num=in-'0';
       while(in=getchar(),in>='0'&&in<='9')num=num*10+in-'0';
       return IsN?num=-num:num,true;
}


#define lson l,mid,rt<<1
#define rson mid+1,r,rt<<1|1
#define __m  int mid=l+(r-l)/1

const int maxn   = 2e6 + 7;
const LL  inf_LL = 9e18   ;
const int inf    = 2e9 + 7;
const int mod    = 1e9 + 7;
int main() {
#ifdef LOCAL
    freopen("sample.in", "r", stdin);
#endif
    string now;
    cin>>now;
    bool yes=false;
    for(int i=0;i<now.length();i++)
    {
        if(now[i]=='9')
            yes=true;
    }
    if(yes)
        cout<<"Yes"<<endl;
    else 
        cout<<"No"<<endl;
    return 0;
}


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

#include <stdlib.h>
#include <stdio.h>
int main(int argc,char*[] argv)
{
int a;
int b;
scanf("%d",&a);
if((a%10==9)||(a/10==9))
    printf("Yes");
else
    printf("No");
return 0;
}

Compiler output:
a.cc:3:27: error: expected ',' or '...' before 'argv'
    3 | int main(int argc,char*[] argv)
      |                           ^~~~
Language: Java

import java.util.*;

public class MainB {
    public static final void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        int N = sc.nextInt();
        int ans = 0;
        for (int i = 0; i < N; i++) {
            int l = sc.nextInt();
            int r = sc.nextInt();
            ans += r - l + 1;
        }
        System.out.println(ans);
    }
}


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

import java.util.*;
public class Main02 {
	public static void main(String[] args){
		Scanner sc = new Scanner(System.in);
		// 整数の入力
		int a = sc.nextInt();
		if(a == 9 || a == 19 || a == 29 || a == 39 || a == 49 || a == 59 || a == 69 || a == 79 || a == 89 || a == 90 || a == 91 || a == 92 || a == 93 || a == 94 || a == 95 ||a == 96 || a == 97 || a == 98 || a == 99){
			System.out.println("Yes");
		}else{
			System.out.println("No");
		}
	}
}


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

#include <stdio.h>
#include <stdlib.h>
#include <iostream>
#include <vector>
#include <string>
#include <algorithm>
#include <queue>
#include <set>
#include <map>
#include <math.h>

#define mp                  make_pair
#define F                   first
#define S                   second
#define pb                  push_back
#define FOR(i,j,n)          for(int i=j;i<n;i++)
#define F0R(i,j,n)          for(int i=j;i<=n;i++)
#define RFOR(i,j,n)         for(int i=n-1;i>=j;i--)
#define RF0R(i,j,n)         for(int i=n;i>=j;i--)
#define FOREACH(x,v)        for(auto x:v)
#define ITFOR(it,v)         for(v::iterator it =v.begin();it!=v.end();++it)
#define __in_arr__(a,j,n)   FOR(i,j,n)cin >> a[i];
#define __out_arr__(a,j,n)  FOR(i,j,n)cout << a[i];
#define LOG                 cout << "[ !" << __LINE__ << "L ] " << endl;
#define PLOG(x)             cout << "[ !" << __LINE__ << "L ] " \<<x<<endl;

using namespace std;

typedef long long ll;
typedef pair<ll,ll> pll;
typedef pair<int,int> pii;
typedef vector<int> vi;
typedef vector<pii> vii;
typedef vector<ll> vl;

int main() {
    ios::sync_with_stdio(false);
    cin.tie(NULL);cout.tie(NULL);
    int c;
    cin >> c;
    int c1 = c/10 ,c2 = c%10;
    if(c1 == 9 || c2 == 9)
        cout << “Yes” << endl;
    else 
        cout << “No”  << endl;
    return 0;
}


Compiler output:
a.cc:43:17: error: extended character “ is not valid in an identifier
   43 |         cout << “Yes” << endl;
      |                 ^
a.cc:43:17: error: extended character ” is not valid in an identifier
a.cc:45:17: error: extended character “ is not valid in an identifier
   45 |         cout << “No”  << endl;
      |                 ^
a.cc:45:17: error: extended character ” is not valid in an identifier
a.cc: In function 'int main()':
a.cc:43:17: error: '\U0000201cYes\U0000201d' was not declared in this scope
   43 |         cout << “Yes” << endl;
      |                 ^~~~~
a.cc:45:17: error: '\U0000201cNo\U0000201d' was not declared in this scope
   45 |         cout << “No”  << endl;
      |                 ^~~~
Language: C

#include<stdio.h>
#include<stdlib.h>
int main()
{
	int a;

	scanf_s("%d", &a);

	if (a / 10 == 9 || a % 10 == 9) {
		printf("yes");

	}
	else {
		printf("no");
	}
	
	return 0;
}



Compiler output:
main.c: In function 'main':
main.c:7:9: error: implicit declaration of function 'scanf_s'; did you mean 'scanf'? [-Wimplicit-function-declaration]
    7 |         scanf_s("%d", &a);
      |         ^~~~~~~
      |         scanf
Language: Java

import java.util.*;
import java.io.*;
import java.math.BigDecimal;
import java.math.BigInteger;
import java.math.MathContext;
 
public class Es
{
	static class Pair
	{
		int first, second;
		public Pair(int f, int s)
		{
			first = f;
			second = s;
		}
		
		public String toString()
		{
			return first + " " + second;
		}
	}
	
	static class PairComparator implements Comparator <Pair>
	{
		public int compare(Pair p1, Pair p2)
		{
			if(p1.first < p2.first)
				return -1;
			if(p1.first > p2.first)
				return 1;
			if(p1.second < p2.second)
				return -1;
			if(p1.second > p2.second)
				return 1;
			return 0;
		}
	}
	
	static int log2(double a)
	{
		return (int)(Math.log(a) / Math.log(2));
	}
	
	static long gcd(long a, long b)
	{
		long r;
		while((r = a % b) > 0)
		{
			a = b;
			b = r;
		}
		return b;
	}
	
	static class TrieNode
	{
		TrieNode z, o;
		boolean end;
		long count;
		
		public TrieNode()
		{
			 z = null;
			 o = null;
			 count = 0;
			 end = false;
		}
		
		
	}
	
	public static void main(String[] args) throws IOException
	{
		int n = in.nextInt();
		if(n / 10 == 9 || n % 10 == 9)
			sop("Yes");
		else
			sop("No");
	}
    
	static class FastReader
    {
        BufferedReader br;
        StringTokenizer st;
 
        public FastReader()
        {
            br = new BufferedReader(new InputStreamReader(System.in));
        }
        
        String next()
        {
            while (st == null || !st.hasMoreElements())
            {
                try
                {
                    st = new StringTokenizer(br.readLine());
                }
                catch (IOException  e)
                {
                    e.printStackTrace();
                }
            }
            return st.nextToken();
        }
 
        int nextInt()
        {
            return Integer.parseInt(next());
        }
 
        long nextLong()
        {
            return Long.parseLong(next());
        }
 
        double nextDouble()
        {
            return Double.parseDouble(next());
        }
 
        String nextLine()
        {
            String str = "";
            try
            {
                str = br.readLine();
            }
            catch (IOException e)
            {
                e.printStackTrace();
            }
            return str;
        }
    }
	
    static FastReader in = new FastReader();
  
    public static void sop(Object o)
    {
    	System.out.print(o);
    }
}

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

#pragma GCC optimize("Ofast")
#pragma GCC target("sse,sse2,sse3,sse4,popcnt,abm,mmx")

#include <bits/stdc++.h>
#define pb push_back
#define pp pop_back()
#define mp make_pair
#define f first
#define s second
#define y1 asafsaf
#define kz ios_base::sync_with_stdio(NULL); cin.tie(NULL); cout.tie(NULL);
using namespace std;
typedef pair <int, int> pii;
typedef vector <int> vi;
typedef long long ll;
typedef unsigned long long ull;
typedef unsigned int ui;

const int N = 3e5 + 111, inf = 1e9, mod = 1e9 + 7;
const ll linf = 1e18;
const double pi = acos(-1.0);

int main(){
    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:24:12: error: 'n' was not declared in this scope
   24 |     cin >> n;
      |            ^
Language: Java

import java.util.*;
public class Main01 {
	public static void main(String[] args){
		Scanner sc = new Scanner(System.in);
		// 整数の入力
		int a = sc.nextInt();
		if(if a == 9 || a == 19 || a == 29 || a == 39 || a == 49 || a == 59 || a == 69 || a == 79 || a == 89 || a == 90 || a == 91 || a == 92 || a == 93 || a == 94 || a == 95 ||a == 96 || a == 97 || a == 98 || a == 99){
			System.out.println("Yes");
		}else{
			System.out.println("No");
		}
	}
}	

Compiler output:
Main.java:7: error: illegal start of expression
		if(if a == 9 || a == 19 || a == 29 || a == 39 || a == 49 || a == 59 || a == 69 || a == 79 || a == 89 || a == 90 || a == 91 || a == 92 || a == 93 || a == 94 || a == 95 ||a == 96 || a == 97 || a == 98 || a == 99){
		   ^
Main.java:7: error: '(' expected
		if(if a == 9 || a == 19 || a == 29 || a == 39 || a == 49 || a == 59 || a == 69 || a == 79 || a == 89 || a == 90 || a == 91 || a == 92 || a == 93 || a == 94 || a == 95 ||a == 96 || a == 97 || a == 98 || a == 99){
		     ^
2 errors
Language: C


#include<string>
#include<vector>
#include<iostream>
#include<cstdio>
#include<cstdlib>
#include<stack>
#include<queue>
#include<cmath>
#include<algorithm>
#include<list>
#include<set>
#include<map>
#include<cstring>
#include<sstream>
#include<cassert>
#define rep(X,Y) for (int (X) = 0;(X) < (Y);++(X))
#define reps(X,S,Y) for (int (X) = S;(X) < (Y);++(X))
#define rrep(X,Y) for (int (X) = (Y)-1;(X) >=0;--(X))
#define repe(X,Y) for ((X) = 0;(X) < (Y);++(X))
#define peat(X,Y) for (;(X) < (Y);++(X))
#define all(X) (X).begin(),(X).end()


using namespace std;
typedef long long ll;
typedef pair<int,int> pii;
typedef pair<ll,ll> pll;


int main(int argc, char const* argv[])
{
    int n;
    cin >> n;

    if (n % 10 == 9 || n / 10 == 9) {
        cout << "Yes" << endl;
        return 0;
    }

    cout << "No" << endl;
    return 0;
}


Compiler output:
main.c:2:9: fatal error: string: No such file or directory
    2 | #include<string>
      |         ^~~~~~~~
compilation terminated.