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

#include<bits/stdc++.h>
using namespace std;
int palindro(string s)
{int i=0;
 int u=s.size();
 int flag=1;
 while(i<u)
 {if(s[i]!=s[u])
 {flag=0;
  break;}}
 return flag;}
int main()
{string s,s1,s2;
 getline(cin,s);
 int u=s.size()
 s1=s.substr(0,(u/2));
 s2=s.substr(((u/2)+1),(u/2));
 if(((s1==s2)&&(palindro(s1))&&(palindro(s2))&&(palindro(s)))
    cout<<"Yes";
 else
    cout<<"No";}

Compiler output:
a.cc: In function 'int main()':
a.cc:16:2: error: expected ',' or ';' before 's1'
   16 |  s1=s.substr(0,(u/2));
      |  ^~
a.cc:18:62: error: expected ';' before 'cout'
   18 |  if(((s1==s2)&&(palindro(s1))&&(palindro(s2))&&(palindro(s)))
      |                                                              ^
      |                                                              ;
   19 |     cout<<"Yes";
      |     ~~~~                                                      
a.cc:20:2: error: expected primary-expression before 'else'
   20 |  else
      |  ^~~~
a.cc:19:17: error: expected ')' before 'else'
   19 |     cout<<"Yes";
      |                 ^
      |                 )
   20 |  else
      |  ~~~~            
a.cc:18:4: note: to match this '('
   18 |  if(((s1==s2)&&(palindro(s1))&&(palindro(s2))&&(palindro(s)))
      |    ^
Language: C++

#include<bits/stdc++.h>
using namespace std;
char s[105],cmp[105],cmp1[105],cmp2[105];
void refacere( int n )
{
    for ( int i = 0 ; i < n ; i++ ){
        cmp[i] = NULL;
    }
}
int main()
{
    cin>>s;
    int l = strlen(s);
    for ( int i = 0 ; i < l ; i++ ){
        cmp[i] = s[l-i-1];
    }
    int pp = 1;
    if ( strcmp(s,strrev(s)) != 0 ){
        pp = 0;
    }
    refacere(l);
    int k = 0;
    for ( int i = 0 ; i < ( l - 1 ) / 2 ; i++ ){
        cmp1[i] = s[i];
        cmp[k++] = s[i];
    }
    if ( strcmp(cmp1,strrev(cmp)) != 0 ){
        pp = 0;
    }
    refacere(l);
    k = 0;
    int j = 0;
    for ( int i = ( l + 3 ) / 2 - 1 ; i < l ; i++ ){
        cmp2[j++] = s[i];
        cmp[k++] = s[i];
    }
    if ( strcmp(cmp,strrev(cmp2)) != 0 ){
        pp = 0;
    }
    if ( pp == 1 ){
        cout<<"Yes";
    }
    else
        cout<<"No";
    return 0;
}


Compiler output:
a.cc: In function 'void refacere(int)':
a.cc:7:18: warning: converting to non-pointer type 'char' from NULL [-Wconversion-null]
    7 |         cmp[i] = NULL;
      |                  ^~~~
a.cc: In function 'int main()':
a.cc:18:19: error: 'strrev' was not declared in this scope; did you mean 'strsep'?
   18 |     if ( strcmp(s,strrev(s)) != 0 ){
      |                   ^~~~~~
      |                   strsep
a.cc:27:22: error: 'strrev' was not declared in this scope; did you mean 'strsep'?
   27 |     if ( strcmp(cmp1,strrev(cmp)) != 0 ){
      |                      ^~~~~~
      |                      strsep
a.cc:37:21: error: 'strrev' was not declared in this scope; did you mean 'strsep'?
   37 |     if ( strcmp(cmp,strrev(cmp2)) != 0 ){
      |                     ^~~~~~
      |                     strsep
Language: C++

#include<bits/stdc++.h>
using namespace std;
#define ALL(v) (v).begin(),(v).end()
#define REP(i,p,n) for(int i=p;i<(int)(n);++i)
#define rep(i,n) REP(i,0,n)
#define SZ(x) ((int)(x).size())
#define debug(x) cerr << #x << ": " << x << '\n'

bool is_palindrome(string s){
    string t(s.rbegin(),s.rend());
    return s==t;
}
int main(){
    string s;cin >> s;
    int n = s.size();
    if(is_palindrome(s)&&is_palindrome(s.substr(0,(n-1)/2)))&&is_palindrome(s.substr((n+1)/2)){
        cout << "Yes" << endl;
        return 0;
    }
    cout << "No" << endl;

}

Compiler output:
a.cc: In function 'int main()':
a.cc:16:76: error: expected ';' before '(' token
   16 |     if(is_palindrome(s)&&is_palindrome(s.substr(0,(n-1)/2)))&&is_palindrome(s.substr((n+1)/2)){
      |                                                                            ^
      |                                                                            ;
a.cc:16:63: error: label 'is_palindrome' used but not defined
   16 |     if(is_palindrome(s)&&is_palindrome(s.substr(0,(n-1)/2)))&&is_palindrome(s.substr((n+1)/2)){
      |                                                               ^~~~~~~~~~~~~
Language: C++

#include<iostream>
#include<cstring>
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>
#include <vector>
#include <algorithm>
#include <string>
#include <numeric>
#include <utility>
#include <tuple>

#define REP(i, a, b) for (int i = int(a); i < int(b); i++)
using namespace std;
using ll = long long int;
using P = pair<int, int>;

// clang-format off
#ifdef _DEBUG_
#define dump(...) do{ cerr << __LINE__ << ":\t" << #__VA_ARGS__ << " = "; PPPPP(__VA_ARGS__); cerr << endl; } while(false)
template<typename T> void PPPPP(T t) { cerr << t; }
template<typename T, typename... S> void PPPPP(T t, S... s) { cerr << t << ", "; PPPPP(s...); }
#else
#define dump(...) do{ } while(false)
#endif
template<typename T> vector<T> make_v(size_t a, T b) { return vector<T>(a, b); }
template<typename... Ts> auto make_v(size_t a, Ts... ts) { return vector<decltype(make_v(ts...))>(a, make_v(ts...)); }
template<typename T> bool chmin(T &a, T b) { if (a > b) {a = b; return true; } return false; }
template<typename T> bool chmax(T &a, T b) { if (a < b) {a = b; return true; } return false; }
template<typename T> void print(T a) { cout << a << endl; }
template<typename T, typename... Ts> void print(T a, Ts... ts) { cout << a << ' '; print(ts...); }
template<typename T> istream &operator,(istream &in, T &t) { return in >> t; }
// clang-format on

int main() {
    cin.tie(nullptr);
    ios::sync_with_stdio(false);
    string s;
    cin, s;

    auto check = [&s](int a, int b) {
        string sub = s.substr(a, b);
        string rev = sub;
        reverse(rev.begin(), rev.end());
        int n = sub.size();
        REP(i, 0, n) {
            if (sub[i] != rev[i]) return false;
        }
        return true;
    };
    int n = s.size();
    cout << (check(0, n) && check(0, (n - 1) / 2) && check((n + 3) / 2 - 1, 1000000) ? "Yes" : "No") << endl;        s.su


    return 0;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:48:120: error: 'std::string' {aka 'class std::__cxx11::basic_string<char>'} has no member named 'su'
   48 |     cout << (check(0, n) && check(0, (n - 1) / 2) && check((n + 3) / 2 - 1, 1000000) ? "Yes" : "No") << endl;        s.su
      |                                                                                                                        ^~
Language: C++

#include <bits/stdc++.h>
using namespace std;
#define int long long
#define double long double
#define vi vector<int>
#define repi(i, m, n) for(int i=(int)(m);i<(int)(n);i++)
#define rep(i, n) repi(i, 0, n)
#define revi(i, m, n) for(int i=(int)(m-1);i>=(int)(n);i--)
#define rev(i, n) revi(i, n, 0)
#define each(i, n) for(auto&& i: n)
#define pb push_back
#define mp make_pair
#define sz(v) ((int)(v).size()) 
#define all(v) (v).begin(), (v).end()
#define rall(v) (v).rbegin() , (v).rend()
#define dump(x) cerr << #x << "=" << x <<endl
#define gcd __gcd
int lcm(int a, int b){return a / gcd(a, b) * b;}
const int INF = 1e18;
const int MOD = 1e9 + 7;
const double EPS = 1e-15;
const double PI = acos(-1);

void solve()
{
	/*--------------------------*/

	string S; cin >> S;
	int f = 1;
	string s1 = S;
    string s2 = S;
    string s3 = S;
	int N = sz(s);
	rep(i, sz(s)) {
		if (s[i] != s[N - i - 1]) f = 0;
	}
	s = s2.substr(0, N / 2);
	N = sz(s);
	rep(i, sz(s)) {
		if (s[i] != s[N - i - 1]) f = 0;
	}
	s = s3.substr(N / 2 + 1, N / 2);
	N = sz(s);
	rep(i, sz(s)) {
		if (s[i] != s[N - i - 1]) f = 0;
	}
	if (f) cout << "Yes" << endl;
	else cout << "No" << endl;

	/*--------------------------*/
}

signed main()
{
	cin.tie(0);
	ios::sync_with_stdio(false);
	cout << fixed << setprecision(20);
	solve();
}

Compiler output:
a.cc: In function 'void solve()':
a.cc:33:20: error: 's' was not declared in this scope
   33 |         int N = sz(s);
      |                    ^
a.cc:13:22: note: in definition of macro 'sz'
   13 | #define sz(v) ((int)(v).size())
      |                      ^
Language: C

#include<bits/stdc++.h>
using namespace std;
bool checkk(string string1){
    int flag=0,length;
    length = string1.size();
    for(int i=0;i < length ;i++){
        if(string1[i] != string1[length-i-1]){
            flag = 1;
            break;
   }
}
    if (flag) 
        return false;
    else
        return true;
}
int main()
{
  string s;
  cin>>s;
  int n;
  n = s.size();
  bool a,b,c;
  a=checkk(s);
  b=checkk(s.substr(0,(n-1)/2-1));
  c=checkk(s.substr((n+3)/2-1,n));
  if( a &&  b && c  )
      cout<<"Yes";
  else
      cout<<"No";
}
  
  

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

#include <bits/stdc++.h>

using namespace std;
using ll = long long;
using p = pair<int, int>

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

int main() {
  string s;
  cin >> s;
  bool ans = true;
  if (!isPalindrome(s)) ans = false;
  if (!isPalindrome(s.substr(0, s.size()/2))) ans = false;
  cout << (ans ? "Yes" : "No") << endl;

  return 0;
}

Compiler output:
a.cc:5:11: error: two or more data types in declaration of 'type name'
    5 | using p = pair<int, int>
      |           ^~~~~~~~~~~~~~
a.cc: In function 'int main()':
a.cc:17:8: error: 'isPalindrome' was not declared in this scope
   17 |   if (!isPalindrome(s)) ans = false;
      |        ^~~~~~~~~~~~
a.cc:18:8: error: 'isPalindrome' was not declared in this scope
   18 |   if (!isPalindrome(s.substr(0, s.size()/2))) ans = false;
      |        ^~~~~~~~~~~~
Language: Java

import java.util.*;
class Main{
  public static void main(String[] args){
    Scanner sc = new Scanner(System.in);
    String S = sc.next();
    char[] charS = S.toCharArray();
    int length = charS.length;
    boolean isStrong = true;
    for(int i=0; i<N; i++){
      if(charS[i] != charS[N-1-i]){
        isStrong=false;
        break;
      }
    }
    for(int i=0; i<N-1/2; i++){
      if(charS[i] != charS[(N-1)/2-1-i]){
        isStrong=false;
      }
    }
    for(int i=(N+3)/2-1; i<N; i++){
      if(charS[i] != charS[N-1-i]){
        isStrong=false;
      }
    }
    

    if(isStrong){
      System.out.println("Yes");
    }else{
      System.out.println("No");
    }
  }
}


Compiler output:
Main.java:9: error: cannot find symbol
    for(int i=0; i<N; i++){
                   ^
  symbol:   variable N
  location: class Main
Main.java:10: error: cannot find symbol
      if(charS[i] != charS[N-1-i]){
                           ^
  symbol:   variable N
  location: class Main
Main.java:15: error: cannot find symbol
    for(int i=0; i<N-1/2; i++){
                   ^
  symbol:   variable N
  location: class Main
Main.java:16: error: cannot find symbol
      if(charS[i] != charS[(N-1)/2-1-i]){
                            ^
  symbol:   variable N
  location: class Main
Main.java:20: error: cannot find symbol
    for(int i=(N+3)/2-1; i<N; i++){
               ^
  symbol:   variable N
  location: class Main
Main.java:20: error: cannot find symbol
    for(int i=(N+3)/2-1; i<N; i++){
                           ^
  symbol:   variable N
  location: class Main
Main.java:21: error: cannot find symbol
      if(charS[i] != charS[N-1-i]){
                           ^
  symbol:   variable N
  location: class Main
7 errors
Language: C++

#include <bits/stdc++.h>

using namespace std;
using ll = long long;
using p = pair<int, int>

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

int main() {
  string s;
  cin >> s;
  bool ans = true;
  if (!isPalindrom(s)) ans = false;
  if (!isPalindrom(s.substr(0, s.size()/2))) ans = false;
  cout << (ans ? "Yes" : "No") << endl;

  return 0;
}

Compiler output:
a.cc:5:11: error: two or more data types in declaration of 'type name'
    5 | using p = pair<int, int>
      |           ^~~~~~~~~~~~~~
a.cc: In function 'int main()':
a.cc:17:8: error: 'isPalindrom' was not declared in this scope
   17 |   if (!isPalindrom(s)) ans = false;
      |        ^~~~~~~~~~~
a.cc:18:8: error: 'isPalindrom' was not declared in this scope
   18 |   if (!isPalindrom(s.substr(0, s.size()/2))) ans = false;
      |        ^~~~~~~~~~~
Language: C++

#include <bits/stdc++.h>

using namespace std;
using ll = long long;
using p = pair<int, int>

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

int main() {
  string s;
  cin >> s;
  bool ans = ture;
  if (!isPalindrom(s)) ans = false;
  if (!isPalindrom(s.substr(0, s.size() / 2))) ans = false;
  cout << (ans ? "Yes" : "No") << endl;

  return 0;
}

Compiler output:
a.cc:5:11: error: two or more data types in declaration of 'type name'
    5 | using p = pair<int, int>
      |           ^~~~~~~~~~~~~~
a.cc: In function 'int main()':
a.cc:16:14: error: 'ture' was not declared in this scope
   16 |   bool ans = ture;
      |              ^~~~
a.cc:17:8: error: 'isPalindrom' was not declared in this scope
   17 |   if (!isPalindrom(s)) ans = false;
      |        ^~~~~~~~~~~
a.cc:18:8: error: 'isPalindrom' was not declared in this scope
   18 |   if (!isPalindrom(s.substr(0, s.size() / 2))) ans = false;
      |        ^~~~~~~~~~~
Language: Java

import java.util.*;
class Main{
  public static void main(String[] args){
    Scanner sc = new Scanner(System.in);
    String S = sc.next();
    char[] charS = S.toCharArray();
    boolean isStrong = true;
    for(int i=0; i<charS.length; i++){
      for(int j=charS.length-1; j>=0; j--){
        if(charS[i] != charS[j]){
          isStrong = false;
          break;
        }
      }
    }
    for(int i=0; i<(charS.length-1)/2; i++){
      for(int j=(charS.length-1)/2-1; j>=0; j--){
        if(charS[i] != charS[j]){
          isStrong = false;
          break;
        }
      }
    }
    for(int i=(chharS.length+3)/2-1; i<charS.length; i++){
      for(int j=charS.length-1; j>=(chharS.length+3)/2; j--){
        if(charS[i] != charS[j]){
          isStrong = false;
          break;
        }
      }
    }
    if(isStrong){
      System.out.println("Yes");
    }else{
      System.out.println("No");
    }
  }
}


Compiler output:
Main.java:24: error: cannot find symbol
    for(int i=(chharS.length+3)/2-1; i<charS.length; i++){
               ^
  symbol:   variable chharS
  location: class Main
Main.java:25: error: cannot find symbol
      for(int j=charS.length-1; j>=(chharS.length+3)/2; j--){
                                    ^
  symbol:   variable chharS
  location: class Main
2 errors
Language: Java

import java.util.*;
class Main{
  public static void main(String[] args){
    Scanner sc = new Scanner(System.in);
    String S = sc.next();
    char[] charS = S.toCharArray();
    boolean isStrong = true;
    for(int i=0; i<charS.length(); i++){
      for(int j=charS.length()-1; j>=0; j--){
        if(charS[i] != charS[j]){
          isStrong = false;
          break;
        }
      }
    }
    for(int i=0; i<(charS.length()-1)/2; i++){
      for(int j=(charS.length()-1)/2-1; j>=0; j--){
        if(charS[i] != charS[j]){
          isStrong = false;
          break;
        }
      }
    }
    for(int i=(chharS.length()+3)/2-1; i<charS.length(); i++){
      for(int j=charS.length()-1; j>=(chharS.length()+3)/2; j--){
        if(charS[i] != charS[j]){
          isStrong = false;
          break;
        }
      }
    }
    if(isStrong){
      System.out.println("Yes");
    }else{
      System.out.println("No");
    }
  }
}

Compiler output:
Main.java:8: error: cannot find symbol
    for(int i=0; i<charS.length(); i++){
                        ^
  symbol:   method length()
  location: variable charS of type char[]
Main.java:9: error: cannot find symbol
      for(int j=charS.length()-1; j>=0; j--){
                     ^
  symbol:   method length()
  location: variable charS of type char[]
Main.java:16: error: cannot find symbol
    for(int i=0; i<(charS.length()-1)/2; i++){
                         ^
  symbol:   method length()
  location: variable charS of type char[]
Main.java:17: error: cannot find symbol
      for(int j=(charS.length()-1)/2-1; j>=0; j--){
                      ^
  symbol:   method length()
  location: variable charS of type char[]
Main.java:24: error: cannot find symbol
    for(int i=(chharS.length()+3)/2-1; i<charS.length(); i++){
               ^
  symbol:   variable chharS
  location: class Main
Main.java:24: error: cannot find symbol
    for(int i=(chharS.length()+3)/2-1; i<charS.length(); i++){
                                              ^
  symbol:   method length()
  location: variable charS of type char[]
Main.java:25: error: cannot find symbol
      for(int j=charS.length()-1; j>=(chharS.length()+3)/2; j--){
                     ^
  symbol:   method length()
  location: variable charS of type char[]
Main.java:25: error: cannot find symbol
      for(int j=charS.length()-1; j>=(chharS.length()+3)/2; j--){
                                      ^
  symbol:   variable chharS
  location: class Main
8 errors
Language: C++

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

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

int main(){
  
  string s;
  cin >> s;
  bool ans = ture;
  
  if(!sp(s)) ans = false;
  if(!sp(s.substr(0,s.size()/2))) ans = false;
  
  cout << (ans ? "Yes" : "No") <<endl;
  return 0;
}
  
  

Compiler output:
a.cc: In function 'int main()':
a.cc:16:14: error: 'ture' was not declared in this scope
   16 |   bool ans = ture;
      |              ^~~~
Language: C++

#include<algorithm>
#include<cmath>
#include<cstring>
#include<cstdio>
#include<iostream>
#include<vector>
#include<queue>
#include<stack>
#include<set>
#include<map>
#include<string>
#include <bits/stdc++.h>
#define rep(i, n) for(int i = 0; i < (int)n; i++)
#define ll long long
using namespace std;
int main(){ 
  string S;
  cin >>S;
  int N=S.size();
  int key=0;
  for(int i=0;i<(N-1)/4;i++){
    if (S[i]!=S[(N-1)/2-1-i]){
      key=1;
    }
        }
        for(int i=0;i<(N-1)/2;i++){
          if(S[i]!=S[N-1-i]){
            ket=1;
          }
        }
  if(key==0){
    cout <<"Yes"<<endl;
  }else{
    cout <<"No"<<endl;
  }
}

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

#include<algorithm>
#include<cmath>
#include<cstring>
#include<cstdio>
#include<iostream>
#include<vector>
#include<queue>
#include<stack>
#include<set>
#include<map>
#include<string>
#include <bits/stdc++.h>
#define rep(i, n) for(int i = 0; i < (int)n; i++)
#define ll long long
using namespace std;
int main(){ 
  string S;
  cin >>S;
  int N=S.size();
  int key=0;
  for(int i=0;i<(N-1)/4;i++){
    if (S[i]!=S[(N-1)/2-1-i]){
      key=1;
    }
        }
        for(int i=0;i<(N-1)/2;i++){
          if(S[i]!=S[N-1-i]){
            key=1;
          }
        }
  if(key==0){
    cout <<"Yes"<<endl;
  }else{
    cout <<"No"<<endl;
  }

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

#include<algorithm>
#include<cmath>
#include<cstring>
#include<cstdio>
#include<iostream>
#include<vector>
#include<queue>
#include<stack>
#include<set>
#include<map>
#include<string>
#include <bits/stdc++.h>
#define rep(i, n) for(int i = 0; i < (int)n; i++)
#define ll long long
using namespace std;
int main(){ 
  string S;
  cin >>S;
  int N=S.size();
  int key=0;
  for(int i=0;i<(N-1)/4;i++){
    if (S[i]!=S[(N-1)/2-1-i]){
      key=1;
    }
        }
        for(int i=0;i<(N-1)/2;i++){
          if(S[i]!=S[N-1-i]){
            ket=1;
          }
        }
  if(key==0){
    cout <<"Yes"<<endl;
  }else{
    cout <<"No"<<endl;
  }

Compiler output:
a.cc: In function 'int main()':
a.cc:28:13: error: 'ket' was not declared in this scope; did you mean 'key'?
   28 |             ket=1;
      |             ^~~
      |             key
a.cc:35:4: error: expected '}' at end of input
   35 |   }
      |    ^
a.cc:16:11: note: to match this '{'
   16 | int main(){
      |           ^
Language: C

#include<stdio.h>
#include<string.h>
int main()
{
  char n[100];
  scanf("%s",n);
  int m;
  int flag=0;
  m=strlen(n);
  int i;
  for(i=0;i<m;i++){
    if(n[i]!=n[m-i]){
      flag=1;
      break;
    }
  }
  if(flag=0){
  	printf("Yes");
  }
  else{
    pritnf("No");
  }
  return 0;
}


Compiler output:
main.c: In function 'main':
main.c:21:5: error: implicit declaration of function 'pritnf'; did you mean 'printf'? [-Wimplicit-function-declaration]
   21 |     pritnf("No");
      |     ^~~~~~
      |     printf
Language: C++

#include <bits/stdc++.h>

using namespace std;

bool judge(string s){
    int length = static_cast<int>( s.size());
    cout << length <<s <<endl;
    if(length%2==1){
    for(int i=0;i<(length-1)/2;i++){
        if(s[i] !=s[length-i-1]){
            return false;
        }
    }
    return true;
    }
    if(length%2==0){
    for(int i=0;i<length/2;i++){
        if(s[i] !=s[length-i-1]){
            return false;
        }
    }
    return true;
    }
}

int main(){
    string s;
    cin >> s;
    if(judge(s)){
        if(judge(s.substr(0,(s.size()-1)/2))){
            cout <<"Yes" <<endl;
            return;
        }
    }
    cout << "No" <<endl;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:32:13: error: return-statement with no value, in function returning 'int' [-fpermissive]
   32 |             return;
      |             ^~~~~~
a.cc: In function 'bool judge(std::string)':
a.cc:24:1: warning: control reaches end of non-void function [-Wreturn-type]
   24 | }
      | ^
Language: C++

#include<bits/stdc++.h>
using namespace std;
bool is_palindrome(string s)
{
    string t(s.rbegin(),s.rend())
    return s==t;
}
int main()
{
    string s;
    cin>>s;
    int n=s.size();
    if(is_palindrome(s)&&is_palindrome(s.substr(0,(n-1)/2))&&is_palindrome(s.substr((n+1)/2)))
    cout<<"Yes";
    else
    cout<<"No";
}

Compiler output:
a.cc: In function 'bool is_palindrome(std::string)':
a.cc:6:5: error: expected ',' or ';' before 'return'
    6 |     return s==t;
      |     ^~~~~~
a.cc:7:1: warning: no return statement in function returning non-void [-Wreturn-type]
    7 | }
      | ^
Language: C

#include<stdio.h>
#include<string.h>
int main(void){
  char a[99];
  int i,n,count=0,j;
  scanf("%s",a);
  n=strlen(a);
  for(i=0;i<n;i++){
    if(a[i]!=a[n-1-i]) count=1;
  }
  for(i=0;i<(n-1)/2;i++){
    if(a[i]!=a[((n-1)/2)-1-i]) count=1;
  }
  for(i=((n+3)/2)-1,j=0;i<n;,j++,i++){
    if(a[i]!=a[n-1-j]) count=1;
  }
  if(count==1) printf("Yes");
  else printf("No");
  return 0;
}

Compiler output:
main.c: In function 'main':
main.c:14:29: error: expected expression before ',' token
   14 |   for(i=((n+3)/2)-1,j=0;i<n;,j++,i++){
      |                             ^
Language: C++

    #include<stdio.h>
    #include<string.h>
     
    int main()
    {
        char str[99];
        gets(str);
        int i,n=0;
        for (i=0;str[i]!='\0';i++)
        {
             n++;
        }
     
        char s[n];
        strcpy(s,str);
        strrev(s);
        if (strcmp(str,s)==0)
        {
            int x,y,h;
            x=(n-1)/2;
            y=(n+3)/2;
            h=n-y+1;
            char a[x],b[x],c[x],d[x];
            for (i=0;i<x;i++)
            {
                a[i]=str[i];
                b[i]=str[i];
            }
            strrev(b);
            if (strcmp(a,b)==0)
            {
                for (i=x+1;i<n;i++)
                {
                    c[i]=str[i];
                    d[i]=str[i];
                }
                strrev(d);
                if (strcmp(c,d)==0)
                {
                     printf("Yes\n");
                }
     
                else
                {
                    printf("No\n");
                }
     
            }
            else
            {
                 printf("No\n");
            }
     
        }
        else
        {
             printf("No\n");
        }
     
     
        return 0;
    }

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


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

using namespace std;

int main()
{
	string str;
	int half;

	cin >> str;

	half = str.length / 2;

	for (int i = 0; i < half; ++i) {

		if (str[i] != str[str.length - i])
		{
			printf("No");

			return 0;
		}
	}

	int quarter = half / 2;
	for (int i = 0; i < quarter; ++i) {

		if (str[i] != str[half - i]) {

			printf("No");
			return 0;

		}

	}

	printf("Yes");
	return 0;

}

Compiler output:
a.cc: In function 'int main()':
a.cc:15:20: 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 '()' ?)
   15 |         half = str.length / 2;
      |                ~~~~^~~~~~
      |                          ()
a.cc:19:39: 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 '()' ?)
   19 |                 if (str[i] != str[str.length - i])
      |                                   ~~~~^~~~~~
      |                                             ()
Language: C++

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

int main() {
  string S;
  cin>>S;
  string ans = "Yes";
  int L = length(S);
  int M = (L-1)/2;
  if (M%2==1){
    for (int i=0; i < (M-1)/2; i++){
      if(S.at(i)!=S.at(M-i)){
        ans = "No";
        break;
      }
    }
  }
  else{
    for (int i=0; i < M/2; i++){
      if(S.at(i)!=S.at(M-i)){
        ans = "No";
        break;
      }
    }
  }
  if (ans=="Yes"){
    for (int i=0; i<M; i++){
      if (S.at(i)!=S.at(L-i)){
        ans = "No";
        break;
      }
    }
  }
  cout<<ans<<endl;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:8:11: error: 'length' was not declared in this scope
    8 |   int L = length(S);
      |           ^~~~~~
Language: C++

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

int main() {
  stinrg S;
  cin>>S;
  string ans = "Yes";
  int L = length(S);
  int M = (L-1)/2;
  if (M%2==1){
    for (int i=0; i < (M-1)/2; i++){
      if(S.at(i)!=S.at(M-i)){
        ans = "No";
        break;
      }
    }
  }
  else{
    for (int i=0; i < M/2; i++){
      if(S.at(i)!=S.at(M-i)){
        ans = "No";
        break;
      }
    }
  }
  if (ans=="Yes"){
    for (int i=0; i<M; i++){
      if (S.at(i)!=S.at(L-i)){
        ans = "No";
        break;
      }
    }
  }
  cout<<ans<<endl;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:5:3: error: 'stinrg' was not declared in this scope
    5 |   stinrg S;
      |   ^~~~~~
a.cc:6:8: error: 'S' was not declared in this scope
    6 |   cin>>S;
      |        ^
a.cc:8:11: error: 'length' was not declared in this scope
    8 |   int L = length(S);
      |           ^~~~~~
Language: C++

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

int main() {
  stinrg S;
  cin>>S;
  string ans = "Yes";
  int L = length(S);
  int M = (N-1)/2;
  if (M%2==1){
    for (int i=0; i < (M-1)/2; i++){
      if(S.at(i)!=S.at(M-i)){
        ans = "No";
        break;
      }
    }
  }
  else{
    for (int i=0; i < M/2; i++){
      if(S.at(i)!=S.at(M-i)){
        ans = "No";
        break;
      }
    }
  }
  if (ans=="Yes"){
    for (int i=0; i<M; i++){
      if (S.at(i)!=S.at(L-i)){
        ans = "No";
        break;
      }
    }
  }
  cout<<ans<<endl;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:5:3: error: 'stinrg' was not declared in this scope
    5 |   stinrg S;
      |   ^~~~~~
a.cc:6:8: error: 'S' was not declared in this scope
    6 |   cin>>S;
      |        ^
a.cc:8:11: error: 'length' was not declared in this scope
    8 |   int L = length(S);
      |           ^~~~~~
a.cc:9:12: error: 'N' was not declared in this scope
    9 |   int M = (N-1)/2;
      |            ^
Language: C++

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

int main(){
  string s,s_rev;
  bool ans = true;
  cin >> s;
  int N = s.size();
  s_rev = s;
  reverse(s_rev.begin(),s_rev.end());
  if(s == s_rev && s.substr(0,(N-1)/2) == s.substr((N+1)/2,(N-1)/2)  ans = false;
  puts(ans ? "Yes" : "No");
}


Compiler output:
a.cc: In function 'int main()':
a.cc:12:68: error: expected ';' before 'ans'
   12 |   if(s == s_rev && s.substr(0,(N-1)/2) == s.substr((N+1)/2,(N-1)/2)  ans = false;
      |                                                                    ^ ~~~
      |                                                                    ;
a.cc:13:27: error: expected ')' before ';' token
   13 |   puts(ans ? "Yes" : "No");
      |                           ^
      |                           )
a.cc:12:5: note: to match this '('
   12 |   if(s == s_rev && s.substr(0,(N-1)/2) == s.substr((N+1)/2,(N-1)/2)  ans = false;
      |     ^
Language: C++

#include<bits/stdc++.h>
using namespace std;
int main() {
  string s;
  cin >> s;
  int n1,n2;
  n1 = (s.length()-1)/2;
  n2 = (s.length()+3)/2;
  bool b1;
  b1= IsP(s);
  bool b2;
  b2= IsP(s.substr(0,n1-1));
  bool b3;
  b3= IsP(s.substr(n2-1,s.length()-1));
  if (b1 && b2 && b3) {
    cout << "Yes"+ '\n';
  }else {
    cout << "No" + '\n'; }
}
 
public bool IsP(string str)
{
    if (str.empty())
        return false;
 
    int i = 0;                // first characters
    int j = str.length() - 1; // last character
 
    while (i < j)
    {
        if (str[i] != str[j])
        {
            return false;
        }
        i++;
        j--;
    }
    return true;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:10:7: error: 'IsP' was not declared in this scope
   10 |   b1= IsP(s);
      |       ^~~
a.cc: At global scope:
a.cc:21:1: error: expected unqualified-id before 'public'
   21 | public bool IsP(string str)
      | ^~~~~~
Language: C++

#include<bits/stdc++.h>
using namespace std;
int main() {
  string s;
  cin >> s;
  int n1,n2;
  n1 = (s.length()-1)/2;
  n2 = (s.length()+3)/2;
  bool b1 = IsP(s);
  bool b2 = IsP(s.substr(0,n1-1));
  bool b3 = IsP(s.substr(n2-1,s.length()-1));
  if (b1 && b2 && b3) {
    cout << "Yes" << '\n';
  }else {
    cout << 'No' << '\n'; 
}
 
bool IsP(const string& str)
{
    if (str.empty())
        return false;
 
    int i = 0;                // first characters
    int j = str.length() - 1; // last character
 
    while (i < j)
    {
        if (str[i] != str[j])
        {
            return false;
        }
        i++;
        j--;
    }
    return true;
}

Compiler output:
a.cc:15:13: warning: multi-character character constant [-Wmultichar]
   15 |     cout << 'No' << '\n';
      |             ^~~~
a.cc: In function 'int main()':
a.cc:9:13: error: 'IsP' was not declared in this scope
    9 |   bool b1 = IsP(s);
      |             ^~~
a.cc:19:1: error: a function-definition is not allowed here before '{' token
   19 | {
      | ^
a.cc:36:2: error: expected '}' at end of input
   36 | }
      |  ^
a.cc:3:12: note: to match this '{'
    3 | int main() {
      |            ^
Language: C++

#include<bits/strdc++ .h>
using namespace std;
int main() {
  string s;
  cin >> s;
  int n1,n2;
  n1 = (s.length()-1)/2;
  n2 = (s.length()+3)/2;
  bool b1 = IsP(s);
  bool b2 = IsP(s.substr(0,n1-1));
  bool b3 = IsP(s.substr(n2-1,s.length()-1));
  if (b1 && b2 && b3) {
    cout << "Yes" << '\n';
  }else {
    cout << 'No' << '\n'; 
}

bool IsP(const string& str)
{
    if (str.empty())
        return false;

    int i = 0;                // first characters
    int j = str.length() - 1; // last character

    while (i < j)
    {
        if (str[i] != str[j])
        {
            return false;
        }
        i++;
        j--;
    }
    return true;
}

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

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

int main () {
  string S;
  cin >> S;
  
  int N;
  N=s.size();
  
  string s1 = S.substr((N-1)/2);
  string s2 = S.bubstr((N+1)/2);
  
  if (s1==s2) {
    cout << "YES" << endl;
  } else {
    cout << "NO" << endl;
  }
}

Compiler output:
a.cc: In function 'int main()':
a.cc:9:5: error: 's' was not declared in this scope
    9 |   N=s.size();
      |     ^
a.cc:12:17: error: 'std::string' {aka 'class std::__cxx11::basic_string<char>'} has no member named 'bubstr'; did you mean 'substr'?
   12 |   string s2 = S.bubstr((N+1)/2);
      |                 ^~~~~~
      |                 substr
Language: C++

#include <iostream>
using namespace std;

bool kaibun(string s) {
  string t(s.rbegin(), s.rend());
  return s == t;
}

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

}

Compiler output:
a.cc: In function 'int main()':
a.cc:14:44: error: no match for 'operator&&' (operand types are 'std::__cxx11::basic_string<char>' and 'bool')
   14 |   if (kaibun(s) && kaibun(s.substr(0, n/2) && kaibun(s.substr(n/2+1)))) {
      |                           ~~~~~~~~~~~~~~~~ ^~ ~~~~~~~~~~~~~~~~~~~~~~~
      |                                   |                 |
      |                                   |                 bool
      |                                   std::__cxx11::basic_string<char>
a.cc:14:44: note: candidate: 'operator&&(bool, bool)' (built-in)
   14 |   if (kaibun(s) && kaibun(s.substr(0, n/2) && kaibun(s.substr(n/2+1)))) {
      |                           ~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~
a.cc:14:44: note:   no known conversion for argument 1 from 'std::__cxx11::basic_string<char>' to 'bool'
Language: C++

#include <iostream>
#include <algorithm>

using namespace std;

const int MAX = 1e6;
const int INF = 2e9;
typedef long long ll;

int lps[100];
char str[101];

void manachers(int len) {
    int c = -1;
    int r = -1;

    for (int i = 0; i < len; ++i) {
        if (r >= i) {
            lps[i] = min(r - i, lps[c * 2 - i]);    // pos of symmetric
        } else {
            lps[i] = 0;
        }

        while ((i + lps[i] + 1) < len && (i - lps[i] - 1) >= 0 && (str[i + lps[i] + 1] == str[i - lps[i] - 1]))
            ++lps[i];

        if (r < i + lps[i]) {
            r = i + lps[i];
            c = i;
        }
    }
}

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

    char s[101];
    cin >> s;

    int len = strlen(s);
    for (int i = 0; i < len; ++i)
    {
        str[i * 2 + 1] = s[i];
    }
    len = len * 2 + 1;

    manachers(len);

    int mid = len / 2;
    int left = mid / 2;
    int right = (mid + len) / 2;
    int half = len / 2;
    if (lps[mid] == half && lps[left] == half / 2 && lps[right] == half / 2) {
        cout << "Yes";
    } else {
        cout << "No";
    }


    return 0;
}


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

#include <iostream>
#include <string.h>
using namespace std;
int main()
{
  char string[99];
  int i,l,a,b,k=0;
  cin>>string;
  l=strlen(string);
  a=(l-1)/2;
  b=(l+3)/2;
  if(l%2==0||l==1)
  {
  k=1;
  }
  else
  {
  for(i=0;i<l;i++)
  {
    if(string[i]!=string[l-i-1])
      k=1;
    break;
  }
  for(i=0;i<a;i++)
  {  
    if(string[i]!=string[a-i-1])
    k=1;
    break;
  }
  for(i=(b-1);i<l;i++)
  {
    if(string[i]!=string[abs(b+i+1-l])
    k=1;
    break;
  }
  }
  if(k==1)
  cout<<"No";
  else
  cout<<"Yes";
}


Compiler output:
a.cc: In function 'int main()':
a.cc:32:37: error: expected ')' before ']' token
   32 |     if(string[i]!=string[abs(b+i+1-l])
      |                             ~       ^
      |                                     )
a.cc:34:5: error: expected primary-expression before 'break'
   34 |     break;
      |     ^~~~~
a.cc:33:9: error: expected ')' before 'break'
   33 |     k=1;
      |         ^
      |         )
   34 |     break;
      |     ~~~~~
a.cc:32:7: note: to match this '('
   32 |     if(string[i]!=string[abs(b+i+1-l])
      |       ^
Language: C++

s = input()
t = s[::-1]
n = len(s)
if s[:n//2]==t[(n+1)//2:] and t[:n//2]==s[(n+1)//2:]:
    print("Yes")
else:
    print("No")


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

#include <iostream>
#include <string.h>
using namespace std;
int main()
{
  char string[99];
  int i,l,a,b,k=0;
  cin>>string;
  l=strlen(string);
  a=(l-1)/2;
  b=(l+3)/2;
  if(l%2==0||l==1)
  {
  k=1;
  }
  else
  {
  for(i=0;i<l;i++)
  {
    if(string[i]!=string[l-i-1])
      k=1;
    break;
  }
  for(i=0;i<a;i++)
  {  
    if(string[i]!=string[a-i-1])
    k=1;
    break;
  }
  for(i=l;i=>b;i--)
  {
    if(string[i]!=string[i-b-1])
    k=1;
    break;
  }
  }
  if(k==1)
  cout<<"No";
  else
  cout<<"Yes";
}


Compiler output:
a.cc: In function 'int main()':
a.cc:30:13: error: expected primary-expression before '>' token
   30 |   for(i=l;i=>b;i--)
      |             ^
Language: C++

#include <iostream>
#include <string.h>
using namespace std;
int main()
{
  char string[99];
  int i,l,a,b,k=0;
  cin>>string;
  l=strlen(string);
  a=(l-1)/2;
  b=(l+3)/2;
  if(l%2==0||l==1)
  {
  k=1;d
  }
  else
  {
  for(i=0;i<l;i++)
  {
    if(string[i]!=string[l-i-1])
      k=1;
    break;
  }
  for(i=0;i<a;i++)
  {  
    if(string[i]!=string[a-i-1])
    k=1;
    break;
  }
  for(i=(b-1);i<l;i++)
  {
    if(string[i]!=string[i-b-1])
    k=1;
    break;
  }
  }
  if(k==1)
  cout<<"No";
  else
  cout<<"Yes";
}


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

#include <iostream>
#include <string.h>
using namespace std;
int main()
{
  char string[99];
  int i,l,a,b,k=0;
  cin>>string;
  l=strlen(string);
  a=(l-1)/2;
  b=(l+3)/2;
  if(l==1) k=1;
  for(i=0;i<l;i++)
  {
    if(string[i]!=string[l-i-1])
      k=1;
    break;
  }
  for(i=0;i<a;i++)
  {  
    if(string[i]!=string[a-i-1])
    k=1;
    break;
  }
  for(i=0;i<l-b+1;i++)
  {
    if(string[b-1+i]!=string[l-i-1])
    k=1;
    break;
  }
  }
  if(k==1)
  cout<<"No";
  else
  cout<<"Yes";
}

Compiler output:
a.cc:32:3: error: expected unqualified-id before 'if'
   32 |   if(k==1)
      |   ^~
a.cc:34:3: error: expected unqualified-id before 'else'
   34 |   else
      |   ^~~~
a.cc:36:1: error: expected declaration before '}' token
   36 | }
      | ^
Language: C++

#include <bits/stdc++.h>

using namespace std;
typedef long long ll;

bool pal (string s)
{
    for (int i = 0; i < s.length(); i++)
        if (s[i] != s[s.length()-1-i])
            return false;
    return true;
}

int main()
{
    ios_base::sync_with_stdio(0);

    string S; cin >> S;

    if (pal (S) && pal (S.substr(0, (N - 1) / 2)))
        cout << "Yes\n";
    else
        cout << "No\n";
}

Compiler output:
a.cc: In function 'int main()':
a.cc:20:38: error: 'N' was not declared in this scope
   20 |     if (pal (S) && pal (S.substr(0, (N - 1) / 2)))
      |                                      ^
Language: C++

#include <iostream>
#include <string.h>
using namespace std;
int main()
{
  char string[99];
  int i,l,a,b,k=0;
  cin>>string;
  l=strlen(string);
  a=(l-1)/2;
  b=(l+3)/2;
  for(i=0;i<l;i++)
  {
    if(string[i]!=string[l-i-1])
      k=1;
    break;
  }
  for(i=0;i<a;i++)
  {  
    if(string[i]!=string[a-i-1])
    k=1;
    break;
  }
  for(i=0;i<l-b+1;i++)
  {
    if(string[b-1+i]!=string[l-i-1])
    k=1;
    break;
  }
  }
  if(k==1)
  cout<<"No";
  else
  cout<<"Yes";
}

Compiler output:
a.cc:31:3: error: expected unqualified-id before 'if'
   31 |   if(k==1)
      |   ^~
a.cc:33:3: error: expected unqualified-id before 'else'
   33 |   else
      |   ^~~~
a.cc:35:1: error: expected declaration before '}' token
   35 | }
      | ^
Language: C

#include<stdio.h>
#include<string.h>
int main()
{
    char str[1000],stresp[1000],i,j,k,l,str1[1000],str2[1000],str3[1000],str4[1000],n,m;
    scanf("%s",str);
    int len=strlen(str);
    strcpy(stresp,str);
    strrev(stresp);
    int g=strcasecmp(stresp,str);
    if(len%2!=0 && g==0)
    {
        n=(len-1)/2;
        for(i=0; i<n; i++)
        {
            str1[i]=str[i];
        }
        m=(len+3)/2;
        for(j=m-1; j<len; j++)
        {
            str2[j]=str[j];
        }
        for(i=0,l=0; i<n; i++,l++)
        {
            str4[l]=str1[i];
        }

        for(j=m-1,k=0; j<len; j++,k++)
        {
            str3[k]=str2[j];
        }

        int x=strcmp(str3,str4);
        if(x==0)
        {
            printf("Yes\n");
        }
        else
            printf("No\n");
    }
    else
        printf("No\n");

    return 0;
}


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

#include<bits/stdc++.h>
using namespace std;
int main()
{
    char str[1000],stresp[1000],i,j,k,l,str1[1000],str2[1000],str3[1000],str4[1000],n,m;
    scanf("%s",str);
    int len=strlen(str);
    strcpy(stresp,str);
    strrev(stresp);
    int g=strcasecmp(stresp,str);
    if(len%2!=0 && g==0)
    {
        n=(len-1)/2;
        for(i=0; i<n; i++)
        {
            str1[i]=str[i];
        }
        m=(len+3)/2;
        for(j=m-1; j<len; j++)
        {
            str2[j]=str[j];
        }
        for(i=0,l=0; i<n; i++,l++)
        {
            str4[l]=str1[i];
        }

        for(j=m-1,k=0; j<len; j++,k++)
        {
            str3[k]=str2[j];
        }

        int x=strcmp(str3,str4);
        if(x==0)
        {
            printf("Yes\n");
        }
        else
            printf("No\n");
    }
    else
        printf("No\n");

    return 0;
}



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

#include<bits/stdc++.h>
using namespace std;
int main()
{
    char str[1000],stresp[1000],i,j,k,l,str1[1000],str2[1000],str3[1000],str4[1000],n,m;
    gets(str);
    int len=strlen(str);
    strcpy(stresp,str);
    strrev(stresp);
    int g=strcasecmp(stresp,str);
    if(len%2!=0 && g==0)
    {
        n=(len-1)/2;
        for(i=0; i<n; i++)
        {
            str1[i]=str[i];
        }
        m=(len+3)/2;
        for(j=m-1; j<len; j++)
        {
            str2[j]=str[j];
        }
        for(i=0,l=0; i<n; i++,l++)
        {
            str4[l]=str1[i];
        }

        for(j=m-1,k=0; j<len; j++,k++)
        {
            str3[k]=str2[j];
        }

        int x=strcmp(str3,str4);
        if(x==0)
        {
            printf("Yes\n");
        }
        else
            printf("No\n");
    }
    else
        printf("No\n");

    return 0;
}



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

#include<stdio.h>
#include<string.h>
int main()
{
    char str[1000],stresp[1000],i,j,k,l,str1[1000],str2[1000],str3[1000],str4[1000],n,m;
    gets(str);
    int len=strlen(str);
    strcpy(stresp,str);
    strrev(stresp);
    int g=strcasecmp(stresp,str);
    if(len%2!=0 && g==0)
    {
        n=(len-1)/2;
        for(i=0; i<n; i++)
        {
            str1[i]=str[i];
        }
        m=(len+3)/2;
        for(j=m-1; j<len; j++)
        {
            str2[j]=str[j];
        }
        for(i=0,l=0; i<n; i++,l++)
        {
            str4[l]=str1[i];
        }
        
        for(j=m-1,k=0; j<len; j++,k++)
        {
            str3[k]=str2[j];
        }
        
        int x=strcmp(str3,str4);
        if(x==0)
        {
            printf("Yes\n");
        }
        else
            printf("No\n");
    }
    else
        printf("No\n");

    return 0;
}


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

/*starting with the name of almighty ALLAH*/
/*solved by RAKIB JOY*/
#iclude<cstring.h>
#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:3:2: error: invalid preprocessing directive #iclude; did you mean #include?
    3 | #iclude<cstring.h>
      |  ^~~~~~
      |  include
a.cc: In function 'int main()':
a.cc:9:5: error: 'gets' was not declared in this scope; did you mean 'getw'?
    9 |     gets(a);
      |     ^~~~
      |     getw
Language: C++

/*starting with the name of almighty ALLAH*/
/*solved by RAKIB JOY*/
#include<string>
#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:9:5: error: 'gets' was not declared in this scope; did you mean 'getw'?
    9 |     gets(a);
      |     ^~~~
      |     getw