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

#include<bits/stdc++.h>
using namespace std;
string s;
int main()
{
  long long i;
  cin>>s;
  long long n=s.length(),st=0,end=n-1,c=0;
  while(st<end)
  {
    if(s[st]==s[end])
    {
      st++;
      end--;
    }
    else
    {
      c++;
      break;
  }
  if(c==0)
  {
    end=(n-1)/2-1,st=0,c=0;
    while(st<end)
  	{
      if(s[st]==s[end])
      {
        st++;
        end--;
      }
      else
      {
        c++;
        break;
      }
    }
     if(c==0)
     {
       st=(n+3)/2-1,end=n-1;
      while(st<end)
      {
        if(s[st]==s[end])
        {
          st++;
          end--;
        }
        else
        {
          c++;
          break;
        }
      }
       if(c==0)
       {
         printf("YES\n");
         return 0;
       }
       else
       {
         printf("No\n");
         return 0;
       }
     }
      else
      {
        printf("No\n");
        return 0;
      }
  }
    else
    {
      printf("No\n");
      return 0;
    }
}

Compiler output:
a.cc: In function 'int main()':
a.cc:75:2: error: expected '}' at end of input
   75 | }
      |  ^
a.cc:5:1: note: to match this '{'
    5 | {
      | ^
Language: C

#include <stdio.h>
 
int main(void) {
  char s[100], s2[100];
  scanf("%s", s);
  int i=0,j=0;
  for(s[i]!='\0'; ++i);
  while(j<i) {
    s2[j] == s[i-j];
    j++;
  }
  
  if (s == s2 && s3 == s4 && s5 == s6) {
    printf("Yes");
  }
  else {
    printf("No");
  }
  return 0;
}


Compiler output:
main.c: In function 'main':
main.c:7:22: error: expected ';' before ')' token
    7 |   for(s[i]!='\0'; ++i);
      |                      ^
      |                      ;
main.c:13:18: error: 's3' undeclared (first use in this function); did you mean 's2'?
   13 |   if (s == s2 && s3 == s4 && s5 == s6) {
      |                  ^~
      |                  s2
main.c:13:18: note: each undeclared identifier is reported only once for each function it appears in
main.c:13:24: error: 's4' undeclared (first use in this function); did you mean 's2'?
   13 |   if (s == s2 && s3 == s4 && s5 == s6) {
      |                        ^~
      |                        s2
main.c:13:30: error: 's5' undeclared (first use in this function); did you mean 's2'?
   13 |   if (s == s2 && s3 == s4 && s5 == s6) {
      |                              ^~
      |                              s2
main.c:13:36: error: 's6' undeclared (first use in this function); did you mean 's2'?
   13 |   if (s == s2 && s3 == s4 && s5 == s6) {
      |                                    ^~
      |                                    s2
Language: C++

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

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


Compiler output:
a.cc: In function 'int main()':
a.cc:32:9: error: expected primary-expression before '}' token
   32 |         }
      |         ^
Language: C++

#include <iostream>
#include <string>
#include <cstring>
#include <vector>
#include <numeric>
#include <cstdlib>
#include <map>
#include <set>
#include <algorithm>
#include <math.h>
 
using namespace std;
 
int main(){
    string S;
    cin >> S;
 
    int N = S.size();
 
    string s1 = S.substr(0, (N-1)/2);
    string s1r = S.substr(0, (N-1)/2);
    string s2 = S.substr((N-1)/2 + 1, (N-1)/2);
    string s2r = S.substr((N-1)/2 + 1, (N-1)/2);
    string Sr = S;

    reverse(Sr.begin(). Sr.end());
    reverse(s1r.begin(), s1r.end()); 
    reverse(s2r.begin(), s2r.end()); 
 
    if(S == Sr && s1 == s1r && s2 == s2r){
        cout << "Yes" << endl;
        return 0;
    }
 
    cout << "No" << endl;
    
    return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:26:25: error: 'std::__cxx11::basic_string<char>::iterator' has no member named 'Sr'
   26 |     reverse(Sr.begin(). Sr.end());
      |                         ^~
Language: C++

clude <bits/stdc++.h>
using namespace std;
 
// Driver program to test above function
int main()
{
    string input;
 
    cin >> input;
 
    if (input == string(input.rbegin(), input.rend()))
    {
        cout << "Yes";
            return 0;
    }
    cout << "No";
}

Compiler output:
a.cc:1:1: error: 'clude' does not name a type
    1 | clude <bits/stdc++.h>
      | ^~~~~
a.cc: In function 'int main()':
a.cc:7:5: error: 'string' was not declared in this scope
    7 |     string input;
      |     ^~~~~~
a.cc:9:5: error: 'cin' was not declared in this scope
    9 |     cin >> input;
      |     ^~~
a.cc:9:12: error: 'input' was not declared in this scope; did you mean 'int'?
    9 |     cin >> input;
      |            ^~~~~
      |            int
a.cc:13:9: error: 'cout' was not declared in this scope
   13 |         cout << "Yes";
      |         ^~~~
a.cc:16:5: error: 'cout' was not declared in this scope
   16 |     cout << "No";
      |     ^~~~
Language: C++

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

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


Compiler output:
a.cc: In function 'int main()':
a.cc:20:3: error: 'else' without a previous 'if'
   20 |   else{
      |   ^~~~
a.cc:32:9: error: expected primary-expression before '}' token
   32 |         }
      |         ^
Language: C++

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

#include <iostream> 
using namespace std;

int main()
{
     string s;
     cin>>s;
     int n=s.length();
     string s1= reverse(s.begin(), s.end());
     string r = s.substr(0, (n-1)/2); 
     string r1=reverse(r.begin(), r.end());
     
     string a = s.substr(0, (n+3)/2); 
     string a2=reverse(a.begin(), a.end());
     if(s==s1 && r==r1 && a==a2)
      {
          printf("Yes");
      }
     else
      {
          printf("No");
      }

}


Compiler output:
a.cc: In function 'int main()':
a.cc:12:24: error: conversion from 'void' to non-scalar type 'std::string' {aka 'std::__cxx11::basic_string<char>'} requested
   12 |      string s1= reverse(s.begin(), s.end());
      |                 ~~~~~~~^~~~~~~~~~~~~~~~~~~~
a.cc:14:23: error: conversion from 'void' to non-scalar type 'std::string' {aka 'std::__cxx11::basic_string<char>'} requested
   14 |      string r1=reverse(r.begin(), r.end());
      |                ~~~~~~~^~~~~~~~~~~~~~~~~~~~
a.cc:17:23: error: conversion from 'void' to non-scalar type 'std::string' {aka 'std::__cxx11::basic_string<char>'} requested
   17 |      string a2=reverse(a.begin(), a.end());
      |                ~~~~~~~^~~~~~~~~~~~~~~~~~~~
Language: C++

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

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


Compiler output:
a.cc: In function 'int main()':
a.cc:20:3: error: 'else' without a previous 'if'
   20 |   else{
      |   ^~~~
a.cc:32:9: error: expected primary-expression before '}' token
   32 |         }
      |         ^
Language: C++

import sys
s = input()
n = len(s)
t = s
t = t[::-1]
if s!=t:
    print("No")
    exit()
t = s[:(n-1)//2]
t = t[::-1]
if s[:(n-1)//2]!=t:
    print("No")
    exit()
t = s[(n+3)//2-1:]
t = t[::-1]
if s[(n+3)//2-1:]!=t:
    print("No")
    exit()
print("Yes")

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

import java.util.Scanner;

public static void main(String[] args) {

  char word[];
  int k = 0;
  
  Scanner scan = new Scanner(System.in);
  String S = scan.next();
  
  int N = S.length();
  
  for(int a = 0; a < N; a++){
   
    //for文で文字数分の配列に1文字ずつ入れたかった(野望)
    word[a] = str.charAt(a);

  }
  
//文字数が偶数だったときは半分までkに+1
//同時にN-kと同じ文字か判定
  if(N % 2 == 0){
    while(k <= N / 2 ){
      if(word[k] == word[N-k]){
        k++;
      } else {
        System.out.println("No");
        continue;
      }
    }
    System.out.println("Yes");
//文字数が奇数だったときは半分までkに+1
//最大を+1にする 同時にN-kと同じ文字か判定
  } else {
    while(k <= N - 1 / 2 ){
      if(word[k] == word[N-1-k]){
        k++;
      } else {
        System.out.println("No");
      }
    }
    System.out.println("Yes");
  }
//ぴえん
  
  
  }

  
}

Compiler output:
Main.java:3: error: unnamed classes are a preview feature and are disabled by default.
public static void main(String[] args) {
              ^
  (use --enable-preview to enable unnamed classes)
Main.java:50: error: class, interface, enum, or record expected
}
^
2 errors
Language: C++

#include <bits/stdc++.h>
using namespace std;
int main() {
    string S;
    cin >> S;
  string T;
  T="Yes";
    int len = S.size();
    for(int i = 0; i < (len-1)/2; i++){
        if(S.at(i) != S.at(((len-2)/2)-i) || S.at(i) != S.at(len-1-i)) {
          T="No"
          cout << "No" << endl;
          break;
        }
    }
      if(T=="Yes"){
       cout << "Yes" << endl;
}
         }


Compiler output:
a.cc: In function 'int main()':
a.cc:11:17: error: expected ';' before 'cout'
   11 |           T="No"
      |                 ^
      |                 ;
   12 |           cout << "No" << endl;
      |           ~~~~
Language: C++

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

//回文判定
bool judge(string s){
  string rev;
  int count=0;
  for(int i=0;i<l;++i){
    if(rev[l-1-i] == s[i]) count++;
  }
  if(count == l) return true;
  else return false;
}

bool judge_head(string s){
  string rev;
  int count=0;
  for(int i=0;i<(l-1)/2;++i){
    if(rev[(l-1)/2-i] == s[i]) count++;
  }
  if(count == (l-1)/2) return true;
  else return false;
}
bool judge_tail(string s){
  string rev;
  int count=0;
  for(int i=(l+3)/2;i<l;++i){
    if(rev[l-1-i] == s[i]) count++;
  }
  if(count == (l+3)/2-l) return true;
  else return false;
}

int main(){
  string s;
  cin >> s;
  int l = s.size();
 
  if(judge(s) == true and judge_head(s) == true and judge_tail(s) == true){
    cout << "Yes" << endl;
  }
  else cout << "No" << endl;
  return 0;
}

Compiler output:
a.cc: In function 'bool judge(std::string)':
a.cc:8:17: error: 'l' was not declared in this scope
    8 |   for(int i=0;i<l;++i){
      |                 ^
a.cc:11:15: error: 'l' was not declared in this scope
   11 |   if(count == l) return true;
      |               ^
a.cc: In function 'bool judge_head(std::string)':
a.cc:18:18: error: 'l' was not declared in this scope
   18 |   for(int i=0;i<(l-1)/2;++i){
      |                  ^
a.cc:21:16: error: 'l' was not declared in this scope
   21 |   if(count == (l-1)/2) return true;
      |                ^
a.cc: In function 'bool judge_tail(std::string)':
a.cc:27:14: error: 'l' was not declared in this scope
   27 |   for(int i=(l+3)/2;i<l;++i){
      |              ^
a.cc:30:16: error: 'l' was not declared in this scope
   30 |   if(count == (l+3)/2-l) return true;
      |                ^
a.cc: In function 'bool judge(std::string)':
a.cc:13:1: warning: control reaches end of non-void function [-Wreturn-type]
   13 | }
      | ^
a.cc: In function 'bool judge_head(std::string)':
a.cc:23:1: warning: control reaches end of non-void function [-Wreturn-type]
   23 | }
      | ^
a.cc: In function 'bool judge_tail(std::string)':
a.cc:32:1: warning: control reaches end of non-void function [-Wreturn-type]
   32 | }
      | ^
Language: C

/*
          , -- 、
        /;;;;;;', 　　　
        i二二二i
      , ' 　    ヽ ???
     i　ﾉﾉﾉﾉﾉﾍ .', 　　
     〉ﾘi' ﾟ ヮﾟﾉﾚく　 WAyon..........
  ○⊂}〈lﾄ--ｲl〉{つ● 　　
      ,ｒ/ー i-ヽヽ 　　　
     ｀｀i_ﾗi_ﾗ
*/


#include <bits/stdc++.h>
using namespace std;
#define rep(i,n) for(int i=0;i<n;i++)
#define int long long
const int INF=(long long)1e12;
const int mod=(int)1e9+7;
#define all(a) (a).begin(),(a).end()
typedef vector<vector<int>> graph;
int sz=262144;complex<double> y[262160],A[262160],B[262160];

void dft(complex<double> *x,bool inv);
#define P pair<int,int>



//始点、終点の設定は適宜やる
//(そのままだとqueueにはなにもないよ)
//int h,w;
bool kaibun(string s){
    for(int i=0;i<=s.size()/2-1;i++){
        if(s[i]!=s[s.size()-i-1])return false;
    }
    return true;
}

signed main(){
    cin.tie(nullptr);
    ios_base::sync_with_stdio(false);
  /*  cin >>h>>w;
    vector<vector<int>> a(h,vector<int>(w));
    rep(i,h)rep(j,w)cin >>a[i][j];*/

  string s;cin >>s;
  string t1=s.substr(0,(s.size()+1)/2);
  reverse(all(s));
  string t2=s.substr(0,(s.size()+1)/2);
  if(kaibun(t1)&&t1==t2)cout <<"Yes"<<endl;
  else cout <<"No"<<endl;


}

void dft(complex<double> *x,bool inv){
    for(int i=sz>>1;i>=1;i>>=1){
        complex<double> zeta=polar(1.0,2.0*acos(-1)*i/sz*(inv?-1.0:1.0)),now=1;
        for(int j=0;2*j<sz;j+=i){//i飛ばし
            rep(k,i) {
                y[k+j]=x[2*j+k]+now*x[2*j+i+k];
                y[j+k+(sz/2)]=x[2*j+k]-now*x[2*j+i+k];//sz/2以上のやつ。原点対称を利用
            }
            now*=zeta;
        }
        rep(i,sz)x[i]=y[i];//探索の区間の幅を狭める前にこぴー
    }

    if(inv)rep(i,sz)x[i]/=sz;

}

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

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

int main(){
  string S;
  cin >> S;
  int N;
  N = S.size();
  int count = 0;
  
  for (int i = 0; i < N / 2; i++){
    
    if (S.at(i) == S.at(N - i - 1)){
      count++;
    }
    else{
      break;
      count = 0;
    }
  }//回文かどうか判定
        
  if (count == 0){
    cout << "No" << endl;
    return 0;
  }//回文でないならNo出力
  else{
    
    for (int j = 0; j < N / 2 / 2; j++){
      
      if (S.at(j) == S.at(N / 2 - 1 - j)){
        count++;
      }
      else{
        break;
        count = 0;
      }
    }
  }
        
  if (count == 0){
    cout << "No" << endl;
    return 0;
  }
  else{
    
    for (int k = 0; k < N / 2 / 2; k++){
      
      if (S.at(N / 2 + 1 + k) == S.at(N - 1 - k)){
        count++;
      }
      else{
        break;
        count = 0;
        cout << "No" << endl;
        return 0;
      }
    }
  }
  
  if (count > 0){
    cout << "Yes" << endl;
  }
  else{
    cout << "No" << endl;
  }
}

Compiler output:
a.cc:1:1: error: 'include' does not name a type
    1 | include <bits/stdc++.h>
      | ^~~~~~~
a.cc: In function 'int main()':
a.cc:5:3: error: 'string' was not declared in this scope
    5 |   string S;
      |   ^~~~~~
a.cc:6:3: error: 'cin' was not declared in this scope
    6 |   cin >> S;
      |   ^~~
a.cc:6:10: error: 'S' was not declared in this scope
    6 |   cin >> S;
      |          ^
a.cc:23:5: error: 'cout' was not declared in this scope; did you mean 'count'?
   23 |     cout << "No" << endl;
      |     ^~~~
      |     count
a.cc:23:21: error: 'endl' was not declared in this scope
   23 |     cout << "No" << endl;
      |                     ^~~~
a.cc:41:5: error: 'cout' was not declared in this scope; did you mean 'count'?
   41 |     cout << "No" << endl;
      |     ^~~~
      |     count
a.cc:41:21: error: 'endl' was not declared in this scope
   41 |     cout << "No" << endl;
      |                     ^~~~
a.cc:54:9: error: 'cout' was not declared in this scope; did you mean 'count'?
   54 |         cout << "No" << endl;
      |         ^~~~
      |         count
a.cc:54:25: error: 'endl' was not declared in this scope
   54 |         cout << "No" << endl;
      |                         ^~~~
a.cc:61:5: error: 'cout' was not declared in this scope; did you mean 'count'?
   61 |     cout << "Yes" << endl;
      |     ^~~~
      |     count
a.cc:61:22: error: 'endl' was not declared in this scope
   61 |     cout << "Yes" << endl;
      |                      ^~~~
a.cc:64:5: error: 'cout' was not declared in this scope; did you mean 'count'?
   64 |     cout << "No" << endl;
      |     ^~~~
      |     count
a.cc:64:21: error: 'endl' was not declared in this scope
   64 |     cout << "No" << endl;
      |                     ^~~~
Language: C++

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

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

Compiler output:
a.cc: In function 'int main()':
a.cc:13:33: error: expected ',' or ';' before ')' token
   13 |   int j = (N.size() + 3) / 2 - 1);
      |                                 ^
a.cc:20:35: error: lvalue required as left operand of assignment
   20 |   if (i == (N.size() - 1) / 2 - 1 && j = N.size() - 1 ) {
      |       ~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~
a.cc:22:3: error: expected '}' before 'else'
   22 |   else {
      |   ^~~~
a.cc:20:57: note: to match this '{'
   20 |   if (i == (N.size() - 1) / 2 - 1 && j = N.size() - 1 ) {
      |                                                         ^
Language: C++

#include <bits/stdc++.h>
#include <algorithm>
using namespace std;
 
int main() {
  string S;
  cin >> S ;
  int N =S.size() ;
  string SR = reverse(S.begin(), S.end());
  string S1 = S.substr(1,(N-1)/2);
  string S1R = reverse(S1.begin(), S.end());
  string S2 = S.substr((N+3)/2,N); 
  string S2R = reverse(S2.begin(), S.end());  

 
  if ((S == SR) && (S1 == S1R) && (S2 == S2R){
    cout << "Yes" << endl;
  }
  
  else {
    cout << "No" << endl;
  }
 
}

Compiler output:
a.cc: In function 'int main()':
a.cc:9:22: error: conversion from 'void' to non-scalar type 'std::string' {aka 'std::__cxx11::basic_string<char>'} requested
    9 |   string SR = reverse(S.begin(), S.end());
      |               ~~~~~~~^~~~~~~~~~~~~~~~~~~~
a.cc:11:23: error: conversion from 'void' to non-scalar type 'std::string' {aka 'std::__cxx11::basic_string<char>'} requested
   11 |   string S1R = reverse(S1.begin(), S.end());
      |                ~~~~~~~^~~~~~~~~~~~~~~~~~~~~
a.cc:13:23: error: conversion from 'void' to non-scalar type 'std::string' {aka 'std::__cxx11::basic_string<char>'} requested
   13 |   string S2R = reverse(S2.begin(), S.end());
      |                ~~~~~~~^~~~~~~~~~~~~~~~~~~~~
a.cc:16:46: error: expected ')' before '{' token
   16 |   if ((S == SR) && (S1 == S1R) && (S2 == S2R){
      |      ~                                       ^
      |                                              )
a.cc:24:1: error: expected primary-expression before '}' token
   24 | }
      | ^
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-1)/2;i++){
    if(S.at(i)!=S.at(((n-1)/2)-i)){
      cout<<"No"<<endl;
      return 0;
    }
  for(int j=0;j<(n-1)/2;j++){
      if(S.at(j+(n+3)/2-1)!=S.at(n-j)) {
        cout<<"No"<<endl;
        return 0;
      } 
  }
    cout<<"Yes"<<endl;
    
  
}

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

#include<bits/stdc++.h>
using namespace std;
int pal(string s)
{
    string s2=s;
    reverse(s.begin(),s.end());
    if(s==s2)
        return 1;
    else
        return 0;
}
int main()
{
    string s,s9,s8;
    cin>>s;
    int l=s.length();
    if(pal(s)==1)
    {
        for(int i=0;i<(l-1)/2;i++)
        {
           s9[i]=s[i];
        }s9[i]='\0';
         // cout<<s9<<endl;
            for(int j=(l+3)/2;j<l;j++)
        {
           s8[j]=s[j];
        }s8[i]='\0';
        if(pal(s8)==1 && pal(s9)==1)
            cout<<"Yes"<<endl;
        else
            cout<<"No"<<endl;
    }
    else
        cout<<"No"<<endl;

}


Compiler output:
a.cc: In function 'int main()':
a.cc:22:13: error: 'i' was not declared in this scope
   22 |         }s9[i]='\0';
      |             ^
Language: C++

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

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


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

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

int is_palindrome(char *s) {
   int i, len;
  
   len = strlen(s);
 
   for(i = 0; i < (len /3); i++) {
     if (s[i] != s[len-i-1])
       return 0;
   }
  
   if (i >= len/2)
     return 1;
   else
     return 0;
 }
int main()
{
char s[256];
  
   while(1) {
    gets(s);
    
     if (is_palindrome(s))
       cout << "Yes";
     else
       cout << "No";
   }
}

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

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

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

//条件1判定
int check1 = 0;
string R = S;
reverse(R.begin(), R.end());

for (int i = 0; i < S.length(); i++) {
  if(S.at(i) != R.at(i)) {
    check1 = 0;
    break;
  }

  if (i == (S.length() - 1)) {
     check1 = 1;
  }
}

//条件2 
int check2 = 0;
int N = S.length();
string T;

for(int i = 0; i < (N - 1)/2; i++) {
  T += S.at(i);
}
 string U = T;
 reverse(U.begin(), U.end());

if (U == T) {
  check2 = 1;
}

//条件2 
int check3 = 0;
string P;

for(int i = ((N + 3)/2) - 1; i < N; i++) {
  P += S.at(i);
}

string Q = P;
 reverse(Q.begin(), P.end());

if (P == Q) {
  check3 = 1;
}

if ((check1 == 1)&&(check2 == 1)&&(check3 == 1)) {
  cout << "Yes" << endl;
}
else {
  cout << "No" << endl;
}
a
}


Compiler output:
a.cc: In function 'int main()':
a.cc:60:1: error: 'a' was not declared in this scope
   60 | a
      | ^
Language: C++

#include<iostream>
#include<string.h>
#include<algorithm>
using namespace std;
int main()
{ ios_base::sync_with_stdio(0);
  cin.tie(0);
   cout.tie(0);
  char s[100];
   cin>>s;
   char s1[]=sort(s+0,s+strlen(s));
 if(strcmp(s,s1)
    cout<<"Yes";
    cout<<"No";
 return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:11:18: error: initializer fails to determine size of 's1'
   11 |    char s1[]=sort(s+0,s+strlen(s));
      |              ~~~~^~~~~~~~~~~~~~~~~
a.cc:11:18: error: array must be initialized with a brace-enclosed initializer
a.cc:12:17: error: expected ';' before 'cout'
   12 |  if(strcmp(s,s1)
      |                 ^
      |                 ;
   13 |     cout<<"Yes";
      |     ~~~~         
a.cc:14:15: error: expected ')' before ';' token
   14 |     cout<<"No";
      |               ^
      |               )
a.cc:12:4: note: to match this '('
   12 |  if(strcmp(s,s1)
      |    ^
Language: C++

#include<bits/stdc++.h>
using namespace std;
string s;
int main()
{
  long long i,c=0;
  cin>>s;
  long long n=s.length(),st=0,end=n-1,c=0;
  while(st<end)
  {
    if(s[st]==s[end])
    {
      st++;
      end--;
    }
    else
    {
      c++;
      break;
  }
  if(c==0)
  {
    end=(n-1)/2-1,st=0,c=0;
    while(st<end)
  	{
      if(s[st]==s[end])
      {
        st++;
        end--;
      }
      else
      {
        c++;
        break;
    }
     if(c==0)
     {
       st=(n+3)/2-1,end=n-1;
      while(st<end)
      {
        if(s[st]==s[end])
        {
          st++;
          end--;
        }
        else
        {
          c++;
          break;
      }
       if(c==0)
       {
         printf("YES\n");
         return 0;
       }
       else
       {
         printf("No\n");
         return 0;
       }
     }
      else
      {
        printf("No\n");
        return 0;
      }
  }
    else
    {
      printf("No\n");
      return 0;
    }
}

Compiler output:
a.cc: In function 'int main()':
a.cc:8:39: error: redeclaration of 'long long int c'
    8 |   long long n=s.length(),st=0,end=n-1,c=0;
      |                                       ^
a.cc:6:15: note: 'long long int c' previously declared here
    6 |   long long i,c=0;
      |               ^
a.cc:62:7: error: expected '}' before 'else'
   62 |       else
      |       ^~~~
a.cc:37:6: note: to match this '{'
   37 |      {
      |      ^
a.cc:68:5: error: expected '}' before 'else'
   68 |     else
      |     ^~~~
a.cc:22:3: note: to match this '{'
   22 |   {
      |   ^
a.cc:73:2: error: expected '}' at end of input
   73 | }
      |  ^
a.cc:5:1: note: to match this '{'
    5 | {
      | ^
Language: C++

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

int main() {

	string S;

	bool x = false;
	bool y = false;

	string bat[110];
	string cow[110];

	cin >> S;
	
	for (int i = 0; i <= (S.size() - 1) / 2; i++) {
		cow[i] = S.at(i);
	}
	bat = cow;

	reverse(cow.begin(), cow.end());
	
	if (bat == cow) {
		x = true;
	}

	string cat[110];
	for(int i = (S.size() + 3) / 2; i <= S.size(); i++) {
		cat[i] = S.at(i);
	}

	string dog[110];

	dog = cat;

	reverse(cat.begin(), cat.end());

	if (dog == cat) {
		y = true;
	}

	if (x && y) {
		cout << "Yes" << endl;
	}
	else {
		cout << "No" << endl;
	}


}

Compiler output:
a.cc: In function 'int main()':
a.cc:19:13: error: invalid array assignment
   19 |         bat = cow;
      |         ~~~~^~~~~
a.cc:21:21: error: request for member 'begin' in 'cow', which is of non-class type 'std::string [110]' {aka 'std::__cxx11::basic_string<char> [110]'}
   21 |         reverse(cow.begin(), cow.end());
      |                     ^~~~~
a.cc:21:34: error: request for member 'end' in 'cow', which is of non-class type 'std::string [110]' {aka 'std::__cxx11::basic_string<char> [110]'}
   21 |         reverse(cow.begin(), cow.end());
      |                                  ^~~
a.cc:34:13: error: invalid array assignment
   34 |         dog = cat;
      |         ~~~~^~~~~
a.cc:36:21: error: request for member 'begin' in 'cat', which is of non-class type 'std::string [110]' {aka 'std::__cxx11::basic_string<char> [110]'}
   36 |         reverse(cat.begin(), cat.end());
      |                     ^~~~~
a.cc:36:34: error: request for member 'end' in 'cat', which is of non-class type 'std::string [110]' {aka 'std::__cxx11::basic_string<char> [110]'}
   36 |         reverse(cat.begin(), cat.end());
      |                                  ^~~
Language: C++

#include<bits/stdc++.h>
#include<string.h>
#include<stdio.h>
#include<conio.h>
using namespace std;
int main()
{ char a[1000],b[1000],s[1000],d[1000];
  gets(a);
 strcpy(b, a);
 strrev(b);
 if (strcmp(a, b) == 0)
 {
   for(int i=1;i<strlen(a)/2;i++)
   {
     if(i<=strlen(a)/2) s[i]=a[i];
       else d[i]=a[i];
   }
   strcpy(a,s);
   strcpy(b,d);
   strrev(s);strrev(d);
   if(strcmp(a,b)==0)
   {cout<<"yes";}
   else cout<<"no";
 }
  else
    printf("The string isn't a palindrome.\n");
}


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

#include <bits/stdc++.h>
using namespace std;
int main(){
    string s;
    cin >>s;
    int n;
    n=s.size();
    int count=0;
    int a=0;
    int d=0;
    for(int i =0;i<(n-1)/2;i++){
        if(s.at(i)==s.at(n-i-1)){
        count++
        }}
    if(count == (n-1)/2){
        a=(n-1)/4
        for(int i=0;i<a;i++){
        if(s.at(i)==s.at(a-i-1)){
        d++;
        }}
     if(d==a){
     cout <<"Yes"<<endl;
         return 0;
     }
        cout <<"No"<<endl;
        return 0;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:13:16: error: expected ';' before '}' token
   13 |         count++
      |                ^
      |                ;
   14 |         }}
      |         ~       
a.cc:16:18: error: expected ';' before 'for'
   16 |         a=(n-1)/4
      |                  ^
      |                  ;
   17 |         for(int i=0;i<a;i++){
      |         ~~~       
a.cc:17:21: error: 'i' was not declared in this scope
   17 |         for(int i=0;i<a;i++){
      |                     ^
a.cc:27:2: error: expected '}' at end of input
   27 | }
      |  ^
a.cc:3:11: note: to match this '{'
    3 | int main(){
      |           ^
Language: C++

#include<iostream>
#include<string.h>
#include<algorithm>
using namespace std;
int main()
{ ios_base::sync_with_stdio(0);
  cin.tie(0);
   cout.tie(0);
  char s[100];
   cin>>s;
   char s1[100]=sort(s+0,s+strlen(s)-1);
 if(strcmp(s,s1){
   cout<<"Yes";}
    cout<<"No";
 return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:11:21: error: array must be initialized with a brace-enclosed initializer
   11 |    char s1[100]=sort(s+0,s+strlen(s)-1);
      |                 ~~~~^~~~~~~~~~~~~~~~~~~
a.cc:12:17: error: expected ';' before '{' token
   12 |  if(strcmp(s,s1){
      |                 ^
      |                 ;
a.cc:14:15: error: expected ')' before ';' token
   14 |     cout<<"No";
      |               ^
      |               )
a.cc:12:4: note: to match this '('
   12 |  if(strcmp(s,s1){
      |    ^
Language: C++

#include<bits/stdc++.h>
#include<string.h>
using namespace std;
int main()
{ char a[1000],b[1000],s[1000],d[1000];
  gets(a);
 strcpy(b, a);
 strrev(b);
 if (strcmp(a, b) == 0)
 {
   for(int i=1;i<strlen(a)/2;i++)
   {
     if(i<=strlen(a)/2) s[i]=a[i];
       else d[i]=a[i];
   }
   strcpy(a,s);
   strcpy(b,d);
   strrev(s);strrev(d);
   if(strcmp(a,b)==0)
   {cout<<"yes";}
   else cout<<"no";
 }
  else
    printf("The string isn't a palindrome.\n");
}


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

#include<iostream>
#include<string.h>
#include<algorithm>
using namespace std;
int main()
{ ios_base::sync_with_stdio(0);
  cin.tie(0);
   cout.tie(0);
  char s[100];
   cin>>s;
   char s1[]=sort(s+0,s+(strlen(s)-1));
 if(strcmp(s,s1){
   cout<<"Yes";}
    cout<<"No";
 return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:11:18: error: initializer fails to determine size of 's1'
   11 |    char s1[]=sort(s+0,s+(strlen(s)-1));
      |              ~~~~^~~~~~~~~~~~~~~~~~~~~
a.cc:11:18: error: array must be initialized with a brace-enclosed initializer
a.cc:12:17: error: expected ';' before '{' token
   12 |  if(strcmp(s,s1){
      |                 ^
      |                 ;
a.cc:14:15: error: expected ')' before ';' token
   14 |     cout<<"No";
      |               ^
      |               )
a.cc:12:4: note: to match this '('
   12 |  if(strcmp(s,s1){
      |    ^
Language: C++

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

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


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

#include <iostream>
#include <string>
#include <algorithm>

using namespace std;

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

	int full_size = str.size();
	
	string str_f_half = str.substr(0, (full_size - 1) / 2);
	string str_b_half = str.substr((full_size + 1) / 2, (full_size + 3) / 2);
	reverse(str_b_half.begin(), str_b_half.end());

	bool flag = false;

	if (str_f_half == str_b_half && str_f_half.size > 2) {
		int half_size = str_f_half.size();
		string str_ff_quorter = str_f_half.substr(0, (half_size - 1) / 2);
		string str_fb_quorter = str_f_half.substr((half_size + 2) / 2, (half_size + 3) / 2);
		reverse(str_fb_quorter.begin(), str_fb_quorter.end());

		string str_bf_quorter = str_b_half.substr(0, (half_size - 1) / 2);
		string str_bb_quorter = str_b_half.substr((half_size + 2) / 2, (half_size + 3) / 2);
		reverse(str_bb_quorter.begin(), str_bb_quorter.end());

		if (str_ff_quorter == str_fb_quorter && str_bf_quorter == str_bb_quorter) {
			flag = true;
		}
	}
	if (flag) {
		cout << "Yes" << endl;
	}
	else {
		cout << "No" << endl;
	}
}


Compiler output:
a.cc: In function 'int main()':
a.cc:20:52: error: invalid use of member function 'std::__cxx11::basic_string<_CharT, _Traits, _Alloc>::size_type std::__cxx11::basic_string<_CharT, _Traits, _Alloc>::size() const [with _CharT = char; _Traits = std::char_traits<char>; _Alloc = std::allocator<char>; size_type = long unsigned int]' (did you forget the '()' ?)
   20 |         if (str_f_half == str_b_half && str_f_half.size > 2) {
      |                                         ~~~~~~~~~~~^~~~
      |                                                        ()
Language: C++

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

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

    bool flag=false;
    int n=s.size();
    s.insert(0,"0");
    for(int i=1;i<=n/2;i++){
        if(s.at(i)==s.at(n-i+1)){
            if(i==n/2)
              flag=true;
        }
        else
        {
            flag=false;
            break;

        }
        
    }

    if(flag){
    for(int i=1;i<=(n-1+2)/4;i++){
        if(s.at(i)==s.at((n-1)/2-i+1)){
            if(i==(n-1+2)/4)
              flag=true;
        }
        else
        {
            flag=false;
            break;
        }
        
    }}

    if(flag){}
    for(int i=(n+3)/2;i<=(n-3+2)/4+(n+3)/2;i++){
        if(s.at(i)==s.at(n-i+(n+3)/2)){
            if(i==(n-3+2)/4+(n+3)/2)
              flag=true;
        }
        else
        {
            flag=false;
            break;
        }
        
    }}



    if(flag)
        cout<<"Yes"<<endl;
    else
        cout<<"No"<<endl;

    return 0;
}


Compiler output:
a.cc:56:5: error: expected unqualified-id before 'if'
   56 |     if(flag)
      |     ^~
a.cc:58:5: error: expected unqualified-id before 'else'
   58 |     else
      |     ^~~~
a.cc:61:5: error: expected unqualified-id before 'return'
   61 |     return 0;
      |     ^~~~~~
a.cc:62:1: error: expected declaration before '}' token
   62 | }
      | ^
Language: C++

#include<bits/stdc++.h>
using namespace std;
int main(){
  string s;
  cin>>s;
  int x=0,y=0;
   int N=s.size();
  if(N==3){
    if(s.at(0)==s.at(2)){
      x=1;
      y=1;
    }
  }
  else{
  for(int i=0;i<(N-1)/2;i++){
    if(s.at(i)==s.at(N-1-i)){
      x=1;
    }
    else 
      x=0;
      break;
  }
  for(int i=0;i<(N-1)/4;i++){
    if(s.at(i)==s.at((N-1)/2-1-i)
       &&s.at((N+3)/2-1+i)==s.at(N-1-i)){
      y=1;
    }
    else
      y=0;
      break;
  }
  }
  if(x*y==1) cout<<"Yes"<<endl;
  else(x*y==0) cout<<"No"<<endl;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:34:15: error: expected ';' before 'cout'
   34 |   else(x*y==0) cout<<"No"<<endl;
      |               ^~~~~
      |               ;
Language: C++

#include <iostream>
using namespace std;
int main()
{
	int N;
	cin >> N;
	char S[101];
	for (int i = 0; i <= N; i++)
		cin >> S[i];
	for (int j = 0; j <= (N - 1) / 2; j++)
		if (S[j] == S[N])
			N -= 1;
		else
			break;
			cout << "No";
			//break;
	for (int k = 0; k <= ((((N - 1) / 2)	- 1) / 2); k++)
		if (S[k] == S[(N - 1) /2])
			((N - 1) / 2) = ((N - 1) / 2) - 1;
		else
			break;
			cout << "No";
			//break;
	for (int l = ((N + 3) / 2); l <= ((N / 2) + 1 + (N / 4) + 1); l++)
		if (S[l] == S[N])
			N -= 1;
		else
			break;
			cout << "No";
			//break;
	cout << "Yes";
	return 0;	
}

Compiler output:
a.cc: In function 'int main()':
a.cc:19:34: error: lvalue required as left operand of assignment
   19 |                         ((N - 1) / 2) = ((N - 1) / 2) - 1;
      |                         ~~~~~~~~~^~~~
Language: C++

#include<iostream>
#include<sstream>
#include<vector>
#include<iterator>
using namespace std;

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

    string str = S;
    reverse(str.begin(), str.end());
    if (str != S) {
        cout << "No" << endl;
        return 0;
    }

    int half = S.size() / 2;
    string left = S.substr(0, half);
    string l = left;
    reverse(l.begin(), l.end());
    if (l != left) {
        cout << "No" << endl;
        return 0;
    }

    string right = S.substr(half + 1, half);
    string r = right;
    reverse(r.begin(), r.end());
    if (r != right) {
        cout << "No" << endl;
        return 0;
    }

    cout << "Yes" << endl;

    return 0;
}


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

#include<bits/stdc++.h>
using namespace std;
int main(){
  string s;
  cin>>s;
  int x=0,y=0;
   int N=s.size();
  if(N==3){
    if(s.at(0)==s.at(2)){
      x=1;
      y=1;
    }
  }
  else{
  for(int i=0;i<(N-1)/2;i++){
    if(s.at(i)==s.at(N-1-i)){
      x++;
    }
    else 
      x=0;
      break;
  }
  if((N-1)%4==0){
    for(int i=0;i<(N-1)/4;i++){
    if(s.at(i)==s.at((N-1)/2-1-i)
       &&s.at((N+3)/2-1+i)==s.at(N-1-i)){
      y++;
    }
    else
      y=0;
      break;
    }
  }
    else if((N-1)%4==1)){
    for(int i=0;i<(N-1)/4-1;i++){
    if(s.at(i)==s.at((N-1)/2-1-i)
       &&s.at((N+3)/2-1+i)==s.at(N-1-i)){
      y++;
    }
    else
      y=0;
      break;
    }
  }
  }
  if(x*y>=1) cout<<"Yes"<<endl;
  else if(x*y==0) cout<<"No"<<endl;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:34:24: error: expected primary-expression before ')' token
   34 |     else if((N-1)%4==1)){
      |                        ^
Language: C++

#include<bits/stdc++.h>
using namespace std;
int main(){
  string s;
  cin>>s;
  int x=0,y=0;
   int N=s.size();
  if(N==3){
    if(s.at(0)==s.at(2)){
      x=1;
      y=1;
    }
  }
  else{
  for(int i=0;i<(N-1)/2;i++){
    if(s.at(i)==s.at(N-1-i)){
      x++;
    }
    else 
      x=0;
      break;
  }
  if((N-1)%4==0){
    for(int i=0;i<(N-1)/4;i++){
    if(s.at(i)==s.at((N-1)/2-1-i)
       &&s.at((N+3)/2-1+i)==s.at(N-1-i)){
      y++;
    }
    else
      y=0;
      break;
    }
  }
    else(if((N-1)%4==1)){
    for(int i=0;i<(N-1)/4-1;i++){
    if(s.at(i)==s.at((N-1)/2-1-i)
       &&s.at((N+3)/2-1+i)==s.at(N-1-i)){
      y++;
    }
    else
      y=0;
      break;
    }
  }
  if(x*y>=1) cout<<"Yes"<<endl;
  else if(x*y==0) cout<<"No"<<endl;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:34:10: error: expected primary-expression before 'if'
   34 |     else(if((N-1)%4==1)){
      |          ^~
a.cc:34:10: error: expected ')' before 'if'
   34 |     else(if((N-1)%4==1)){
      |         ~^~
      |          )
a.cc:46:3: error: 'else' without a previous 'if'
   46 |   else if(x*y==0) cout<<"No"<<endl;
      |   ^~~~
a.cc:47:2: error: expected '}' at end of input
   47 | }
      |  ^
a.cc:3:11: note: to match this '{'
    3 | int main(){
      |           ^
Language: C++

#include<bits/stdc++.h>
using namespace std;
int main(){
  string s;
  cin>>s;
  int x=0,y=0;
   int N=s.size();
  if(N==3){
    if(s.at(0)==s.at(2)){
      x=1;
      y=1;
    }
  }
  else{
  for(int i=0;i<(N-1)/2;i++){
    if(s.at(i)==s.at(N-1-i)){
      x++;
    }
    else 
      x=0;
      break;
  }
  if((N-1)%4==0){
    for(int i=0;i<(N-1)/4;i++){
    if(s.at(i)==s.at((N-1)/2-1-i)
       &&s.at((N+3)/2-1+i)==s.at(N-1-i)){
      y++;
    }
    else
      y=0;
      break;
    }
  }
    else((N-1)%4==1){
    for(int i=0;i<(N-1)/4-1;i++){
    if(s.at(i)==s.at((N-1)/2-1-i)
       &&s.at((N+3)/2-1+i)==s.at(N-1-i)){
      y++;
    }
    else
      y=0;
      break;
    }
  }
  if(x*y>=1) cout<<"Yes"<<endl;
  else if(x*y==0) cout<<"No"<<endl;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:34:21: error: expected ';' before '{' token
   34 |     else((N-1)%4==1){
      |                     ^
      |                     ;
a.cc:47:2: error: expected '}' at end of input
   47 | }
      |  ^
a.cc:3:11: note: to match this '{'
    3 | int main(){
      |           ^
Language: C

#include<stdio.h>
#include<string.h>
void main()
{
  char s[100],i,n,j;
  for(i=0;s[i]!='\0',i++)
        scanf("%c",&s[i]);
  j=strlen(s)-1;
  if(j%2!=0)
  	printf("No");  
  for(i=0;i<j;i++)
  {
    if(s[i]!=s[j])
    {
      printf("No");
      break;
    }
    j--;
  }
  if(s[i]=='\0')
  {
    for(i=0,j=(n-1)/2;i<j;i++,j--)
    {
          if(s[i]!=s[j])
         {
             printf("No");
             break;
         }
    }
    if(i==(n-1)/4)
    {
      for(i=(n+1)/2,j=strlen(s)-1;i<j;i++,j--)
      {
        if(s[i]!=s[j])
        {
          printf("No");
          break;
        }
      }
      if(i==j)
        printf("Yes");
    }
    return;
  }
      
      


Compiler output:
main.c: In function 'main':
main.c:6:25: error: expected ';' before ')' token
    6 |   for(i=0;s[i]!='\0',i++)
      |                         ^
      |                         ;
main.c:44:3: error: expected declaration or statement at end of input
   44 |   }
      |   ^
Language: C++

#include <bits/stdc++.h>
#include <algorithm>
using namespace std;
 
int main() {
  string S;
  cin >> S;
  int N =S.size() ;
  string SR = reverse(S.begin(), S.end());
  string S1 = S.substr(1,(N-1)/2);
  string S1R = reverse(S1.begin(), S.end());
  string S2 = S.substr((N+3)/2,N); 
  string S2R = reverse(S2.begin(), S.end());  
 
  if ((S == SR) && (S1 == S1R) && (S2 == S2R){
    cout << "Yes" << endl;
  }
  
  else {
    cout << "No" << endl;
  }
 
}

Compiler output:
a.cc: In function 'int main()':
a.cc:9:22: error: conversion from 'void' to non-scalar type 'std::string' {aka 'std::__cxx11::basic_string<char>'} requested
    9 |   string SR = reverse(S.begin(), S.end());
      |               ~~~~~~~^~~~~~~~~~~~~~~~~~~~
a.cc:11:23: error: conversion from 'void' to non-scalar type 'std::string' {aka 'std::__cxx11::basic_string<char>'} requested
   11 |   string S1R = reverse(S1.begin(), S.end());
      |                ~~~~~~~^~~~~~~~~~~~~~~~~~~~~
a.cc:13:23: error: conversion from 'void' to non-scalar type 'std::string' {aka 'std::__cxx11::basic_string<char>'} requested
   13 |   string S2R = reverse(S2.begin(), S.end());
      |                ~~~~~~~^~~~~~~~~~~~~~~~~~~~~
a.cc:15:46: error: expected ')' before '{' token
   15 |   if ((S == SR) && (S1 == S1R) && (S2 == S2R){
      |      ~                                       ^
      |                                              )
a.cc:23:1: error: expected primary-expression before '}' token
   23 | }
      | ^
Language: C

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

int main(){
    char string1[200];
    int i, length;
    int flag = 0;
    
  
    scanf("%s", string1);
    
    length = strlen(string1);
    if(length/2!=0){
    for(i=0;i < length ;i++){
        if(string1[i] != string1[length-i-1]){
            flag = 1;
            break;
   }
}}
    
    if (flag && string1[(length-1)/2]==string1[(length+3)/2] {
        printf("Yes");
    }    
    else {
        printf("No");
    }
    return 0;
}

Compiler output:
main.c: In function 'main':
main.c:21:61: error: expected ')' before '{' token
   21 |     if (flag && string1[(length-1)/2]==string1[(length+3)/2] {
      |        ~                                                    ^~
      |                                                             )
main.c:28:1: error: expected expression before '}' token
   28 | }
      | ^
Language: C++

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



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

#include <bits/stdc++.h>
#include <algorithm>
using namespace std;
 
int main() {
  string S;
  cin >> S;
  int N =S.size() ;
  string SR = reverse(S.begin(), S.end());
  string S1 = str.substr(1,(N-1)/2);
  string S1R = reverse(S1.begin(), S.end());
  string S2 = str.substr((N+3)/2,N); 
  string S2R = reverse(S2.begin(), S.end());  
 
  if ((S == SR) && (S1 == S1R) && (S2 == S2R){
    cout << "Yes" << endl;
  }
  
  else {
    cout << "No" << endl;
  }
 
}

Compiler output:
a.cc: In function 'int main()':
a.cc:9:22: error: conversion from 'void' to non-scalar type 'std::string' {aka 'std::__cxx11::basic_string<char>'} requested
    9 |   string SR = reverse(S.begin(), S.end());
      |               ~~~~~~~^~~~~~~~~~~~~~~~~~~~
a.cc:10:15: error: 'str' was not declared in this scope; did you mean 'std'?
   10 |   string S1 = str.substr(1,(N-1)/2);
      |               ^~~
      |               std
a.cc:11:23: error: conversion from 'void' to non-scalar type 'std::string' {aka 'std::__cxx11::basic_string<char>'} requested
   11 |   string S1R = reverse(S1.begin(), S.end());
      |                ~~~~~~~^~~~~~~~~~~~~~~~~~~~~
a.cc:13:23: error: conversion from 'void' to non-scalar type 'std::string' {aka 'std::__cxx11::basic_string<char>'} requested
   13 |   string S2R = reverse(S2.begin(), S.end());
      |                ~~~~~~~^~~~~~~~~~~~~~~~~~~~~
a.cc:15:46: error: expected ')' before '{' token
   15 |   if ((S == SR) && (S1 == S1R) && (S2 == S2R){
      |      ~                                       ^
      |                                              )
a.cc:23:1: error: expected primary-expression before '}' token
   23 | }
      | ^
Language: C

#include<stdio.h>
#include<string.h>
int main (void){
int i=0,j=0,N=0,flag1=1,flag2=1,flag3=1;
char s[100],s_f[50],s_b[50];

scanf("%s",s);
N=strlen(s);

for(i=0;i<(N-3)/2;i++){
if(s[i]!=s[N-1-i]){
flag1=0;
}
}

for(i=0;i<(N-1)/2;i++){
s_f[i]=s[i];
s_b[i]=s[i+(N-1)/2];
}

for(i=0;i<(N-1)/2;i++){
if(s_f[i]!=s_f[(N-1)/2-i]){
flag2=0;
}
if(s_b[i]==s_b[(N-1)/2-i]){
flag3=0;
}
}

if(flag1==Ture && flag2==Ture && flag3==Ture){
printf("Yes");
}else{
printf("No");
}

return 0;
}

Compiler output:
main.c: In function 'main':
main.c:30:11: error: 'Ture' undeclared (first use in this function)
   30 | if(flag1==Ture && flag2==Ture && flag3==Ture){
      |           ^~~~
main.c:30:11: note: each undeclared identifier is reported only once for each function it appears in