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

import java.io.*;
class Palin
{
  public static void main()throws IOException
  {
    String s,s1="",s2="",s3="",s4"",s5=""; 
    int i,j=0;
    BufferdReader input=new BufferedReader(new InputStreamReaader(System.in));
    s=input.readLine();
    l=s.length();
    l1=(l-1)/2;
    l2=(l+3)/2;
    s2=s.substring(0,l1);
    s3=s.substring(l2-1);
    for(i=0;i<l;i++)
    {
      if(j<l1)
      {
        s4=s2.charAt(j)+s4;
      }
      if(j<l2)
      {
        s5=s3.charAt(j)+s5;
      }
      s1=s.charAt(i)+s1;
      j++;
    }
    if(s.equals(s1) && s2.equals(s4) && s3.equals(s5))
      System.out.println("Yes");
    else
      System.out.println("No");
  }
}

Compiler output:
Main.java:6: error: ';' expected
    String s,s1="",s2="",s3="",s4"",s5=""; 
                                 ^
1 error
Language: C++

https://atcoder.jp/contests/abc159/submit?taskScreenName=abc159_b#include<bits/stdc++.h>
using namespace std;

bool is_palin(string s){
	int n=s.length();
	for(int ii=0;ii<n/2;ii++){
		if(s[ii]!=s[n-ii-1]) return false;
	}
	return true;
}
int main(){
	
	string s; cin>>s;
	string s1="",s2="";
	int n = s.size();
	int f = (n-1)/2;
	int e = (n+3)/2;
	for(int i=0;i<f;i++) { s1+=s[i]; }
	for(int i=e-1;i<n;i++) { s2+=s[i]; }
	//cout<<s1<<" "<<s2<<endl;
	if(is_palin(s) && is_palin(s1) && is_palin(s2)) cout<<"Yes";
	else  cout<<"No";
	return 0;
}

Compiler output:
a.cc:1:1: error: 'https' does not name a type
    1 | https://atcoder.jp/contests/abc159/submit?taskScreenName=abc159_b#include<bits/stdc++.h>
      | ^~~~~
