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

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

int main() {
char A,B,C;
  cin >> A >> B >> C;  }
int output(){
if (A==C) {
  cout << "Yes" << endl;
}else {
  cout << "No" << endl;
}
}


Compiler output:
a.cc: In function 'int output()':
a.cc:8:5: error: 'A' was not declared in this scope
    8 | if (A==C) {
      |     ^
a.cc:8:8: error: 'C' was not declared in this scope
    8 | if (A==C) {
      |        ^
a.cc:13:1: warning: no return statement in function returning non-void [-Wreturn-type]
   13 | }
      | ^
Language: C++

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

int main() {
char A,B,C;
  cin >> A >> B >> C;  }
if (A==C) {
  cout << "Yes" << endl;
}else {
  cout << "No" << endl;
}
}


Compiler output:
a.cc:7:1: error: expected unqualified-id before 'if'
    7 | if (A==C) {
      | ^~
a.cc:9:2: error: expected unqualified-id before 'else'
    9 | }else {
      |  ^~~~
a.cc:12:1: error: expected declaration before '}' token
   12 | }
      | ^
Language: C

#include <stdio.h>
int main(){
int n;
scanf("%d",&n);

int a,b,c;
a=n/100;
b=(n%100)/10;
c=((n%100)%10;

if(a==c)  puts("Yes");
else
puts("No");


return 0;  
}

Compiler output:
main.c: In function 'main':
main.c:9:14: error: expected ')' before ';' token
    9 | c=((n%100)%10;
      |   ~          ^
      |              )
main.c:16:10: error: expected ';' before '}' token
   16 | return 0;
      |          ^
      |          ;
   17 | }
      | ~
Language: C++

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


Compiler output:
a.cc: In function 'int main()':
a.cc:10:24: error: expected '}' at end of input
   10 |   cout << "No" << endl;
      |                        ^
