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

#include <iostream>
#include <cstdio>
#include <cmath>
#include <cstring>
#include <algorithm>
#include <stack>
#include <queue>
#include <vector>
#include <list>
#include <string>
#include <cctype>
#include <cstdlib>
#include <set>
#include <map>
#include <sstream>
using namespace  std;  
#define  ll long long  
static const ll INF=1e9;
static const ll MAX=1e5+7;
const    ll   len=1e5+5;
ll n;
ll d[len];
struct ss{
	ll y;
	ll w;
};
vector<ss>ve[len];
void dkstl(ll s)
{
	ll u,minm;
	ll flag[len];
	for(ll i=0;i<n;++i)
	{
		d[i]=INF;
		flag[i]=0;
	}
	d[s]=0;
	flag[s]=1;
	while(1)
	{
		minm=INF;u=-1;
		for(ll i=0;i<n;++i)
		{
			if(flag[i]==0&&d[i]<minm)
			{
				u=i;
				minm=d[i];
			}
		}
		if(u==-1)break;
		flag[u]=1;
		for(ll v=0;v<ve[u].size();++v)
		{
			if(flag[ve[u][v].y]==0)
			{
				if(d[ve[u][v].y]>ve[u][v].w+d[u])
					d[ve[u][v].y]=ve[u][v].w+d[u];
			}
		}
	}
}
int main()
{	
	while(cin>>n)
	{
		ll i,j,t;
		ss kkk;
		for(int i=0;i<n;i++)
               vec[i].clear();
		for(ll u=0;u<n-1;++u)
		{
			scanf("%lld%lld",&i,&j);
			i--;j--;
			cin>>t;
			kkk.y=j;
			kkk.w=t;
			ve[i].push_back(kkk);
		}
		ll q,k;
		cin>>q>>k;
		k--;
		dkstl(k);
		for(ll v=1;v<=q;++v)
		{
			scanf("%lld%lld",&i,&j);
			i--;j--;
			printf("%lld\n",d[i]+d[j]);
		}
	}
	return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:69:16: error: 'vec' was not declared in this scope; did you mean 've'?
   69 |                vec[i].clear();
      |                ^~~
      |                ve
Language: Java

public static void main(String[] args) {
		int input = new Scanner(System.in).nextInt();
		System.out.println(input/100 == input%10?"Yes":"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)
1 error
Language: C++

#include<iostream>
#include<math.h>
#include<string>
#include<algorithm>
using namespace std;

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

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

#include <iostream>
using namespace std;

int main(){
  int X;
  int x[3]
  cin >> X;
  x[0] = X/100; X -= (X/100)*100;
  x[1] = X/10 ; X -= (X/10)*10;
  x[2] = X;
  if (x[0] == x[2]){
    cout <<"Yes" <<endl;
  }else{
    cout <<"No"<<endl;
  }
}


Compiler output:
a.cc: In function 'int main()':
a.cc:7:3: error: expected initializer before 'cin'
    7 |   cin >> X;
      |   ^~~
a.cc:8:3: error: 'x' was not declared in this scope
    8 |   x[0] = X/100; X -= (X/100)*100;
      |   ^
Language: C

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

int main(void)
{
   char N[100];
   scanf("%s",N);
   if(s[0]==s[2])
      printf("Yes\n");
   else
      printf("No\n");
   return 0;
}

Compiler output:
main.c: In function 'main':
main.c:8:7: error: 's' undeclared (first use in this function)
    8 |    if(s[0]==s[2])
      |       ^
main.c:8:7: note: each undeclared identifier is reported only once for each function it appears in
Language: C++

int main() {
    int numbers[101] ;
    int n ;
    bool flag = true ;
    
    cin >> n ;
    for(int i = 0 ; i < n ; i++){
        cin >> numbers[i] ;
    }
    sort(numbers, numbers + n) ;
    
    int max = numbers[n - 1] ;
    for(int j = 0 ; max <= pow(10, 8); max++){
        while(max % numbers[j] == 0){
            if(j < n - 1) j++ ;
            else
            {
                flag = false ;
                break ;
            }
        }
        if(!flag) {
            cout << max ;
            break ;
        }
    }
    
    return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:6:5: error: 'cin' was not declared in this scope
    6 |     cin >> n ;
      |     ^~~
a.cc:10:5: error: 'sort' was not declared in this scope; did you mean 'short'?
   10 |     sort(numbers, numbers + n) ;
      |     ^~~~
      |     short
a.cc:13:28: error: 'pow' was not declared in this scope
   13 |     for(int j = 0 ; max <= pow(10, 8); max++){
      |                            ^~~
a.cc:23:13: error: 'cout' was not declared in this scope
   23 |             cout << max ;
      |             ^~~~
Language: C

#include <stdio.h>

int main(void)
{
	int a,b,c,d;
	int bigeer, smaller;
	if(scanf("%d %d %d %d", &a, &b, &c, &d) > 0)
	{
	int answer;
	if(c < b || a < d)
	{	
		if(a < c)
		{
			bigger = c;
		}
		else
		{
			bigger = a;
		}
		if(b < d)
		{
			smaller = b;
		}
		else
		{
			smaller = d;
		}
		answer = smaller - bigger;
	}
	else
	{
		answer = 0;
	}
	}
}

Compiler output:
main.c: In function 'main':
main.c:14:25: error: 'bigger' undeclared (first use in this function); did you mean 'bigeer'?
   14 |                         bigger = c;
      |                         ^~~~~~
      |                         bigeer
main.c:14:25: note: each undeclared identifier is reported only once for each function it appears in
Language: C

#include <stdio.h>

int main(void)
{
	int a,b,c,d;
	scanf("%d %d %d %d", &a, &b, &c, &d);
	int answer;
	if(c < b || a < d)
	{
		int bigeer, smaller;
		if(a < c)
		{
			bigger = c;
		}
		else
		{
			bigger = a;
		}
		if(b < d)
		{
			smaller = b;
		}
		else
		{
			smaller = d;
		}
		answer = smaller - bigger;
	}
	else
	{
		answer = 0;
	}
}

Compiler output:
main.c: In function 'main':
main.c:13:25: error: 'bigger' undeclared (first use in this function); did you mean 'bigeer'?
   13 |                         bigger = c;
      |                         ^~~~~~
      |                         bigeer
main.c:13:25: note: each undeclared identifier is reported only once for each function it appears in
Language: C++

N = (input())

if N[0] == N[2] :
	print('Yes')

else:
	print('No')

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

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

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

Compiler output:
a.cc: In function 'int main()':
a.cc:8:5: error: 'std::string' {aka 'class std::__cxx11::basic_string<char>'} has no member named 'reverse'; did you mean 'reserve'?
    8 |   t.reverse();
      |     ^~~~~~~
      |     reserve
Language: C

#include<stdio.h>
int main()
{
	int N,A,B,C;
	100<=N&&N<=999;
	scanf("%d",&N);
	A=N/100;
	B=N/10-A*10;
	C=N-A*100-B*10;
	if(A==c)
	{
		printf("Yes");
	}
	eles printf("No);
	return 0;
}

Compiler output:
main.c: In function 'main':
main.c:10:15: error: 'c' undeclared (first use in this function)
   10 |         if(A==c)
      |               ^
main.c:10:15: note: each undeclared identifier is reported only once for each function it appears in
main.c:14:9: error: unknown type name 'eles'
   14 |         eles printf("No);
      |         ^~~~
main.c:14:21: warning: missing terminating " character
   14 |         eles printf("No);
      |                     ^
main.c:14:21: error: missing terminating " character
   14 |         eles printf("No);
      |                     ^~~~~
main.c:15:9: error: expected declaration specifiers or '...' before 'return'
   15 |         return 0;
      |         ^~~~~~
main.c:16:1: error: expected declaration specifiers or '...' before '}' token
   16 | }
      | ^
main.c:16:1: error: expected ';', ',' or ')' before '}' token
main.c:16:1: error: expected declaration or statement at end of input
Language: C

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


Compiler output:
main.c: In function 'main':
main.c:6:5: error: implicit declaration of function 'scanf' [-Wimplicit-function-declaration]
    6 |     scanf("%d",&n);
      |     ^~~~~
main.c:3:1: note: include '<stdio.h>' or provide a declaration of 'scanf'
    2 | #include<math.h>
  +++ |+#include <stdio.h>
    3 | int main()
main.c:6:5: warning: incompatible implicit declaration of built-in function 'scanf' [-Wbuiltin-declaration-mismatch]
    6 |     scanf("%d",&n);
      |     ^~~~~
main.c:6:5: note: include '<stdio.h>' or provide a declaration of 'scanf'
main.c:11:17: error: implicit declaration of function 'printf' [-Wimplicit-function-declaration]
   11 |                 printf("Yes\n");
      |                 ^~~~~~
main.c:11:17: note: include '<stdio.h>' or provide a declaration of 'printf'
main.c:11:17: warning: incompatible implicit declaration of built-in function 'printf' [-Wbuiltin-declaration-mismatch]
main.c:11:17: note: include '<stdio.h>' or provide a declaration of 'printf'
main.c:13:17: warning: incompatible implicit declaration of built-in function 'printf' [-Wbuiltin-declaration-mismatch]
   13 |                 printf("No\n");
      |                 ^~~~~~
main.c:13:17: note: include '<stdio.h>' or provide a declaration of 'printf'
main.c: At top level:
main.c:15:1: error: expected identifier or '(' before '}' token
   15 | }
      | ^
Language: C

#include "stdio.h"
int main()
{
	int n;
	while(~scanf("%d",&n)!=eof)
	{
		printf("ABC%d\n",n);
	}
	return 0;
}


Compiler output:
main.c: In function 'main':
main.c:5:32: error: 'eof' undeclared (first use in this function); did you mean 'feof'?
    5 |         while(~scanf("%d",&n)!=eof)
      |                                ^~~
      |                                feof
main.c:5:32: note: each undeclared identifier is reported only once for each function it appears in
Language: C++

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


Compiler output:
a.cc: In function 'int main()':
a.cc:10:23: error: 't' was not declared in this scope
   10 |         printf("No\n",t);
      |                       ^
Language: C++

#include<iostream>
#include<string>
using namespace std;
int main()
{
string s;
cin >> s;
if(s[0] ==  s[2])
   puts(“Yes”);
else
   puts(“No”);
return 0;
}

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

#include<iostream>
#include<vector>
using namespace std;
int main()
{
    vector<int> vec;
    int n;
    cout<<"enter a three-digit positive integer N:"<<endl;
    int n1=n;
    while(n1) {
        vec.push_back(n1 % 10);
        n1 = n1 / 10;
    }
    if(vec.size()!=3)
        return 1;
    int n2=vec.at(0)*100+vec.at(1)*10+vec.at(2);
    if(n==n2)
        cout<<"Yes"<<endl;
    else
        cout<<"No"<<endl;
    return 0;
}

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

import java.util.*;
 
class Main{       
    
   public static void main(String[] args){
     
       Scanner sc = new Scanner(System.in);                                            
       
       int n = sc.nextInt();
       
       List<List<Edge>> edges = new ArrayList<>(n);
       for(int i = 0;i < n;i++){
           edges.add(new ArrayList<>());
       }
       
       for(int i = 0;i < n-1;i++){
           int a = sc.nextInt() - 1;
           int b = sc.nextInt() - 1;
           int c=  sc.nextInt();
           
           edges.get(a).add(new Edge(a,b,c));
           edges.get(b).add(new Edge(b,a,c));           
       }
       
       int q = sc.nextInt(); 
       int k = sc.nextInt() - 1;
       
       int x[] = new int[q];
       int y[] = new int[q];
       
       for(int i = 0;i < q;i++){
           x[i] = sc.nextInt()-1;
           y[i] = sc.nextInt()-1;
       }
       
       long d[] = new long[n];
       
       boolean used[] = new boolean[n];
       
       Deque<Integer> st = new ArrayDeque<>();
       
       st.push(k);
       
       while(!st.isEmpty()){
           int e = st.pop();
           
           used[e] = true;
           for(Edge next:edges.get(e)){
              if(used[next.v]){
                  continue;
              } 
              d[next.v] = d[e] + next.w;
              
              st.push(next.v);
           }                                            
       }
       
       for(int i = 0;i < q;i++){           
           System.out.println(d[x[i]] + d[y[i]]);
       }
       
       
   }     
   
   static class Edge{
       int u;//from
       int v;//to
       int w;//cost
       
       Edge(int u ,int v,int w){
           this.u = u;
           this.v = v;
           this.w = w;           
       }
       
   }
   
 }

Compiler output:
Main.java:2: error: illegal character: '\u00a0'
?
^
Main.java:3: error: class, interface, enum, or record expected
class Main{       
      ^
Main.java:5: 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:78: error: class, interface, enum, or record expected
 }
 ^
4 errors
Language: C++

//#define __USE_MINGW_ANSI_STDIO 0
#include <bits/stdc++.h>

using namespace std;
typedef long long ll;
// #define int ll
typedef vector<int> VI;
typedef vector<VI> VVI;
typedef vector<ll> VL;
typedef vector<VL> VVL;
typedef pair<int, int> PII;

#define FOR(i, a, n) for (ll i = (ll)a; i < (ll)n; ++i)
#define REP(i, n) FOR(i, 0, n)
#define ALL(x) x.begin(), x.end()
#define IN(a, b, x) (a<=x&&x<b)
#define MP make_pair
#define PB push_back
#ifdef int
const ll INF = (1LL<<60);
#else
const int INF = (1LL<<30);
#endif
const double PI = 3.14159265359;
const double EPS = 1e-12;
const int MOD = 1000000007;

template <typename T> T &chmin(T &a, const T &b) { return a = min(a, b); }
template <typename T> T &chmax(T &a, const T &b) { return a = max(a, b); }

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

signed main(void)
{
  string s;
  cin >> s;
  string t = s;
  reverse(ALL(t))
  if(s == t) cout << "Yes" << endl;
  else cout << "No" << endl;

  return 0;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:38:18: error: expected ';' before 'if'
   38 |   reverse(ALL(t))
      |                  ^
      |                  ;
   39 |   if(s == t) cout << "Yes" << endl;
      |   ~~              
a.cc:40:3: error: 'else' without a previous 'if'
   40 |   else cout << "No" << endl;
      |   ^~~~
Language: C++

#include<iostream>
#include<string.h>

using namespace std;

int main(){
    int N;
    cin>>N;
    (N/100==N%100)?cout<<"Yes"<<endl; : cout<<"No"<<endl;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:9:37: error: expected ':' before ';' token
    9 |     (N/100==N%100)?cout<<"Yes"<<endl; : cout<<"No"<<endl;
      |                                     ^
      |                                     :
a.cc:9:37: error: expected primary-expression before ';' token
a.cc:9:39: error: expected primary-expression before ':' token
    9 |     (N/100==N%100)?cout<<"Yes"<<endl; : cout<<"No"<<endl;
      |                                       ^
Language: C++

#include<iostream>
#include<string.h>

using namespace std;

int main(){
    int N;
    cin>>N;
    (N/100==N%100)?cout<<"Yes"<<endl;:cout<<"No"<<endl;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:9:37: error: expected ':' before ';' token
    9 |     (N/100==N%100)?cout<<"Yes"<<endl;:cout<<"No"<<endl;
      |                                     ^
      |                                     :
a.cc:9:37: error: expected primary-expression before ';' token
a.cc:9:38: error: expected primary-expression before ':' token
    9 |     (N/100==N%100)?cout<<"Yes"<<endl;:cout<<"No"<<endl;
      |                                      ^
Language: C

#include <stdio.h>
int main(void)
{
  int n, u=0;
  scanf("%d", &n);
  for(i=n; i>0; i/=10){
    u=u*10+i%10;
  }
  printf("%s\n", n==u?"Yes":"No");
  return 0;
}


Compiler output:
main.c: In function 'main':
main.c:6:7: error: 'i' undeclared (first use in this function)
    6 |   for(i=n; i>0; i/=10){
      |       ^
main.c:6:7: note: each undeclared identifier is reported only once for each function it appears in
Language: C++

#include <bits/stdc++.h>

using namespace std;

#define FOR(i,a,b) for(int i=(a);i<(b);i++)
#define REP(i,n) FOR(i,0,n)
#define ALL(a) a.begin(),a.end()

int main(){
    string str;cin>>str;
    str2=str;
    reverse(ALL(str2));
    if(str==str2)cout<<"Yes"<<endl;
    else cout<<"No"<<endl;
    return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:11:5: error: 'str2' was not declared in this scope; did you mean 'str'?
   11 |     str2=str;
      |     ^~~~
      |     str
Language: C++

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

using namespace std;

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

Compiler output:
a.cc: In function 'int main()':
a.cc:8:3: error: 'cin' was not declared in this scope
    8 |   cin >> s;
      |   ^~~
a.cc:3:1: note: 'std::cin' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>'
    2 | #include<string>
  +++ |+#include <iostream>
    3 | 
a.cc:10:5: error: 'cout' was not declared in this scope
   10 |     cout << "Yes" << endl;
      |     ^~~~
a.cc:10:5: note: 'std::cout' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>'
a.cc:10:22: error: 'endl' was not declared in this scope
   10 |     cout << "Yes" << endl;
      |                      ^~~~
a.cc:3:1: note: 'std::endl' is defined in header '<ostream>'; this is probably fixable by adding '#include <ostream>'
    2 | #include<string>
  +++ |+#include <ostream>
    3 | 
a.cc:12:5: error: 'cout' was not declared in this scope
   12 |     cout << "No" << endl;
      |     ^~~~
a.cc:12:5: note: 'std::cout' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>'
a.cc:12:21: error: 'endl' was not declared in this scope
   12 |     cout << "No" << endl;
      |                     ^~~~
a.cc:12:21: note: 'std::endl' is defined in header '<ostream>'; this is probably fixable by adding '#include <ostream>'
Language: C++

#include <iostream>
#include <string>
using namespace std;
int main() {
    string s;
    cin >> s;
    string rs = s;
    reverse(s.begin(),s.end());
    if(s == rs){cout << "Yes" << endl;}
    else cout << "No" << endl;

    return 0;
}

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

import java.util.Scanner;

public class A {
    public static void main(String[] args){
        Scanner sc = new Scanner(System.in);
        String num = sc.next();

        String revNum = "";

        for (int i = num.length() - 1; i >= 0; i--) {
            revNum = revNum + num.charAt(i);
        }

        if(revNum.equals(num)){
            System.out.print("yes");
        } else {
            System.out.print("no");
        }
    }
}


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

n = gets.chomp
puts (n.size / 2).times.map {|i|
n[i] == n[n.size.pred - i]
}.all? ? :Yes : :No




Compiler output:
a.cc:1:1: error: 'n' does not name a type
    1 | n = gets.chomp
      | ^
a.cc:4:2: error: expected unqualified-id before '.' token
    4 | }.all? ? :Yes : :No
      |  ^
Language: C++

g#include <bits/stdc++.h>

#define REP(i, n) for(int i = 0; i < (int)(n); ++i)
#define FOR(i, m, n) for(int i = (m); i < (int)(n); ++i)
#define ALL(x) (x).begin(), (x).end()
#define INF 2000000000

#ifdef LOCAL
  #define eprintf(...) fprintf(stdout, __VA_ARGS__)
#else
  #define eprintf(...) 0
#endif

using namespace std;

typedef long long LL;
typedef unsigned long long ULL;
typedef unsigned int uint;

int ctoi(char c) {
  return c - '0';
}

template <class C>
void printContainer(C &container, const char *delim=",") {
  for(const auto &e : container) {
    std::cout << e << delim;
  }
  std::cout << "\n";
}

// Greatest common divisor
template<class T>
T gcd(T x, T y) {
  if(x < y) {
    std::swap(x, y);
  }
  T r = x % y;
  while(r != 0) {
    x = y;
    y = r;
    r = x % y;
  }
  return y;
}

// Least common multiple
template<class T>
T lcm(T x, T y) {
  return (x*y)/gcd(x,y);
}

int main() {
  string s;
  cin >> s;
  string ans = s[0] == s[2] ? "Yes" : "No";
  cout << ans << endl;
  return 0;
}


Compiler output:
a.cc:1:2: error: stray '#' in program
    1 | g#include <bits/stdc++.h>
      |  ^
a.cc:1:1: error: 'g' does not name a type
    1 | g#include <bits/stdc++.h>
      | ^
a.cc: In function 'void printContainer(C&, const char*)':
a.cc:27:10: error: 'cout' is not a member of 'std'
   27 |     std::cout << e << delim;
      |          ^~~~
a.cc:1:1: note: 'std::cout' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>'
  +++ |+#include <iostream>
    1 | g#include <bits/stdc++.h>
a.cc:29:8: error: 'cout' is not a member of 'std'
   29 |   std::cout << "\n";
      |        ^~~~
a.cc:29:8: note: 'std::cout' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>'
a.cc: In function 'T gcd(T, T)':
a.cc:36:10: error: 'swap' is not a member of 'std'
   36 |     std::swap(x, y);
      |          ^~~~
a.cc: In function 'int main()':
a.cc:54:3: error: 'string' was not declared in this scope
   54 |   string s;
      |   ^~~~~~
a.cc:55:3: error: 'cin' was not declared in this scope
   55 |   cin >> s;
      |   ^~~
a.cc:55:10: error: 's' was not declared in this scope
   55 |   cin >> s;
      |          ^
a.cc:56:9: error: expected ';' before 'ans'
   56 |   string ans = s[0] == s[2] ? "Yes" : "No";
      |         ^~~~
      |         ;
a.cc:57:3: error: 'cout' was not declared in this scope
   57 |   cout << ans << endl;
      |   ^~~~
a.cc:57:11: error: 'ans' was not declared in this scope
   57 |   cout << ans << endl;
      |           ^~~
a.cc:57:18: error: 'endl' was not declared in this scope
   57 |   cout << ans << endl;
      |                  ^~~~
Language: C++

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

int main()
{
  char n[3];

  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:9:12: error: expected primary-expression before ']' token
    9 |   cin >> n[];
      |            ^
Language: C++

N = int(input())
a=N//100
b=(N-a*100)//10
c=N-a*100-b*10
if a == c:
    print("Yes\n")
else:
    print("No\n")

Compiler output:
a.cc:1:1: error: 'N' does not name a type
    1 | N = int(input())
      | ^
Language: Java

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


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

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

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

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

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

#include "stdafx.h"
#include <iostream>
#include <stdio.h>
#include <string>
#include <vector>
#include <algorithm>
using namespace std;
using LL = long long;

int main() {
	char N[10];
	cin >> N;
	if (atoi(N) >= 100) {
		if (N[0] == N[2])cout << "Yes";
		else cout << "No";
		return 0;
	}
	else {
		int n = atoi(N);
		if (!(n % 11))cout << "Yes";
		else cout << "No";

	}
}


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

import java.util.Scanner;

public class A{
	public static void main(String[] args){
		Scanner scanner = new Scanner(System.in);
		String input = scanner.nextLine();
		if(input.charAt(0) == input.charAt(2)){
			System.out.println("Yes");
		}else{
			System.out.println("No");
		}
	}
}

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

import Data.IORef

data Tree a= Leaf | Node (Tree a) a (Tree a) Integer deriving Show
main = do
    str <- getLine
    if(str!!0 == str!!2) then
        putStrLn "Yes"
    else
        putStrLn "No"

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

#include <cstdio>
#include <iostream>
#include <string>

using namespace std;

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


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

/*
 * a.cpp
 *
 *  Created on: 2017/08/24
 *      Author: pinebooks
 */

#include <cstdio>
#include <string>
#include <vector>
#include <math.h>

using namespace std;

int get_reverse_number(int N){
  string N_str = to_string(N);
  reverse(N_str.begin(), N_str.end());
  return stoi(N_str);
}

int main() {
  int N;
  vector<int> digits;
  scanf("%d", &N);
  if(N==get_reverse_number(N))
    printf("Yes");
  else
    printf("No");
}


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

#include<iostream>
#include<vector>
#include<numeric>
using namespace std;
#define lengthof(x) (sizeof(x) / sizeof(*(x)))
long cost[100010][100010];
bool used[100010];
long dist[100010],Q,K,x,y,INF=999999999999999;
int main(){
  fill(dist,dist+100010,INF);
  fill(used,used+100010,false);
  fill((long*)cost,(long*)(cost+lengthof(cost)),INF);
  int N;
  cin>>N;
  int a,b,c;
  for(int i=0;i<N-1;i++){
    cin>>a>>b>>c;
    cost[a][b]=c;
    cost[b][a]=c;
  }
  cin>>Q>>K;
  dist[K]=0;
  while(true){
    int v=-1;
    for(int u=1;u<=N;u++){
      if(!used[u]&&(v==-1||dist[u]<dist[v]))v=u;
    }
    if(v==-1) break;
    used[v]=true;
    for(int u=1;u<=N;u++){
      dist[u]=min(dist[u],dist[v]+cost[v][u]);
    }
  }

  for(int i=0;i<Q;i++){
    cin>>x>>y;
    cout<<dist[x]+dist[y]<<endl;
  }
  return 0;
}


Compiler output:
/tmp/ccXupxT4.o: in function `main':
a.cc:(.text+0xb): relocation truncated to fit: R_X86_64_PC32 against symbol `dist' defined in .bss section in /tmp/ccXupxT4.o
a.cc:(.text+0x1c): relocation truncated to fit: R_X86_64_PC32 against symbol `dist' defined in .bss section in /tmp/ccXupxT4.o
a.cc:(.text+0x2f): relocation truncated to fit: R_X86_64_PC32 against symbol `used' defined in .bss section in /tmp/ccXupxT4.o
a.cc:(.text+0x40): relocation truncated to fit: R_X86_64_PC32 against symbol `used' defined in .bss section in /tmp/ccXupxT4.o
a.cc:(.text+0x148): relocation truncated to fit: R_X86_64_PC32 against symbol `Q' defined in .bss section in /tmp/ccXupxT4.o
a.cc:(.text+0x164): relocation truncated to fit: R_X86_64_PC32 against symbol `K' defined in .bss section in /tmp/ccXupxT4.o
a.cc:(.text+0x176): relocation truncated to fit: R_X86_64_PC32 against symbol `K' defined in .bss section in /tmp/ccXupxT4.o
a.cc:(.text+0x185): relocation truncated to fit: R_X86_64_PC32 against symbol `dist' defined in .bss section in /tmp/ccXupxT4.o
a.cc:(.text+0x1a9): relocation truncated to fit: R_X86_64_PC32 against symbol `used' defined in .bss section in /tmp/ccXupxT4.o
a.cc:(.text+0x1ce): relocation truncated to fit: R_X86_64_PC32 against symbol `dist' defined in .bss section in /tmp/ccXupxT4.o
a.cc:(.text+0x1e6): additional relocation overflows omitted from the output
collect2: error: ld returned 1 exit status
Language: C++

#include <string>
#include <queue>
#include <stack>
#include <vector>
#include <sstream>
#include <algorithm>
#include <deque>
#include <set>
#include <map>
#include <unordered_set>
#include <unordered_map>
#include <list>
#include <cstdio>
#include <iostream>
#include <cmath>
#include <climits>
#include <bitset>
#include <functional>
#include <numeric>
#include <ctime>
#include <cassert>
#include <cstring>
#include <fstream>

#define rep(i, a, b) for(int (i)=(a); (i)<(b); (i)++)
#define irep(i, a, b) for(int (i)=(a);(i)<=(b);(i)++)
#define rrep(i, a, b) for(int (i)=(a);(i)>=(b);(i)--)

using namespace std;

const int MOD = 1e9 + 7;

int main() {
    int n;
    cin >> n;
    string s = to_string(n);
    string s2 = s;
    reverse(s2.begin(), s2.end());
    cout << (s1 == s2 ? "Yes" : "No") << endl;
    return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:39:14: error: 's1' was not declared in this scope; did you mean 's2'?
   39 |     cout << (s1 == s2 ? "Yes" : "No") << endl;
      |              ^~
      |              s2
Language: Java


import java.util.Scanner;

public class Main {

	public static void main(String[] args) throws Exception {
		BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
		String line = br.readLine();
		//Scanner scan = new Scanner(System.in);
        String[] ana = new String[3];
        ana=line.split("");
        
		
        if(ana[0].equals(ana[2]))
        System.out.println("Yes");
        else
        System.out.println("No");
        
}
}

Compiler output:
Main.java:7: error: cannot find symbol
		BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
		^
  symbol:   class BufferedReader
  location: class Main
Main.java:7: error: cannot find symbol
		BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
		                        ^
  symbol:   class BufferedReader
  location: class Main
Main.java:7: error: cannot find symbol
		BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
		                                           ^
  symbol:   class InputStreamReader
  location: class Main
3 errors
Language: C

#include<stdio.h>
#include<stdlib.h>
int main()
{
int N;
scanf("%d",&N);
if((N%10)==(N/100)){
printf("yes");}
else{printf("no);}return 0;}

Compiler output:
main.c: In function 'main':
main.c:9:13: warning: missing terminating " character
    9 | else{printf("no);}return 0;}
      |             ^
main.c:9:13: error: missing terminating " character
    9 | else{printf("no);}return 0;}
      |             ^~~~~~~~~~~~~~~~
main.c:9:1: error: expected expression at end of input
    9 | else{printf("no);}return 0;}
      | ^~~~
main.c:9:1: error: expected declaration or statement at end of input
main.c:9:1: error: expected declaration or statement at end of input
Language: C

#include<stdio.h>
#include<stdlib.h>
int main()
{
int N;
scanf("%d",&N);
if((N%10)==(N/100)){
print("yes");}
else{print("no);}return 0;}

Compiler output:
main.c: In function 'main':
main.c:8:1: error: implicit declaration of function 'print'; did you mean 'printf'? [-Wimplicit-function-declaration]
    8 | print("yes");}
      | ^~~~~
      | printf
main.c:9:12: warning: missing terminating " character
    9 | else{print("no);}return 0;}
      |            ^
main.c:9:12: error: missing terminating " character
    9 | else{print("no);}return 0;}
      |            ^~~~~~~~~~~~~~~~
main.c:9:1: error: expected expression at end of input
    9 | else{print("no);}return 0;}
      | ^~~~
main.c:9:1: error: expected declaration or statement at end of input
main.c:9:1: error: expected declaration or statement at end of input
Language: C

#include<stdio.h>
#include<stdlib.h>
int main()
{
int N;
if((N%10)==(N/100)){
print("yes");}
else{print("no);}return 0;}

Compiler output:
main.c: In function 'main':
main.c:7:1: error: implicit declaration of function 'print'; did you mean 'printf'? [-Wimplicit-function-declaration]
    7 | print("yes");}
      | ^~~~~
      | printf
main.c:8:12: warning: missing terminating " character
    8 | else{print("no);}return 0;}
      |            ^
main.c:8:12: error: missing terminating " character
    8 | else{print("no);}return 0;}
      |            ^~~~~~~~~~~~~~~~
main.c:8:1: error: expected expression at end of input
    8 | else{print("no);}return 0;}
      | ^~~~
main.c:8:1: error: expected declaration or statement at end of input
main.c:8:1: error: expected declaration or statement at end of input
Language: C

include <stdio.h>
int main()
{
    int n, reversedInteger = 0, remainder, originalInteger;

   
    scanf("%d", &n);

    originalInteger = n;

    // reversed integer is stored in variable 
    while( n!=0 )
    {
        remainder = n%10;
        reversedInteger = reversedInteger*10 + remainder;
        n /= 10;
    }

    // palindrome if orignalInteger and reversedInteger are equal
    if (originalInteger == reversedInteger)
        printf("yes");
    else
        printf("no");
    
    return 0;
}

Compiler output:
main.c:1:9: error: expected '=', ',', ';', 'asm' or '__attribute__' before '<' token
    1 | include <stdio.h>
      |         ^
Language: C

include <stdio.h>
 
int main()
{
   int n, reverse = 0, temp;
   scanf("%d",&n);
 
   temp = n;
 
   while( temp != 0 )
   {
      reverse = reverse * 10;
      reverse = reverse + temp%10;
      temp = temp/10;
   }
 
   if ( n == reverse )
      printf("yes");
   else
      printf("no");
 
   return 0;
}

Compiler output:
main.c:1:9: error: expected '=', ',', ';', 'asm' or '__attribute__' before '<' token
    1 | include <stdio.h>
      |         ^
Language: C

include <stdio.h>
 
int main()
{
   int n, reverse = 0, temp;
 
 
   scanf("%d",&n);
 
   temp = n;
 
   while( temp != 0 )
   {
      reverse = reverse * 10;
      reverse = reverse + temp%10;
      temp = temp/10;
   }
 
   if ( n == reverse )
      printf("yes");
   else
      printf(" no");
 
   return 0;
}

Compiler output:
main.c:1:9: error: expected '=', ',', ';', 'asm' or '__attribute__' before '<' token
    1 | include <stdio.h>
      |         ^
Language: C++

#include<stdio.h>
int main()
{
int org,rev,n;
scanf("%d",&n);
org=n;
while(n!=0)
{
rem=n%10;
rev=rev*10+rem;
n=n/10;}
if(org=rev)
print("palindromic no");
else
print("not");
return 0;}

Compiler output:
a.cc: In function 'int main()':
a.cc:9:1: error: 'rem' was not declared in this scope; did you mean 'rev'?
    9 | rem=n%10;
      | ^~~
      | rev
a.cc:13:1: error: 'print' was not declared in this scope; did you mean 'printf'?
   13 | print("palindromic no");
      | ^~~~~
      | printf
a.cc:15:1: error: 'print' was not declared in this scope; did you mean 'printf'?
   15 | print("not");
      | ^~~~~
      | printf
Language: C++

#include<iostream>
#include<cstring>
#include<cstdio>
using namespace std;
int main()
{
	char s[1000];int i=0;
	gets(s);
	while(i<strlen(s)/2)
	{
		if(s[i]!=s[strlen(s)-i-1]){cout<<"No";return 0;}
		i++;
	}
	cout<<"Yes";
	return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:8:9: error: 'gets' was not declared in this scope; did you mean 'getw'?
    8 |         gets(s);
      |         ^~~~
      |         getw
Language: C++

#include<iostream>
#include<cstring>
using namespace std;
int main()
{
	char s[1000];int i=0;
	gets(s);
	while(i<strlen(s)/2)
	{
		if(s[i]!=s[strlen(s)-i-1]){cout<<"No";return 0;}
		i++;
	}
	cout<<"Yes";
	return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:7:9: error: 'gets' was not declared in this scope; did you mean 'getw'?
    7 |         gets(s);
      |         ^~~~
      |         getw
Language: C++

#include <iostream>
#include <cstring>
using namespace std;
char n[10000];
int main() {
	cin>>n;
	int len = strlen(n);
	int i=0;
	if (n[i]==n[len-1]){
		cout<<"Yes";
	}
	else cout<<"No";
	return 0;

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

#include <iostream>
#include <math.h>
#include <vector>
#include <memory>
#include <time.h>
#include <thread>
#include <chrono>

using namespace std;

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

	int d1 = n / 100;
	int d3 = n % 10;

	if (d1 == d3)
		cout << "yes";
	else
		cout << "no";

	return;
}

Compiler output:
a.cc:11:1: error: '::main' must return 'int'
   11 | void main()
      | ^~~~
a.cc: In function 'int main()':
a.cc:24:9: error: return-statement with no value, in function returning 'int' [-fpermissive]
   24 |         return;
      |         ^~~~~~
Language: C++

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

int main(){

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

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

import java.util.Scanner;

public class ABC070A {

	public static void main(String[] args) {
		Scanner input = new Scanner(System.in);
		
		while(input.hasNext()){
			String N = input.next();
			
			if(isPalindrom(N)){
				System.out.println("Yes");
			} else {
				System.out.println("No");
			}
		}

	}
	
	private static boolean isPalindrom(String s){
		for(int i = 0, j = s.length() -1; i < j; ++i, --j){
			if(s.charAt(i) != s.charAt(j)){
				return false;
			}
		}
			
		return true;
	}

}


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

import java.util.Scanner;

public class Main {

	public static void main(String[] args) {
		Scanner input = new Scanner(System.in;
		
		while(input.hasNext()){
			String N = input.next();
			
			if(isPalindrom(N)){
				System.out.println("Yes");
			} else {
				System.out.println("No");
			}
		}

	}
	
	private static boolean isPalindrom(String s){
		for(int i = 0, j = s.length() -1; i < j; ++i, --j){
			if(s.charAt(i) != s.charAt(j)){
				return false;
			}
		}
			
		return true;
	}

}


Compiler output:
Main.java:6: error: ')' or ',' expected
		Scanner input = new Scanner(System.in;
		                                     ^
1 error
Language: Java

import java.util.Scanner;

public class ABC070A {

	public static void main(String[] args) {
		Scanner input = new Scanner(System.in;
		
		while(input.hasNext()){
			String N = input.next();
			
			if(isPalindrom(N)){
				System.out.println("Yes");
			} else {
				System.out.println("No");
			}
		}

	}
	
	private static boolean isPalindrom(String s){
		for(int i = 0, j = s.length() -1; i < j; ++i, --j){
			if(s.charAt(i) != s.charAt(j)){
				return false;
			}
		}
			
		return true;
	}

}


Compiler output:
Main.java:6: error: ')' or ',' expected
		Scanner input = new Scanner(System.in;
		                                     ^
1 error
Language: C++

#include "bits/c++.h"
using namespace std;

int main()
{
	int N;
	cin >> N;
	int a = N % 10;
	int b = ((N - a) % 100) / 10;
	int c = ((N - a - b))/100;
	int revN = a * 100 + b * 10 + c;

	if (N == revN)
		cout << "Yes";
	else
		cout << "No";
	return 0;
}

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

#include <stdio.h>

double gcd(int a, int b){
  if(b == 0) return a;
  else return gcd(b, a % b);
}

int main(void){
  int n;
  scanf("%d", &n);

  int i;
  double t[n], prev=1;
  for(i=0;i<n;i++){
    scanf("%lf", &t[i]);
    prev = (int)prev * t[i] / gcd(prev, t[i]);
  }

  printf("%.0lf\n", prev);

  return 0;


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

#include<cstdio>
#include<iostream>
#include<algorithm>
#define max sdjfsjfljfakljfleeakfpkkawkfaw
using namespace std;
int main(void){
	int n,i;
	long long int t[100],max,flg,b,ans,m;
	cin>>n; max=-1;
	for(i=0;i<n;i++){
		cin>>t[i];
		if(max<t[i]) max=t[i];
	}
	sort(t,t+n-1
	b=1; m=max;
	while(1){
		flg=1;
		for(i=0;i<n-1;i++){
			if(m%t[i]!=0){
				flg=0;
				break;
			}
			
		}
		if(flg==1){
			ans=m;
			break;
		}
		else {
			b++;
			m=m+max;
		}
	}
	cout<<ans<<endl;
	return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:14:21: error: expected ')' before 'b'
   14 |         sort(t,t+n-1
      |             ~       ^
      |                     )
   15 |         b=1; m=max;
      |         ~
Language: C++

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

Compiler output:
a.cc: In function 'int main()':
a.cc:5:15: error: expected unqualified-id before ';' token
    5 |         int n,;
      |               ^
Language: C

#include<stdio.h>

int main(void)
{
	int a, b, c, d;
	int t;

	scanf("%d %d %d %d", &a, &b, &c, &d);

	if(a <= c && b < d){
		t = b - c;
	}else if(a <= c && b > d){
		t = d - c;
	}else if(a >= c && b < d){
		t = b - a;
	}else if(a >= c && b > d){
		t = d - a;
	}
	
	if(t < 0){
		printf("0");
	}else{
		printf("%d", t);
	}
	return 0;
}#include<stdio.h>

int main(void)
{
	int a, b, c, d;
	int t;

	scanf("%d %d %d %d", &a, &b, &c, &d);

	if(a <= c && b < d){
		t = b - c;
	}else if(a <= c && b > d){
		t = d - c;
	}else if(a >= c && b < d){
		t = b - a;
	}else if(a >= c && b > d){
		t = d - a;
	}
	
	if(t < 0){
		printf("0");
	}else{
		printf("%d", t);
	}
	return 0;
}

Compiler output:
main.c:26:2: error: stray '#' in program
   26 | }#include<stdio.h>
      |  ^
main.c:26:10: error: expected '=', ',', ';', 'asm' or '__attribute__' before '<' token
   26 | }#include<stdio.h>
      |          ^
Language: Java

import java.util.Scanner;

static class TaskA {
    static Scanner in = new Scanner(System.in);
    public static void main(String[] args){
        char[] a = in.next().toCharArray();
        if(a[0] == a[2])
            System.out.println("Yes");
        else
            System.out.println("No");
    }
}


Compiler output:
Main.java:3: error: modifier static not allowed here
static class TaskA {
       ^
1 error
Language: Java

import java.util.Scanner;

public class TaskA {
    static Scanner in = new Scanner(System.in);
    public static void main(String[] args){
        char[] a = in.next().toCharArray();
        if(a[0] == a[2])
            System.out.println("Yes");
        else
            System.out.println("No");
    }
}


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

#include <bits\stdc++.h>
using namespace std;
string s,t;
int main()
{
	cin>>s;
	t=s;
	reverse(t.begin(),t.end());
	if (s==t) cout<<"Yes";
	else cout<<"No";
return 0;}

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

import java.io.*;

public class　Main {

	public static void main(String[] args) throws Exception {
		BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
		String x = br.readLine();
		System.out.println(x.charAt(0) == x.charAt(2) ? "Yes" : "No");

	}
}

Compiler output:
Main.java:3: error: illegal character: '\u3000'
public class?Main {
            ^
1 error
Language: C++

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

using namespace std;

int main() {
  int a, b, c, d;
  cin >> a >> b >> c >> d;
  if (c < b) {
    else if (a == 0) {
      cout << b - c << endl;
    }
    else if (a > 0) {
      cout << b - c - a << endl;
    }
    else if (c < a) {
      cout << b - a << endl;
    }
    else if (b < c) {
      cout << 0 << endl;
    }

    return 0;
  }


Compiler output:
a.cc: In function 'int main()':
a.cc:15:5: error: expected '}' before 'else'
   15 |     else if (a == 0) {
      |     ^~~~
a.cc:14:14: note: to match this '{'
   14 |   if (c < b) {
      |              ^
Language: C++

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

using namespace std;

int main() {
  int a, b, c, d;
  cin >> a >> b >> c >> d;
  if (c < b) {
    else if (a == 0) {
      cout << b - c << endl;
    }
    else if (a > 0) {
      cout << b - c - a << endl;
    }
    else if (c < a) {
      cout << b - a << endl;
    }
    } else {
    cout << 0 << endl;
  }

  return 0;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:15:5: error: expected '}' before 'else'
   15 |     else if (a == 0) {
      |     ^~~~
a.cc:14:14: note: to match this '{'
   14 |   if (c < b) {
      |              ^
a.cc: At global scope:
a.cc:24:7: error: expected unqualified-id before 'else'
   24 |     } else {
      |       ^~~~
a.cc:28:3: error: expected unqualified-id before 'return'
   28 |   return 0;
      |   ^~~~~~
a.cc:29:1: error: expected declaration before '}' token
   29 | }
      | ^
Language: C++

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

using namespace std;

int main() {
  int a, b, c, d;
  cin >> a >> b >> c >> d;
  if (c < b) {
    else if (a == 0) {
      cout << b - c << endl;
    }
    else if (a > 0) {
      cout << b - c - a << endl;
    }
    else if (c < a) {
      cout << b - a << endl;
    }
  } else {
    cout << 0 << endl;
  }

  return 0;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:15:5: error: expected '}' before 'else'
   15 |     else if (a == 0) {
      |     ^~~~
a.cc:14:14: note: to match this '{'
   14 |   if (c < b) {
      |              ^
a.cc: At global scope:
a.cc:24:5: error: expected unqualified-id before 'else'
   24 |   } else {
      |     ^~~~
a.cc:28:3: error: expected unqualified-id before 'return'
   28 |   return 0;
      |   ^~~~~~
a.cc:29:1: error: expected declaration before '}' token
   29 | }
      | ^
Language: C++

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

using namespace std;

int main() {
  int a, b, c, d;
  cin >> a >> b >> c >> d;
  if (c < b) {
    else if (a == 0) {
      cout << b - c << endl;
    }
    else if (a > 0) {
      cout << b - c - a << endl;
    }
    else if (c < a) {
      cout << b - a << endl;
    }
    else {
      cout << 0 << endl;
    }

    return 0;
  }


Compiler output:
a.cc: In function 'int main()':
a.cc:15:5: error: expected '}' before 'else'
   15 |     else if (a == 0) {
      |     ^~~~
a.cc:14:14: note: to match this '{'
   14 |   if (c < b) {
      |              ^
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.front()==a.back()){
    cout << "Yes" << endl;
  }
  else{
    cout << "No" << endl;
  }
  return 0;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:14:9: error: request for member 'front' in 'a', which is of non-class type 'int'
   14 |    if(a.front()==a.back()){
      |         ^~~~~
a.cc:14:20: error: request for member 'back' in 'a', which is of non-class type 'int'
   14 |    if(a.front()==a.back()){
      |                    ^~~~