criyle/codenet-compile-errors huggingface dataset:
Language: Java

import java.util.*;

public class HelloWorld{

    public static void main(String args[]){
        Scanner sc = new Scanner(System.in);
		 String s = sc.nextLine();
		 int n = s.length();
		 String s1 = s.substring(0, (n-1)/2);
		 String s2 = s.substring((n+1)/2, n);
        if(isKai(s) && isKai(s1) && isKai(s2)){
			System.out.println("Yes");
		} else {
			System.out.println("No");
		}
    }
	
	public static boolean isKai(String s){
		return s.equals(new StringBuilder(s).reverse().toString());
	}
}






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

#include <iostream>
#include <string>
using namespace std;
int main()
{
    string str;
    int i,j,l;
    int flag = 1;
      string str[100];

    scanf("%s",str);
   
        l = str.length();
        for (i = 0,j = l-1; i <= j; i++,j--)
        {
            if (str[i] != str[j])
            {
                flag = 0;
                break;
            }
        }
        for(i=0,j=((l-1)/2)-1;i<=j;i++,j--){
        	 if (str[i] != str[j])
            {
                flag = 0;
                break;
            }
        	
		}
		for(i=((l+3)/2)-1,j=l-1;i<=j;i++,j--){
				 if (str[i] != str[j])
            {
                flag = 0;
                break;
            }
			
		}
		
        if (flag)
            cout << "Yes" << endl;
        else
            cout << "No" << endl;
        flag = true;


    return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:9:14: error: conflicting declaration 'std::string str [100]'
    9 |       string str[100];
      |              ^~~
a.cc:6:12: note: previous declaration as 'std::string str'
    6 |     string str;
      |            ^~~
Language: C++

#include<bits/stdc++.h>
#define endl '\n'
using namespace std;
class A
{
public:
    void isPalindrome();
};
void isPalindrome(char str[]) 
{
    int l = 0; 
    int h = strlen(str) - 1; 
    while (h > l) 
    { 
        if (str[l++] != str[h--]) 
        { 
            flag = true;  
        } 
    }
}
int main(){
    ios::sync_with_stdio(false);
    cin.tie(0);
    string S,a,b;
  	bool flag = false;
  	cin >> S;
  	for(int i = 0; i < (S.length()-1)/2-1; i++) {
        a += S[i];
    }
	for(int i = (S.length()+3)/2-1; i < S.length(); i++){
      	b += S[i];
    }
    isPalindrome(S);
    isPalindrome(a);
    isPalindrome(b);
  	if(flag == false) cout << "Yes";
  	else cout << "No";
}

Compiler output:
a.cc: In function 'void isPalindrome(char*)':
a.cc:17:13: error: 'flag' was not declared in this scope
   17 |             flag = true;
      |             ^~~~
a.cc: In function 'int main()':
a.cc:33:18: error: cannot convert 'std::string' {aka 'std::__cxx11::basic_string<char>'} to 'char*'
   33 |     isPalindrome(S);
      |                  ^
      |                  |
      |                  std::string {aka std::__cxx11::basic_string<char>}
a.cc:9:24: note:   initializing argument 1 of 'void isPalindrome(char*)'
    9 | void isPalindrome(char str[])
      |                   ~~~~~^~~~~
a.cc:34:18: error: cannot convert 'std::string' {aka 'std::__cxx11::basic_string<char>'} to 'char*'
   34 |     isPalindrome(a);
      |                  ^
      |                  |
      |                  std::string {aka std::__cxx11::basic_string<char>}
a.cc:9:24: note:   initializing argument 1 of 'void isPalindrome(char*)'
    9 | void isPalindrome(char str[])
      |                   ~~~~~^~~~~
a.cc:35:18: error: cannot convert 'std::string' {aka 'std::__cxx11::basic_string<char>'} to 'char*'
   35 |     isPalindrome(b);
      |                  ^
      |                  |
      |                  std::string {aka std::__cxx11::basic_string<char>}
a.cc:9:24: note:   initializing argument 1 of 'void isPalindrome(char*)'
    9 | void isPalindrome(char str[])
      |                   ~~~~~^~~~~
Language: C++

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



int main() {
    string v;

    cin >> v;

    int s = v.size();

    bool a = true;
    rep(i,(s-1)/2){
        if(v[i] != v[((s+3)/2)+i]){
            a = flase;
            break;
        }
    }

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


  return 0;
}

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

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

bool huiwen(string s, int low, int high){
	if(s[low]!=s[high]){
		return false;
	}
	if(low==high||low==high-1){
		return true;
	}
	return huiwen(s, low+1, high-1);
}
bool judge(string str){
	 int l = str.length();
	 int i,j;
	 int flag=0;
	 if(l%2==0) return false;
	 for(i=0,j=((l-1)/2)-1;i<=j;i++,j--){
        	 if (str[i] != str[j])
            {
                return false;
                break;
            }

		}
		for(i=((l+3)/2)-1,j=l-1;i<=j;i++,j--){
				 if (str[i] != str[j])
            {
                return false;
                break;
            }

		}
}
int main(){
	string s;
	cin >> s;
	int n = s.size();
	bool res = huiwen(s, 0, n-1);
	if(res==1&&flag==1){
		cout << "Yes" << endl;
	}
	else{
		cout << "No" << endl;
	}
	return 0;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:41:20: error: 'flag' was not declared in this scope
   41 |         if(res==1&&flag==1){
      |                    ^~~~
a.cc: In function 'bool judge(std::string)':
a.cc:35:1: warning: control reaches end of non-void function [-Wreturn-type]
   35 | }
      | ^
Language: C++

#include<bits/stdc++.h>
using namespace std;
int main(){
string s;
cin>>s;
long long ans=0;
for(long long i=0;i<s.size()/2;i++){
    if(s[i]!=s[s.size()-1-i]){
        break;
    }
    if(i==s.size()/2-1){
        ans=1;
    }
}
if(ans==0){
    cout<<"No"<<endl;
}
else{
for(long long i=0;i<(s.size()-1)/2;i++){
    if(s[i]!=s[(s.size()-1)/2-1-i]){
        break;
    }
    if(i==(s.size()-1)/2--1){
        ans=2;
    }
}
if(ans==1){
    cout<<"No"<<endl;
}
else{
for(long long i=(s.size()+3)/2-1;i<s.size();i++){
    if(s[i]!=s[s.size()-1-i]){
        break;
    }
    if(i==s.size()-1){
        ans=3;
    }
}
if(ans==2){
    cout<<"No"<<endl;
}
else if(ans==3){
    cout<<"Yes"<<endl;
}
}
}
    return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:23:24: error: lvalue required as decrement operand
   23 |     if(i==(s.size()-1)/2--1){
      |                        ^
a.cc:23:27: error: expected ')' before numeric constant
   23 |     if(i==(s.size()-1)/2--1){
      |       ~                   ^
      |                           )
Language: C++

#include <iostream>
#include <vector>
#include <queue>
using namespace std;
using Graph = vector<vector<int> >;

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


Compiler output:
a.cc: In function 'int main()':
a.cc:8:23: error: expected ';' at end of input
    8 |     string N; cin >> N
      |                       ^
      |                       ;
a.cc:8:23: error: expected '}' at end of input
a.cc:7:11: note: to match this '{'
    7 | int main(){
      |           ^
Language: C++

/*starting with the name of almighty ALLAH*/
/*solved by RAKIB JOY*/
#include<bits/stdc++.h>
using namespace std;
int main()
{
    char a[102];
    gets(a);
    int x=strlen(a),i,j;
    for(i=0,j=x-1 ; i<=x/2,j>=x/2 ; i++,j--)
    {
        if(a[i]!=a[j])
        {
            cout<<"No"<<endl;
            return 0;
        }
    }
    for(i=0,j=x/2-1 ; i<=x/2-1,j>=0 ; i++,j--)
    {
        if(a[i]!=a[j])
        {
            cout<<"No"<<endl;
            return 0;
        }
    }
    for(i=x/2+1,j=x-1 ; i<=x-1,j>=x/2+1 ; i++,j--)
    {
        if(a[i]!=a[j])
        {
            cout<<"No"<<endl;
            return 0;
        }
    }

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



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

#include <iostream>
#include <algorithm>
using namespace std;
 
typedef long long ll;
typedef pair<int, int> pi;
 
 
typedef vector<int> vi;
typedef vector<ll> vl;
typedef vector<pi> vpi;
 
#define rep(i,a) for(int i=0;i<a;i++)
#define repn(i,a,b) for(int i=a;i<b;i++)
#define per(i,a,b) for(int i=a;i>b;i--)

#define endl '\n' 
#define sz(x) (int)(x).size()
#define mp make_pair
#define pb push_back
#define f first
#define s second
#define all(x) x.begin(), x.end()
 
const int MOD = 1000000007;
const ll INF = 1e18;

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

int main()
{
  string s; cin>>s;
  int n = sz(s);
  string tmp = s;
  string tmp1 =s;
  reverse(s.begin(),s.end());
  if(s!=tmp)
  {
	  cout<<"No"<<endl;
	  return 0;
  }
  s = tmp.substr(0, ((n-1)/2));
  tmp = s;
  reverse(s.begin(),s.end());
  if(s!=tmp)
  {
	  cout<<"No"<<endl;
	  return 0;
  }
  s = tmp1.substr(((n+3)/2)-1, abs(((n+3)/2)-1-n ));
  tmp = s;
  reverse(s.begin(),s.end());
  if(s!=tmp)
  {
	  cout<<"No"<<endl;
	  return 0;
  }
  cout<<"YES";
  
} 


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

#include<bits/stdc++.h> 
int palin(char *s,int n)
{	
  int k=1;	
  char *head,*tail;	
  head=s;	
  tail=s+n-1;	
  for(int i=0;i<n/2;i++)	
  {	
      if(*head>31&&*head<65) head++;		
	  if(*tail>31&&*tail<65) tail--;					
      if(*head!=*tail) k=0;	
	  head++;		 
	  tail--;			  
  }	
return k;
}
void main()
{	
  int k,n;	
  char s[100];	
  gets(s);	
  n=strlen(s);	
  k=palin(s,n);	
  if(k==1) 
  printf("yes!");	
  else printf("no!");
}



Compiler output:
a.cc:18:1: error: '::main' must return 'int'
   18 | void main()
      | ^~~~
a.cc: In function 'int main()':
a.cc:22:3: error: 'gets' was not declared in this scope; did you mean 'getw'?
   22 |   gets(s);
      |   ^~~~
      |   getw
Language: C++

#include<bits/stdc++.h>
#define endl '\n'
using namespace std;
int main(){
    ios::sync_with_stdio(false);
    cin.tie(0);
    string S,a,b;
  	bool flag = false;
  	cin >> S;
  	for(int i = 0; i < (S.length()-1)/2-1; i++) {
        a += S[i];
    }
	for(int i = (S.length()+3)/2-1; i < S.length(); i++){
      	b += S[i];
    }
  	void isPalindrome(char str[]) 
	{
    	int l = 0; 
    	int h = strlen(str) - 1; 
    	while (h > l) 
    	{ 
        	if (str[l++] != str[h--]) 
        	{ 
            	flag = true;  
        	} 
    	}
    }
    isPalindrome(S);
    isPalindrome(a);
    isPalindrome(b);
  	if(flag == false) cout << "Yes";
  	else cout << "No";
}

Compiler output:
a.cc: In function 'int main()':
a.cc:17:9: error: a function-definition is not allowed here before '{' token
   17 |         {
      |         ^
a.cc:28:5: error: 'isPalindrome' was not declared in this scope
   28 |     isPalindrome(S);
      |     ^~~~~~~~~~~~
Language: Java


import java.io.BufferedReader;
import java.io.IOException;
import java.io.InputStreamReader;
import java.util.StringTokenizer;

public class pre193
{
    static class FastReader {
        BufferedReader br;
        StringTokenizer st;

        public FastReader() {
            br = new BufferedReader(new
                    InputStreamReader(System.in));
        }

        String next() {
            while (st == null || !st.hasMoreElements()) {
                try {
                    st = new StringTokenizer(br.readLine());
                } catch (IOException e) {
                    e.printStackTrace();
                }
            }
            return st.nextToken();
        }

        int nextInt() {
            return Integer.parseInt(next());
        }

        long nextLong() {
            return Long.parseLong(next());
        }

        double nextDouble() {
            return Double.parseDouble(next());
        }

        String nextLine() {
            String str = "";
            try {
                str = br.readLine();
            } catch (IOException e) {
                e.printStackTrace();
            }
            return str;
        }
    }
    static boolean isPalindrome(String str)
    {
        int i = 0, j = str.length() - 1;

        while (i < j) {

            if (str.charAt(i) != str.charAt(j))
                return false;
            i++;
            j--;
        }
        return true;
    }

    public static void main(String args[])
    {
        FastReader obj = new FastReader();
        StringBuffer str = new StringBuffer(obj.next());
        if(isPalindrome(str.toString()))
        {
            if(((str.length()-1)/2)%2!=0)
            {
                System.out.println("Yes");
                return;
            }
        }
        System.out.println("No");
    }
}


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

#include<bits/stdc++.h>
#define endl '\n'
using namespace std;
int main(){
    ios::sync_with_stdio(false);
    cin.tie(0);
    string S,a,b;
  	bool flag = false;
  	cin >> S;
  	for(int i = 0; i < (S.length()-1)/2-1; i++) {
        a += S[i];
    }
	for(int i = (S.length()+3)/2-1; i < S.length(); i++){
      	b += S[i];
    }
    isPalindrome(S);
    isPalindrome(a);
    isPalindrome(b);
  	void isPalindrome(char str[]) 
	{
    	int l = 0; 
    	int h = strlen(str) - 1; 
    	while (h > l) 
    	{ 
        	if (str[l++] != str[h--]) 
        	{ 
            	flag = true;  
        	} 
    	}
    }
  	if(flag == false) cout << "Yes";
  	else cout << "No";
}
	

Compiler output:
a.cc: In function 'int main()':
a.cc:16:5: error: 'isPalindrome' was not declared in this scope
   16 |     isPalindrome(S);
      |     ^~~~~~~~~~~~
a.cc:20:9: error: a function-definition is not allowed here before '{' token
   20 |         {
      |         ^
Language: C++

#include <bits/stdc++.h>
using namespace std;
 
typedef long long ll;
typedef pair<int, int> pi;
 
 
typedef vector<int> vi;
typedef vector<ll> vl;
typedef vector<pi> vpi;
 
#define rep(i,a) for(int i=0;i<a;i++)
#define repn(i,a,b) for(int i=a;i<b;i++)
#define per(i,a,b) for(int i=a;i>b;i--)

#define endl '\n' 
#define sz(x) (int)(x).size()
#define mp make_pair
#define pb push_back
#define f first
#define s second
#define all(x) x.begin(), x.end()
 
const int MOD = 1000000007;
const ll INF = 1e18;

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

int main()
{
  string s; cin>>s;
  int n = sz(s);
  string tmp = s;
  string tmp1 =s;
  reverse(s.begin(),s.end());
  if(s!=tmp)
  {
	  cout<<"No"<<endl;
	  return 0;
  }
  s = tmp.substr(0, ((n-1)/2));
  tmp = s;
  reverse(s.begin(),s.end());
  if(s!=tmp)
  {
	  cout<<"No"<<endl;
	  return 0;
  }
  s = tmp1.substr(((n+3)/2)-1, abs(((n+3)/2)-1-n ));
  tmp = s;
  reverse(s.begin(),s.end());
  if(s!=tmp)
  {
	  cout<<"No"<<endl;
	  return 0;
  }
  cout<<"YES";
  
} 


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

S = gets.chomp
N = (S.size-1) / 2
F =->(s){
  n = (s.size-1) / 2
p [s[0,n], S[n+1,n].reverse]
  s[0,n] == S[n+1,n].reverse
}
x = F[S]
x &&= F[S[0,N]]
x &&= F[S[N+1,N]]
puts x ? :Yes : :No

Compiler output:
a.cc:1:1: error: 'S' does not name a type
    1 | S = gets.chomp
      | ^
a.cc:8:1: error: 'x' does not name a type
    8 | x = F[S]
      | ^
Language: C++

#include<bits/stdc++.h>
#define endl '\n'
using namespace std;
int main(){
    ios::sync_with_stdio(false);
    cin.tie(0);
    string S,a,b;
  	bool flag = false;
  	cin >> S;
  	for(int i = 0; i < (S.length()-1)/2-1; i++) {
        a += S[i];
    }
	for(int i = (S.length()+3)/2-1; i < S.length(); i++){
      	b += S[i];
    }
    isPalindrome(S);
    isPalindrome(a);
    isPalindrome(b);
  	if(flag == false) cout << "Yes";
  	else cout << "No";
}
	void isPalindrome(char str[]) 
	{
    	int l = 0; 
    	int h = strlen(str) - 1; 
    	while (h > l) 
    	{ 
        	if (str[l++] != str[h--]) 
        	{ 
            	flag = true;  
        	} 
    	}
    }

Compiler output:
a.cc: In function 'int main()':
a.cc:16:5: error: 'isPalindrome' was not declared in this scope
   16 |     isPalindrome(S);
      |     ^~~~~~~~~~~~
a.cc: In function 'void isPalindrome(char*)':
a.cc:30:17: error: 'flag' was not declared in this scope
   30 |                 flag = true;
      |                 ^~~~
Language: C++

#include <stdio.h>
int main()
{
    char a[100],b[100];
    int m,n,i=0,k=0,e=0,d=0;
    scanf("%s",&a);
    k=huiwen(a);
    while(a[i]>32)
        i++;
    for(n=0;n<(i-1)/2;n++)
        b[n]=a[n];
    e=huiwen(b);
    n++;
    for(;n<i;n++)
        b[n]=a[n];
    d=huiwen(b);
    if(k==1&&e==1&&d==1)
        printf("Yes");
    else
        printf("No");
    return 0;
}
int huiwen(char *s)
{
    char *p = s;
    while(*p) p++;
    p--;
    while(s<p)
    {
        if(*s != *p) return 0;
        s++;
        p--;
    }
    return 1;
}



Compiler output:
a.cc: In function 'int main()':
a.cc:7:7: error: 'huiwen' was not declared in this scope
    7 |     k=huiwen(a);
      |       ^~~~~~
Language: C++

#include <bits/stdc++.h>
#define rep(i,n) for(int (i)=0;(i)<n;(i)++)
#define ll long long
using namespace std;
int main(void){
    string s;
    cin>>s;
    string a,b,c,d,e;
    int l=s.length();
    rep(i,(l-1)/2){
        a+=s[i];
        b+=s[(l-1)/2-i-1];
        c+=s[(l+3)/2+i-1];
        d+=s[l-1-i];
    }
    rep(i,l)e+=s[l-i-1
    if(a==b&&c==d&&s==e)cout<<"Yes"<<endl;
    else cout<<"No"<<endl;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:16:23: error: expected ']' before 'if'
   16 |     rep(i,l)e+=s[l-i-1
      |                       ^
      |                       ]
   17 |     if(a==b&&c==d&&s==e)cout<<"Yes"<<endl;
      |     ~~                 
a.cc:16:23: error: expected ';' before 'if'
   16 |     rep(i,l)e+=s[l-i-1
      |                       ^
      |                       ;
   17 |     if(a==b&&c==d&&s==e)cout<<"Yes"<<endl;
      |     ~~                 
a.cc:18:5: error: 'else' without a previous 'if'
   18 |     else cout<<"No"<<endl;
      |     ^~~~
Language: C++

#include <stdio.h>
int main()
{
    char a[100],b[100],c[100];
    int m,n,i=0,k=0,e=0,d=0;
    scanf("%s",&a);
    k=huiwen(a);
    while(a[i]>32)
        i++;
    for(n=0;n<(i-1)/2;n++)
        b[n]=a[n];
    e=huiwen(b);
    n++;
    for(;n<i;n++)
        b[n]=a[n];
    d=huiwen(b);
    if(k==1&&e==1&&d==1)
        printf("%Yes");
    else
        printf("No");
    return 0;
}
int huiwen(char *s)
{
    char *p = s;
    while(*p) p++;
    p--;
    while(s<p)
    {
        if(*s != *p) return 0;
        s++;
        p--;
    }
    return 1;
}



Compiler output:
a.cc: In function 'int main()':
a.cc:7:7: error: 'huiwen' was not declared in this scope
    7 |     k=huiwen(a);
      |       ^~~~~~
Language: C

//#include<bits/stdc++.h>
#include<math.h>
#include<string.h>
#include<stdio.h>
#include<ctype.h>
//using namespace std;
int main()
{
    char s[101];
    scanf("%s",s);
    int n = strlen(s);
    //cout<<n;
    int x = (n-1)/2;
    //cout<<x;
    char a[x],b[x];
    for(int i=0;i<x;i++)
    {
        a[i] = s[i];
        b[i] = s[x+1+i];
    }
    char r[101]; 
    char c[101];
    char d[101];
    strcpy(r,s);
    strcpy(c,a);
    strcpy(d,b);
    strrev(s);
    strrev(a);
    strrev(b);
    //printf("%s %s",a,b);
    if(strcmp(s,r)==0)
    {
        if(strcmp(a,c)==0)
        {
            if(strcmp(b,d)==0)
                printf("Yes");
            else
                printf("No");
        }
        else
            printf("No");
    }
    else
        printf("No");
    return 0;
}

Compiler output:
main.c: In function 'main':
main.c:27:5: error: implicit declaration of function 'strrev'; did you mean 'strsep'? [-Wimplicit-function-declaration]
   27 |     strrev(s);
      |     ^~~~~~
      |     strsep
Language: C++

#include <bits/stdc++.h>
using namespace std;
#include <algorithm>
int main(){
    string S;
    int flag=0;

    cin>>S;
    double N;
    N=S.length();

    string Nb,Na;
    for (double i = 0; i < (N-1)/2; i++)
    {
        
        if(S[i]!=S[N-i-1]){
            flag=1;
            break;

        }
    }
    Nb=S.substr(0,(N-1)/2);
    
    
    Na=S.substr((N-1)/2+1);
    
    N=Nb.length();

    for (double i = 0; i < (N-1)/2; i++)
    {
        
        if(Nb[i]!=Nb[N-i-1]){
            flag=1;
            break;

        }
    }
    

    N=Na.length();

    for (double i = 0; i < (N-1)/2; i++)
    {
        
        if(Na[i]!=Na[N-i-1]){
            flag=1;
            break;

        }
    }
    if (flag==1)
    {
            cout<<"No";
    }else if (flag==0)
    {
        cout<<"Yes";
    }
    

Compiler output:
a.cc: In function 'int main()':
a.cc:57:6: error: expected '}' at end of input
   57 |     }
      |      ^
a.cc:4:11: note: to match this '{'
    4 | int main(){
      |           ^
Language: C++

#include<bits/stdc++.h>
#define endl '\n'
using namespace std;
int main(){
    ios::sync_with_stdio(false);
    cin.tie(0);
    string S,a,b;
  	cin >> S;
  	for(int i = 0; i < (S.length()-1)/2-1; i++) {
        a += S[i];
    }
	for(int i = (S.length()+3)/2-1; i < S.length(); i++){
      	b += S[i];
    }
    isPalindrome(S);
    isPalindrome(a);
    isPalindrome(b);
    cout << "Yes";
}
	void isPalindrome(char str[]) 
	{
    	int l = 0; 
    	int h = strlen(str) - 1; 
    	while (h > l) 
    	{ 
        	if (str[l++] != str[h--]) 
        	{ 
            	cout << "No";
            	return; 
        	} 
    	}
    }

Compiler output:
a.cc: In function 'int main()':
a.cc:15:5: error: 'isPalindrome' was not declared in this scope
   15 |     isPalindrome(S);
      |     ^~~~~~~~~~~~
Language: C++

//#include<bits/stdc++.h>
#include<math.h>
#include<string.h>
#include<stdio.h>
#include<ctype.h>
//using namespace std;
int main()
{
    char s[101];
    scanf("%s",s);
    int n = strlen(s);
    //cout<<n;
    int x = (n-1)/2;
    //cout<<x;
    char a[x],b[x];
    for(int i=0;i<x;i++)
    {
        a[i] = s[i];
        b[i] = s[x+1+i];
    }
    char r[101]; 
    char c[101];
    char d[101];
    strcpy(r,s);
    strcpy(c,a);
    strcpy(d,b);
    strrev(s);
    strrev(a);
    strrev(b);
    //printf("%s %s",a,b);
    if(strcmp(s,r)==0)
    {
        if(strcmp(a,c)==0)
        {
            if(strcmp(b,d)==0)
                printf("Yes");
            else
                printf("No");
        }
        else
            printf("No");
    }
    else
        printf("No");
    return 0;
}

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

#include <bits/stdc++.h>
using namespace std;
int main (){
int i;
int x=0;
char c;
string s;
cin>>s;
int l = s.length();
for(i=0;i<l/2;i++){
c=s[l-1-i];
if(s[i]==c)
x++;
}
for(i=0;i<l/4;i++){
c=s[(l-1)/2-i];
if(c==s[i])
x++;
c = s[l-1-i];
if(s[i+(l+3)/2]==c)
x++;
}

if(x==l/2*3&&l%2==1)
cout<<“Yes”<<endl;
else
cout<<“No”<<endl;
return 0;
}

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

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

bool check( string chkString) {
    

    string strFront;
    string strBack;
    string backReverse;

    int strSize = chkString.size();
    if ( strSize % 2 == 0  ) {
        strFront = chkString.substr( 0, strSize / 2);
        strBack = chkString.substr( strSize / 2  , strSize);
        std::reverse(strBack.begin() , strBack.end() );

        if (strFront == strBack) {
            return true;
        }
        else {
            return false;
        }

    } else {
        strFront = chkString.substr(0, (strSize - 1 )/ 2);
        strBack = chkString.substr( (strSize + 1) / 2, strSize);
        std::reverse(strBack.begin(), strBack.end());

        if (strFront == strBack) {
            return true;
        }
        else {
            return false;
        }
    }
    

}

int main(void) {
    string s;
    cin >> s;

    int strSize;
    strSize = s.size();

    string strFront;
    string strBack;
    strFront = s.substr(0, (strSize - 1) / 2);
    strBack = s.substr((strSize + 3) / 2 , strSize );

    bool fg;
    fg = check(s);
       
    
    if ( fg == true ) {
        cout << "yes";
    }
    else {
        cout << "no";
    }
    

}

Compiler output:
a.cc: In function 'bool check(std::string)':
a.cc:16:14: error: 'reverse' is not a member of 'std'
   16 |         std::reverse(strBack.begin() , strBack.end() );
      |              ^~~~~~~
a.cc:28:14: error: 'reverse' is not a member of 'std'
   28 |         std::reverse(strBack.begin(), strBack.end());
      |              ^~~~~~~
Language: C++

include <iostream>
using namespace std;

int main()
{
  char S[100];
  int N = 0;
  
  cin >> S;

  for(int i = 0; i < 100; ++i)
  {
    if(S[i] == "\0")
    {
      break;
    }

    N++;
  }

  int N1 = N;
  int N2 = (N - 1)/2;
  int N3start = (N + 3)/2;

  // 条件１
  for(int i = 0; i < (N1 - 1)/2; ++i)
  {
    if(S[i] != S[N-1-i])
    {
      cout << "No" << endl;
    }
  }
  
  // 条件2
  for(int i = 0; i < (N2 - 1)/2; ++i)
  {
    if(S[i] != S[N2-1-i])
    {
      cout << "NO" << endl;
    }
  }
  
  // 条件3
  int counter = 0;
  for(int i = N3start; i < (N - N3start)/2; ++i)
  {
    if(S[N3start - 1 + counter] != S[N - 1 - counter])
    {
      cout << "No" << endl;
    }

    counter++;
  }

  cout << "Yes" << endl;

  return 0;
}

Compiler output:
a.cc:1:1: error: 'include' does not name a type
    1 | include <iostream>
      | ^~~~~~~
a.cc: In function 'int main()':
a.cc:9:3: error: 'cin' was not declared in this scope
    9 |   cin >> S;
      |   ^~~
a.cc:13:13: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
   13 |     if(S[i] == "\0")
      |        ~~~~~^~~~~~~
a.cc:30:7: error: 'cout' was not declared in this scope
   30 |       cout << "No" << endl;
      |       ^~~~
a.cc:30:23: error: 'endl' was not declared in this scope
   30 |       cout << "No" << endl;
      |                       ^~~~
a.cc:39:7: error: 'cout' was not declared in this scope
   39 |       cout << "NO" << endl;
      |       ^~~~
a.cc:39:23: error: 'endl' was not declared in this scope
   39 |       cout << "NO" << endl;
      |                       ^~~~
a.cc:49:7: error: 'cout' was not declared in this scope
   49 |       cout << "No" << endl;
      |       ^~~~
a.cc:49:23: error: 'endl' was not declared in this scope
   49 |       cout << "No" << endl;
      |                       ^~~~
a.cc:55:3: error: 'cout' was not declared in this scope
   55 |   cout << "Yes" << endl;
      |   ^~~~
a.cc:55:20: error: 'endl' was not declared in this scope
   55 |   cout << "Yes" << endl;
      |                    ^~~~
Language: C++

#include<bits/stdc++.h>
using namespace std;
#define what_is(x) cerr<<#x <<" is "<<x<<endl;
#define ll long long 
#define gcd(a,b) __gcd(a,b)
#define pi 2*acos(0.0)
//use emplace_back() instead of push_back()
template<typename T>
void print(T t)
{
	for(const auto& e:t)cout<<e<<" ";
	cout<<endl;
}
bool isPalindrome(string str) 
{ 
    // Start from leftmost and rightmost corners of str 
    int l = 0; 
    int h = str.size() - 1; 
  
    // Keep comparing characters while they are same 
    while (h > l) 
    { 
        if (str[l++] != str[h--]) 
        { 
            return false; 
        } 
    } 
    return true;
} 
int main()
{
	ios::sync_with_stdio(0);
	cin.tie(0);
	cout.tie(0);
	#ifndef ONLINE_JUDGE    
    	freopen("input.txt", "r", stdin);    
    	freopen("output.txt", "w", stdout);
	#endif
	ll t,n,b,m;
	string s;
	cin>>s;
	n=s.size();
	if(!isPalindrome(s))cout<<"NO\n";
	else if(!isPalindrome(s.substr(0,((n-1)/2)))){cout<<"NO\n";}
	else if(!isPalindrome(s.substr(((n+3)/2)-1,n-(((n+3)/2))))cout<<"NO\n";
	else cout<<"YES\n";
	return 0;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:45:67: error: expected ';' before 'cout'
   45 |         else if(!isPalindrome(s.substr(((n+3)/2)-1,n-(((n+3)/2))))cout<<"NO\n";
      |                                                                   ^~~~
      |                                                                   ;
a.cc:46:9: error: expected primary-expression before 'else'
   46 |         else cout<<"YES\n";
      |         ^~~~
a.cc:45:80: error: expected ')' before 'else'
   45 |         else if(!isPalindrome(s.substr(((n+3)/2)-1,n-(((n+3)/2))))cout<<"NO\n";
      |                ~                                                               ^
      |                                                                                )
   46 |         else cout<<"YES\n";
      |         ~~~~
Language: C++

#include<bits/stdc++.h>
#define endl '\n'
using namespace std;
int main(){
    ios::sync_with_stdio(false);
    cin.tie(0);
    string S,a,b;
  	cin >> S;
  	for(int i = 0; i < (S.length()-1)/2-1; i++) {
        a += S[i];
    }
	for(int i = (S.length()+3)/2-1; i < S.length(); i++){
      	b += S[i];
    }
  	void isPalindrome(char str[]) 
	{
    	int l = 0; 
    	int h = strlen(str) - 1; 
    	while (h > l) 
    	{ 
        	if (str[l++] != str[h--]) 
        	{ 
            	cout << "No";
            	break;
        	} 
    	}
    }
    isPalindrome(S);
    isPalindrome(a);
    isPalindrome(b);
    cout << "Yes";
}

Compiler output:
a.cc: In function 'int main()':
a.cc:16:9: error: a function-definition is not allowed here before '{' token
   16 |         {
      |         ^
a.cc:28:5: error: 'isPalindrome' was not declared in this scope
   28 |     isPalindrome(S);
      |     ^~~~~~~~~~~~
Language: C++

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

typedef long long int ll;
typedef long int li;

const ll mod = 1000000007;
const ll inf = 1000000000000000000;

typedef vector<int> vi;
typedef vector<li> vli;
typedef vector<ll> vll;
typedef vector<string> vs;
typedef vector<vi> vvi;
typedef vector<vli> vvli;
typedef vector<vll> vvll;
typedef vector<vs> vvs;
typedef map<ll, ll> mll;
typedef map<ll, string> mls;
typedef map<string, ll> msl;

#pragma GCC optimize ("-O3")
#define FAST ios_base::sync_with_stdio(false); cin.tie(NULL); cout.tie(NULL); 
#define PI 3.14159265358979323846
#define pb push_back
#define mp make_pair
#define fs first
#define sec second
#define pq priority_queue
#define lb lower_bound
#define ub upper_bound
#define tol(s) transform(s.begin(), s.end(), s.begin(), ::tolower);
#define tou(s) transform(s.begin(), s.end(), s.begin(), ::toupper);
#define all(v) v.begin(), v.end()
#define FOR(i, j, k, in) for(li i=j; i<k; i+=in)
#define RFOR(i, j, k, de) for(li i=j; i>=k; i-=de)
#define rep(i,j,k) FOR(i, j, k, 1)
#define rrep(i,j,k) RFOR(i, j, k, 1)
#define repc(v) for(auto it=v.begin(); it!=v.end(); it++)
#define T ll t; cin>>t; while(t--)

int main(){
  FAST

  string s;
  cin>>s;
  int l=s.length();
  
  int f=0;
  int i=0,j=l-1;
  while(i<j){
  	if(s[i]!=s[j]){
    	f=1;
      break;
    }      
  }
  
  if(f==0){
    int a=(l-1)/2;
  int b=(l+3)/2-1;
  
  int f1=0,f2=0;
  int i=0,j=a-1;
  while(i<j){
  	if(s[i]!=s[j]){
    	f1=1;
      break;
    }      
  }
  
  int i=b,j=l-1;
  while(i<j){
  	if(s[i]!=s[j]){
    	f2=1;
      break;
    }      
  }
    
    if(f1==0 && f2==0) 
      cout<<"Yes";
    else cout<<"No";
  }
  
  else cout<<"No";
  
  
  return 0;
}








Compiler output:
a.cc: In function 'int main()':
a.cc:71:7: error: redeclaration of 'int i'
   71 |   int i=b,j=l-1;
      |       ^
a.cc:63:7: note: 'int i' previously declared here
   63 |   int i=0,j=a-1;
      |       ^
a.cc:71:11: error: redeclaration of 'int j'
   71 |   int i=b,j=l-1;
      |           ^
a.cc:63:11: note: 'int j' previously declared here
   63 |   int i=0,j=a-1;
      |           ^
Language: C

#include <stdio.h>

int		is_parindorm(char *str, int start, int end)
{
	while (start < end)
	{
		if (str[start] != str[end])
			return (0);
		start++;
		end--;
	}
	return (1);
}

int		main()
{
	char	*str;
	int		N, mid1, mid2;

	r = scanf("%s\n", str);
	if (r == -1)
		return (0);
	while (str[N])
		N++;
	N--;
	mid1 = (N - 1) / 2;
	mid2 = (N + 3) / 2;
	if (is_parindorm(str, 0, mid1) && is_parindorm(str, mid2, N) && is_parindorm(str, 0, N))
		printf("Yes\n");
	else
		printf("No\n");
	return (0);
}


Compiler output:
main.c: In function 'main':
main.c:20:9: error: 'r' undeclared (first use in this function)
   20 |         r = scanf("%s\n", str);
      |         ^
main.c:20:9: note: each undeclared identifier is reported only once for each function it appears in
Language: C++

#include<iostream>
using namespace std;
int main(){
    char S[99];
    cin>>S;
    int len;
    len=strlen(S);
    char S2[99];
    int j=len-1;
    int count=0;
    for(int i=0;i<len;i++){
        S2[i]=S[j];
        j--;
    }
    for(int k=0;k<len;k++){
        if(S[k]==S2[k]){
            count++;
        }
    }
    if(count==len){
        len=len/2;
        j=len-1;
        count=0;
        for(int i=0;i<len;i++){
            S2[i]=S[j];
            j--;
        }
        for(int k=0;k<len;k++){
            if(S[k]==S2[k]){
                count++;
            }
         }
        if(count==len){
            cout<<"Yes"<<endl;
            return 0;
        }
        cout<<"No"<<endl;
        return 0;
    }
    cout<<"No"<<endl;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:7:9: error: 'strlen' was not declared in this scope
    7 |     len=strlen(S);
      |         ^~~~~~
a.cc:2:1: note: 'strlen' is defined in header '<cstring>'; this is probably fixable by adding '#include <cstring>'
    1 | #include<iostream>
  +++ |+#include <cstring>
    2 | using namespace std;
Language: C++

#include<iostream>
#include<conio>
#include<string.h>
#include<stdio.h>
using namespace std;
int main()
{
char str[10];
int i,j,n,flag=0;
cout<<"Enter any string:"<<endl;
gets(str);
n=strlen(str);
for(i=0,j=n-1;i<=n/2;i++,j--)
{
if(str[i]!=str[j])
flag=1;
break;
}
if(flag==1)
{
cout<<"String is not Palindrome";
}
else
{
cout<<"String is Palindrome";
}
getch();
return 0;
}


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

#include <bits/stdc++.h>
using namespace std;
int hw(char *str)
{
	int i=0,j=0v;
	while(str[i]!='\0')
    i++;
    i--;
    for(;j<=i;i--,j++)
    {
    	if(str[i]!=str[j])
    	{
    		break;
    	}
    }
    if(j<=i)
    {
    	return 0;
    }
    else
    {
    	return 1;
    }
}
int main()
{
	char mainstr[200];
	scanf("%s",mainstr);
	int len=strlen(mainstr);
	char str1[200];
	int len1=(len-1)/2;
	for(int i=0;i<len1;i++)
	{
		str1[i]=mainstr[i];
	}
	int f1=0;
	int f2=0;
	char str2[200];
	int len3=(len+3)/2;
	//cout<<len3<<endl<<len<<endl;
	int j=0;
	for(int i=len3-1;i<len;i++)
	{
		str2[j]=mainstr[i];
		j++;
	}
	str2[j]='\0';
	if(hw(str1)==1)f1=1;
	if(hw(str2)==1)f2=1;
	//puts(str1);
	//puts(str2);
	//cout<<f1<<endl<<f2<<endl;
	if(f1==1&&f2==1)
	{
		cout<<"Yes"<<endl;		
	}
	else cout<<"No"<<endl;
	return 0;
}

Compiler output:
a.cc: In function 'int hw(char*)':
a.cc:5:19: error: unable to find numeric literal operator 'operator""v'
    5 |         int i=0,j=0v;
      |                   ^~
Language: C++

        #include<iostream>
        #include<bits/stdc++.h>
        using namespace std;
        #define size 100000
        #define NUM 998244353
        #define ll long long int
         
        int main()
        {
          int n;
          string arr;
          cin>>arr;
          n=arr.length();
          bool x=true;
          for(int i=0;i<n;i++)
          {
            if(arr[i]!=arr[n-1-i])
            {
        		x=false;
              	break;
            }
          }
           for(int i=0;i<(n-1)/2;i++)
          {
            if(arr[i]!=arr[((n-1)/2)-1-i])
            {
        		x=false;
              	break;
            }
          }
          if(x)
            cout<<"Yes"<<endl;
          else
            cout<<"No"<<endl;

Compiler output:
a.cc: In function 'int main()':
a.cc:34:30: error: expected '}' at end of input
   34 |             cout<<"No"<<endl;
      |                              ^
a.cc:9:9: note: to match this '{'
    9 |         {
      |         ^
Language: C++

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

int main(){
  string S;
  cin >> S;
  
  string temp;
  
  for(int i = 0; i < S.size(); i++){
    temp.(S.size() - i) = S.at(i);
  }
  
  if(temp == S)
    cout << "Yes" << endl;
  else
    cout << "No" << endl;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:11:10: error: expected unqualified-id before '(' token
   11 |     temp.(S.size() - i) = S.at(i);
      |          ^
Language: Java



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


public class TaskB
{

	public static void main(String[] args)throws Exception
	{
		Scanner sc = new Scanner(System.in);
		
		String a = sc.next();

		
		StringBuilder sb = new StringBuilder();
		
		sb.append(a);
		
		sb.reverse();
		
		
		if(a.equals(sb.toString()))
		{
			String b= a.substring(0,(a.length()/2));
			String c = a.substring((a.length()/2) + 1,a.length());
			if(b.equals(c))
			{
				System.out.println("Yes");
			}
			else 
			{
				System.out.println("No");
			}
			
		}
		else
		{
			System.out.println("No");
		}
		sc.close();
	}

}


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

#include<iostream>
#include<string.h>
#include<stdio.h>
using namespace std;
int main()
{
char str[10];
int i,j,n,flag=0;
cout<<"Enter any string:"<<endl;
gets(str);
n=strlen(str);
for(i=0,j=n-1;i<=n/2;i++,j--)
{
if(str[i]!=str[j])
flag=1;
break;
}
if(flag==1)
{
cout<<"String is not Palindrome";
}
else
{
cout<<"String is Palindrome";
}
getch();
return 0;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:10:1: error: 'gets' was not declared in this scope; did you mean 'getw'?
   10 | gets(str);
      | ^~~~
      | getw
a.cc:26:1: error: 'getch' was not declared in this scope; did you mean 'getc'?
   26 | getch();
      | ^~~~~
      | getc
Language: C++

#include <iostream>
#include <string>
#include <deque>
#include <cmath>

using namespace std;

bool exec(string s)
{
  string first(s.begin(), s.begin() + (s.size()) / 2);
  string second(s.begin() + (s.size() + 3) / 2 - 1, s.end());
  reverse(second.begin(), second.end());

  return first.compare(second) == 0;
}

int main()
{
  string s;

  cin >> s;

  string first(s.begin(), s.begin() + (s.size() - 1) / 2);
  string second(s.begin() + (s.size() + 3) / 2 - 1, s.end());

  if (!exec(s) || !exec(first) || !exec(second))
    cout << "No" << endl;
  else
    cout << "Yes" << endl;

  return 0;
}

Compiler output:
a.cc: In function 'bool exec(std::string)':
a.cc:12:3: error: 'reverse' was not declared in this scope
   12 |   reverse(second.begin(), second.end());
      |   ^~~~~~~
Language: C++

#include <bits/stdc++.h>
using namespace std;
#define rep(i,n) for(int i=0;i<(int)(n);i++)
#define all(v) v.begin(),v.end()
#define rall(v) v.rbegin(),v.rend()
typedef long long ll;
#define _GLIBCXX_DEBUG
int main()	{
  string s;
  int count=0;
  reverse(all(s));
  string srev=s;
  reverse(all(s));
  if(s==srev)
    count++;
  int n=s.size()
  int a=(n-1)/2-1;
  int b=(n+3)/2-1;
  string str1=s.substr(1,a);
  reverse(all(str1));
  string str11=str1;
  reverse(all(str1));
  if(str1==str11)
    count++;
  string str2=s.substr(b,n);
  reverse(all(str2));
  string str22=str2;
  reverse(all(str2));
  if(str2==str22)
    count++;
  
  if(count==3)
    cout<<"Yes"<<endl;
  else
    cout<<"No"<<endl;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:17:3: error: expected ',' or ';' before 'int'
   17 |   int a=(n-1)/2-1;
      |   ^~~
a.cc:19:26: error: 'a' was not declared in this scope
   19 |   string str1=s.substr(1,a);
      |                          ^
Language: C++

#include<bits/stdc++.h>
using namespace std;
bool is_palidrome(int s,int e,string str)
{
  int i=s,j=e;
  while(i<j)
  {
    if(str[i]!=str[j])
      return false;
    i++;
    j--;
  }
  return true;
}
int main()
{
  string str;
  cin>>str;
  int n=str.length();
  if(is_palidrome(0,(n-1)/2-1,str)&&is_palidrome(0,n-1,str))
    cout<<"Yes"<<endl;
  else
    cout<<"No"<<endl;
  return 0;

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

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

int main(){
  string S;
  cin >> S;
  
  string temp;
  
  for(int i = 0; i < S.size()){
    temp.(S.size() - i) = S.at(i)
  }
  
  if(temp == S)
    cout << "Yes" << endl;
  else
    cout << "No" << endl;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:10:30: error: expected ';' before ')' token
   10 |   for(int i = 0; i < S.size()){
      |                              ^
      |                              ;
a.cc:11:10: error: expected unqualified-id before '(' token
   11 |     temp.(S.size() - i) = S.at(i)
      |          ^
Language: C++

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

bool check( string chkString) {
    

    string strFront;
    string strBack;
    string backReverse;

    int strSize = chkString.size();
    if ( strSize % 2 == 0  ) {
        strFront = chkString.substr( 0, strSize / 2);
        strBack = chkString.substr( strSize / 2  , strSize);
        reverse(strBack.begin() , strBack.end() );

        if (strFront == strBack) {
            return true;
        }
        else {
            return false;
        }

    } else {
        strFront = chkString.substr(0, (strSize - 1 )/ 2);
        strBack = chkString.substr( (strSize + 1) / 2, strSize);
        reverse(strBack.begin(), strBack.end());

        if (strFront == strBack) {
            return true;
        }
        else {
            return false;
        }
    }
    

}

int main(void) {
    string s;
    cin >> s;

    int strSize;
    strSize = s.size();

    string strFront;
    string strBack;
    strFront = s.substr(0, (strSize - 1) / 2);
    strBack = s.substr((strSize + 3) / 2 , strSize );

    bool fg;
    fg = check(s);
       
    
    if ( fg == true ) {
        cout << "yes";
    }
    else {
        cout << "no";
    }
    

}

Compiler output:
a.cc: In function 'bool check(std::string)':
a.cc:16:9: error: 'reverse' was not declared in this scope
   16 |         reverse(strBack.begin() , strBack.end() );
      |         ^~~~~~~
a.cc:28:9: error: 'reverse' was not declared in this scope
   28 |         reverse(strBack.begin(), strBack.end());
      |         ^~~~~~~
Language: C++

#include<bits/stdc++.h>
using namespace std;
int main()
{
	int l,m,flag=0;

	string s;
	
		cin>>s;
		l=s.length();
		flag=0;
		int m=l/2;
		for(int j=0;j<m;j++)
		{
			if(s[j]!=s[l-j-1])
				flag=1;
		}
		int x,y,q,r;
      x=(l-1)/2;
      q=x/2;
      for(int j=0;j<q;j++)
		{
			if(s[j]!=s[l-j-1])
				flag=1;
		}
      y=(l+3)/2;
      r=y/2;
      for(int j=r;j<l;j++)
		{
			if(s[j]!=s[l-j-1])
				flag=1;
		}
      if(flag==1)
        cout<<"No";
  else
    cout<<"Yes";
}

Compiler output:
a.cc: In function 'int main()':
a.cc:12:21: error: redeclaration of 'int m'
   12 |                 int m=l/2;
      |                     ^
a.cc:5:15: note: 'int m' previously declared here
    5 |         int l,m,flag=0;
      |               ^
Language: C++

#include<iostream>
#include<conio.h>
#include<string.h>
#include<stdio.h>
using namespace std;
int main()
{
char str[10];
int i,j,n,flag=0;
cout<<"Enter any string:"<<endl;
gets(str);
n=strlen(str);
for(i=0,j=n-1;i<=n/2;i++,j--)
{
if(str[i]!=str[j])
flag=1;
break;
}
if(flag==1)
{
cout<<"String is not Palindrome";
}
else
{
cout<<"String is Palindrome";
}
getch();
return 0;
}


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

#include<bits/stdc++.h>
#define endl '\n'
using namespace std;
int main(){
    ios::sync_with_stdio(false);
    cin.tie(0);
    string S,a,b;
  	cin >> S;
  	for(int i = 0; i < (S.length()-1)/2-1; i++) {
        a += S[i];
    }
	for(int i = (S.length()+3)/2-1; i < S.length(); i++){
      	b += S[i];
    }
  	void isPalindrome(char str[]) 
	{
    	int l = 0; 
    	int h = strlen(str) - 1; 
    	while (h > l) 
    	{ 
        	if (str[l++] != str[h--]) 
        	{ 
            	cout << "No";
            	return; 
        	} 
    	}
    }
    isPalindrome(S);
    isPalindrome(a);
    isPalindrome(b);
    cout << "Yes";
}

Compiler output:
a.cc: In function 'int main()':
a.cc:16:9: error: a function-definition is not allowed here before '{' token
   16 |         {
      |         ^
a.cc:28:5: error: 'isPalindrome' was not declared in this scope
   28 |     isPalindrome(S);
      |     ^~~~~~~~~~~~
Language: C++

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

void main() 
{ 
char str[10]; 
int i,j,n,flag=0; 
cout<<"Enter any string:"<<endl; 
gets(str); 
n=strlen(str); 
for(i=0,j=n-1;i<=n/2;i++,j--) 
{ 
if(str[i]!=str[j]) 
flag=1; 
break; 
} 
if(flag==1) 
{
cout<<"String is not Palindrome"; 
}
else
{
cout<<"String is Palindrome"; 
}
getch(); 
}

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

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

void func() {
  string S;
  cin >>S;
  int N =S.size();
  vector<char>bun(N);
  for (int i = 0; i < N; i++) {
    bun.at(i) = S.at(i);
}
  int count=0;
  for (int i = 0; i < N/2; i++) {
  if(bun.at(i)==bun.at(N-1-i)){continue;}
    else {cout<<"No"<<endl;
      return;}
    if(bun.at(i)==bun.at(N/2-1-i)){continue;}
       else{cout<<"No"<<endl;
      return;}
       if(bun.at(N/2+1+i)==bun.at(N-1-i)){count++;
         continue;}
          else{cout<<"No"<<endl;
      return;}
          }
          }
          cout<<"Yes"<<endl;
          }
int main() {
  func();
}


Compiler output:
a.cc:26:11: error: 'cout' does not name a type
   26 |           cout<<"Yes"<<endl;
      |           ^~~~
a.cc:27:11: error: expected declaration before '}' token
   27 |           }
      |           ^
Language: Java

import java.util.*;
public class rabinkarp  
{ 
    static boolean isPalindrome(String str)
    {
      	StringBuilder sb = new StringBuilder(str);
      	String st = sb.reverse().toString();
      	return st.equals(str);
    }  
    public static void main(String[] args) 
    { 
        Scanner sc =new Scanner(System.in);
        String str = sc.next();
        int N = str.length();
      	String s = str + " ";
      	int q =(N-1)/2 , p = (N+3)/2;
        if(isPalindrome(str) && isPalindrome(str.substring(0,q)) && isPalindrome(s.substring(p-1,str.length())))
        {
          	System.out.println("Yes");
        }
      else
      {
        System.out.println("No");
      }
    } 
} 

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