a.cc:4:1: note: to match this '{'
    4 | {
      | ^
Language: Java

class Main{
	
    public static void main(String args[]){
Scanner sc=new Scanner(System.in);
String a=sc.next();
System.out.println(a.charAt(0)==a.charAt(2)?"Yes":"No");
 }
}

Compiler output:
Main.java:4: error: cannot find symbol
Scanner sc=new Scanner(System.in);
^
  symbol:   class Scanner
  location: class Main
Main.java:4: error: cannot find symbol
Scanner sc=new Scanner(System.in);
               ^
  symbol:   class Scanner
  location: class Main
2 errors
Language: C++

#include<iostream>
using namespace std;

int main(){
  string S;
  
  cin>>S;
  
  for(int 0;i<S.size()/2;++i){
    if(S[i]!=S[S.size()-1-i]){
      cout<<"No"<<endl;
    }
  }
  
  cout<<"Yes"<<endl;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:9:11: error: expected unqualified-id before numeric constant
    9 |   for(int 0;i<S.size()/2;++i){
      |           ^
a.cc:9:10: error: expected ';' before numeric constant
    9 |   for(int 0;i<S.size()/2;++i){
      |          ^~
      |          ;
a.cc:9:13: error: 'i' was not declared in this scope
    9 |   for(int 0;i<S.size()/2;++i){
      |             ^
a.cc:9:25: error: expected ')' before ';' token
    9 |   for(int 0;i<S.size()/2;++i){
      |      ~                  ^
      |                         )
a.cc:9:28: error: 'i' was not declared in this scope
    9 |   for(int 0;i<S.size()/2;++i){
      |                            ^
Language: C++

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

int main(){ 
int A,B,C,D;
  cin >> A >> B >> C >> D;
  if(N[0]==N[2]){
    cout << "Yes" << endl;
  }else{
    cout << "No" << endl;
  }
}

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

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

int main() {
    int n;
    cin >> n;
    if(is_palindrome(to_string(n))){
        cout <<  "Yes" << endl;
    }else{
        cout << "No" << endl;
    }

    return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:7:8: error: 'is_palindrome' was not declared in this scope
    7 |     if(is_palindrome(to_string(n))){
      |        ^~~~~~~~~~~~~
Language: C++

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

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

int main(){
    int N;
    if(N%10==N/100)
    cout << "Yes" << endl;
    else
    cout << "No" << endl;
}

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

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

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

#include <bits/stdc++.h>

using namespace std;
 
#define MD 1000000007
typedef long long int ll;

int main(){
    string s;
    cin>>s;
    if(s==s.reverse()){
        cout<<"YES"<<endl;
    }else{
        cout<<"NO"<<endl;
    }
    return 0;
}

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

#include <iostream>
#include <cstdlib>
#include <string>
#include <vector>
 
 
using namespace std;
 
int main()
{  
    string s;
    //int count=0;
        
    cin>>s;
    
    if(s.at(0)==s.at(2))cout<<"Yes"<<endl;
    else cout<<"No"<<endl;
         
    return 0;
    
}
#include <iostream>
#include <cstdlib>
#include <string>
#include <vector>


using namespace std;

int main()
{  
    string s;
    //int count=0;
        
    cin>>s;
    
    if(s.at(0)==s.at(2))cout<<"Yes"<<endl;
    else cout<<"No"<<endl;
         
    return 0;
    
}

Compiler output:
a.cc:30:5: error: redefinition of 'int main()'
   30 | int main()
      |     ^~~~
a.cc:9:5: note: 'int main()' previously defined here
    9 | int main()
      |     ^~~~
Language: C++

#include <iostream>

int main() {
  char N[3];
  std::cin >> N;

  if ( N[0] == N[2] ) std::cout << "Yes" << std::endl;
  else if std::cout << "No" << std::endl;

  return 0;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:8:11: error: expected '(' before 'std'
    8 |   else if std::cout << "No" << std::endl;
      |           ^~~
      |           (
Language: C++

#include <bits/stdc++.h>
#define REP(i,n) for(int i=0;i<(n);i++)
const int MOD=(int)1e9+7;
using namespace std;
int main(){
    int n;
    cin>>n;
    if(n[0]==n[2]) cout<<"Yes"<<endl;
    else cout<<"No"<<endl;
}

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

#include <bits/stdc++.h>
#define REP(i,n) for(int i=0;i<(n);i++)
const int MOD=(int)1e9+7;
using namespace std;
int main(){
    int n;
    cin>>n;
    if(n[0]==n[2])cout<<"Yes"<<endl;
    else cout<<"No"<<endl;
}

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

#include <iostream>

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

Compiler output:
a.cc: In function 'int main()':
a.cc:5:9: error: 'string' was not declared in this scope
    5 |         string s;
      |         ^~~~~~
a.cc:5:9: note: suggested alternatives:
In file included from /usr/include/c++/14/iosfwd:41,
                 from /usr/include/c++/14/ios:40,
                 from /usr/include/c++/14/ostream:40,
                 from /usr/include/c++/14/iostream:41,
                 from a.cc:1:
/usr/include/c++/14/bits/stringfwd.h:77:33: note:   'std::string'
   77 |   typedef basic_string<char>    string;
      |                                 ^~~~~~
In file included from /usr/include/c++/14/bits/locale_classes.h:40,
                 from /usr/include/c++/14/bits/ios_base.h:41,
                 from /usr/include/c++/14/ios:44:
/usr/include/c++/14/string:76:11: note:   'std::pmr::string'
   76 |     using string    = basic_string<char>;
      |           ^~~~~~
a.cc:6:21: error: 's' was not declared in this scope
    6 |         std::cin >> s;
      |                     ^
Language: C++

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

int main(){
  int n;
  cin >> n;
  
  if(n.at(0) == n.at(2)) cout << "Yes" << endl;
  else cout << "No" << endl;
  return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:8:8: error: request for member 'at' in 'n', which is of non-class type 'int'
    8 |   if(n.at(0) == n.at(2)) cout << "Yes" << endl;
      |        ^~
a.cc:8:19: error: request for member 'at' in 'n', which is of non-class type 'int'
    8 |   if(n.at(0) == n.at(2)) cout << "Yes" << endl;
      |                   ^~
Language: C++

#include <iostream>
#include <string>

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

    return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:8:40: error: expected ';' before 'std'
    8 |     else              std::cout << "No" std::endl;
      |                                        ^~~~
      |                                        ;
Language: C++

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

Compiler output:
a.cc:1:20: warning: extra tokens at end of #include directive
    1 | #include <>iostream>
      |                    ^
a.cc:1:10: fatal error: >iostrea: No such file or directory
    1 | #include <>iostream>
      |          ^~~~~~~~~~
compilation terminated.
Language: C++

#include<iostream>
using namespace std;
int main(){
	string s;
	cin>>s;
	if(s/100+s/10-(s/100)*10+s-(s/10)*10==s){cout<<"Yes"<<endl;}
    else{cout<<"No"<<endl;}
	return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:6:13: error: no match for 'operator/' (operand types are 'std::string' {aka 'std::__cxx11::basic_string<char>'} and 'int')
    6 |         if(s/100+s/10-(s/100)*10+s-(s/10)*10==s){cout<<"Yes"<<endl;}
      |            ~^~~~
      |            | |
      |            | int
      |            std::string {aka std::__cxx11::basic_string<char>}
a.cc:6:19: error: no match for 'operator/' (operand types are 'std::string' {aka 'std::__cxx11::basic_string<char>'} and 'int')
    6 |         if(s/100+s/10-(s/100)*10+s-(s/10)*10==s){cout<<"Yes"<<endl;}
      |                  ~^~~
      |                  | |
      |                  | int
      |                  std::string {aka std::__cxx11::basic_string<char>}
a.cc:6:25: error: no match for 'operator/' (operand types are 'std::string' {aka 'std::__cxx11::basic_string<char>'} and 'int')
    6 |         if(s/100+s/10-(s/100)*10+s-(s/10)*10==s){cout<<"Yes"<<endl;}
      |                        ~^~~~
      |                        | |
      |                        | int
      |                        std::string {aka std::__cxx11::basic_string<char>}
a.cc:6:38: error: no match for 'operator/' (operand types are 'std::string' {aka 'std::__cxx11::basic_string<char>'} and 'int')
    6 |         if(s/100+s/10-(s/100)*10+s-(s/10)*10==s){cout<<"Yes"<<endl;}
      |                                     ~^~~
      |                                     | |
      |                                     | int
      |                                     std::string {aka std::__cxx11::basic_string<char>}
Language: Java

import java.io.BufferedReader;
import java.io.InputStreamReader;
import java.math.BigDecimal;
import java.util.Arrays;
import java.util.StringTokenizer;

import java.util.Scanner;
public class Main {
    public static void main(String[] args){
        Scanner sc = new Scanner(System.in);
    int a = sc.nextInt();
    int a1=a/100;
    int a2=a/10;
    int a3=a - a1*100 -a2*10
   
    if (a3==a1) {
    	System.out.println("yes");
    } else {
    	System.out.println("no");
    }
     
                    
    
    }
}

Compiler output:
Main.java:14: error: ';' expected
    int a3=a - a1*100 -a2*10
                            ^
1 error
Language: C++

#include<bits/stdc++.h>
using namespace std;
int main()
{
    string s;
    getline(cin,s);
    if(s[0]==s[2])cout<<"Yes";
    else cout<<"No"
    return 0;
}

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

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

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

#include<iostream>
using namespace std;

char a,b,c;

int main(){
    cin>>a>>b>>c;
    cout<<(a==c)? "Yes" : "No"<<endl;
    return 0;
}

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

#include <stdio.h>
char a[3];
int main()
{
    int a,b,c;
    scanf("%s",a);
    if(a[0]==a[2]) printf("Yes");
    if(a[0]!=a[2]) printf("No");
}

Compiler output:
a.cc: In function 'int main()':
a.cc:7:9: error: invalid types 'int[int]' for array subscript
    7 |     if(a[0]==a[2]) printf("Yes");
      |         ^
a.cc:7:15: error: invalid types 'int[int]' for array subscript
    7 |     if(a[0]==a[2]) printf("Yes");
      |               ^
a.cc:8:9: error: invalid types 'int[int]' for array subscript
    8 |     if(a[0]!=a[2]) printf("No");
      |         ^
a.cc:8:15: error: invalid types 'int[int]' for array subscript
    8 |     if(a[0]!=a[2]) printf("No");
      |               ^
Language: C++

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

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

	return 0;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:7:27: error: conversion from 'void' to non-scalar type 'std::string' {aka 'std::__cxx11::basic_string<char>'} requested
    7 |         string t = reverse(s.begin(), s.end());
      |                    ~~~~~~~^~~~~~~~~~~~~~~~~~~~
Language: C++

#include <iostream>

int main(int argc, char* argv[]){
  int N;
  std::cin >> N;
  if(N[0] == N[2]){
    std::cout << "Yes" << std::endl;
  }
  else{
    std::cout << "No" << std::endl;
  }
  return 0;
}


Compiler output:
a.cc: In function 'int main(int, char**)':
a.cc:6:7: error: invalid types 'int[int]' for array subscript
    6 |   if(N[0] == N[2]){
      |       ^
a.cc:6:15: error: invalid types 'int[int]' for array subscript
    6 |   if(N[0] == N[2]){
      |               ^
Language: C

#include <stdio.h>
 
char n[4] ;
 
int main(void){
 
    scanf ("%s",n) ;
    
    if ( n[0]==n[2] ){
        printf ("Yes\n") ;
    } else {
        printf ("No\n") ;
    }
 
 

Compiler output:
main.c: In function 'main':
main.c:13:5: error: expected declaration or statement at end of input
   13 |     }
      |     ^
Language: C

#include <bits/stdc++.h>
using namespace std;
int main()
{
    int x;
    cin>>x;
    if(x%10==x/100)
        puts("Yes");
    else
        puts("No");
}

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

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

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


Compiler output:
a.cc: In function 'int main()':
a.cc:7:16: error: 'revese' was not declared in this scope; did you mean 'revoke'?
    7 |         if(n = revese(n.begin(), n.end())) cout << "Yes" << endl;
      |                ^~~~~~
      |                revoke
Language: C++

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

Compiler output:
a.cc: In function 'int main()':
a.cc:7:8: error: request for member 'at' in 'N', which is of non-class type 'int'
    7 |   if(N.at(0)==N.at(2);){
      |        ^~
a.cc:7:17: error: request for member 'at' in 'N', which is of non-class type 'int'
    7 |   if(N.at(0)==N.at(2);){
      |                 ^~
a.cc:7:23: error: expected primary-expression before ')' token
    7 |   if(N.at(0)==N.at(2);){
      |                       ^
Language: C++

#include<iosttream>
using namespace std;

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

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

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

int main(void){
   int a;
   cin >> a;
   if(a/100=a%100%10) cout << "Yes" << endl;
   else cout << "No" << endl;
   }

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

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

int main(void){
   int a;
   cin >> a;
   if(a/100=a%100%10) cout << "Yes" << endl;
   else cout << No << endl;
   }

Compiler output:
a.cc: In function 'int main()':
a.cc:7:8: error: lvalue required as left operand of assignment
    7 |    if(a/100=a%100%10) cout << "Yes" << endl;
      |       ~^~~~
a.cc:8:17: error: 'No' was not declared in this scope
    8 |    else cout << No << endl;
      |                 ^~
Language: C++

#include<stdio.h>
using namespace std;
char s[10];
int main(){
scanf("%s",a);
if(s[0]==s[2]){printf("Yes");}
else {printf("No");}
return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:5:12: error: 'a' was not declared in this scope
    5 | scanf("%s",a);
      |            ^
Language: C++

#include<iostream>
int main() {
    int a;
    std::cin>>a;
    if(!((a/100)^(a%10))    {
        std::cout<<"Yes\n";
    }
    else std::cout<<"No\n";
    return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:5:25: error: expected ';' before '{' token
    5 |     if(!((a/100)^(a%10))    {
      |                         ^   ~
      |                         ;
a.cc:8:5: error: expected primary-expression before 'else'
    8 |     else std::cout<<"No\n";
      |     ^~~~
a.cc:7:6: error: expected ')' before 'else'
    7 |     }
      |      ^
      |      )
    8 |     else std::cout<<"No\n";
      |     ~~~~
a.cc:5:7: note: to match this '('
    5 |     if(!((a/100)^(a%10))    {
      |       ^
Language: C++

#include<iostream>
int main() {
    int a;
    cin>>a;
    if(!((a/100)^(a%10))    {
        cout<<"Yes\n";
    }
    else cout<<"No\n";
    return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:4:5: error: 'cin' was not declared in this scope; did you mean 'std::cin'?
    4 |     cin>>a;
      |     ^~~
      |     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:5:25: error: expected ';' before '{' token
    5 |     if(!((a/100)^(a%10))    {
      |                         ^   ~
      |                         ;
a.cc:8:5: error: expected primary-expression before 'else'
    8 |     else cout<<"No\n";
      |     ^~~~
a.cc:7:6: error: expected ')' before 'else'
    7 |     }
      |      ^
      |      )
    8 |     else cout<<"No\n";
      |     ~~~~
a.cc:5:7: note: to match this '('
    5 |     if(!((a/100)^(a%10))    {
      |       ^
Language: C++

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

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

#include <bits/stdc++.h>
#define REP(i, s, n) for (int i = s; i < n; ++i)
#define rep(i, n) REP(i, 0, n)
#define SORT(c) sort((c).begin(), (c).end())
#define SORT_INV(c) sort((c).begin(), (c).end(), greater<int>())
#define IINF INT_MAX
#define LLINF LLONG_MAX
#define DEBUG false
#define LL long long
// sort(a.begin(), a.end(), std::greater<int>());
using namespace std;

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

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

#include <iostream>
#include <algorithm>
#include <cstdlib>
#include <cstdio>
#include <numeric>
#include <utility>
#include <cmath>
#include <vector>
#include <list>
#include <set>
#include <stack>
#include <functional>
#include <ctime>
#include <queue>
#include <string>
#include <map>
#include <utility>
#include <sstream>
#include <cmath>
#define MAX_U   10
#define MIN_U   0
#define rep(i,n) for(int i=0;i<n;i++)
#define pb push_back
#define form(i,a,b) for(int i=(a);i<(b);i++)
#define sz(x) ((int)(x).size())
#define CLR(a) memset((a), 0 ,sizeof(a))
using namespace std;
inline int toInt(string s) {int v; istringstream sin(s);sin>>v;return v;}
template<class T> inline string toString(T x) {ostringstream sout;sout<<x;return sout.str();}
typedef long long ll;
typedef vector<int> vi;
typedef vector<vi> vii;
typedef vector<char> vc;
typedef vector<string> vs;
typedef queue<int> qi;
const int INF=numeric_limits<int>::infinity();
void printa(){cout<<"\n";}
template<class T, class... A>void printa(const T&first,const A&... rest){cout<<first;printa(rest...);}
template<class... A>void printa(const A&... rest){printa(rest...);}
void prints(){cout<<" ";}
template<class T, class... A>void prints(const T&first,const A&... rest){cout<<first;prints(rest...);}
template<class... A>void prints(const A&... rest){prints(rest...);}
int factorial(int x){int f=1;for(int i=1;i<x+1;i++)f=f*i;return f;}
int sigma(int x){int s;for(int i=1;i<x+1;i++)s=s+i;return s;}
int middle(int x){if(x%2==0)return x/2;else return x/2+1;}
double heron(int a,int b,int c){double s;s=(a+b+c)/2;return sqrt(s*(s-a)*(s-b)*(s-c));}
double trapezium(int a,int b,int h){return (a+b)*h/2;}
double triangle(int a,int h){return a*h/2;}
void sorm(vector<int> vec){sort(vec.begin(),vec.end());}
void sorg(vector<int> vec){sort(vec.begin(),vec.end(),greater<int>());}
int cmp( const void *p, const void *q ) {if( *(double*)p > *(double*)q ) return 1;if( *(double*)p < *(double*)q ) return -1;return 0;}

int main(void){
    cin.tie(0);
    ios::sync_with_stdio(false);
    int a,b,c,d;
    //vi ad,bd,cd,dd;
    //vs as,bs,cs,ds;
    cin>>a;
    if((a-(10*(a/10))==a/100)printa("Yes");
    else printa("No");
    return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:60:30: error: expected ';' before 'printa'
   60 |     if((a-(10*(a/10))==a/100)printa("Yes");
      |                              ^~~~~~
      |                              ;
a.cc:61:5: error: expected primary-expression before 'else'
   61 |     else printa("No");
      |     ^~~~
a.cc:60:44: error: expected ')' before 'else'
   60 |     if((a-(10*(a/10))==a/100)printa("Yes");
      |       ~                                    ^
      |                                            )
   61 |     else printa("No");
      |     ~~~~
Language: C++

package main

import (
	"bufio"
	"fmt"
	"os"
	"strconv"
)

func main() {
	scanner := bufio.NewScanner(os.Stdin)
	scanner.Split(bufio.ScanWords)
	
	N := ScanText(scanner)
	var M []byte
	for i := len(N) - 1; i >= 0; i-- {
	    M = append(M, N[i])
	}
	
	if string(M) == N {
	    fmt.Println("Yes")
	} else {
	    fmt.Println("No")
	}
}

func ScanInt(scanner *bufio.Scanner) int {
	scanner.Scan()
	i, e := strconv.Atoi(scanner.Text())
	if e != nil {
		panic(e)
	}
	return i
}

func ScanFloat64(scanner *bufio.Scanner) float64 {
	scanner.Scan()
	f, e := strconv.ParseFloat(scanner.Text(), 64)
	if e != nil {
		panic(e)
	}
	return f
}

func ScanText(scanner *bufio.Scanner) string {
	scanner.Scan()
	return scanner.Text()
}

func Max(a, b int) int {
	if a < b {
		return b
	}
	return a
}

func Min(a, b int) int {
	if a > b {
		return b
	}
	return a
}

func Abs(a int) int {
	if a < 0 {
		a *= -1
	}
	return a
}
 

Compiler output:
a.cc:1:1: error: 'package' does not name a type
    1 | package main
      | ^~~~~~~
a.cc:27:1: error: 'func' does not name a type
   27 | func ScanInt(scanner *bufio.Scanner) int {
      | ^~~~
a.cc:36:1: error: 'func' does not name a type
   36 | func ScanFloat64(scanner *bufio.Scanner) float64 {
      | ^~~~
a.cc:45:1: error: 'func' does not name a type
   45 | func ScanText(scanner *bufio.Scanner) string {
      | ^~~~
a.cc:50:1: error: 'func' does not name a type
   50 | func Max(a, b int) int {
      | ^~~~
a.cc:57:1: error: 'func' does not name a type
   57 | func Min(a, b int) int {
      | ^~~~
a.cc:64:1: error: 'func' does not name a type
   64 | func Abs(a int) int {
      | ^~~~
Language: C++

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


Compiler output:
a.cc:7:13: warning: multi-character character constant [-Wmultichar]
    7 |     cout << 'Yes' ;
      |             ^~~~~
a.cc:9:13: warning: multi-character character constant [-Wmultichar]
    9 |     cout << 'No' ;
      |             ^~~~
a.cc:2:7: error: expected nested-name-specifier before 'namespase'
    2 | using namespase std;
      |       ^~~~~~~~~
a.cc: In function 'int main()':
a.cc:5:3: error: 'cin' was not declared in this scope; did you mean 'std::cin'?
    5 |   cin >> a ;
      |   ^~~
      |   std::cin
In file included from a.cc:1:
/usr/include/c++/14/iostream:62:18: note: 'std::cin' declared here
   62 |   extern istream cin;           ///< Linked to standard input
      |                  ^~~
a.cc:7:5: error: 'cout' was not declared in this scope; did you mean 'std::cout'?
    7 |     cout << 'Yes' ;
      |     ^~~~
      |     std::cout
/usr/include/c++/14/iostream:63:18: note: 'std::cout' declared here
   63 |   extern ostream cout;          ///< Linked to standard output
      |                  ^~~~
a.cc:9:5: error: 'cout' was not declared in this scope; did you mean 'std::cout'?
    9 |     cout << 'No' ;
      |     ^~~~
      |     std::cout
/usr/include/c++/14/iostream:63:18: note: 'std::cout' declared here
   63 |   extern ostream cout;          ///< Linked to standard output
      |                  ^~~~
Language: C++

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


Compiler output:
a.cc:7:13: warning: multi-character character constant [-Wmultichar]
    7 |     cout << 'Yes' << endl;
      |             ^~~~~
a.cc:9:13: warning: multi-character character constant [-Wmultichar]
    9 |     cout << 'No' << endl;
      |             ^~~~
a.cc:2:7: error: expected nested-name-specifier before 'namespase'
    2 | using namespase std;
      |       ^~~~~~~~~
a.cc: In function 'int main()':
a.cc:5:3: error: 'cin' was not declared in this scope; did you mean 'std::cin'?
    5 |   cin >> a ;
      |   ^~~
      |   std::cin
In file included from a.cc:1:
/usr/include/c++/14/iostream:62:18: note: 'std::cin' declared here
   62 |   extern istream cin;           ///< Linked to standard input
      |                  ^~~
a.cc:7:5: error: 'cout' was not declared in this scope; did you mean 'std::cout'?
    7 |     cout << 'Yes' << 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:7:22: error: 'endl' was not declared in this scope; did you mean 'std::endl'?
    7 |     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:9:5: error: 'cout' was not declared in this scope; did you mean 'std::cout'?
    9 |     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:9:21: error: 'endl' was not declared in this scope; did you mean 'std::endl'?
    9 |     cout << 'No' << endl;
      |                     ^~~~
      |                     std::endl
/usr/include/c++/14/ostream:744:5: note: 'std::endl' declared here
  744 |     endl(basic_ostream<_CharT, _Traits>& __os)
      |     ^~~~
Language: C++

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


Compiler output:
a.cc:7:13: warning: multi-character character constant [-Wmultichar]
    7 |     cout << 'Yes\n' << endl;
      |             ^~~~~~~
a.cc:9:13: warning: multi-character character constant [-Wmultichar]
    9 |     cout << 'No\n' << endl;
      |             ^~~~~~
a.cc:2:7: error: expected nested-name-specifier before 'namespase'
    2 | using namespase std;
      |       ^~~~~~~~~
a.cc: In function 'int main()':
a.cc:5:3: error: 'cin' was not declared in this scope; did you mean 'std::cin'?
    5 |   cin >> a ;
      |   ^~~
      |   std::cin
In file included from a.cc:1:
/usr/include/c++/14/iostream:62:18: note: 'std::cin' declared here
   62 |   extern istream cin;           ///< Linked to standard input
      |                  ^~~
a.cc:7:5: error: 'cout' was not declared in this scope; did you mean 'std::cout'?
    7 |     cout << 'Yes\n' << 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:7:24: error: 'endl' was not declared in this scope; did you mean 'std::endl'?
    7 |     cout << 'Yes\n' << 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:9:5: error: 'cout' was not declared in this scope; did you mean 'std::cout'?
    9 |     cout << 'No\n' << 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:9:23: error: 'endl' was not declared in this scope; did you mean 'std::endl'?
    9 |     cout << 'No\n' << endl;
      |                       ^~~~
      |                       std::endl
/usr/include/c++/14/ostream:744:5: note: 'std::endl' declared here
  744 |     endl(basic_ostream<_CharT, _Traits>& __os)
      |     ^~~~
Language: C++

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

Compiler output:
a.cc:7:13: warning: multi-character character constant [-Wmultichar]
    7 |     cout << 'Yes\n' << endl;
      |             ^~~~~~~
a.cc:9:13: warning: multi-character character constant [-Wmultichar]
    9 |     cout << 'No\n' << endl;
      |             ^~~~~~
a.cc:2:7: error: expected nested-name-specifier before 'namespase'
    2 | using namespase std;
      |       ^~~~~~~~~
a.cc: In function 'int main()':
a.cc:5:3: error: 'cin' was not declared in this scope; did you mean 'std::cin'?
    5 |   cin >> a >> endl;
      |   ^~~
      |   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:5:15: error: 'endl' was not declared in this scope; did you mean 'std::endl'?
    5 |   cin >> a >> 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:7:5: error: 'cout' was not declared in this scope; did you mean 'std::cout'?
    7 |     cout << 'Yes\n' << 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:9:5: error: 'cout' was not declared in this scope; did you mean 'std::cout'?
    9 |     cout << 'No\n' << endl;
      |     ^~~~
      |     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 <iostream>
using namespace std;

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


Compiler output:
a.cc: In function 'int main()':
a.cc:7:42: error: expected ')' before ';' token
    7 |         if(n[0]==n[2]) (cout<<"Yes"<<endl;)else cout<<"No"<<endl;
      |                        ~                 ^
      |                                          )
a.cc:7:43: error: expected primary-expression before ')' token
    7 |         if(n[0]==n[2]) (cout<<"Yes"<<endl;)else cout<<"No"<<endl;
      |                                           ^
Language: C++

#include<bits/stdc++.h>
int main()
{
    string a,b,c;
    std::cin>>a;
    b=a/100;
    c=100%10;
    if(b==c)
    std::cout<<"Yes";
    else
    std::cout<<"No";
    return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:4:5: error: 'string' was not declared in this scope
    4 |     string a,b,c;
      |     ^~~~~~
a.cc:4:5: note: suggested alternatives:
In file included from /usr/include/c++/14/string:41,
                 from /usr/include/c++/14/bitset:52,
                 from /usr/include/x86_64-linux-gnu/c++/14/bits/stdc++.h:52,
                 from a.cc:1:
/usr/include/c++/14/bits/stringfwd.h:77:33: note:   'std::string'
   77 |   typedef basic_string<char>    string;
      |                                 ^~~~~~
/usr/include/c++/14/string:76:11: note:   'std::pmr::string'
   76 |     using string    = basic_string<char>;
      |           ^~~~~~
a.cc:5:15: error: 'a' was not declared in this scope
    5 |     std::cin>>a;
      |               ^
a.cc:6:5: error: 'b' was not declared in this scope
    6 |     b=a/100;
      |     ^
a.cc:7:5: error: 'c' was not declared in this scope
    7 |     c=100%10;
      |     ^
Language: C++

#include<bits/stdc++.h>

using namespace std;
long long s;
int main()
{
 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:6: error: invalid types 'long long int[int]' for array subscript
    8 |  if(s[0]==s[2])cout<<"Yes"<<endl;
      |      ^
a.cc:8:12: error: invalid types 'long long int[int]' for array subscript
    8 |  if(s[0]==s[2])cout<<"Yes"<<endl;
      |            ^
Language: C++

#include <bits/stdc++.h>
#define _USE_MATH_DEFINES
#include <cmath>
using namespace std;
#define pi M_PI
#include <vector>

int main(){
    int n;
    cin >> n;
    if(n.at(0) == n.at(2)){
        cout << "Yes" << endl;
    }
    else cout << "No" << endl;
    
    return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:11:10: error: request for member 'at' in 'n', which is of non-class type 'int'
   11 |     if(n.at(0) == n.at(2)){
      |          ^~
a.cc:11:21: error: request for member 'at' in 'n', which is of non-class type 'int'
   11 |     if(n.at(0) == n.at(2)){
      |                     ^~
Language: C++

function main (s) {
    console.log((s[0]==s[2])?"Yes":"No");
}
 
main(require('fs').readFileSync('/dev/stdin', 'utf8'));

Compiler output:
a.cc:5:14: warning: multi-character character constant [-Wmultichar]
    5 | main(require('fs').readFileSync('/dev/stdin', 'utf8'));
      |              ^~~~
a.cc:5:33: warning: multi-character literal with 10 characters exceeds 'int' size of 4 bytes
    5 | main(require('fs').readFileSync('/dev/stdin', 'utf8'));
      |                                 ^~~~~~~~~~~~
a.cc:5:47: warning: multi-character character constant [-Wmultichar]
    5 | main(require('fs').readFileSync('/dev/stdin', 'utf8'));
      |                                               ^~~~~~
a.cc:1:1: error: 'function' does not name a type; did you mean 'union'?
    1 | function main (s) {
      | ^~~~~~~~
      | union
a.cc:5:5: error: expected constructor, destructor, or type conversion before '(' token
    5 | main(require('fs').readFileSync('/dev/stdin', 'utf8'));
      |     ^
Language: C++

#include<iostream>
using namepsace std;

int main(void) {
  string s;
  cin >> s;
  
  if (s.at(0) == s.at(2)) cout << "Yes" << endl;
  else cout << "No" << endl;
}

Compiler output:
a.cc:2:7: error: expected nested-name-specifier before 'namepsace'
    2 | using namepsace std;
      |       ^~~~~~~~~
a.cc: In function 'int main()':
a.cc:5:3: error: 'string' was not declared in this scope
    5 |   string s;
      |   ^~~~~~
a.cc:5:3: note: suggested alternatives:
In file included from /usr/include/c++/14/iosfwd:41,
                 from /usr/include/c++/14/ios:40,
                 from /usr/include/c++/14/ostream:40,
                 from /usr/include/c++/14/iostream:41,
                 from a.cc:1:
/usr/include/c++/14/bits/stringfwd.h:77:33: note:   'std::string'
   77 |   typedef basic_string<char>    string;
      |                                 ^~~~~~
In file included from /usr/include/c++/14/bits/locale_classes.h:40,
                 from /usr/include/c++/14/bits/ios_base.h:41,
                 from /usr/include/c++/14/ios:44:
/usr/include/c++/14/string:76:11: note:   'std::pmr::string'
   76 |     using string    = basic_string<char>;
      |           ^~~~~~
a.cc:6:3: error: 'cin' was not declared in this scope; did you mean 'std::cin'?
    6 |   cin >> s;
      |   ^~~
      |   std::cin
/usr/include/c++/14/iostream:62:18: note: 'std::cin' declared here
   62 |   extern istream cin;           ///< Linked to standard input
      |                  ^~~
a.cc:6:10: error: 's' was not declared in this scope
    6 |   cin >> s;
      |          ^
a.cc:8:27: error: 'cout' was not declared in this scope; did you mean 'std::cout'?
    8 |   if (s.at(0) == s.at(2)) cout << "Yes" << endl;
      |                           ^~~~
      |                           std::cout
/usr/include/c++/14/iostream:63:18: note: 'std::cout' declared here
   63 |   extern ostream cout;          ///< Linked to standard output
      |                  ^~~~
a.cc:8:44: error: 'endl' was not declared in this scope; did you mean 'std::endl'?
    8 |   if (s.at(0) == s.at(2)) cout << "Yes" << endl;
      |                                            ^~~~
      |                                            std::endl
/usr/include/c++/14/ostream:744:5: note: 'std::endl' declared here
  744 |     endl(basic_ostream<_CharT, _Traits>& __os)
      |     ^~~~
a.cc:9:8: error: 'cout' was not declared in this scope; did you mean 'std::cout'?
    9 |   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:9:24: error: 'endl' was not declared in this scope; did you mean 'std::endl'?
    9 |   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<bits/stdc++.h>
using namespace std;
int main()
{
    int n;
    if(a/100%10==a%10)
    cout<<"YES"<<endl;
    else cout<<"NO"<<endl;
    return 0;
}

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

#include<iostream>
using namespace std;
int main(){
char n1,n2,n3;
cin >> n1 >> n2 >> n3;
if(n1 == n2)cout << "Yes";else cout "No";
}

Compiler output:
a.cc: In function 'int main()':
a.cc:6:36: error: expected ';' before string constant
    6 | if(n1 == n2)cout << "Yes";else cout "No";
      |                                    ^~~~~
      |                                    ;
Language: Java

import java.util.*;
public class Main{
public static void main(String[] args){
Scanner sc = new Scanner(System.in);
  int N = sc.nextInt();
  long[] t = new long[N];
  for(int i = 0;i < N;i++){
    t[i] = sc.nextLong();
  }
  Arrays.sort(t);
  long ans = t[N-1];
  for(int i = 0;i < N;i++){
    if(ans%t[N-1-i] != 0){
      int a = 2;
      for(int j = 2;;j++){
        if(ans%j == 0 && t[N-1-i]%j == 0){
          a = j;
          break;
      }
      ans *= a;
    }
  }
  System.out.println(ans);
}}


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

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

Compiler output:
Main.java:5: error: incompatible types: int cannot be converted to String
    String a = sc.nextInt();
                         ^
1 error
Language: Java

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

Compiler output:
Main.java:6: error: int cannot be dereferenced
    if(a.substring(0,1).equals(a.substring(2,3))){
        ^
Main.java:6: error: int cannot be dereferenced
    if(a.substring(0,1).equals(a.substring(2,3))){
                                ^
2 errors
Language: Java

import java.util.*;
public class Main{
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 Syetem.out.println("No");
}
}
  

Compiler output:
Main.java:8: error: package Syetem does not exist
  else Syetem.out.println("No");
             ^
1 error
Language: C++

#include <bits/stdc++.h>
using namespace std;
int main()
{
	string s;
	cin>>s;
	int i=0;
	j=s.size()-1;
	while(i<j)
		if(s[i]!=s[j])
		{
			cout<<"No";
			return 0;
		}
	cout<<"Yes";
	return 0;
} 

Compiler output:
a.cc: In function 'int main()':
a.cc:8:9: error: 'j' was not declared in this scope
    8 |         j=s.size()-1;
      |         ^
Language: C++

#include<iostream>
#include<algorithm>
#include<vector>
using namespace std;
int main(){
    string str;
    cin >> str;
    for(int i=0;i<str.size()/2;i++){
        if(s[i]!=s[str.size()-i-1]){
            cout << "No\n";
            return 0;
        }
    }
    cout << "Yes\n";
}

Compiler output:
a.cc: In function 'int main()':
a.cc:9:12: error: 's' was not declared in this scope
    9 |         if(s[i]!=s[str.size()-i-1]){
      |            ^
Language: C++

#include<iostream>
#include<cstdio>
#include<cstring>
#include<string>
#include<cmath>
#include<algorithm>
#include<cstdlib>
#include<utility>
#include<map>
#include<stack>
#include<set>
#include<vector>
#include<queue>
#include<deque>
#include<sstream>
#include<bitset>
#include<bits/stdc++.h>
using namespace std;
int main()
{
	string s;
	cin>>s;
	if s[0]=s[s.size()-1] cout<<"YES";
	else 
	cout<<"NO"; 
    return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:23:12: error: expected '(' before 's'
   23 |         if s[0]=s[s.size()-1] cout<<"YES";
      |            ^
      |            (
a.cc:24:9: error: 'else' without a previous 'if'
   24 |         else
      |         ^~~~
Language: C++

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

int main(){
  string x, y;
  cin >> x; y = x;
  reverse(y.begin(), y.end());

  if(x == y) cout << "Yes" << endl;
  else cout << "No"  << endl;

  return 0;

}


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

#include <iostream>
#include <algorithm>
using namespace std;
int main(void){
  stirng s;
  cin >> s;
  for(int i=0; i<s.size()/2+1; i++){
    if(s[i]!=s[s.size()-1-i]){
      cout << "No" << endl;return 0;
    }
  }
  cout << "Yes" << endl;
  
  return 0;
}

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

#include <iostream>
#include <string>
#include <string.h>
#include <map>
#include <set>
#include <vector>
#include <stdio.h>
#include <math.h>
#include <algorithm>
#include <queue>
#include <cmath>
#include <cstdio>
using namespace std;
int main(){
string s;
int ans;
cin>>s;
for(int i=0;i<=s.size()/2;i++)
for(int j=s.size();j>=s.size()/2;j--){
if(s[i]!=s[j])
{cout<<"No";
system("pause");
return 0;
}
cout<<"Yes";
system("pause");
return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:28:2: error: expected '}' at end of input
   28 | }
      |  ^
a.cc:14:11: note: to match this '{'
   14 | int main(){
      |           ^