a.cc:4:15: error: 'string' was not declared in this scope
    4 | bool is_palin(string s){
      |               ^~~~~~
a.cc: In function 'int main()':
a.cc:13:9: error: 'string' was not declared in this scope
   13 |         string s; cin>>s;
      |         ^~~~~~
a.cc:13:19: error: 'cin' was not declared in this scope
   13 |         string s; cin>>s;
      |                   ^~~
a.cc:13:24: error: 's' was not declared in this scope
   13 |         string s; cin>>s;
      |                        ^
a.cc:14:15: error: expected ';' before 's1'
   14 |         string s1="",s2="";
      |               ^~~
      |               ;
a.cc:18:32: error: 's1' was not declared in this scope
   18 |         for(int i=0;i<f;i++) { s1+=s[i]; }
      |                                ^~
a.cc:19:34: error: 's2' was not declared in this scope
   19 |         for(int i=e-1;i<n;i++) { s2+=s[i]; }
      |                                  ^~
a.cc:21:20: error: 'is_palin' cannot be used as a function
   21 |         if(is_palin(s) && is_palin(s1) && is_palin(s2)) cout<<"Yes";
      |            ~~~~~~~~^~~
a.cc:21:36: error: 's1' was not declared in this scope
   21 |         if(is_palin(s) && is_palin(s1) && is_palin(s2)) cout<<"Yes";
      |                                    ^~
a.cc:21:38: error: 'is_palin' cannot be used as a function
   21 |         if(is_palin(s) && is_palin(s1) && is_palin(s2)) cout<<"Yes";
      |                                      ^
a.cc:21:52: error: 's2' was not declared in this scope
   21 |         if(is_palin(s) && is_palin(s1) && is_palin(s2)) cout<<"Yes";
      |                                                    ^~
a.cc:21:54: error: 'is_palin' cannot be used as a function
   21 |         if(is_palin(s) && is_palin(s1) && is_palin(s2)) cout<<"Yes";
      |                                                      ^
a.cc:21:57: error: 'cout' was not declared in this scope
   21 |         if(is_palin(s) && is_palin(s1) && is_palin(s2)) cout<<"Yes";
      |                                                         ^~~~
a.cc:22:15: error: 'cout' was not declared in this scope
   22 |         else  cout<<"No";
      |               ^~~~
Language: C++

#include <iostream>

using namespace std;

int main(){
  int S;
  
  cin>>s;
  
  if s=storong;
    cout<<yes;
  
  else if s=otherwise;
    cout<<no;
  return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:8:8: error: 's' was not declared in this scope
    8 |   cin>>s;
      |        ^
a.cc:10:6: error: expected '(' before 's'
   10 |   if s=storong;
      |      ^
      |      (
a.cc:11:11: error: 'yes' was not declared in this scope
   11 |     cout<<yes;
      |           ^~~
a.cc:13:3: error: 'else' without a previous 'if'
   13 |   else if s=otherwise;
      |   ^~~~
a.cc:13:11: error: expected '(' before 's'
   13 |   else if s=otherwise;
      |           ^
      |           (
a.cc:14:11: error: 'no' was not declared in this scope
   14 |     cout<<no;
      |           ^~
Language: C

#include<stdio.h>
#include<string.h>
int main()
{
  int i,flg1=0,flg2=0,flg3=0;
  char p[10000];
  gets(p);
  for(i=0;i<strlen(p);i++)
  {
  	if(p[i]!=p[strlen(p)-1-i])
      break;
  }
  if(i==strlen(p))
    flg1=1;
  for(i=0;i<(strlen(p)-1)/2;i++)
  {
  	if(p[i]!=p[(strlen(p)-1)/2-i])
      break;
  }
  if(i==(strlen(p)-1)/2)
    flg2=1;
  for(i=0;i<(strlen(p)-1)/2;i++)
  {
  	if(p[(strlen(p)+1)/2+i]!=p[strlen(p)-1-i];
      break;
  }
  if(i==(strlen(p)-1)/2)
    flg3=1;
  if(flg1==1&&flg2==1&&flg3==1)
       	printf("Yes");
   else
       	printf("No");
    return 0;
}

Compiler output:
main.c: In function 'main':
main.c:7:3: error: implicit declaration of function 'gets'; did you mean 'fgets'? [-Wimplicit-function-declaration]
    7 |   gets(p);
      |   ^~~~
      |   fgets
main.c:24:50: error: expected ')' before ';' token
   24 |         if(p[(strlen(p)+1)/2+i]!=p[strlen(p)-1-i];
      |           ~                                      ^
      |                                                  )
main.c:26:3: error: expected expression before '}' token
   26 |   }
      |   ^
Language: Java

import java.util.*;
import java.util.stream.Stream;

public class Main {
	public static void main(String[] args) {
		Scanner sc = new Scanner(System.in);
		String S = sc.nextLine();
		if (checkReverse(S)) {
			if (checkReverse(S.substring((S.length() + 1) / 2))) {
				System.out.println("Yes");
				return;
			}
		}
		System.out.println("No");
	}

	private static boolean checkReverse(String S) {
		List<String> Slist = Stream.of(S.split("")).collect(ArrayList::new, ArrayList::add, ArrayList::addAll);
		Collections.reverse(Slist);
		String reverseS = Slist.stream().collect(StringBuilder::new, StringBuilder::append, StringBuilder::append);
		return reverseS.equals(S);
	}
}

Compiler output:
Main.java:20: error: incompatible types: inference variable R has incompatible bounds
		String reverseS = Slist.stream().collect(StringBuilder::new, StringBuilder::append, StringBuilder::append);
		                                        ^
    upper bounds: String,Object
    lower bounds: StringBuilder
  where R,T are type-variables:
    R extends Object declared in method <R>collect(Supplier<R>,BiConsumer<R,? super T>,BiConsumer<R,R>)
    T extends Object declared in interface Stream
1 error
Language: Java

import java.util.Scanner;

public class String_Palindrome {
	static Scanner scn = new Scanner(System.in);

	public static void main(String[] args) {
		String str = scn.next();
		boolean Fp = ispalindrome(str);
		if (Fp) {
			boolean Sp = ispalindrome(str.substring(0, str.length() / 2 - 1));
			if (Sp) {
				boolean Tp = ispalindrome(str.substring((str.length() + 3) / 2 - 1));
				if (Tp) {
					System.out.println("Yes");
				} else {
					System.out.println("No");
				}
			} else {
				System.out.println("No");
			}

		} else
			System.out.println("No");

	}

	public static boolean ispalindrome(String str) {
		for (int i = 0; i < str.length() / 2; i++) {
			if (str.charAt(i) != str.charAt(str.length() - 1 - i))
				return false;
		}
		return true;
	}
}


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

#include <iostream>
#include <chrono>
#include <cmath>

using namespace std;

char str[100];
int n;

int main()
{
	cin.getline(str, 100);
	n = strlen(str);

	int l1 = 0, r1 = (n - 1) / 2;
	int l2 = (n + 3) / 2, r2 = n;
	bool flag = true; 

	for (int i = l1; i < r1 / 2; i++)
	{
		if (str[i] != str[r1 - i - 1])
		{
			flag = false;
			break;
		}
	}
	
	for (int i = l2; i < r2; i++)
	{
		if (str[i] != str[r2 - i - 1])
		{
			flag = false;
			break;
		}
	}

	cout << (flag == true ? "Yes\n" : "No\n");
	return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:13:13: error: 'strlen' was not declared in this scope
   13 |         n = strlen(str);
      |             ^~~~~~
a.cc:4:1: note: 'strlen' is defined in header '<cstring>'; this is probably fixable by adding '#include <cstring>'
    3 | #include <cmath>
  +++ |+#include <cstring>
    4 |
Language: C++

#incldue<bits/stdc++.h>
using namespace std;
int flag = 0;
int main() {
	char s[100000];
	cin >> s + 1;
	int n = strlen(s + 1);
	for (int i = 1; i <= n / 2; i++) {
		if (s[i] != s[n - i+1]) flag = 1;
	}
	for (int i = 1; i <= (n - 1) / 4; i++) {
		if (s[i] != s[(n - 1) / 2 - i+1]) flag = 1;
	}
	for (int i = (n + 3) / 2, j = 1; i <= (n + (n + 3) / 2) / 2; i++, j++) {
		if (s[i] != s[n - j+1]) flag = 1;
	}
	if (!flag) puts("Yes");
	else puts("No");
}

Compiler output:
a.cc:1:2: error: invalid preprocessing directive #incldue; did you mean #include?
    1 | #incldue<bits/stdc++.h>
      |  ^~~~~~~
      |  include
a.cc: In function 'int main()':
a.cc:6:9: error: 'cin' was not declared in this scope
    6 |         cin >> s + 1;
      |         ^~~
a.cc:1:1: note: 'std::cin' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>'
  +++ |+#include <iostream>
    1 | #incldue<bits/stdc++.h>
a.cc:7:17: error: 'strlen' was not declared in this scope
    7 |         int n = strlen(s + 1);
      |                 ^~~~~~
a.cc:1:1: note: 'strlen' is defined in header '<cstring>'; this is probably fixable by adding '#include <cstring>'
  +++ |+#include <cstring>
    1 | #incldue<bits/stdc++.h>
a.cc:17:20: error: 'puts' was not declared in this scope
   17 |         if (!flag) puts("Yes");
      |                    ^~~~
a.cc:18:14: error: 'puts' was not declared in this scope
   18 |         else puts("No");
      |              ^~~~
Language: C++

/* Sometimes you win , sometimes you learn . */
/* Sometimes you win , sometimes you learn . */
#include <bits/stdc++.h>
#define lp(i , N) for(ll i = 0; i < ll (N) ; i++)
#define FAST ios_base::sync_with_stdio(0),cin.tie(0),cout.tie(0);
#define debug(x) cout<<" [ " << #x << " is: " << x << " ] "<<endl;
using namespace std;
typedef long long ll;
typedef long double ld;
const long double EPS = 1e-6;
const long double pi = acos(-1);
isPalindrome(ll L , ll R , string s){
    for(ll i = L , j = R; i < j ; i++ , j--){
            if(s[i] != s[j])return false;
    }
    return true;
}
int main(){
    FAST
    string s;
    cin >> s;
    int n = (int) s.size();
    if(((n - 1) / 2) % 2 == 0){
        bool b1 = isPalindrome(0 , (n / 2) - 1 , s) , b2 = isPalindrome((n / 2) + 1 , n - 1 , s);
        if(b1 && b2) cout << "Yes" << endl;
        else cout << "No" << endl;
    }
    else {
        bool b1 = isPalindrome(0 , (n / 2) - 1 , s) , b2 = isPalindrome((n / 2) + 1 , n - 1 , s);
        if(b1 && b2) cout << "Yes" << endl;
        else cout << "No" << endl;
    }
    return 0 ;
    }
/*
[#]=============================================================[#]
         ___    ____              ____          ___ _
        |_ _|  / ___|__ _ _ __   |  _ \  ___   |_ _| |_
         | |  | |   / _` | '_ \  | | | |/ _ \   | || __|
         | |  | |__| (_| | | | | | |_| | (_) |  | || |_
        |___|  \____\__,_|_| |_| |____/ \___/  |___|\__|
                     it's just about time

[#]=============================================================[#]
*/


Compiler output:
a.cc:12:1: error: ISO C++ forbids declaration of 'isPalindrome' with no type [-fpermissive]
   12 | isPalindrome(ll L , ll R , string s){
      | ^~~~~~~~~~~~
Language: C++

S = gets.chomp
N = (S.size+1) / 2
M = (N+1) / 2
x = M.even?
x &&= S[0,N-1] == S[N,N-1].reverse
x &&= S[0,M-1] == S[M,M-1].reverse
puts x ? :Yes : :No


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

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

int main(void) {
	string S;
	string frontS, backS, rFrontS, rBackS;
	cin >> S;
	rFrontS = S.substr(0, (S.size() - 1) / 2);
	frontS = rFrontS;
	reverse(rFrontS.begin(), rFrontS.end());
	rBackS = S.substr((S.size() + 3) / 2 - 1);
	backS = rBackS;
	reverse(rBackS.begin(), rBackS.end());
	if (frontS == rFrontS && backS == rBackS) {
		cout << "Yes" << endl;
	}
	else {
		cout << "No" << endl;
	}
	return 0;
}

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

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

bool kaibun(string s) {
  return s == reverse(s.begin(), s.end());
}

int main() {
  string s;
  cin >> s;
  
  bool y = 0;
  if (kaibun(s)) {
    int n = (s.size() - 1) / 2;
    if (kaibun(s.substr(0, n) && kaibun(s.size() - n, n))) {
      y = 1;
    }
  }
  cout << (y ? "Yes" : "No") << endl;
}


Compiler output:
a.cc: In function 'bool kaibun(std::string)':
a.cc:6:15: error: 'reverse' was not declared in this scope
    6 |   return s == reverse(s.begin(), s.end());
      |               ^~~~~~~
a.cc: In function 'int main()':
a.cc:16:50: error: could not convert '(s.std::__cxx11::basic_string<char>::size() - ((std::__cxx11::basic_string<char>::size_type)n))' from 'std::__cxx11::basic_string<char>::size_type' {aka 'long unsigned int'} to 'std::string' {aka 'std::__cxx11::basic_string<char>'}
   16 |     if (kaibun(s.substr(0, n) && kaibun(s.size() - n, n))) {
      |                                         ~~~~~~~~~^~~
      |                                                  |
      |                                                  std::__cxx11::basic_string<char>::size_type {aka long unsigned int}
Language: Java

import java.util.Scanner;
class Main{
  public static void main(String[] args){
    Scanner sc = new Scanner(System.in);
    char[] input = sc.next().toCharArary();
    int n = input.length;
    boolean bl = true;
    for(int i = 0; i < (n - 1) / 2; i++){
      bl &= (input[i] == input[n - 1 - i]);
    }
    for(int i = 0; i < (n - 1) / 4; i++){
      bl &= (input[i] == input[(n - 1) / 2 - 1 -i]);
      
    }
    if(bl){
      System.out.println("Yes");
    }else{
      System.out.println("No");
    }
    
  }
} 

Compiler output:
Main.java:5: error: cannot find symbol
    char[] input = sc.next().toCharArary();
                            ^
  symbol:   method toCharArary()
  location: class String
1 error
Language: C++

#include<iostream>
using namespace std;

bool kaibun(string s) {
  return s == reverse(s.begin(), s.end());
}

int main() {
  string s;
  cin >> s;
  
  bool y = 0;
  if (kaibun(s)) {
    int n = (s.size() - 1) / 2;
    if (kaibun(s.substr(0, n) && kaibun(s.size() - n, n))) {
      y = 1;
    }
  }
  cout << (y ? "Yes" : "No") << endl;
}


Compiler output:
a.cc: In function 'bool kaibun(std::string)':
a.cc:5:15: error: 'reverse' was not declared in this scope
    5 |   return s == reverse(s.begin(), s.end());
      |               ^~~~~~~
a.cc: In function 'int main()':
a.cc:15:50: error: could not convert '(s.std::__cxx11::basic_string<char>::size() - ((std::__cxx11::basic_string<char>::size_type)n))' from 'std::__cxx11::basic_string<char>::size_type' {aka 'long unsigned int'} to 'std::string' {aka 'std::__cxx11::basic_string<char>'}
   15 |     if (kaibun(s.substr(0, n) && kaibun(s.size() - n, n))) {
      |                                         ~~~~~~~~~^~~
      |                                                  |
      |                                                  std::__cxx11::basic_string<char>::size_type {aka long unsigned int}
Language: C++

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

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


Compiler output:
a.cc: In function 'int main()':
a.cc:8:3: error: expected ',' or ';' before 'for'
    8 |   for (int i = 0; i < N - i; i++){
      |   ^~~
a.cc:8:19: error: 'i' was not declared in this scope
    8 |   for (int i = 0; i < N - i; i++){
      |                   ^
Language: C++

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

int judge(int m,int n,char s[])
{
    m--;n--;
    int i,j;
    for(i=m,j=n;j>i;i++,j--)
        if(s[i]!=s[j]) return 0;
    return 1;

}

int main()
{
    char s[100];
    gets(s);
    int m=1,n=strlen(s);
    if(judge(m,n,s)*judge(m,(n-1)/2,s)*judge((n+3)/2,n,s)) cout<<"Yes"<<endl;
    else cout<<"No"<<endl;

   return 0;
}


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

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

public class problemB {
    public static void main(String[] args) throws IOException {
        BufferedReader reader = new BufferedReader(new InputStreamReader(System.in));
        String input = reader.readLine();
        int length = input.length();
        int latter = (length + 3) / 2 ;
        int i = 0;
        for (i = 0; i < length / 2;i++) {
            if (input.charAt(i) != input.charAt(input.length() - 1 - i)) {
                break;

            }
            if (i < (length) / 2) {
                if (input.charAt(i) != input.charAt((length) / 2 - 1 -  i)) {

                    break;
                }
            }
            if (i < (length - latter) / 2) {
                if (input.charAt(length - i - 1) != input.charAt(latter + i - 1)) {
                    break;
                }
            }
        }
        if (i == length / 2) {
            System.out.println("YES");
        } else {
            System.out.println("NO");
        }
    }
}


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

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

Compiler output:
a.cc: In function 'int main()':
a.cc:21:5: error: return-statement with no value, in function returning 'int' [-fpermissive]
   21 |     return;
      |     ^~~~~~
a.cc:25:5: error: return-statement with no value, in function returning 'int' [-fpermissive]
   25 |     return ;
      |     ^~~~~~
Language: Java

import java.util.Scanner;
class Main{
  public static void main(String[] args){
    Scanner sc = new Scanner(System.in);
    char[] input = sc.next().toCharArrary();
    int le = input.length;
    boolean bl = true;
    for(int i = 0; i < (n - 1) / 2; i++){
      bl &= (input[i] == input[n - 1 - i]);
    }
    for(int i = 0; i < (n - 1) / 4; i++){
      bl &= (input[i] == input[(n - 1) / 2 - 1 -i]);
      
    }
    if(bl){
      System.out.println("Yes");
    }else{
      System.out.println("No");
    }
    
  }
} 

Compiler output:
Main.java:5: error: cannot find symbol
    char[] input = sc.next().toCharArrary();
                            ^
  symbol:   method toCharArrary()
  location: class String
Main.java:8: error: cannot find symbol
    for(int i = 0; i < (n - 1) / 2; i++){
                        ^
  symbol:   variable n
  location: class Main
Main.java:9: error: cannot find symbol
      bl &= (input[i] == input[n - 1 - i]);
                               ^
  symbol:   variable n
  location: class Main
Main.java:11: error: cannot find symbol
    for(int i = 0; i < (n - 1) / 4; i++){
                        ^
  symbol:   variable n
  location: class Main
Main.java:12: error: cannot find symbol
      bl &= (input[i] == input[(n - 1) / 2 - 1 -i]);
                                ^
  symbol:   variable n
  location: class Main
5 errors
Language: C++

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


int main() {
    string s;
    cin >> s;
    int n = s.size();
    if(n == 3){
        cout << "Yes"
        return 0;
    }
    int first = ((n-1)/2);
    int second = ((n+3)/2) -1 ;

    string fir = s.substr(0, first);
    string sec = s.substr(second,n);

    string tempf = fir;
    string temps = sec;


    reverse(fir.begin(), fir.end());
    reverse(sec.begin(), sec.end());


    if(tempf == fir){
        if(temps == sec){
            cout<<"Yes";
        }else{
            cout<<"No";
        }
    }else{
        cout<<"No";
    }


    return 0;
}


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

#include<bits/stdc++.h>
//#include <boost/multiprecision/cpp_int.hpp> 
//using namespace boost::multiprecision; 
using namespace std;
#define ll long long int
#define ld long long double
#define vi vector<int>
#define vl vector<ll>
#define pi pair<int, int>
#define pl pair<ll, ll>
#define pb push_back
#define pf push_front
#define pob pop_back
#define pof pop_front
#define nl '\n'
#define mp make_pair
#define debug1(x) cout <<#x<<" "<<x<<'\n';
#define debug2(x,y) cout <<#x<<" "<<x <<" "<<#y<<" "<<y <<'\n';
#define debug3(x,y,z) cout<<#x<<" "<<x<<" "<<#y<<" "<<y<<" "<<#z<<" "<<z<<'\n';
#define fi first
#define se second
#define boost ios_base::sync_with_stdio(false);cin.tie(NULL);cout.tie(NULL);
#define inf 1e18
const int mod = (int)1e9+7;
pair<ll,ll>s4[4]={{-1,0},{1,0},{0,-1},{0,1}};
pair<ll,ll>s8[8]={{-1,-1},{-1,0},{-1,1},{0,-1},{0,1},{1,1},{1,0},{1,-1}};
bool isPalindrome(char str[]) 
{ 
    // Start from leftmost and rightmost corners of str 
    int l = 0; 
    int h = strlen(str) - 1; 
  
    // Keep comparing characters while they are same 
    while (h > l) 
    { 
        if (str[l++] != str[h--]) 
        { 
           return false;
        } 
    } 
    return true;
} 
  
void solve() {
	char s[201],a[201],b[201];
	gets(s);
	int n = strlen(s);
	int i;
	for(i=0;i<=(n-3)/2;i++) {
		a[i]=s[i];
	}
	a[i]='\0';
	int j=0;
	for(i=(n+1)/2;i<n;i++) {
		b[j++]=s[i];
	}
	b[j]='\0';
	
	if(isPalindrome(s) && isPalindrome(a) && isPalindrome(b)) {
		cout << "Yes\n";	
	}
	else{
		cout << "No"<<endl;
	}
}

signed main() {
	boost;
	solve();
}

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

#include<iostream>
using namespace std;
int main(){
  int n,i,cnt=0;
  char s[99];
  cin >> s;
  n=strlen(s);
  for(i=0; i<n/2; i++){
    if(s[i]!=s[n-i-1]){
      // cout << "No" << endl;
      cnt++;
    }
  }
  for(i=0; i<(n-1)/2; i++){
    if(s[i]!=s[(n-1)/2 -i-1]){
      // cout << "No" << endl;
      cnt++;
    }
  }
  for(i=(n+3)/2 +1; i<n; i++){
    if(s[i]!=s[n-i-1]){
      // cout << "No" << endl;
      cnt++;
    }
  }
  if(cnt>0){
    cout << "No" << endl;
  }
  else{
    cout << "Yes" << endl;
  }
  return 0;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:7:5: error: 'strlen' was not declared in this scope
    7 |   n=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 <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 _GLIBCXX_DEBUG
int main() {
    string w;
    cin>>w;
    int s=w.size();
    int b=1;
    rep(i,n/2){
        if (s.at(i)!=s.at(n-1-i)){
            b=0;
        }
    }
    rep(i,n/4){
        if (s.at(i)!=s.at((n-1)/2-i-1)){
            b=0;
        }
    }
    rep(i,n/4){
        if (s.at(n-1-i)!=s.at((n+3)/2-1+i)){
            b=0;
        }
    }
    if (b==1){
        cout<<"Yes"<<endl;
    }
    else{
        cout<<"No"<<endl;
    }


    return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:13:11: error: 'n' was not declared in this scope
   13 |     rep(i,n/2){
      |           ^
a.cc:5:45: note: in definition of macro 'rep'
    5 | #define rep(i, n) for (int i = 0; i < (int)(n); i++)
      |                                             ^
a.cc:14:15: error: request for member 'at' in 's', which is of non-class type 'int'
   14 |         if (s.at(i)!=s.at(n-1-i)){
      |               ^~
a.cc:14:24: error: request for member 'at' in 's', which is of non-class type 'int'
   14 |         if (s.at(i)!=s.at(n-1-i)){
      |                        ^~
a.cc:18:11: error: 'n' was not declared in this scope
   18 |     rep(i,n/4){
      |           ^
a.cc:5:45: note: in definition of macro 'rep'
    5 | #define rep(i, n) for (int i = 0; i < (int)(n); i++)
      |                                             ^
a.cc:19:15: error: request for member 'at' in 's', which is of non-class type 'int'
   19 |         if (s.at(i)!=s.at((n-1)/2-i-1)){
      |               ^~
a.cc:19:24: error: request for member 'at' in 's', which is of non-class type 'int'
   19 |         if (s.at(i)!=s.at((n-1)/2-i-1)){
      |                        ^~
a.cc:23:11: error: 'n' was not declared in this scope
   23 |     rep(i,n/4){
      |           ^
a.cc:5:45: note: in definition of macro 'rep'
    5 | #define rep(i, n) for (int i = 0; i < (int)(n); i++)
      |                                             ^
a.cc:24:15: error: request for member 'at' in 's', which is of non-class type 'int'
   24 |         if (s.at(n-1-i)!=s.at((n+3)/2-1+i)){
      |               ^~
a.cc:24:28: error: request for member 'at' in 's', which is of non-class type 'int'
   24 |         if (s.at(n-1-i)!=s.at((n+3)/2-1+i)){
      |                            ^~
Language: C++

#include "iostream"

using namespace std;

int Check(string s){
	string s1 = s;
	reverse(s.begin(),s.end());
	if(s == s1){
		return 1;
	}
	return 0;
}

int main(){
	string S;
	cin >> S;
	
	string S1, S2;
	int l = S.length();
	S1 = S.substr(0,(l-1)/2);
	S2 = S.substr((l+3)/2-1);
	//cout << S1 << endl;
	//cout << S2 << endl;
	if(Check(S)&&Check(S1)&&Check(S2)){
		cout << "Yes"<< endl;
	}
	else cout << "No" << endl;
	
	return 0;
}


Compiler output:
a.cc: In function 'int Check(std::string)':
a.cc:7:9: error: 'reverse' was not declared in this scope
    7 |         reverse(s.begin(),s.end());
      |         ^~~~~~~
Language: C++

#include <iostream>
#include <string>
#include <algorithm>
#include <vector>
using namespace std;
#define int long long int

signed main(){
    string s;
    int s_center = (s.length() + 1)/2;
    string mae = s.substr(s_center-1);
    string usiro = s.substr(s_center + 1, (s.length/2));
    if(mae == usiro){
        cout << "Yes" << endl;
    }else{
        cout << "No" << endl;
    }
}

Compiler output:
a.cc: In function 'int main()':
a.cc:12:46: error: invalid use of member function 'std::__cxx11::basic_string<_CharT, _Traits, _Alloc>::size_type std::__cxx11::basic_string<_CharT, _Traits, _Alloc>::length() const [with _CharT = char; _Traits = std::char_traits<char>; _Alloc = std::allocator<char>; size_type = long unsigned int]' (did you forget the '()' ?)
   12 |     string usiro = s.substr(s_center + 1, (s.length/2));
      |                                            ~~^~~~~~
      |                                                    ()
Language: C++

#include<bits/stdc++.h>
//#include <boost/multiprecision/cpp_int.hpp> 
//using namespace boost::multiprecision; 
using namespace std;
#define ll long long int
#define ld long long double
#define vi vector<int>
#define vl vector<ll>
#define pi pair<int, int>
#define pl pair<ll, ll>
#define pb push_back
#define pf push_front
#define pob pop_back
#define pof pop_front
#define nl '\n'
#define mp make_pair
#define debug1(x) cout <<#x<<" "<<x<<'\n';
#define debug2(x,y) cout <<#x<<" "<<x <<" "<<#y<<" "<<y <<'\n';
#define debug3(x,y,z) cout<<#x<<" "<<x<<" "<<#y<<" "<<y<<" "<<#z<<" "<<z<<'\n';
#define fi first
#define se second
#define boost ios_base::sync_with_stdio(false);cin.tie(NULL);cout.tie(NULL);
#define inf 1e18
const int mod = (int)1e9+7;
pair<ll,ll>s4[4]={{-1,0},{1,0},{0,-1},{0,1}};
pair<ll,ll>s8[8]={{-1,-1},{-1,0},{-1,1},{0,-1},{0,1},{1,1},{1,0},{1,-1}};
bool isPalindrome(char str[]) 
{ 
    // Start from leftmost and rightmost corners of str 
    int l = 0; 
    int h = strlen(str) - 1; 
  
    // Keep comparing characters while they are same 
    while (h > l) 
    { 
        if (str[l++] != str[h--]) 
        { 
           return false;
        } 
    } 
    return true;
} 
  
void solve() {
	char s[201],a[201],b[201];
	gets(s);
	int n = strlen(s);
	int i;
	for(i=0;i<=(n-3)/2;i++) {
		a[i]=s[i];
	}
	a[i]='\0';
	int j=0;
	for(i=(n+1)/2;i<n;i++) {
		b[j++]=s[i];
	}
	b[j]='\0';
	//cout << a << " " << b <<" " <<s <<endl;
	if(isPalindrome(s) && isPalindrome(a) && isPalindrome(b)) {
		cout << "Yes\n";	
	}
	else{
		cout << "No"<<endl;
	}
}

signed main() {
	boost;
	solve();
}

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

#define _GLIBCXX_DEBUG
#include<bits/stdc++.h>
using namespace std;
#define ll long long
#define rep(i,N) for(int i = 0;i < (int)(N);i++)
int main(){
string s;
  string t="Yes";
  rep(i,n){
    if(s[i]==s[n-i]){
    t="No";
      break;
    }
  }
     rep(i,n){
    if(s[i]==s[(n-1)/2-i]){
    t="No";
      break;
    }
     }
      rep(i,n){
    if(s[(n+1)/2+i]==s[n-i]){
    t="No";
      break;
    }
    cout<<t<<endl;
      }
}
    
    
    
    


Compiler output:
a.cc: In function 'int main()':
a.cc:9:9: error: 'n' was not declared in this scope
    9 |   rep(i,n){
      |         ^
a.cc:5:42: note: in definition of macro 'rep'
    5 | #define rep(i,N) for(int i = 0;i < (int)(N);i++)
      |                                          ^
a.cc:15:12: error: 'n' was not declared in this scope
   15 |      rep(i,n){
      |            ^
a.cc:5:42: note: in definition of macro 'rep'
    5 | #define rep(i,N) for(int i = 0;i < (int)(N);i++)
      |                                          ^
a.cc:21:13: error: 'n' was not declared in this scope
   21 |       rep(i,n){
      |             ^
a.cc:5:42: note: in definition of macro 'rep'
    5 | #define rep(i,N) for(int i = 0;i < (int)(N);i++)
      |                                          ^
Language: C++

#include <iostream>
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
using namespace std;

int judge(int m,int n,char s[])
{
    m--;n--;
    int i,j;
    for(i=m,j=n;j>i;i++,j--)
        if(s[i]!=s[j]) return 0;
    return 1;

}

int main()
{
    char s[100];
    gets(s);
    int m=1,n=strlen(s);
    if(judge(m,n,s)*judge(m,(n-1)/2,s)*judge((n+3)/2,n,s)) cout<<"Yes"<<endl;
    else cout<<"No"<<endl;

   return 0;
}


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

#include<iostream>
#include<string.h>
using namespace std;
int main()
{
	int i,j,n,x=1,m;
	char s[200];
	gets(s);
	n=strlen(s);
	for(i=0;i<n;i++)
	{
		if(s[i]!=s[n-i-1])
		{x=0;break;
		}
	}
	m=(n-1)/2;
		for(i=0;i<m;i++)
	{
		if(s[i]!=s[m-i-1])
		{x=0;break;
		}
	}
	m=(n+3)/2;
		for(i=m;i<n;i++)
	{
		if(s[i]!=s[n-i-1])
		{x=0;break;
		}
	}
	if(x==1)
	cout<<"Yes";
	else
	cout<<"No";
	
}

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

#include <iostream>
using namespace std;
 
bool isPalindrome(string s,int i,int e){
  bool ans=true;
  while(i<e){
    if(s[i]!=s[e]){
      ans=false;
      return ans;
    }
  }
  return ans;
}
 
int main(){
  string input;
  cin >> input;
  int n=input.length();
  cout << (isPalindrome(input,0,(n-3)/2) & isPalindrome(input,(n+1)/2,n-1))
}

Compiler output:
a.cc: In function 'int main()':
a.cc:19:76: error: expected ';' before '}' token
   19 |   cout << (isPalindrome(input,0,(n-3)/2) & isPalindrome(input,(n+1)/2,n-1))
      |                                                                            ^
      |                                                                            ;
   20 | }
      | ~
Language: C++

#include<iostream>
#include<bits/stdc++.h>
using namespace std;
 
long main() {
  string S;
  cin>>S;
  long N = (long)(S.length());
  for(long i=0;i<(N+1)/2;i++){
      if(S[i]!=S[N-1-i]){
          cout<<"No";
          exit(1);
      }
  }
  for(long i=0;i<(N-1)/2;i++){
      if(S[i]!=S[(N-1)/2-1-i]){
          cout<<"No";
          exit(1);
      }
  }
  for(long i=(N+3)/2-1;i<(N-1);i++){
      if(S[i]!=S[N-1-i+((N+3)/2-1)]){
          cout<<"No";
          exit(1);
      }
  }
  cout<<"Yes";
}

Compiler output:
cc1plus: error: '::main' must return 'int'
Language: C++

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

Compiler output:
a.cc: In function 'int main()':
a.cc:7:7: error: cannot convert 'std::__cxx11::basic_string<char>::size' from type 'std::__cxx11::basic_string<char>::size_type (std::__cxx11::basic_string<char>::)() const noexcept' {aka 'long unsigned int (std::__cxx11::basic_string<char>::)() const noexcept'} to type 'int'
    7 |   N=S.size;
      |       ^~~~
Language: C++

#define _GLIBCXX_DEBUG
#include<bits/stdc++.h>
using namespace std;
#define ll long long
#define rep(i,N) for(int i = 0;i < (int)(N);i++)
int main(){
string s;
  string t="Yes";
  rep(i,(n+1)/2){
    if(s[i]==s[n-i]){
    t="No"
      break
    }
  }
     rep(i,(n+1)/2){
    if(s[i]==s[(n-1)/2-i]){
    t="No"
      break
    }
     }
      rep(i,(n+1)/2){
    if(s[(n+1)/2+i]==s[n-i]){
    t="No"
      break
    }
    cout<<t<<endl;
      }
}
    
    
    
    


Compiler output:
a.cc: In function 'int main()':
a.cc:9:10: error: 'n' was not declared in this scope
    9 |   rep(i,(n+1)/2){
      |          ^
a.cc:5:42: note: in definition of macro 'rep'
    5 | #define rep(i,N) for(int i = 0;i < (int)(N);i++)
      |                                          ^
a.cc:11:11: error: expected ';' before 'break'
   11 |     t="No"
      |           ^
      |           ;
   12 |       break
      |       ~~~~~
a.cc:15:13: error: 'n' was not declared in this scope
   15 |      rep(i,(n+1)/2){
      |             ^
a.cc:5:42: note: in definition of macro 'rep'
    5 | #define rep(i,N) for(int i = 0;i < (int)(N);i++)
      |                                          ^
a.cc:17:11: error: expected ';' before 'break'
   17 |     t="No"
      |           ^
      |           ;
   18 |       break
      |       ~~~~~
a.cc:21:14: error: 'n' was not declared in this scope
   21 |       rep(i,(n+1)/2){
      |              ^
a.cc:5:42: note: in definition of macro 'rep'
    5 | #define rep(i,N) for(int i = 0;i < (int)(N);i++)
      |                                          ^
a.cc:23:11: error: expected ';' before 'break'
   23 |     t="No"
      |           ^
      |           ;
   24 |       break
      |       ~~~~~
Language: C++

#include <iostream>
using namespace std;

bool isPalindrome(string s,int i,int e){
  bool ans=true;
  while(i<e){
    if(s[i]!=s[e]){
      ans=false;
      return ans;
    }
  }
  return ans;
}

int main(){
  string input;
  cin >> input;
  n=input.length();
  cout << (isPalindrome(input,0,(n-3)/2) & isPalindrome(input,(n+1)/2,n-1))
}

Compiler output:
a.cc: In function 'int main()':
a.cc:18:3: error: 'n' was not declared in this scope
   18 |   n=input.length();
      |   ^
Language: C++

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

int main() {
  string S;
  cin >> S;
  int N =0;
  S.size() = N;
  int A,B,C;
  A = (N-3)/2;
  B = (N-1)/2;
  C = 3*(N-1)/2;
  int j = B + i;
  int count =0;
  for (int i = 0;i <= A;i++) {
    if (S.at(i) != S.at(A-i)) {
      cout << 'No' <<endl;
      break;
    }
    else if (S.at(j) == S.at(C-j)) {
      cout << 'No' << endl;
      break;
    }
    else {
      count++;
    }
  }
  if (count == B) {
    cout << 'Yes' << endl;
  }
}
    
    

Compiler output:
a.cc:17:15: warning: multi-character character constant [-Wmultichar]
   17 |       cout << 'No' <<endl;
      |               ^~~~
a.cc:21:15: warning: multi-character character constant [-Wmultichar]
   21 |       cout << 'No' << endl;
      |               ^~~~
a.cc:29:13: warning: multi-character character constant [-Wmultichar]
   29 |     cout << 'Yes' << endl;
      |             ^~~~~
a.cc: In function 'int main()':
a.cc:8:9: error: lvalue required as left operand of assignment
    8 |   S.size() = N;
      |   ~~~~~~^~
a.cc:13:15: error: 'i' was not declared in this scope
   13 |   int j = B + i;
      |               ^
Language: C++

#include <iostream>
using namespace std;
 
int main(){
    char string1[100];
    int i, length;
    int flag = 0;
    
   	cin >> string1;
    
    length = strlen(string1);
    
    for(i=0;i < length ;i++){
        if(string1[i] != string1[length-i-1]){
            flag = 1;
            break;
   }
}
    
    if (flag) {
        cout << "No" << "\n"; 
    }    
    else {
        cout << "Yes" << "\n"; 
    }
    
    return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:11:14: error: 'strlen' was not declared in this scope
   11 |     length = strlen(string1);
      |              ^~~~~~
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>//cout<<right で右揃え
#include <iomanip>//cout<<setw(数字) で空白による桁揃え
#include <string>
#include <vector>
#include <queue>
#include <algorithm>
#include <cstdlib>//abs()で整数絶対値
#include <cmath>//abs()かfabs()で少数絶対値

using namespace std;
using ll = long long int;

int main(void){
    string S;cin>>S;
    string rS = S;
    reverse(rS.begin(),rS.end());
    if(S!=rS){
        cout << "No" << endl;
        exit(0);
    } 
    string fS = S.substr(0,(S.length-1)/2-1);
    string rfS = fS;
    reverse(rfS.begin(),rfS.end());
    if(fS!=rfS){
        cout << "No" << endl;
        exit(0);
    }
    string eS = S.substr((S.length+3)/2-1);
    string reS = eS;
    reverse(reS.begin(),reS.end());
    if(eS!=reS){
        cout << "No" << endl;
        exit(0);
    }
    cout << "Yes" << endl;
    return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:21:31: error: invalid use of member function 'std::__cxx11::basic_string<_CharT, _Traits, _Alloc>::size_type std::__cxx11::basic_string<_CharT, _Traits, _Alloc>::length() const [with _CharT = char; _Traits = std::char_traits<char>; _Alloc = std::allocator<char>; size_type = long unsigned int]' (did you forget the '()' ?)
   21 |     string fS = S.substr(0,(S.length-1)/2-1);
      |                             ~~^~~~~~
      |                                     ()
a.cc:28:29: error: invalid use of member function 'std::__cxx11::basic_string<_CharT, _Traits, _Alloc>::size_type std::__cxx11::basic_string<_CharT, _Traits, _Alloc>::length() const [with _CharT = char; _Traits = std::char_traits<char>; _Alloc = std::allocator<char>; size_type = long unsigned int]' (did you forget the '()' ?)
   28 |     string eS = S.substr((S.length+3)/2-1);
      |                           ~~^~~~~~
      |                                   ()
Language: C++

#include <bits/stdc++.h>
using namespace std;
int main(){
    string S;
    cin>>S;
    //int N= S.length();
    //string S;
    int flag =1;
    for(int i=0; i<S.length();i++){
        if(S[i]!=S[S.length()-i-1] && (i<=(S.length()-1-i))){
            flag =0;
            break;
        }
        else if(i>(S.length()-1-i)){
            break;
        }
    }
    if(flag ==1){
        //cout<<"Cleared"<<endl;
        //first
        int f = (N-1)/2;
        //cout<<f<<endl;
        int flag1 =1;
        for(int i=0; i<f;i++){
        if(S[i]!=S[f-i-1] && (i<=(f-1-i))){
            flag1 =0;
            break;
        }
        else if(i>(f-1-i)){
            break;
        }
    }
    if(flag1==1){
        //cout<<"Cleared"<<endl;
        int s = (N+3)/2;
        //cout<<s<<endl;
        int flag2 =1;
    for(int i=s-1; i<S.length();i++){
        if(S[i]!=S[S.length()-i-1] && (i<=(S.length()-1-i))){
            flag =0;
            break;
        }
        else if(i>(S.length()-1-i)){
            break;
        }
    }
    if(flag2==1)
        cout<<"Yes";
    else
        cout<<"No";
    }
    else{
        cout<<"No";
    }
    }
    else
        cout<<"No";
}


Compiler output:
a.cc: In function 'int main()':
a.cc:21:18: error: 'N' was not declared in this scope
   21 |         int f = (N-1)/2;
      |                  ^
Language: C++

a = input()
ju = True
n=len(a)
for i in range(n):
	if a[i] != a[-i-1]:
		ju=False
		
m=int((n-1)/2)
for i in range(m):
	if a[i] != a[m-1-i]:
		ju=False
		
l=int((n+3)/2)
l2= n-l+1
for i in range(l2):
	if a[l-1+i] != a[-i-1]:
		ju=False

if ju==False:
	print("No")
else:
	print("Yes")
	


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

#include<iostream>
#include<string.h>
using namespace std;
int main()
{
	int i,j,n,x=1,m;
	char s[100];
	gets(s);
	n=strlen(s);
	for(i=0;i<n;i++)
	{
		if(s[i]!=s[n-i-1])
		{x=0;break;
		}
	}
	m=(n-1)/2;
		for(i=0;i<m;i++)
	{
		if(s[i]!=s[m-i-1])
		{x=0;break;
		}
	}
	m=(n+3)/2;
		for(i=m;i<n;i++)
	{
		if(s[i]!=s[n-i-1])
		{x=0;break;
		}
	}
	if(x==1)
	cout<<"Yes";
	else
	cout<<"No";
	
}

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

#include <iostream>
#include <string>

bool IsPalindrome(const std::string& target)
{
    const auto length = target.size();
    if ((length % 2) != 1)
    {
        return false;
    }

    const auto checkLength = length / 2;
    auto after = target.substr(checkLength + 1);
    std::reverse(after.begin(), after.end());
    if (target.substr(0, checkLength).compare(after) != 0)
    {
        return false;
    }

    return true;
}

int main()
{
    std::string input;
    std::cin >> input;

    if (!IsPalindrome(input))
    {
        std::cout << "No";
        return 0;
    }

    const auto length = input.size();
    if (!IsPalindrome(input.substr(0, (length - 1) / 2)))
    {
        std::cout << "No";
        return 0;
    }

    const auto startIndex = (length + 2) / 2;
    if (!IsPalindrome(input.substr(startIndex, length - startIndex)))
    {
        std::cout << "No";
        return 0;
    }

    std::cout << "Yes";
    return 0;
}

Compiler output:
a.cc: In function 'bool IsPalindrome(const std::string&)':
a.cc:14:10: error: 'reverse' is not a member of 'std'
   14 |     std::reverse(after.begin(), after.end());
      |          ^~~~~~~
Language: C++

#include <iostream>
using namespace std;

bool isRecursive(string s)
{
    int n = s.size();
    if (n % 2 == 0)
    {
        return false;
    }

    string rev = s;
    reverse(rev.begin(), rev.end());
    for (auto i = 0; i < n / 2; i++)
    {
        if (rev[i] != s[i])
        {
            return false;
        }
    }
    return true;
}

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

    int n = s.size();

    bool isSuccess = true;
    if (n % 2 == 0)
    {
        isSuccess = false;
        cout << "No" << endl;
        return 0;
    }
    int half = n/2;

    string pre = s.substr(0, half);
    string post = s.substr(half+1, half);
    
    //cout << pre << " " << post << endl; 

    if (isRecursive(s) && isRecursive(pre) && isRecursive(post))
    {
        isSuccess = true;
    }
    else
    {
        isSuccess = false;
    }
    
    if (isSuccess)
    {
        cout << "Yes" << endl;
    }
    else
    {
        cout << "No" << endl;
    }
    return 0;
}


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

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

bool kai(string s, int l, int r)
{
	string t = s;
	reverse(s.begin() + l, s.begin() + r);
	for (int i = l; i < r; i++) {
		if (s[i] != t[i])  return false;
	}
	return true;
}

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

	int n = s.size();
	int n1 = (n - 1) / 2;
	int n2 = (n + 3) / 2;

	if (kai(s, 0, n1) && kai(s, n2 - 1, n) && kai(s, 0, n))  cout << "Yes" << endl;
	else  cout << "No" << endl;
}

Compiler output:
a.cc: In function 'bool kai(std::string, int, int)':
a.cc:8:9: error: 'reverse' was not declared in this scope
    8 |         reverse(s.begin() + l, s.begin() + r);
      |         ^~~~~~~
Language: C++

#define _GLIBCXX_DEBUG
#include<bits/stdc++.h>
using namespace std;
#define ll long long
#define rep(i,N) for(int i = 0;i < (int)(N);i++)
int main(){
string s;
  string t="Yes";
  rep(i,n/2){
    if(s[i]==s[n-i]){
    t="No"
      break
    }
  }
     rep(i,n/2){
    if(s[i]==s[(n-1)/2-i]){
    t="No"
      break
    }
     }
      rep(i,n/2){
    if(s[(n+1)/2+i]==s[n-i]){
    t="No"
      break
    }
    cout<<t<<endl;
      }
}
    
    
    
    

Compiler output:
a.cc: In function 'int main()':
a.cc:9:9: error: 'n' was not declared in this scope
    9 |   rep(i,n/2){
      |         ^
a.cc:5:42: note: in definition of macro 'rep'
    5 | #define rep(i,N) for(int i = 0;i < (int)(N);i++)
      |                                          ^
a.cc:11:11: error: expected ';' before 'break'
   11 |     t="No"
      |           ^
      |           ;
   12 |       break
      |       ~~~~~
a.cc:15:12: error: 'n' was not declared in this scope
   15 |      rep(i,n/2){
      |            ^
a.cc:5:42: note: in definition of macro 'rep'
    5 | #define rep(i,N) for(int i = 0;i < (int)(N);i++)
      |                                          ^
a.cc:17:11: error: expected ';' before 'break'
   17 |     t="No"
      |           ^
      |           ;
   18 |       break
      |       ~~~~~
a.cc:21:13: error: 'n' was not declared in this scope
   21 |       rep(i,n/2){
      |             ^
a.cc:5:42: note: in definition of macro 'rep'
    5 | #define rep(i,N) for(int i = 0;i < (int)(N);i++)
      |                                          ^
a.cc:23:11: error: expected ';' before 'break'
   23 |     t="No"
      |           ^
      |           ;
   24 |       break
      |       ~~~~~