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

#include <algorithm>
#include <cmath>
#include <iomanip>
#include <iostream>
#include <string>
#include <utility>
#include <vector>

using namespace std;

int main() {
  int a;
  cin >> a;
   if(a[0]==a[2]){
    cout << "Yes" << endl;
  }
  else{
    cout << "No" << endl;
  }
  return 0;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:14:8: error: invalid types 'int[int]' for array subscript
   14 |    if(a[0]==a[2]){
      |        ^
a.cc:14:14: error: invalid types 'int[int]' for array subscript
   14 |    if(a[0]==a[2]){
      |              ^
Language: C++

#include <algorithm>
#include <cmath>
#include <iomanip>
#include <iostream>
#include <string>
#include <utility>
#include <vector>

using namespace std;

int main() {
  int a;
  cin >> a;
   if(b[0]==c[2]){
    cout << "Yes" << endl;
  }
  else{
    cout << "No" << endl;
  }
  return 0;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:14:7: error: 'b' was not declared in this scope
   14 |    if(b[0]==c[2]){
      |       ^
a.cc:14:13: error: 'c' was not declared in this scope
   14 |    if(b[0]==c[2]){
      |             ^
Language: C++

#include <algorithm>
#include <cmath>
#include <iomanip>
#include <iostream>
#include <string>
#include <utility>
#include <vector>

using namespace std;

int main() {
  int a;
  cin >> a;
   if(b.begin()==c.end()){
    cout << "Yes" << endl;
  }
  else{
    cout << "No" << endl;
  }
  return 0;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:14:7: error: 'b' was not declared in this scope
   14 |    if(b.begin()==c.end()){
      |       ^
a.cc:14:18: error: 'c' was not declared in this scope
   14 |    if(b.begin()==c.end()){
      |                  ^
Language: C++

int main(void) {
 string N;
 cin >> N;
 if (N[0] == N[2])
 cout << "Yes" << endl;
 else
 cout << "No" << endl;
 return 0;
 }

Compiler output:
a.cc: In function 'int main()':
a.cc:2:2: error: 'string' was not declared in this scope
    2 |  string N;
      |  ^~~~~~
a.cc:3:2: error: 'cin' was not declared in this scope
    3 |  cin >> N;
      |  ^~~
a.cc:3:9: error: 'N' was not declared in this scope
    3 |  cin >> N;
      |         ^
a.cc:5:2: error: 'cout' was not declared in this scope
    5 |  cout << "Yes" << endl;
      |  ^~~~
a.cc:5:19: error: 'endl' was not declared in this scope
    5 |  cout << "Yes" << endl;
      |                   ^~~~
a.cc:7:2: error: 'cout' was not declared in this scope
    7 |  cout << "No" << endl;
      |  ^~~~
a.cc:7:18: error: 'endl' was not declared in this scope
    7 |  cout << "No" << endl;
      |                  ^~~~
Language: C++

// AtCoder Beginner Contest 070
// A - Palindromic Number

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


int N;

int main() {

    cin >> N;

    cout << ((N / 100 == N % 10) : "Yes" : "No") << endl;

    return 0;

}





Compiler output:
a.cc: In function 'int main()':
a.cc:17:33: error: expected ')' before ':' token
   17 |     cout << ((N / 100 == N % 10) : "Yes" : "No") << endl;
      |             ~                   ^~
      |                                 )
Language: C++

#include <bits/stdc++.h>
using namespace std;
#define rep(x, y) for(int x = 0; x < (y); x++)
#define REP(x, z, y) for(int x = (z); x < (y); x++)
#define all(x) x.begin(), x.end()
#define len(x) (sizeof(x) / sizeof(x[0]))
#define split_str(str, sp_word) istringstream stream(str); string res; for(int cnt = 0; getline(stream,res,sp_word); cnt++)
#define scanln(x) fgets(x, sizeof x, stdin)
#define down_queue(x) priority_queue<x>
#define up_queue(x) priority_queue<x, vector<x>, greater<x>>
#define i_str(x) atoi(x.c_str())
#define digit(x) ((int)log10((double)(x)) + 1)
#define mp(x,y) make_pair(x,y)
#define pb(x) push_back(x)
#define pf(x) push_front(x)
#define out(x) cout << (x) << endl;
#define outs(x) for(auto i : x) cout << i << " ";
ll gcd(ll a,ll b){while(b){ll tmp = a % b;a = b;b = tmp;}return a;}
ll lcm(ll a,ll b){return a / gcd(a,b) * b;}
const int MOD = 1000000007; 
typedef long long ll;
typedef string str;

int main() {
  str n;cin >> n;
  if(n[0] == n[2])puts("Yes");
  else puts("No");
  return 0;
}

Compiler output:
a.cc:18:1: error: 'll' does not name a type; did you mean 'all'?
   18 | ll gcd(ll a,ll b){while(b){ll tmp = a % b;a = b;b = tmp;}return a;}
      | ^~
      | all
a.cc:19:1: error: 'll' does not name a type; did you mean 'all'?
   19 | ll lcm(ll a,ll b){return a / gcd(a,b) * b;}
      | ^~
      | all
Language: Java

mport java.util.Scanner;

public class Main {

	public static void main(String[] args) {

		try (Scanner s = new Scanner(System.in)) {
			final int N = s.nextInt();
			
			if (true == timesFraction(N))
				System.out.println("Yes");
			else
				System.out.println("No");
		}
	}

	private static boolean timesFraction(int n) {
		// int to ArrayString
		String[] s =  String.valueOf(n).split("");
		
		int N = s.length;
		final int M = (int)(N / 2);
		
		for (int i = 0; i < M; i++) {
			if (false == s[i].equals(s[N - 1])) {
				return false;
			}
		}
		return true;
	}
}


Compiler output:
Main.java:1: error: class, interface, enum, or record expected
mport java.util.Scanner;
^
1 error
Language: Java

///package CodeChef;

import java.util.*;
import java.io.*;
public class CALC {
	public static boolean[] b;
	static int[] FF;
	static int[] A;
	public static void main(String[] ard)  throws IOException
	{
		BufferedReader br=new BufferedReader(new InputStreamReader(System.in));
		PrintWriter pw=new PrintWriter(System.out);
		String s=br.readLine().trim();
		int a=Integer.valueOf(s);
		if(palin(s))pw.println("Yes");
		else pw.println("No");
		//pw.println(palin(s));
		
	pw.close();
		
	}
	 static long solve(int[] A, int k){
	       //int[] sum=new int[A.length+k+1];
	     ///  for(int i=1;i<=A.length;i++)
		 int n=A.length-1;
	       long ans=0;
	      /// Arrays.sort(A);
	       for(int i=1;i<=n-k+1;i++)
	       {
	           ans=Math.max(ans,Math.abs(A[i]-A[i+k-1]));
	       }
	       
	       return ans;
	    }
	public static boolean palin(String s)
	{
	   int i=0;
	   int j=s.length()-1;
	   while(i<j)
	   {
		   if(s.charAt(i)==s.charAt(j))
		   {
			   i++;
			   j--;
		   }
		   else return false;     
	   }
	   return true;
	}
	
}



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

/////package CodeChef;

import java.util.*;
import java.io.*;
public class CALC {
	public static boolean[] b;
	static int[] FF;
	static int[] A;
	public static void main(String[] ard)  throws IOException
	{
		BufferedReader br=new BufferedReader(new InputStreamReader(System.in));
		PrintWriter pw=new PrintWriter(System.out);
		String s=br.readLine().trim();
		int a=Integer.valueOf(s);
		if(palin(s))pw.println("Yes");
		else pw.println("No");
		//pw.println(palin(s));
		
	pw.close();
		
	}
	 static long solve(int[] A, int k){
	       //int[] sum=new int[A.length+k+1];
	     ///  for(int i=1;i<=A.length;i++)
		 int n=A.length-1;
	       long ans=0;
	      /// Arrays.sort(A);
	       for(int i=1;i<=n-k+1;i++)
	       {
	           ans=Math.max(ans,Math.abs(A[i]-A[i+k-1]));
	       }
	       
	       return ans;
	    }
	public static boolean palin(String s)
	{
	   int i=0;
	   int j=s.length()-1;
	   while(i<j)
	   {
		   if(s.charAt(i)==s.charAt(j))
		   {
			   i++;
			   j--;
		   }
		   else return false;     
	   }
	   return true;
	}
	
}



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

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

int main() {
    string s;
    cin >> s;
    string t = s;
    reverse(t.begin(), t.end());
  
    if(s==t) cout << "Yes" << endl;
    else cout << "No" << endl;
    return 0;
}



Compiler output:
a.cc: In function 'int main()':
a.cc:9:5: error: 'reverse' was not declared in this scope
    9 |     reverse(t.begin(), t.end());
      |     ^~~~~~~
Language: C++

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

int main()
{
    int n;
    cin>>n;
    int a;
    int b;
    int c;
    a=n%10;
    c=n/100;
    if(a==c) cout<<"Yes"<<endl;
    else cout<<"No"<<endl;
    //cout << "Hello world!" << endl;
    return 0;
}


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

#include<iostream>
#include<vector>
#include<memory.h>
using namespace std;
vector<int >qqq[100001];
long long int dis[100001][100001];
int n;
long  long int dist[100001];
void dijestra(int v){
	bool s[100001];
	memset(s,0,sizeof(s));
	memset(dist,-1,sizeof(dist));
	for(int i=0;i<qqq[v].size();i++){
		dist[qqq[v][i]]=dis[v][qqq[v][i]];
	}
	dist[v]=0;
	s[v]=1;
	 for(int i=2; i<=n; i++){
        long long  int mindist = 100000000000000;
		 int u = v;
         for(int j=1; j<=n; ++j)
         if((!s[j]) &&dist[j]!=-1&&dist[j]<mindist)
        {u = j; 
        mindist = dist[j];
       }
       s[u] = true; 
          for(int j=0;j<qqq[u].size(); j++)
         if((!s[qqq[u][j]]) && dis[u][qqq[u][j]]!=-1)
         {
                 if(dist[u] + dis[u][qqq[u][j]]<dist[qqq[u][j]]||dist[qqq[u][j]]==-1)     //在通过新加入的u点路径找到离v0点更短的路径  
                {
                       dist[qqq[u][j]] = dist[u] + dis[u][qqq[u][j]];    
                 }
            }
    }
    return ;
}
int main(){
	while(cin>>n){
		memset(dis,-1,sizeof(dis));
		for(int i=1;i<=n;i++){
		    qqq[i].clear(); 
		} 
		for(int k=0;k<n-1;k++){
			int i,j,kk;
			cin>>i>>j>>kk;
			qqq[i].push_back(j);
			qqq[j].push_back(i);
			dis[i][j]=dis[j][i]=kk;
		}
		int mm,nn;
		cin>>mm>>nn;
		dijestra(nn);
	//	cout<<"	OK"<<endl;
		for(int i=0;i<mm;i++){
			int a,b;
			cin>>a>>b;
			cout<<dist[a]+dist[b]<<endl;
		}
	}
}

Compiler output:
/tmp/cchX3lax.o: in function `dijestra(int)':
a.cc:(.text+0x38): relocation truncated to fit: R_X86_64_PC32 against symbol `dist' defined in .bss section in /tmp/cchX3lax.o
a.cc:(.text+0xe9): relocation truncated to fit: R_X86_64_PC32 against symbol `dist' defined in .bss section in /tmp/cchX3lax.o
a.cc:(.text+0x144): relocation truncated to fit: R_X86_64_PC32 against symbol `dist' defined in .bss section in /tmp/cchX3lax.o
a.cc:(.text+0x1b0): relocation truncated to fit: R_X86_64_PC32 against symbol `dist' defined in .bss section in /tmp/cchX3lax.o
a.cc:(.text+0x1ce): relocation truncated to fit: R_X86_64_PC32 against symbol `dist' defined in .bss section in /tmp/cchX3lax.o
a.cc:(.text+0x1f2): relocation truncated to fit: R_X86_64_PC32 against symbol `dist' defined in .bss section in /tmp/cchX3lax.o
a.cc:(.text+0x204): relocation truncated to fit: R_X86_64_PC32 against symbol `n' defined in .bss section in /tmp/cchX3lax.o
a.cc:(.text+0x2e8): relocation truncated to fit: R_X86_64_PC32 against symbol `dist' defined in .bss section in /tmp/cchX3lax.o
a.cc:(.text+0x383): relocation truncated to fit: R_X86_64_PC32 against symbol `dist' defined in .bss section in /tmp/cchX3lax.o
a.cc:(.text+0x3cc): relocation truncated to fit: R_X86_64_PC32 against symbol `dist' defined in .bss section in /tmp/cchX3lax.o
a.cc:(.text+0x3fe): additional relocation overflows omitted from the output
collect2: error: ld returned 1 exit status
Language: C++

#include<iostream>
#include<queue>
#include<memory.h>
using namespace std;
vector<int >q[100001];
long long int dis[100001][100001];
int n;
long  long int dist[100001];
void dijestra(int v){
	bool s[100001];
	memset(s,0,sizeof(s));
	memset(dist,-1,sizeof(dist));
	for(int i=0;i<q[v].size();i++){
		dist[q[v][i]]=dis[v][q[v][i]];
	}
	dist[v]=0;
	s[v]=1;
	 for(int i=2; i<=n; i++){
        long long  int mindist = 100000000000000;
		 int u = v;
         for(int j=1; j<=n; ++j)
         if((!s[j]) &&dist[j]!=-1&&dist[j]<mindist)
        {u = j; 
        mindist = dist[j];
       }
       s[u] = true; 
          for(int j=0;j<q[u].size(); j++)
         if((!s[q[u][j]]) && dis[u][q[u][j]]!=-1)
         {
                 if(dist[u] + dis[u][q[u][j]]<dist[q[u][j]]||dist[q[u][j]]==-1)     //在通过新加入的u点路径找到离v0点更短的路径  
                {
                       dist[q[u][j]] = dist[u] + dis[u][q[u][j]];    
                 }
            }
    }
    return ;
}
int main(){
	while(cin>>n){
		memset(dis,-1,sizeof(dis));
	//	for(int i=1;i<=n;i++){
	//	    q[i].clear(); 
	//	} 
		for(int k=0;k<n-1;k++){
			int i,j,kk;
			cin>>i>>j>>kk;
			q[i].push_back(j);
			q[j].push_back(i);
			dis[i][j]=dis[j][i]=kk;
		}
		int mm,nn;
		cin>>mm>>nn;
		dijestra(nn);
	//	cout<<"	OK"<<endl;
		for(int i=0;i<mm;i++){
			int a,b;
			cin>>a>>b;
			cout<<dist[a]+dist[b]<<endl;
		}
	}
}

Compiler output:
/tmp/cci2AIlN.o: in function `dijestra(int)':
a.cc:(.text+0x38): relocation truncated to fit: R_X86_64_PC32 against symbol `dist' defined in .bss section in /tmp/cci2AIlN.o
a.cc:(.text+0xe9): relocation truncated to fit: R_X86_64_PC32 against symbol `dist' defined in .bss section in /tmp/cci2AIlN.o
a.cc:(.text+0x144): relocation truncated to fit: R_X86_64_PC32 against symbol `dist' defined in .bss section in /tmp/cci2AIlN.o
a.cc:(.text+0x1b0): relocation truncated to fit: R_X86_64_PC32 against symbol `dist' defined in .bss section in /tmp/cci2AIlN.o
a.cc:(.text+0x1ce): relocation truncated to fit: R_X86_64_PC32 against symbol `dist' defined in .bss section in /tmp/cci2AIlN.o
a.cc:(.text+0x1f2): relocation truncated to fit: R_X86_64_PC32 against symbol `dist' defined in .bss section in /tmp/cci2AIlN.o
a.cc:(.text+0x204): relocation truncated to fit: R_X86_64_PC32 against symbol `n' defined in .bss section in /tmp/cci2AIlN.o
a.cc:(.text+0x2e8): relocation truncated to fit: R_X86_64_PC32 against symbol `dist' defined in .bss section in /tmp/cci2AIlN.o
a.cc:(.text+0x383): relocation truncated to fit: R_X86_64_PC32 against symbol `dist' defined in .bss section in /tmp/cci2AIlN.o
a.cc:(.text+0x3cc): relocation truncated to fit: R_X86_64_PC32 against symbol `dist' defined in .bss section in /tmp/cci2AIlN.o
a.cc:(.text+0x3fe): additional relocation overflows omitted from the output
collect2: error: ld returned 1 exit status
Language: C

#include<studio.h>
int main(void)
{
int N,hun,ten,one,all;

scanf("%d",&N);

hun =N / 100;
ten =N / 10;
all = hun*100 + ten *10;
one = N - all;
if(hun == one)
{
printf("yes");
}
else
{
printf("no");
}
return 0;
}


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

#include "stdafx.h"


int main()
{
	int N[3];
	scanf("N",&N);

	if (N[0] == N[2]) printf("Yes\n");
	else printf("No\n");

		
   return 0;
}


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

a#include <stdio.h>

int main(void) {
  int n, a, b, c;
  scanf ("%d",&n);
  a = n / 100;
  b = (n % 100) / 10;
  c = n % 100;
  
  if(n == c * 100 + b 
     * 10 + a) {
    printf("Yes¥n");
  } else {
    printf("No¥n");
  }
  
  return 0;

}


Compiler output:
main.c:1:2: error: stray '#' in program
    1 | a#include <stdio.h>
      |  ^
main.c:1:1: error: unknown type name 'a'
    1 | a#include <stdio.h>
      | ^
main.c:1:11: error: expected '=', ',', ';', 'asm' or '__attribute__' before '<' token
    1 | a#include <stdio.h>
      |           ^
Language: C++

#include<stdio.h>
int main(){
  int n;
  scanf("%d",n);
  if(n/100=n%10) printf("Yes");
  else printf("No");
}

Compiler output:
a.cc: In function 'int main()':
a.cc:5:7: error: lvalue required as left operand of assignment
    5 |   if(n/100=n%10) printf("Yes");
      |      ~^~~~
Language: Java

public class ABC070_A{
  public static void main(String[] args){
    int num = new java.util.Scanner(System.in).nextInt();
    int hundredth = num/100;
    int tenth = (num-hundredth*100)/10;
    int oneth = (num-hundredth*100-tenth*10);

    if (hundredth == oneth){
      System.out.println("Yes");
    }
    else{
      System.out.println("No");
    }
  }
}


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

#include<stdio.h>
int main(void){
int A,B,C,D;
scanf("%d %d %d %d",&A,&B,&C,&D);
if(A<C){
  if(B<D){
    printf(""%d\n,B-C);
  }
  else {
    printf("%d\n",D-C);
  }
}
else{
  if(B<D){
    printf("%d",B-A);
  }
  else{
    printf("%d",D-A);
  }
}
return 0;
}

Compiler output:
main.c: In function 'main':
main.c:7:16: error: stray '\' in program
    7 |     printf(""%d\n,B-C);
      |                ^
main.c:7:15: error: 'd' undeclared (first use in this function)
    7 |     printf(""%d\n,B-C);
      |               ^
main.c:7:15: note: each undeclared identifier is reported only once for each function it appears in
main.c:7:16: error: expected ')' before 'n'
    7 |     printf(""%d\n,B-C);
      |           ~    ^~
      |                )
Language: C

#include<stdio.h>
int  main(void) {
int N ;
scanf(″%d″,&N);
if(N-N==0){printf(″Yes″,);
}
else {(″No″);
}
return 0;
}

Compiler output:
main.c: In function 'main':
main.c:4:7: error: stray '\342' in program
    4 | scanf(<U+2033>%d<U+2033>,&N);
      |       ^~~~~~~~
main.c:4:8: error: expected expression before '%' token
    4 | scanf(″%d″,&N);
      |        ^
main.c:4:10: error: stray '\342' in program
    4 | scanf(<U+2033>%d<U+2033>,&N);
      |                 ^~~~~~~~
main.c:5:19: error: stray '\342' in program
    5 | if(N-N==0){printf(<U+2033>Yes<U+2033>,);
      |                   ^~~~~~~~
main.c:5:23: error: stray '\342' in program
    5 | if(N-N==0){printf(<U+2033>Yes<U+2033>,);
      |                              ^~~~~~~~
main.c:5:20: error: 'Yes' undeclared (first use in this function)
    5 | if(N-N==0){printf(″Yes″,);
      |                    ^~~
main.c:5:20: note: each undeclared identifier is reported only once for each function it appears in
main.c:5:25: error: expected expression before ')' token
    5 | if(N-N==0){printf(″Yes″,);
      |                         ^
main.c:7:8: error: stray '\342' in program
    7 | else {(<U+2033>No<U+2033>);
      |        ^~~~~~~~
main.c:7:11: error: stray '\342' in program
    7 | else {(<U+2033>No<U+2033>);
      |                  ^~~~~~~~
main.c:7:9: error: 'No' undeclared (first use in this function); did you mean 'N'?
    7 | else {(″No″);
      |         ^~
      |         N
Language: C

#include <stdio.h>
int main(){
  int num[3]
  if(i=0; i<2; i++)  {
  scanf("%d",&num[i]);
  }
  if(num［0］=num［2］){
  printf("Yes");
  }else{
  printf("No");
  }
  
  return 0;
}


Compiler output:
main.c: In function 'main':
main.c:4:3: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'if'
    4 |   if(i=0; i<2; i++)  {
      |   ^~
main.c:4:6: error: 'i' undeclared (first use in this function)
    4 |   if(i=0; i<2; i++)  {
      |      ^
main.c:4:6: note: each undeclared identifier is reported only once for each function it appears in
main.c:4:9: error: expected ')' before ';' token
    4 |   if(i=0; i<2; i++)  {
      |     ~   ^
      |         )
main.c:5:15: error: 'num' undeclared (first use in this function)
    5 |   scanf("%d",&num[i]);
      |               ^~~
main.c:7:6: error: 'num\U0000ff3b0\U0000ff3d' undeclared (first use in this function)
    7 |   if(num［0］=num［2］){
      |      ^~~~~~~~
main.c:7:15: error: 'num\U0000ff3b2\U0000ff3d' undeclared (first use in this function)
    7 |   if(num［0］=num［2］){
      |               ^~~~~~~~
Language: C

#include<stdio.h>
int  main(void) {
int N ;
scanf(″%d″,&N);
if(N  - N>=0){printf(″No″,N);
}
else if (N - N <=0){printf(″No″,N);
}
else {(″Yes″,N);
}
return 0;
}

Compiler output:
main.c: In function 'main':
main.c:4:7: error: stray '\342' in program
    4 | scanf(<U+2033>%d<U+2033>,&N);
      |       ^~~~~~~~
main.c:4:8: error: expected expression before '%' token
    4 | scanf(″%d″,&N);
      |        ^
main.c:4:10: error: stray '\342' in program
    4 | scanf(<U+2033>%d<U+2033>,&N);
      |                 ^~~~~~~~
main.c:5:22: error: stray '\342' in program
    5 | if(N  - N>=0){printf(<U+2033>No<U+2033>,N);
      |                      ^~~~~~~~
main.c:5:25: error: stray '\342' in program
    5 | if(N  - N>=0){printf(<U+2033>No<U+2033>,N);
      |                                ^~~~~~~~
main.c:5:23: error: 'No' undeclared (first use in this function); did you mean 'N'?
    5 | if(N  - N>=0){printf(″No″,N);
      |                       ^~
      |                       N
main.c:5:23: note: each undeclared identifier is reported only once for each function it appears in
main.c:7:28: error: stray '\342' in program
    7 | else if (N - N <=0){printf(<U+2033>No<U+2033>,N);
      |                            ^~~~~~~~
main.c:7:31: error: stray '\342' in program
    7 | else if (N - N <=0){printf(<U+2033>No<U+2033>,N);
      |                                      ^~~~~~~~
main.c:9:8: error: stray '\342' in program
    9 | else {(<U+2033>Yes<U+2033>,N);
      |        ^~~~~~~~
main.c:9:12: error: stray '\342' in program
    9 | else {(<U+2033>Yes<U+2033>,N);
      |                   ^~~~~~~~
main.c:9:9: error: 'Yes' undeclared (first use in this function)
    9 | else {(″Yes″,N);
      |         ^~~
Language: C++

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

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

#include <iostream>
using namespace std;

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

Compiler output:
a.cc: In function 'int main()':
a.cc:5:14: error: 'n' was not declared in this scope
    5 |         cin>>n;
      |              ^
a.cc:8:24: error: expected ';' before 'return'
    8 |         else cout<<"No"
      |                        ^
      |                        ;
    9 |         return 0;
      |         ~~~~~~
Language: C++

#include<iostream>
#include<string>
using namespace std;
int main()
{
	// 整数の入力
	int a;
	cin >> a;

  	// 出力
  	string ret;
	if(	a[0] == a[2]) ret = "Yes";
  	else ret = "No"
  
	cout << (a) << " " << s << endl;
	return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:12:18: error: invalid types 'int[int]' for array subscript
   12 |         if(     a[0] == a[2]) ret = "Yes";
      |                  ^
a.cc:12:26: error: invalid types 'int[int]' for array subscript
   12 |         if(     a[0] == a[2]) ret = "Yes";
      |                          ^
a.cc:13:24: error: expected ';' before 'cout'
   13 |         else ret = "No"
      |                        ^
      |                        ;
   14 | 
   15 |         cout << (a) << " " << s << endl;
      |         ~~~~
Language: C++

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

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

#include<stdio.h>
int N,a;
scanf("%d",&N);
a=N%100;
if(N/100==a%10){
    printf("Yes\n");
}
else{
  printf("No\n");
}

Compiler output:
main.c:3:7: error: expected declaration specifiers or '...' before string constant
    3 | scanf("%d",&N);
      |       ^~~~
main.c:3:12: error: expected declaration specifiers or '...' before '&' token
    3 | scanf("%d",&N);
      |            ^
main.c:4:1: warning: data definition has no type or storage class
    4 | a=N%100;
      | ^
main.c:4:1: error: type defaults to 'int' in declaration of 'a' [-Wimplicit-int]
main.c:4:3: error: initializer element is not constant
    4 | a=N%100;
      |   ^
main.c:5:1: error: expected identifier or '(' before 'if'
    5 | if(N/100==a%10){
      | ^~
main.c:8:1: error: expected identifier or '(' before 'else'
    8 | else{
      | ^~~~
Language: C

#include<stdio.h>
int N,a;
scanf("%d",&N);
a=n%100;
if(N/100==a%10){
    printf("Yes\n");
}
else{
  printf("No\n");
}

Compiler output:
main.c:3:7: error: expected declaration specifiers or '...' before string constant
    3 | scanf("%d",&N);
      |       ^~~~
main.c:3:12: error: expected declaration specifiers or '...' before '&' token
    3 | scanf("%d",&N);
      |            ^
main.c:4:1: warning: data definition has no type or storage class
    4 | a=n%100;
      | ^
main.c:4:1: error: type defaults to 'int' in declaration of 'a' [-Wimplicit-int]
main.c:4:3: error: 'n' undeclared here (not in a function)
    4 | a=n%100;
      |   ^
main.c:5:1: error: expected identifier or '(' before 'if'
    5 | if(N/100==a%10){
      | ^~
main.c:8:1: error: expected identifier or '(' before 'else'
    8 | else{
      | ^~~~
Language: C

#include<stdio.h>
int N,a;
scanf("%d",&N);
a=n%100;
if(N/100==a%10){
    prinf("Yes\n");
}
else{
  printf("No\n");
}

Compiler output:
main.c:3:7: error: expected declaration specifiers or '...' before string constant
    3 | scanf("%d",&N);
      |       ^~~~
main.c:3:12: error: expected declaration specifiers or '...' before '&' token
    3 | scanf("%d",&N);
      |            ^
main.c:4:1: warning: data definition has no type or storage class
    4 | a=n%100;
      | ^
main.c:4:1: error: type defaults to 'int' in declaration of 'a' [-Wimplicit-int]
main.c:4:3: error: 'n' undeclared here (not in a function)
    4 | a=n%100;
      |   ^
main.c:5:1: error: expected identifier or '(' before 'if'
    5 | if(N/100==a%10){
      | ^~
main.c:8:1: error: expected identifier or '(' before 'else'
    8 | else{
      | ^~~~
Language: Java

import java.util.*;

class number{
    public static void main(String args[]){
        Scanner s = new Scanner(System.in);
        int a = s.nextInt();
        int top = a/100;
        int bottom = a%10;
      　String result = "";
        if(top == bottom){
            result = "Yes"; 
        }else{
            result = "No";
        }
      System.out.println(result);
    }
}

Compiler output:
Main.java:9: error: illegal character: '\u3000'
      ?String result = "";
      ^
1 error
Language: C++

#include <iostream>
using namespace std;

int main(){

int n,i=0;
bool judge=true;
cin>>n;

vector<int> v(3);
while(n>0){
v[i]=n%10;
n/=10;
i++;
}


for(int i=0;i<3;i++){
if(v[i]!=v[2-i]) judge=false;

}

if(judge) cout<<"Yes"<<endl;
else cout<<"No"<<endl;
  }

Compiler output:
a.cc: In function 'int main()':
a.cc:10:1: error: 'vector' was not declared in this scope
   10 | vector<int> v(3);
      | ^~~~~~
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:10:8: error: expected primary-expression before 'int'
   10 | vector<int> v(3);
      |        ^~~
a.cc:12:1: error: 'v' was not declared in this scope
   12 | v[i]=n%10;
      | ^
a.cc:19:4: error: 'v' was not declared in this scope
   19 | if(v[i]!=v[2-i]) judge=false;
      |    ^
Language: C

#include<stdio.h>
int N,a;
scanf("%d",&N);
N%100=a;
if(N/100==a%10){
    prinf("Yes\n");
}
else{
  printf("No\n");
}

Compiler output:
main.c:3:7: error: expected declaration specifiers or '...' before string constant
    3 | scanf("%d",&N);
      |       ^~~~
main.c:3:12: error: expected declaration specifiers or '...' before '&' token
    3 | scanf("%d",&N);
      |            ^
main.c:4:2: error: expected '=', ',', ';', 'asm' or '__attribute__' before '%' token
    4 | N%100=a;
      |  ^
main.c:5:1: error: expected identifier or '(' before 'if'
    5 | if(N/100==a%10){
      | ^~
main.c:8:1: error: expected identifier or '(' before 'else'
    8 | else{
      | ^~~~
Language: C++

#include <cstdio>
using namespace std;

int main() {
	char a, b, c; scanf("%c%c%c", &a, &b, &c);
	printf("%s\n" (a == c ? "YES" : "NO"));
	return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:6:23: error: expression cannot be used as a function
    6 |         printf("%s\n" (a == c ? "YES" : "NO"));
      |                ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~
Language: C

#include <stdio.h>

int main(void){
	int a, b, c
	scanf("%d", &a);
	scanf("%d", &b);
	scanf("%d", &c);
	if (a=c){
		printf("yes\n");
	}
	else if 
	{
		printf("no\n");
	}


	return 0;
}


Compiler output:
main.c: In function 'main':
main.c:5:9: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'scanf'
    5 |         scanf("%d", &a);
      |         ^~~~~
main.c:7:22: error: 'c' undeclared (first use in this function)
    7 |         scanf("%d", &c);
      |                      ^
main.c:7:22: note: each undeclared identifier is reported only once for each function it appears in
main.c:12:9: error: expected '(' before '{' token
   12 |         {
      |         ^
      |         (
Language: Java

import java.util.*;

public class Test01 {
	public static void main(String[] args) {
Scanner scanner = new Scanner(System.in);
        int num = scanner.nextInt();	
	String s = String.valueOf(num);
if(isPalindrome(s)) {
            System.out.println("Yes");
        } else {
            System.out.println("No");
       }
	}

public static boolean isPalindrome(String sentence) {
        int minIdx = 0;
        int maxIdx = sentence.length() - 1;
 
        while(minIdx < maxIdx) {
            if(sentence.charAt(minIdx++) != sentence.charAt(maxIdx--)) {
                return false;
            }
        }
        return true;
    }
}

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

#include <iostream>
using nanespace std;

int main(){

int n,i=0;
bool judge=true;
cin>>n;

vector<int> v(3);
while(n>0){
v[i]=n%10;
n/=10;
i++;
}


for(int i=0;i<3;i++){
if(v[i]!=v[2-i]) judge=false;

}

if(judge) cout<<"Yes"<<endl;
else cout<<"No"<<endl;
  }

Compiler output:
a.cc:2:7: error: expected nested-name-specifier before 'nanespace'
    2 | using nanespace std;
      |       ^~~~~~~~~
a.cc: In function 'int main()':
a.cc:8:1: error: 'cin' was not declared in this scope; did you mean 'std::cin'?
    8 | 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:10:1: error: 'vector' was not declared in this scope
   10 | vector<int> v(3);
      | ^~~~~~
a.cc:10:8: error: expected primary-expression before 'int'
   10 | vector<int> v(3);
      |        ^~~
a.cc:12:1: error: 'v' was not declared in this scope
   12 | v[i]=n%10;
      | ^
a.cc:19:4: error: 'v' was not declared in this scope
   19 | if(v[i]!=v[2-i]) judge=false;
      |    ^
a.cc:23:11: error: 'cout' was not declared in this scope; did you mean 'std::cout'?
   23 | if(judge) cout<<"Yes"<<endl;
      |           ^~~~
      |           std::cout
/usr/include/c++/14/iostream:63:18: note: 'std::cout' declared here
   63 |   extern ostream cout;          ///< Linked to standard output
      |                  ^~~~
a.cc:23:24: error: 'endl' was not declared in this scope; did you mean 'std::endl'?
   23 | if(judge) cout<<"Yes"<<endl;
      |                        ^~~~
      |                        std::endl
In file included from /usr/include/c++/14/iostream:41:
/usr/include/c++/14/ostream:744:5: note: 'std::endl' declared here
  744 |     endl(basic_ostream<_CharT, _Traits>& __os)
      |     ^~~~
a.cc:24:6: error: 'cout' was not declared in this scope; did you mean 'std::cout'?
   24 | else cout<<"No"<<endl;
      |      ^~~~
      |      std::cout
/usr/include/c++/14/iostream:63:18: note: 'std::cout' declared here
   63 |   extern ostream cout;          ///< Linked to standard output
      |                  ^~~~
a.cc:24:18: error: 'endl' was not declared in this scope; did you mean 'std::endl'?
   24 | else cout<<"No"<<endl;
      |                  ^~~~
      |                  std::endl
/usr/include/c++/14/ostream:744:5: note: 'std::endl' declared here
  744 |     endl(basic_ostream<_CharT, _Traits>& __os)
      |     ^~~~
Language: C++

#include <stdio.h>

int main(void){
	int a, b, c
	scanf("%d", &a);
	scanf("%d", &b);
	scanf("%d", &c);
	if (a=c){
		printf("yes\n");
	}
	else if 
	{
		printf("no\n");
	}


	return 0;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:5:9: error: expected initializer before 'scanf'
    5 |         scanf("%d", &a);
      |         ^~~~~
a.cc:7:22: error: 'c' was not declared in this scope
    7 |         scanf("%d", &c);
      |                      ^
a.cc:12:9: error: expected '(' before '{' token
   12 |         {
      |         ^
      |         (
Language: Java

import java.util.*;
class btest
{
public static void main(String[] args)
{
Scanner sc=new Scanner(System.in);
int n=sc.nextInt();
int rev=0;
int num=n;
while(n!=0)
{
rev=rev*10+n/10;
n=n/10;
}
if(rev==num)
System.out.println("Yes);
else
System.out.println("No);
}
}


Compiler output:
Main.java:16: error: unclosed string literal
System.out.println("Yes);
                   ^
Main.java:18: error: unclosed string literal
System.out.println("No);
                   ^
Main.java:17: error: 'else' without 'if'
else
^
3 errors
Language: C++

int N;

cin >> N;

int firstDigit = N / 100;
int lastDigit = N % 10;

if(firstDigit == lastDigit)
  cout << "yes" << endl;
else
  cout << "no" << endl;

Compiler output:
a.cc:3:1: error: 'cin' does not name a type
    3 | cin >> N;
      | ^~~
a.cc:8:1: error: expected unqualified-id before 'if'
    8 | if(firstDigit == lastDigit)
      | ^~
a.cc:10:1: error: expected unqualified-id before 'else'
   10 | else
      | ^~~~
Language: C++

#include <stdio.h>

int main(void){
	int a, b, c
	scanf("%d", &a);
	scanf("%d", &b);
	scanf("%d", &c);
	if a=c{
		Printf("yes\n");
	}
	else {
		printf("no\n");
	}


	return 0;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:5:9: error: expected initializer before 'scanf'
    5 |         scanf("%d", &a);
      |         ^~~~~
a.cc:7:22: error: 'c' was not declared in this scope
    7 |         scanf("%d", &c);
      |                      ^
a.cc:8:12: error: expected '(' before 'a'
    8 |         if a=c{
      |            ^
      |            (
a.cc:11:9: error: 'else' without a previous 'if'
   11 |         else {
      |         ^~~~
Language: C++

#include<cstdio>
#include<iostream>
#include<cmath>
#include<algorithm>
int a,b,c,d;
int main() {
	scanf("%d %d %d %d",&a,&b,&c,&d);
    printf("%d",max(0,min(b,d)-max(a,c)));
	return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:8:23: error: 'min' was not declared in this scope; did you mean 'std::min'?
    8 |     printf("%d",max(0,min(b,d)-max(a,c)));
      |                       ^~~
      |                       std::min
In file included from /usr/include/c++/14/algorithm:61,
                 from a.cc:4:
/usr/include/c++/14/bits/stl_algo.h:5696:5: note: 'std::min' declared here
 5696 |     min(initializer_list<_Tp> __l, _Compare __comp)
      |     ^~~
a.cc:8:32: error: 'max' was not declared in this scope; did you mean 'std::max'?
    8 |     printf("%d",max(0,min(b,d)-max(a,c)));
      |                                ^~~
      |                                std::max
/usr/include/c++/14/bits/stl_algo.h:5716:5: note: 'std::max' declared here
 5716 |     max(initializer_list<_Tp> __l, _Compare __comp)
      |     ^~~
a.cc:8:17: error: 'max' was not declared in this scope; did you mean 'std::max'?
    8 |     printf("%d",max(0,min(b,d)-max(a,c)));
      |                 ^~~
      |                 std::max
/usr/include/c++/14/bits/stl_algo.h:5716:5: note: 'std::max' declared here
 5716 |     max(initializer_list<_Tp> __l, _Compare __comp)
      |     ^~~
Language: C++

#include <bits/stdc++.h>
using namespace std;
typedef long long ll;
const int N=2e5+20;
int main()
{
	cin>>n;
	if(a/10==a%10)
		puts("YES");
	else
		puts("NO");
	return 0;
} 

Compiler output:
a.cc: In function 'int main()':
a.cc:7:14: error: 'n' was not declared in this scope
    7 |         cin>>n;
      |              ^
a.cc:8:12: error: 'a' was not declared in this scope
    8 |         if(a/10==a%10)
      |            ^
Language: C++

import java.util.*;
class Test
{
public static void main(String[] args)
{
Scanner sc=new Scanner(System.in);
int n=sc.nextInt();
int rev=0;
while(n!=0)
{
rev=rev*10+n%10;
n=n/10;
}
if(rev==n)
{
System.out.println("Yes");
}
else
{
System.out.println("No");
}
}
}

Compiler output:
a.cc:1:1: error: 'import' does not name a type
    1 | import java.util.*;
      | ^~~~~~
a.cc:1:1: note: C++20 'import' only available with '-fmodules-ts'
a.cc:4:7: error: expected ':' before 'static'
    4 | public static void main(String[] args)
      |       ^~~~~~~
      |       :
a.cc:4:25: error: 'String' has not been declared
    4 | public static void main(String[] args)
      |                         ^~~~~~
a.cc:4:34: error: expected ',' or '...' before 'args'
    4 | public static void main(String[] args)
      |                                  ^~~~
a.cc:23:2: error: expected ';' after class definition
   23 | }
      |  ^
      |  ;
a.cc: In static member function 'static void Test::main(int*)':
a.cc:6:1: error: 'Scanner' was not declared in this scope
    6 | Scanner sc=new Scanner(System.in);
      | ^~~~~~~
a.cc:7:7: error: 'sc' was not declared in this scope
    7 | int n=sc.nextInt();
      |       ^~
a.cc:16:1: error: 'System' was not declared in this scope
   16 | System.out.println("Yes");
      | ^~~~~~
a.cc:20:1: error: 'System' was not declared in this scope
   20 | System.out.println("No");
      | ^~~~~~
Language: C

#include <stdio.h>
#include <string.h>
const int maxn = 1e3 +5;
char a[maxn];
int main()
{
    gets(a);
    int n = strlen(a);
    for (int i = 0; i < n / 2; i++)
    if (a[i] != a[n - 1 - i]) {
        printf("No\n");
        return 0;
    }
    printf("Yes\n");
    return 0;
}


Compiler output:
main.c:4:6: error: variably modified 'a' at file scope
    4 | char a[maxn];
      |      ^
main.c: In function 'main':
main.c:7:5: error: implicit declaration of function 'gets'; did you mean 'fgets'? [-Wimplicit-function-declaration]
    7 |     gets(a);
      |     ^~~~
      |     fgets
Language: C

#include <cstdio>
#include <cstring>
const int maxn = 1e3 +5;
char a[maxn];
int main()
{
    gets(a);
    int n = strlen(a);
    for (int i = 0; i < n / 2; i++)
    if (a[i] != a[n - 1 - i]) {
        printf("No\n");
        return 0;
    }
    printf("Yes\n");
    return 0;
}


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

N = (input())						# 5

if N[0]==N[-1]:
	print("Yes")
else:
	print("No")


Compiler output:
a.cc:1:57: error: stray '#' in program
    1 | N = (input())                                           # 5
      |                                                         ^
a.cc:1:1: error: 'N' does not name a type
    1 | N = (input())                                           # 5
      | ^
Language: C++

#include <iostream>
#include <string>
#include <vector>

using namespace std;

int main() {
		std::ios::sync_with_stdio(false);
		std::cin.tie(0);

		string a,b;
		cin >> a;
		b = a;
		reverse(b.begin(), b.end());

		if (a == b) {
			cout << "Yes";
		}
		else {
			cout << "No";
		}



		

}

Compiler output:
a.cc: In function 'int main()':
a.cc:14:17: error: 'reverse' was not declared in this scope
   14 |                 reverse(b.begin(), b.end());
      |                 ^~~~~~~
Language: C++

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

#define N_MAX 10000

int main(){

  string n;
  cin >> n;

  if(s[0]==s[2]){
    cout << "Yes" << endl;
  } else {
    cout << "No" << endl;
  }
  return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:12:6: error: 's' was not declared in this scope
   12 |   if(s[0]==s[2]){
      |      ^
Language: Java

import java.util.*;
import java.io.*;

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

Compiler output:
Main.java:7: error: not a statement
        int  = sc.nextInt();
        ^
Main.java:7: error: ';' expected
        int  = sc.nextInt();
           ^
2 errors
Language: C++

#include <iostream>

int main(){
  char str[3];

cin >> str;
if(str[0] == str[2])
cout << "Yes\n";
else
cout << "No\n";

  return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:6:1: error: 'cin' was not declared in this scope; did you mean 'std::cin'?
    6 | cin >> str;
      | ^~~
      | std::cin
In file included from a.cc:1:
/usr/include/c++/14/iostream:62:18: note: 'std::cin' declared here
   62 |   extern istream cin;           ///< Linked to standard input
      |                  ^~~
a.cc:8:1: error: 'cout' was not declared in this scope; did you mean 'std::cout'?
    8 | cout << "Yes\n";
      | ^~~~
      | std::cout
/usr/include/c++/14/iostream:63:18: note: 'std::cout' declared here
   63 |   extern ostream cout;          ///< Linked to standard output
      |                  ^~~~
a.cc:10:1: error: 'cout' was not declared in this scope; did you mean 'std::cout'?
   10 | cout << "No\n";
      | ^~~~
      | std::cout
/usr/include/c++/14/iostream:63:18: note: 'std::cout' declared here
   63 |   extern ostream cout;          ///< Linked to standard output
      |                  ^~~~
Language: C++

#include <string>
#include<string.h>
#include<vector>
#include<queue>
#include<cmath>
#include<algorithm>
#include<map>
#include<set>
#include<cstdio>
#include<iostream>
using namespace std;
#define lson l,m,rt<<1
#define rson m+1,r,rt<<1|1
#define fuck(x) cout<<x<<endl
#define mem(a,b) memset(a,b,sizeof a)
#define lowbit(x) (x&-x)
const int MAX=1e5*2+10;
int main()
{
    string str;
    string str2;
    while(cin>>str)
    {
        str2=str.reserve(str.begin(),str.end());
        if(str2==str)
            puts("Yes");
        else
            puts("No");
    }
}


Compiler output:
a.cc: In function 'int main()':
a.cc:24:25: error: no matching function for call to 'std::__cxx11::basic_string<char>::reserve(std::__cxx11::basic_string<char>::iterator, std::__cxx11::basic_string<char>::iterator)'
   24 |         str2=str.reserve(str.begin(),str.end());
      |              ~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~
In file included from /usr/include/c++/14/string:54,
                 from a.cc:1:
/usr/include/c++/14/bits/basic_string.h:1205:7: note: candidate: 'void std::__cxx11::basic_string<_CharT, _Traits, _Alloc>::reserve(size_type) [with _CharT = char; _Traits = std::char_traits<char>; _Alloc = std::allocator<char>; size_type = long unsigned int]'
 1205 |       reserve(size_type __res_arg);
      |       ^~~~~~~
/usr/include/c++/14/bits/basic_string.h:1205:7: note:   candidate expects 1 argument, 2 provided
/usr/include/c++/14/bits/basic_string.h:1215:7: note: candidate: 'void std::__cxx11::basic_string<_CharT, _Traits, _Alloc>::reserve() [with _CharT = char; _Traits = std::char_traits<char>; _Alloc = std::allocator<char>]'
 1215 |       reserve();
      |       ^~~~~~~
/usr/include/c++/14/bits/basic_string.h:1215:7: note:   candidate expects 0 arguments, 2 provided
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>
#include <_mingw.h>
using namespace std;
#define long long ll
int main()
{
	string s,s1;
	cin>>s;
	s1=s;
	reverse(s1.begin(),s1.end());
	if(s==s1)cout<<"Yes";
	else cout<<"No";
    return 0;
}

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

#incldue <iostream>
#include <cstring>
using namespace std;

int main(){
  	int n;
  	cin>>n;
  	if(n%10 == int(n/100))	puts("Yes");
  	else	puts("No");
	return 0;
}

Compiler output:
a.cc:1:2: error: invalid preprocessing directive #incldue; did you mean #include?
    1 | #incldue <iostream>
      |  ^~~~~~~
      |  include
a.cc: In function 'int main()':
a.cc:7:9: error: 'cin' was not declared in this scope
    7 |         cin>>n;
      |         ^~~
a.cc:3:1: note: 'std::cin' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>'
    2 | #include <cstring>
  +++ |+#include <iostream>
    3 | using namespace std;
a.cc:8:33: error: 'puts' was not declared in this scope
    8 |         if(n%10 == int(n/100))  puts("Yes");
      |                                 ^~~~
a.cc:9:17: error: 'puts' was not declared in this scope
    9 |         else    puts("No");
      |                 ^~~~
Language: C++


#include <iostream>
#include <time.h>
//
#include <conio.h>
#include <algorithm>
using namespace std;

int main()
{
	int n;
	cin >> n;
	int arr[3];
	for (int i = 0; i < 3; i++)
	{
		arr[i] = n % 10;
		n /= 10;
	}
	if (arr[0] == arr[2])
		cout << "Yes";
	else cout << "No";
	//_getch();
	return 0;
}

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

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

#define ll long long
#define pb push_back
#define mp make_pair
#define ff first
#define ss second
#define sc(x) scanf("%lld",&x)
#define pr(x) printf("%lld\n",x)
#define clr(x) memset(x, 0, sizeof(x))
#define all(x) x.begin(), x.end()
typedef pair<ll, ll> pii;
typedef vector< ll > vl;
typedef vector< pii > vpii;
const ll N= 1e5+55,mod = 1e9+7;
int main() {
// 	freopen("Task.in","r",stdin);freopen("Task.out","w",stdout);
	string s;
	ci>>s;
	if(s[0]==s[2]){
		cout<<"Yes\n";
		return 0;
	}	
	cout<<"No\n";
}

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

#include <functional>
#include <algorithm>
#include <iostream>
#include <cstring>
#include <cstdlib>
#include <cassert>
#include <sstream>
#include <numeric>
#include <string>
#include <vector>
#include <cstdio>
#include <bitset>
#include <cmath>
#include <ctime>
#include <queue>
#include <stack>
#include <map>
#include <set>

using namespace std;

#define forit(it, s) for(__typeof(s.begin()) it = s.begin(); it != s.end(); it++)
#define np(v) next_permutation(v.begin(), v.end())
#define pll pair < long long, long long>
#define all(a) a.begin(), a.end()
#define ull unsigned long long
#define pii pair < int, int >
#define sz(a) (int)a.size()
#define sqr(x) ((x) * (x))
#define y1 stupid_cmath
#define vi vector <int>
#define pb push_back
#define mp make_pair
#define ll long long
#define f first
#define s second

const int inf = (int)3e6;
const int mod = inf + 7;
const double eps = 1e-9;
const double pi = acos(-1.0);

string s;

int main(){
    ios_base::sync_with_stdio(0), cin.tie(0);
    cin >>s;
    if(s[0] == s[2]) return cout << "Yes" << endl;
    cout << "No" << endl;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:48:43: error: cannot convert 'std::basic_ostream<char>::__ostream_type' {aka 'std::basic_ostream<char>'} to 'int' in return
   48 |     if(s[0] == s[2]) return cout << "Yes" << endl;
      |                             ~~~~~~~~~~~~~~^~~~~~~
      |                                           |
      |                                           std::basic_ostream<char>::__ostream_type {aka std::basic_ostream<char>}