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

#include<string>
#include<iostream>
#include <algorithm>
#include<vector>
#include<functional>
#include <cstdlib>
#define ll long long
using namespace std;



int main(){
  string S,S_reverse,S_small,S_small_reverse;
  bool large_verify,small_verify;
  cin>>S;

  S_reverse=S;

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

  if(S==S_reverse) large_verify=true;
  else large_verify=false;

  for(int i=0;i<S.size()/2;i++){
    S[i]=S_small[i];
  }

  S_small_reverse=S_small;

  reverse(S_small_reverse.bigen(),S_small_reverse.end());

  if(S_small==S_small_reverse) small_verify=true;
  else small_verif=false;


  if(large_verify==true&&small_verify==true){
    cout<<"Yes"<<endl;
  }
  else cout<<"No"<<endl;

    return 0;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:30:27: error: 'std::string' {aka 'class std::__cxx11::basic_string<char>'} has no member named 'bigen'
   30 |   reverse(S_small_reverse.bigen(),S_small_reverse.end());
      |                           ^~~~~
a.cc:33:8: error: 'small_verif' was not declared in this scope; did you mean 'small_verify'?
   33 |   else small_verif=false;
      |        ^~~~~~~~~~~
      |        small_verify
Language: C++

#include<string>
#include<iostream>
#include <algorithm>
#include<vector>
#include<functional>
#include <cstdlib>
#define ll long long
using namespace std;



int main(){
  string S;
  ll counter=0;
  cin S;

  for(int i=0;i<S.size();i++){
    if(S[i]==S[S.size()-1-i]) counter++;
    else break;
  } 


  for(int j=0;j<(S.size()-1)/2;j++){
    if(S[j]==S[(S.size()-1)/2-1-i]) counter++;
    else break;
  }

  for(int k=0;k<(S.size()+3)/2-N+1;k++){
    if(S[(S.size()+3)/2-1+k]==S[S.size()-1-k])counter++;
    else break;
  }

    if(counter==S.size()+(S.size()-1)/2+(S.size()+3)/2-N+1)
       cout<<"Yes"<<endl;

       else cout<<"No"<<endl;
    


  
  
    return 0;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:15:6: error: expected ';' before 'S'
   15 |   cin S;
      |      ^~
      |      ;
a.cc:24:33: error: 'i' was not declared in this scope
   24 |     if(S[j]==S[(S.size()-1)/2-1-i]) counter++;
      |                                 ^
a.cc:28:32: error: 'N' was not declared in this scope
   28 |   for(int k=0;k<(S.size()+3)/2-N+1;k++){
      |                                ^
a.cc:33:56: error: 'N' was not declared in this scope
   33 |     if(counter==S.size()+(S.size()-1)/2+(S.size()+3)/2-N+1)
      |                                                        ^
Language: C

nclude<stdio.h>
int main(){
  char s[99];
  scanf("%s",s);
  int i;
  for(i=0;s[i]!='\0';i++);
  int j,x=1;
  for(j=0,j<i/2;j++){
    if(s[j]!=s[i-j-1]){
      x=0;
    }
  }
  for(j=0;j<(i-2)/2;j++){
    if(s[j]!=s[(i-2)/2-j]){
      x=0;
    }
  }
  for(j=(i+2)/2;j<i-1;j++){
    if(s[(i+2)/2]!=s[(i-1-j]){
      x=0;
    }
  }
  if(x==0){
    printf("Yes");
  }else{
    printf("No");
  }
  return 0;
                     }

Compiler output:
main.c:1:7: error: expected '=', ',', ';', 'asm' or '__attribute__' before '<' token
    1 | nclude<stdio.h>
      |       ^
Language: C

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

Compiler output:
main.c: In function 'main':
main.c:4:13: error: expected ')' before 's'
    4 |   scanf("%s"s);
      |        ~    ^
      |             )
main.c:8:20: error: expected ';' before ')' token
    8 |   for(j=0,j<i/2;j++){
      |                    ^
      |                    ;
main.c:19:28: error: expected ')' before ']' token
   19 |     if(s[(i+2)/2]!=s[(i-1-j]){
      |                      ~     ^
      |                            )
Language: C++

#include <bits/stdc++.h>
using namespace std;
using vi = vector<int>;
using vii = vector<vi>;
using vs = vector<string>;
using in6 = int64_t;
using ind = double;
using pii = pair<int,int>;
using psi = pair<string,int>;
using vpi = vector<pii>;
using vps = vector<psi>;
#define rep(i, n) for (in6 i = 0; i < (in6)(n); i++)
#define repa(i,a,n) for(in6 i = a; i < (in6)(n); i++)
#define repdown(i,n) for(in6 i = n; i > 0; i--)
#define kyun ios::sync_with_stdio(false)
#define hinata cout << "\n"
#define all(c) (c).begin(), (c).end()
#define pb push_back
#define inf 2147483647

bool check(string x) {
  bool ret;
  int n = x.size();
  int do = n / 2;
  rep(i,do) {
    if(x[i] == x[n-i-1]) continue;
    else ret = false;
  }
  return ret;
}

int main() {
  kyun;
  string s;
  cin >> s;
  int size = s.size();
  string a = s.substr(0,size/2);
  string b = s.substr((size+1)/2,size/2);
  string ans = "Yes";
  if(check(a) == false) ans = "No";
  if(check(b) == false) ans = "No";
  cout << ans;
  hinata;
}

Compiler output:
a.cc: In function 'bool check(std::string)':
a.cc:24:7: error: expected unqualified-id before 'do'
   24 |   int do = n / 2;
      |       ^~
a.cc:25:9: error: expected primary-expression before 'do'
   25 |   rep(i,do) {
      |         ^~
a.cc:12:45: note: in definition of macro 'rep'
   12 | #define rep(i, n) for (in6 i = 0; i < (in6)(n); i++)
      |                                             ^
a.cc:25:9: error: expected ')' before 'do'
   25 |   rep(i,do) {
      |         ^~
a.cc:12:45: note: in definition of macro 'rep'
   12 | #define rep(i, n) for (in6 i = 0; i < (in6)(n); i++)
      |                                             ^
a.cc:12:44: note: to match this '('
   12 | #define rep(i, n) for (in6 i = 0; i < (in6)(n); i++)
      |                                            ^
a.cc:25:3: note: in expansion of macro 'rep'
   25 |   rep(i,do) {
      |   ^~~
Language: C++

#include<string>
#include<iostream>
#include <algorithm>
#include<vector>
#include<functional>
#include <cstdlib>
#define ll long long
using namespace std;



int main(){
  string S;
  ll counter=0;
  cin S;

  for(int i=0;i<(S.size()-1)/2;i++){
    if(S[S.size()/2+1+i]==S[S.size()/2-1-i]) counter++;
    else break;
  } 

  if(((S.size()-1)/2)%2==0){
    for(int k=0;k<(((S.size()-1)/2)/2);k++){
      if(S[(S.size()-1)/2-1-k]==S[(S.size()-1)/2-1+k])counter++;
      else break;
    }
  }
    else {
      for(int j=0;j<(((S.size()-1)/2-1)/2);j++){
        if(S[((S.size()-1)/2)/2-1-j]==S[((S.size()-1)/2)/2+1+j]) counter++;
        else break;
      }
    }

    if(counter==(S.size()-1)/2+(((S.size()-1)/2)/2)||
       counter==(S.size()-1)/2+(((S.size()-1)/2-1)/2))
       cout<<"Yes"<<endl;

       else cout<<"No"<<endl;
    


  
  
    return 0;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:15:6: error: expected ';' before 'S'
   15 |   cin S;
      |      ^~
      |      ;
Language: C++

#include<iostream>
#include<string>
#include<algorithm>
using namespace std;
bool ispalindrome(string s){
  int count=0;
  int N=s.size();
  for(int i=0;i<N/2;i++){
    if(s[i]==s[N-i-1]){
      count++;
    }
  }
  if(count==N/2){
    return true;
  }
  else{
    return false;
  }
}
int main(){
  string s;
  cin>>s;
  int N=s.size();
  string s1;`
  string s2;
  for(int i=0;i<(N-1)/2;i++){
    s1[i]=s[i];
  }
  int j=0;
  for(int i=((N+3)/2)-1;i<N;i++){
    s2[j]=s[i];
    j++;
  }
  if(ispalindrome(s) && ispalindrome(s1) && ispalindrome(s2)){
    cout<<"Yes"<<endl;
  }
  else{
    cout<<"No"<<endl;
  }
  return 0;
}
  


Compiler output:
a.cc:24:13: error: stray '`' in program
   24 |   string s1;`
      |             ^
Language: C++

#include<iostream>
#include<string>
#include<algorithm>
using namespace std;
bool ispalindrome(string s){
  int count=0;
  int N=s.size();
  for(int i=0;i<N/2;i++){
    if(s[i]==s[N-i-1]){
      count++;
    }
  }
  if(count==N/2){
    return true;
  }
  else{
    return false;
  }
}
int main(){
  string s;
  cin>>s;
  N=s.size();
  string s1;
  string s2;
  for(int i=0;i<(N-1)/2;i++){
    s1[i]=s[i];
  }
  for(int i=(N+3)/2;i<N;i++){
    s2[i]=s[i];
  }
  if(ispalindrome(s) && ispalindrome(s1) && ispalindrome(s2)){
    return "Yes";
  }
  else{
    return "No";
  }
  return 0;
}
  


Compiler output:
a.cc: In function 'int main()':
a.cc:23:3: error: 'N' was not declared in this scope
   23 |   N=s.size();
      |   ^
a.cc:33:12: error: invalid conversion from 'const char*' to 'int' [-fpermissive]
   33 |     return "Yes";
      |            ^~~~~
      |            |
      |            const char*
a.cc:36:12: error: invalid conversion from 'const char*' to 'int' [-fpermissive]
   36 |     return "No";
      |            ^~~~
      |            |
      |            const char*
Language: C++

#include<iostream>
#include<string>
#include<algorithm>
using namespace std;
bool ispalindrome(string s){
  int count=0;
  for(int i=0;i<N/2;i++){
    if(s[i]==s[N-i-1]){
      count++;
    }
  }
  if(count==N/2){
    return true;
  }
  else{
    return false;
  }
int main(){
  string s;
  cin>>s;
  N=s.size();
  string s1;
  string s2;
  for(int i=0;i<(N-1)/2;i++){
    s1[i]=s[i];
  }
  for(int i=(N+3)/2;i<N;i++){
    s2[i]=s[i];
  }
  if(ispalindrome(s) && ispalindrome(s1) && ispalindrome(s2)){
    return "Yes";
  }
  else{
    return "No";
  }
  return 0;
}
  


Compiler output:
a.cc: In function 'bool ispalindrome(std::string)':
a.cc:7:17: error: 'N' was not declared in this scope
    7 |   for(int i=0;i<N/2;i++){
      |                 ^
a.cc:12:13: error: 'N' was not declared in this scope
   12 |   if(count==N/2){
      |             ^
a.cc:18:9: warning: empty parentheses were disambiguated as a function declaration [-Wvexing-parse]
   18 | int main(){
      |         ^~
a.cc:18:9: note: remove parentheses to default-initialize a variable
   18 | int main(){
      |         ^~
      |         --
a.cc:18:9: note: or replace parentheses with braces to value-initialize a variable
a.cc:18:11: error: a function-definition is not allowed here before '{' token
   18 | int main(){
      |           ^
a.cc:37:2: error: expected '}' at end of input
   37 | }
      |  ^
a.cc:5:28: note: to match this '{'
    5 | bool ispalindrome(string s){
      |                            ^
a.cc:37:2: warning: control reaches end of non-void function [-Wreturn-type]
   37 | }
      |  ^
Language: C++

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

using namespace std;
int kaibun(string str){
    int m = str.size();
    int flg = 1;
    m = str.size();
    flg = 1;
    for(int i = 0; i < ((m-1)/2) ; i++){
        if (str.substr(i,1) != str.substr(m-1-i,1)) {
            flg = 0;
        }
    }
    if m = 1{
        flg = 1;
    }
    return flg;
}

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



Compiler output:
a.cc: In function 'int kaibun(std::string)':
a.cc:16:8: error: expected '(' before 'm'
   16 |     if m = 1{
      |        ^
      |        (
Language: C++

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

string reverse(string x) {
  string y(x.rbegin(), s.rend());
  return y;
}

int main() {
  string s;
  cin >> s;
  
  int s_long = s.size();
  
  /*int count = 0;
  if (s_long <= 3) {
    if (s.at(0) == s.at(2)) count++;
  }else {
    for (int i = 0; i < 2; i++) {
      
      for (int j = 0; j < (s_long / 4); j++) {
        if (s.at(j + (s_long / 2 + 1) * i) == s.at((s_long / 2 - 1) - j + (s_long / 2 + 1) * i)) count++;
      }
    }
  }
  int a = s_long <= 3 ? 1 : 3;*/
  cout << (s == reverse(s)) ? "Yes" : "No") << endl;
  
}


Compiler output:
a.cc: In function 'std::string reverse(std::string)':
a.cc:5:24: error: 's' was not declared in this scope
    5 |   string y(x.rbegin(), s.rend());
      |                        ^
a.cc: In function 'int main()':
a.cc:27:43: error: expected ';' before ')' token
   27 |   cout << (s == reverse(s)) ? "Yes" : "No") << endl;
      |                                           ^
      |                                           ;
Language: C++

#include <iostream>

using namespace std;

bool p(const string& str, size_t l, size_t r) {
    size_t ll = l;
    size_t rr = r - 1;
    while (ll <= rr) {
        if (str[ll] != str[rr]) return false;
        ++ll;
        --rr;
    }
    return true;
}

int main() {
    
    string str;
    cin >> str;
    if (p(str, 0, str.size()) && p(str, 0, (str.size() - 1) / 2) && p(str, ceil((double)(str.size() + 3) / 2.0) - 1, str.size())) {
        cout << "Yes";
    }
    else {
        cout << "No";
    }
    return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:20:76: error: 'ceil' was not declared in this scope
   20 |     if (p(str, 0, str.size()) && p(str, 0, (str.size() - 1) / 2) && p(str, ceil((double)(str.size() + 3) / 2.0) - 1, str.size())) {
      |                                                                            ^~~~
Language: C++

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

using namespace std;

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

	s = str;

	std::reverse(str.begin(), str.end());

	if (s == str) {
		cout << "Yes" << endl;
	}
	else {
		cout << "No" << endl;
	}

	return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:14:14: error: 'reverse' is not a member of 'std'
   14 |         std::reverse(str.begin(), str.end());
      |              ^~~~~~~
Language: C++

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

using namespace std;

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

	s = str;

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

	if (s == str) {
		cout << "Yes" << endl;
	}
	else {
		cout << "No" << endl;
	}

	return 0;
}

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

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

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

Compiler output:
a.cc: In function 'int main()':
a.cc:7:7: error: 'i' was not declared in this scope
    7 |   for(i=0;i<(x.size()-1)/2;i++){
      |       ^
a.cc:13:7: error: 'j' was not declared in this scope
   13 |   for(j=0;j<(x.size()-1)/2/2;j++){
      |       ^
Language: C++

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

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

Compiler output:
a.cc: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;

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

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

int main() {
  string S;
  cin >> S;
  
  int N = S.size();
  bool a = true;
  for(int i=0;i<N;i++){
    if(N == 1){
      break;
    }
    else if( S.at(i)  == S.at((N-1)/2 - i) && S.at((N+3)/2) == S.at(N - i) ){
      continue;
    }
    else{
      a = false;
      break;
    }
  }
  if(a){
    cout << "Yes" << endl;
  }
  else{
    cout << "No" << endl;
  }
     

}

        
        
        
        
        
        
        
        
        
        
        
        
        
        
        
        
        
        
        
        
        
        

Compiler output:
a.cc: In function 'int main()':
a.cc:2:3: error: 'string' was not declared in this scope
    2 |   string S;
      |   ^~~~~~
a.cc:3:3: error: 'cin' was not declared in this scope
    3 |   cin >> S;
      |   ^~~
a.cc:3:10: error: 'S' was not declared in this scope
    3 |   cin >> S;
      |          ^
a.cc:20:5: error: 'cout' was not declared in this scope
   20 |     cout << "Yes" << endl;
      |     ^~~~
a.cc:20:22: error: 'endl' was not declared in this scope
   20 |     cout << "Yes" << endl;
      |                      ^~~~
a.cc:23:5: error: 'cout' was not declared in this scope
   23 |     cout << "No" << endl;
      |     ^~~~
a.cc:23:21: error: 'endl' was not declared in this scope
   23 |     cout << "No" << endl;
      |                     ^~~~
Language: C++

#include<iostream>
#include<bits/stdc++.h>
#include<cmath>

using namespace std;

int main(){
  string s;
  cin>>s;
  int n=s.length();
  d=(s.length()-1)/2;
  e=(s.length()+3)/2;
  int c=1;
  for(i=0;i<d;i++){
    if(s[i]==s[d-i] && s[e+i]==s[n-i]){
      ;
    }else{
      c=0;
    }
  }
  if(c==1){
    cout<<"Yes";
  }else{
    cout<<"No";
  }
}

Compiler output:
a.cc: In function 'int main()':
a.cc:11:3: error: 'd' was not declared in this scope
   11 |   d=(s.length()-1)/2;
      |   ^
a.cc:12:3: error: 'e' was not declared in this scope
   12 |   e=(s.length()+3)/2;
      |   ^
a.cc:14:7: error: 'i' was not declared in this scope
   14 |   for(i=0;i<d;i++){
      |       ^
Language: C++

#include<iostream>
#include<bits/stdc++.h>
#include<cmath>

using namespace std;

int main(){
  string s;
  cin>>s;
  int n=s.length();
  d=(n-1)/2;
  e=(n+3)/2;
  int c=1;
  for(i=0;i<d;i++){
    if(s[i]==s[d-i] && s[e+i]==s[n-i]){
      ;
    }else{
      c=0;
    }
  }
  if(c==1){
    cout<<"Yes";
  }else{
    cout<<"No";
  }
}

Compiler output:
a.cc: In function 'int main()':
a.cc:11:3: error: 'd' was not declared in this scope
   11 |   d=(n-1)/2;
      |   ^
a.cc:12:3: error: 'e' was not declared in this scope
   12 |   e=(n+3)/2;
      |   ^
a.cc:14:7: error: 'i' was not declared in this scope
   14 |   for(i=0;i<d;i++){
      |       ^
Language: C++

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

int main(){
  string S;
  cin >> S;
  int N = S.size();
  int check = 0;
  for (int i = 0; i < N /2; i++){
    if (S[i] != S[N-i]){
      cout << "No" << endl;
      check = 1;
      break;
    }
  }
  if (check == 0){
    for (int j = 0; j < (N-1) /4; j++){
      if(S[j] != S[(N-1) / 2 -j){
        cout << "No" << endl;
        check = 1;
        break;
      }
    }
  }
  if (check == 0){
    int start = (N+3) /2-1;
    for (int k = 0; k < (N-1)/4; k++){
      if(S[start] != S[(N-k){
        cout << "No" << endl;
        check = 1;
        break;
      start += 1;
      }
    }
  }
  if (check == 0){
    cout << "No" << endl;
  }
}


Compiler output:
a.cc: In function 'int main()':
a.cc:18:32: error: expected ']' before ')' token
   18 |       if(S[j] != S[(N-1) / 2 -j){
      |                                ^
      |                                ]
a.cc:28:29: error: expected ']' before '{' token
   28 |       if(S[start] != S[(N-k){
      |                             ^
      |                             ]
a.cc:28:29: error: expected ')' before '{' token
   28 |       if(S[start] != S[(N-k){
      |         ~                   ^
      |                             )
a.cc:34:5: error: expected primary-expression before '}' token
   34 |     }
      |     ^
Language: C

#include<stdio.h>

int main(){
  char s[100], h[100], f[100], l[100];
  int len=0, i, m=0, n=0, k=0;
  scanf("%s", s);
  while(s[i]!='\0') len++;
  for(i=0;i<len;i++){
    h[i]=s[len-1-i];
  }
  for(i=0;i<len;i++){
    if(s[i]==h[i]) m=1;
  }
  if(m==1){
    for(i=0;i<(len-1)/2;i++){
      h[i]=s[(len-1)/2-1-i];
    }
    for(i=0;i<(len-1)/2;i++){
      if(s[i]==f[i]) n=100;
      else n=0;
    }
    for(i=len-1;i>=(len+3)/2-1;i--){
      l[i]=s[(len+3)/2-1-i];
    }
    for(i=len-1;i>=(len+3)/2-1;i--){
      if(s[i]==l[i]) k=100;
      else k=0;
  }
  if(n==100&&k==100) printf("Yes");
  else printf("No");
  return 0;
}


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

#include<stdio.h>

int main(){
  char s[100], h[100], f[100], l[100];
  int len=0, i, m=0, n=0, k=0;
  scanf("%s", s);
  while(s[i]!='\0') len++;
  for(i=0;i<len;i++){
    h[i]=s[len-1-i];
  }
  s[len]='\0';
  for(i=0;i<len;i++){
    if(s[i]==h[i]) m=1;
  }
  if(m==1){
    for(i=0;i<(len-1)/2;i++){
      h[i]=s[(len-1)/2-1-i];
    }
    for(i=0;i<(len-1)/2;i++){
      if(s[i]==f[i]) n=100;
      else n=0;
    }
    for(i=len-1;i>=(len+3)/2-1;i--){
      l[i]=s[(len+3)/2-1-i];
    }
    for(i=len-1;i>=(len+3)/2-1;i--){
      if(s[i]==l[i]) k=100;
      else k=0;
  }
  if(n==100&&k==100) printf("Yes");
  else printf("No");
  return 0;
}

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

#include<stdio.h>
#include<string.h>
int main()
{
    char a[1000],b[1000];
    gets(a);
    strcpy(b,a);
    printf("%s\n",b);
    strrev(b);
     printf("%s\n",b);
    if(strcmp(a,b)==0)
        printf("Yes");
    else
        printf("No");
}


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(a);
      |     ^~~~
      |     fgets
main.c:9:5: error: implicit declaration of function 'strrev'; did you mean 'strsep'? [-Wimplicit-function-declaration]
    9 |     strrev(b);
      |     ^~~~~~
      |     strsep
Language: C++

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

Compiler output:
a.cc: In function 'int main()':
a.cc:6:54: error: expected ')' before ';' token
    6 |     for(int i=0,j=s.size()-1;i<s.size()/2;j>=s.size();i++,j--)
      |        ~                                             ^
      |                                                      )
a.cc:6:55: error: 'i' was not declared in this scope
    6 |     for(int i=0,j=s.size()-1;i<s.size()/2;j>=s.size();i++,j--)
      |                                                       ^
a.cc:6:59: error: 'j' was not declared in this scope
    6 |     for(int i=0,j=s.size()-1;i<s.size()/2;j>=s.size();i++,j--)
      |                                                           ^
Language: C++

#include <stdio.h>
int main(){
  
  char string[]={};
  int size=0;
  
  scanf("%s",string);
  while(string[size]!=\0){
    size++;
  }
  
  for(int i=0;i<size;i++){
    
  if(string[i]=string[size-i-1]){
    continue;
  }else{
    puts("No");
  }
  }
  
  for(int i=0;i<(size-1)/2 ;i++){
    
    if(string[i]=string[((size-3)/2)-i]){
      continue;
    }else{
      puts("No");
    }
  }
  
  for(int i=0; i<(size-1)/2; i++){
    
    if(string[((size+1)/2)+i]=string[size-i-1]){
      puts("Yes");
    }else{
      puts("No");
    }
  }
  
  
 return 0; 
}

Compiler output:
a.cc:8:23: error: stray '\' in program
    8 |   while(string[size]!=\0){
      |                       ^
Language: C++

#include <bits/stdc++.h>
using namespace std;
#define rep(i, n) for (int i = 0; i < (int)(n); i++)
typedef long long ll;
const long double PI = (acos(-1));

bool isPalindrome(string s){
  string _s = s;
  reverse(_s.begin(), _s.end());

  return s == _s;
}

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

  string s;
  cin >> s;

  string t = s.substr(0, s.size()/2);
  if (isPalindrome(s) && isPalindrome(t)){
    cout << "Yes" << endl;
  }else {
    cout << "No" << endl;
  }

  return 0;

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

#include<iostream>
#include<vector>
#include<string>
#define rep(i,n) for(i = 0;i < n;i++);
using namespace std;
typedef long long ll;

bool hannbetu(string a) {
	string b = a;
	reverse(b.begin(),b.end());
	return a == b;
}

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

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

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

#define f(a, b) for(auto i = a;i < b;i++)
typedef long long int ll;

void solve()
{
	return ;
}

ll is_palindrome(ll a, ll b, string str)
{
	cout << a << " " << b;
	// ll n = (b - a) + 1;
	for(ll i = 0;i < n/2;i++)
	{
		// cout << str[a + i] << " " << str[b - i] << "\n";
		if(str[a + i] != str[b - i])
			return 0;
	}
	return 1;
}
int main()
{

	string str;
	cin >> str;
	// solve();

	ll n = str.size();
	if(is_palindrome(0, (n - 1)/2 - 1, str) && is_palindrome((n + 3)/2 - 1, n - 1, str))
		cout << "Yes\n";
	else
		cout << "No\n";


}


Compiler output:
a.cc: In function 'll is_palindrome(ll, ll, std::string)':
a.cc:16:26: error: 'n' was not declared in this scope
   16 |         for(ll i = 0;i < n/2;i++)
      |                          ^
Language: C++

#include<bits/stdc++.h>using namespace std;bool ip(const string& s, const int& left, const int& right) {for (int i = left; i < right; ++i)if (s[i] != s[right - i - 1])return false;return true;}int main() {// Time Complexity: O(N)// Space Complexity: O(N)string s;cin >> s;int n(s.length());cout << (ip(s, 0, n) && ip(s, 0, n/2)  ? "Yes\n" : "No\n");return 0;}

Compiler output:
a.cc:1:30: warning: extra tokens at end of #include directive
    1 | #include<bits/stdc++.h>using namespace std;bool ip(const string& s, const int& left, const int& right) {for (int i = left; i < right; ++i)if (s[i] != s[right - i - 1])return false;return true;}int main() {// Time Complexity: O(N)// Space Complexity: O(N)string s;cin >> s;int n(s.length());cout << (ip(s, 0, n) && ip(s, 0, n/2)  ? "Yes\n" : "No\n");return 0;}
      |                              ^~~~~~~~~
a.cc:1:9: fatal error: bits/stdc++.h>usin: No such file or directory
    1 | #include<bits/stdc++.h>using namespace std;bool ip(const string& s, const int& left, const int& right) {for (int i = left; i < right; ++i)if (s[i] != s[right - i - 1])return false;return true;}int main() {// Time Complexity: O(N)// Space Complexity: O(N)string s;cin >> s;int n(s.length());cout << (ip(s, 0, n) && ip(s, 0, n/2)  ? "Yes\n" : "No\n");return 0;}
      |         ^~~~~~~~~~~~~~~~~~~~
compilation terminated.
Language: C

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


int main()
{
    int i,j,n,count=0;
    char a[100],c[100], b[100];

    scanf("%s",a);
    strcpy(c,a);

    int l=strlen(a);

    strrev(a);



    if(strcmp(a, c)==0){
        count++;
        if(count==0){
            printf("no\n");
            return 0;
        }
    }
    strrev(a);



    for(i=0,j=((l-1)/2)-1;i<(l-1)/2;i++,j--){
        b[i]=a[j];

    }

    b[i]='\0';
    a[(l-1)/2]='\0';
    if(strcmp(a,b)==0){
        count++;
        if(count<2){
            printf("no\n");
            return 0;
        }
    }

    b[0]=='\0';
    for(i=(l+3)/2-1,j=0;i<l;i++){
        b[i]=c[j++];
    }
    if(b==strrev(b)){
        count++;
        if(count<3){
            printf("no\n");
            return 0;
        }
    }
    printf("yes\n");
    return 0;
}


Compiler output:
main.c: In function 'main':
main.c:15:5: error: implicit declaration of function 'strrev'; did you mean 'strsep'? [-Wimplicit-function-declaration]
   15 |     strrev(a);
      |     ^~~~~~
      |     strsep
main.c:49:9: warning: comparison between pointer and integer
   49 |     if(b==strrev(b)){
      |         ^~
Language: C++

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

for(int i=1;i<(n+1)/2;i++){
if(s[i]==s[n-i+1]){
continue;
}else{
printf("No");
}
}

for(int i=1;i<(n+1)/4;i++){
if(s[i]==s[(n+1)/2-i]){
continue;
}else{
printf("No");
}
}

for(int i=1 ;i<(n+1)/4 ;i++){
if(s[(n+1)/2+i]==s[(n+1)-i]{
printf("Yes");
}else{
printf("No");
}
}

return 0;
}
   

Compiler output:
a.cc: In function 'int main()':
a.cc:9:5: error: invalid types 'char[int]' for array subscript
    9 | if(s[i]==s[n-i+1]){
      |     ^
a.cc:9:11: error: invalid types 'char[int]' for array subscript
    9 | if(s[i]==s[n-i+1]){
      |           ^
a.cc:17:5: error: invalid types 'char[int]' for array subscript
   17 | if(s[i]==s[(n+1)/2-i]){
      |     ^
a.cc:17:11: error: invalid types 'char[int]' for array subscript
   17 | if(s[i]==s[(n+1)/2-i]){
      |           ^
a.cc:25:5: error: invalid types 'char[int]' for array subscript
   25 | if(s[(n+1)/2+i]==s[(n+1)-i]{
      |     ^
a.cc:25:19: error: invalid types 'char[int]' for array subscript
   25 | if(s[(n+1)/2+i]==s[(n+1)-i]{
      |                   ^
a.cc:25:28: error: expected ')' before '{' token
   25 | if(s[(n+1)/2+i]==s[(n+1)-i]{
      |   ~                        ^
      |                            )
a.cc:30:1: error: expected primary-expression before '}' token
   30 | }
      | ^
Language: C++

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

for(int i=1;i<(n+1)/2;i++){
if(s[i]==s[n-i+1]){
continue;
}else{
printf("No");
}
}

for(int i=1;i<(n+1)/4;i++){
if(s[i]==s[(n+1)/2-i]){
continue;
}else{
printf("No");
}
}

for(int i=1 ;i<(n+1)/4 ;i++){
if(s[(n+1)/2+i]==s[(n+1)-i]{
printf("Yes");
}else{
printf("No");
}
}

return 0;
}

Compiler output:
a.cc:1:1: error: 'include' does not name a type
    1 | include <stdio.h>
      | ^~~~~~~
Language: C++

#include <iostream>
#include <vector>
#include <string>
#include <stack>
#include <queue>


using namespace std;

int main()
{
	string s; cin >> s;
	int n = s.length();
	
	int low = 0;
	int high = n / 2 - 1;

	bool palin = true;

	while(low < high && palin)
	{
		palin &&= (s[low] == s[high]);
		++low; --high;
	}

	low = n / 2 + 1;
	high = n - 1;

	while(low < high && palin)
	{
		palin &&= (s[low] == s[high]);
		++low; --high;
	}

	cout << (palin ? "Yes" : "No");

    return 0;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:22:25: error: expected primary-expression before '=' token
   22 |                 palin &&= (s[low] == s[high]);
      |                         ^
a.cc:31:25: error: expected primary-expression before '=' token
   31 |                 palin &&= (s[low] == s[high]);
      |                         ^
Language: C++

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

int main() {
  string a;
  cin>>a;
  bool x="Yes";
  int N=a.size();
  for(int i;i<(N-1)/2;i++){
    if(a.at(i)!==a.at((N-1-i))){
      x="No";
      break;
    }
  }
  for(int i;i<((N-1)/2)/2;i++){
    if(a.at(i)!==a.at((N-3)/2-i)){
      x="No";
      break;
    }
  }
  cout<<x<<endl;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:10:17: error: expected primary-expression before '=' token
   10 |     if(a.at(i)!==a.at((N-1-i))){
      |                 ^
a.cc:16:17: error: expected primary-expression before '=' token
   16 |     if(a.at(i)!==a.at((N-3)/2-i)){
      |                 ^
Language: C++

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

int main() {
  string a;
  cin>>a;
  bool x="Yes";
  int N=a.size();
  for(int i;i<(N-1)/2;i++){
    if(a.at(i)!=a.at((N-1-i)){
      x="No";
      break;
    }
  }
  for(int i;i<((N-1)/2)/2;i++){
    if(a.at(i)!=a.at((N-3)/2-i)){
      x="No";
      break;
    }
  }
  cout<<x<<endl;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:10:30: error: expected ')' before '{' token
   10 |     if(a.at(i)!=a.at((N-1-i)){
      |       ~                      ^
      |                              )
a.cc:14:3: error: expected primary-expression before '}' token
   14 |   }
      |   ^
Language: C++

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

int main() {
  string a;
  cin>>a;
  bool x="Yes";
  int N=a.size();
  for(int i;i<<((N-1)/2)/2;i++){
    if(a.at(i)!=a.at((N-3)/2-i)){
      x="No";
      bresk;
    }
  }
  cout<<x<<endl;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:12:7: error: 'bresk' was not declared in this scope; did you mean 'brk'?
   12 |       bresk;
      |       ^~~~~
      |       brk
Language: C++

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

int main() {
  string a;
  cin>>a;
  bool x="Yes";
  int N=a.size();
  for(int i;i<<((N-1)/2)/2;i++){
    if(a.at(i)!=a.at(((N-3)/2)-i)){
      x="No";
      bresk;
    }
  }
  cout<<x<<endl;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:12:7: error: 'bresk' was not declared in this scope; did you mean 'brk'?
   12 |       bresk;
      |       ^~~~~
      |       brk
Language: C++

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

int main() {
  string a;
  cin>>a;
  bool x="Yes";
  int N=a.size();
  for(int i;i<<((N-1)/2)/2;i++){
    if(a.at(i)!=a.at(((N-3)/2)-i){
      x="No";
      bresk;
    }
  }
  cout<<x<<endl;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:10:34: error: expected ')' before '{' token
   10 |     if(a.at(i)!=a.at(((N-3)/2)-i){
      |       ~                          ^
      |                                  )
a.cc:14:3: error: expected primary-expression before '}' token
   14 |   }
      |   ^
Language: C++

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

int main() {
  string a;
  cin>>a;
  bool x="Yes";
  int N=a.size();
  for(int i;i<<((N-1)/2)/2;i++){
    if(a.at(i)!=a.at((((N-3)/2)-i))){
      x="No";
      bresk;
    }
  }
  cout<<x<<endl;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:12:7: error: 'bresk' was not declared in this scope; did you mean 'brk'?
   12 |       bresk;
      |       ^~~~~
      |       brk
Language: C++

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

int main() {
  string a;
  cin>>a;
  bool x="Yes";
  int N=a.size();
  for(int i;i<<((N-1)/2)/2;i++){
    if(a.at(i)!=a.at(((N-3)/2)-i))){
      x="No";
      bresk;
    }
  }
  cout<<x<<endl;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:10:35: error: expected primary-expression before ')' token
   10 |     if(a.at(i)!=a.at(((N-3)/2)-i))){
      |                                   ^
Language: C++

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

int main() {
  string a;
  cin>>a;
  bool x="Yes";
  int N=a.size();
  for(int i;i<<((N-1)/2)/2;i++){
    if(a.at(i)!=a.at((N-3)/2)-i))){
      x="No";
      bresk;
    }
  }
  cout<<x<<endl;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:10:33: error: expected primary-expression before ')' token
   10 |     if(a.at(i)!=a.at((N-3)/2)-i))){
      |                                 ^
Language: C++

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

int main() {
  string a;
  cin>>a;
  bool x="Yes";
  int N=a.size();
  for(int i;i<<((N-1)/2)/2;i++){
    if(a.at(i)!=a.at((N-3)/2)-i)){
      x="No";
      bresk;
    }
  }
  cout<<x<<endl;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:10:33: error: expected primary-expression before ')' token
   10 |     if(a.at(i)!=a.at((N-3)/2)-i)){
      |                                 ^
Language: C++

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

int main() {
  string a;
  cin>>a;
  bool x="Yes";
  N=a.size();
  for(int i;i<<((N-1)/2)/2;i++){
    if(a.at(i)!=a.at((N-3)/2)-i)){
      x="No";
      bresk;
    }
  }
  cout<<x<<endl;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:8:3: error: 'N' was not declared in this scope
    8 |   N=a.size();
      |   ^
a.cc:10:33: error: expected primary-expression before ')' token
   10 |     if(a.at(i)!=a.at((N-3)/2)-i)){
      |                                 ^
Language: C++

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

int main() {
  str a;
  cin>>a;
  bool x="Yes";
  N=a.size();
  for(int i;i<<((N-1)/2)/2;i++){
    if(a.at(i)!=a.at((N-3)/2)-i)){
      x="No";
      bresk;
    }
  }
  cout<<x<<endl;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:5:3: error: 'str' was not declared in this scope; did you mean 'std'?
    5 |   str a;
      |   ^~~
      |   std
a.cc:6:8: error: 'a' was not declared in this scope
    6 |   cin>>a;
      |        ^
a.cc:8:3: error: 'N' was not declared in this scope
    8 |   N=a.size();
      |   ^
a.cc:10:33: error: expected primary-expression before ')' token
   10 |     if(a.at(i)!=a.at((N-3)/2)-i)){
      |                                 ^
Language: C++

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

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;
}
   


Compiler output:
a.cc: In function 'int main()':
a.cc:14:35: error: expected ';' before 'if'
   14 |  if (!isPalindrome(s)) ans = false
      |                                   ^
      |                                   ;
   15 |  if (!isPalindrome(s.substr(0, s.size()/2))) ans = false;
      |  ~~
Language: C++

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

bool isPalindrome(string s) {
  string s == t;
  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;
}
   

Compiler output:
a.cc: In function 'bool isPalindrome(std::string)':
a.cc:5:12: error: expected initializer before '==' token
    5 |   string s == t;
      |            ^~
a.cc:6:11: error: 't' was not declared in this scope
    6 |   reverse(t.begin(), t.end());
      |           ^
a.cc: In function 'int main()':
a.cc:14:35: error: expected ';' before 'if'
   14 |  if (!isPalindrome(s)) ans = false
      |                                   ^
      |                                   ;
   15 |  if (!isPalindrome(s.substr(0, s.size()/2))) ans = false;
      |  ~~
Language: C++

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

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

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

bool reverse(string s){
  string t=reverse(s.begen(),s.end());
  return t==s;
}
int main(){
  string s;
  int n=s.size();
  cin>>s;
  bool ans=true;
  if(!reverse(s))ans=false;
  if(!reverse(substr(0,(n-1)/2)))ans=false;
  
  cout<<(ans? "Yes":"No")<<endl;
}

Compiler output:
a.cc: In function 'bool reverse(std::string)':
a.cc:5:22: error: 'std::string' {aka 'class std::__cxx11::basic_string<char>'} has no member named 'begen'; did you mean 'begin'?
    5 |   string t=reverse(s.begen(),s.end());
      |                      ^~~~~
      |                      begin
a.cc: In function 'int main()':
a.cc:14:15: error: 'substr' was not declared in this scope; did you mean 'strstr'?
   14 |   if(!reverse(substr(0,(n-1)/2)))ans=false;
      |               ^~~~~~
      |               strstr
Language: C++

#include"bits/stdc++.h"
#include<boost/multi_array.hpp>
#include<boost/optional.hpp>
#include<boost/range/irange.hpp>
#include<boost/range/algorithm.hpp>
#include<boost/range/adaptors.hpp>
using namespace std;
namespace adaptor = boost::adaptors;
 
void Main()
{
	String S;
    int N;
  
  	cin >> S;
    N >> S.length();
  
  if(S[0] == S[(N-1)/2 - 1]){
    if(S[N-1] == S[(N+3)/2 - 1]){
      if(S[N-1] == S[(N+3)/2 - 1]){
      	if(S[0] == S[N-1])
          print("Yes");
    
      }
    
    }
  }
  else
    printf("No");
	
	
}
 
int main()
{
	std::cin.tie(nullptr);
	std::ios_base::sync_with_stdio(false);
	std::cout << std::fixed << std::setprecision(15);
	Main();
}

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

#include"bits/stdc++.h"
#include<boost/multi_array.hpp>
#include<boost/optional.hpp>
#include<boost/range/irange.hpp>
#include<boost/range/algorithm.hpp>
#include<boost/range/adaptors.hpp>
using namespace std;
namespace adaptor = boost::adaptors;
 
void Main()
{
	int S;
    int N;
  
  	cin >> S;
    N >> S.length();
  
  if(S[0] == S[(N-1)/2 - 1]){
    if(S[N-1] == S[(N+3)/2 - 1]){
      if(S[N-1] == S[(N+3)/2 - 1]){
      	if(S[0] == S[N-1])
          print("Yes");
    
      }
    
    }
  }
  else
    printf("No");
	
	
}
 
int main()
{
	std::cin.tie(nullptr);
	std::ios_base::sync_with_stdio(false);
	std::cout << std::fixed << std::setprecision(15);
	Main();
}

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

#include<stdio.h>
 int main()
   {
   int n,m,i,j,sum=0;
   scanf("%d %d",&n,&m);
   if(n>1 || m>1){
     for(i=1;i<=n;i++){
       sum+=((n-i);
       }
     for(j=1;j<=m;j++){
       sum+=(m-j);
       }
       
     }
   }

Compiler output:
main.c: In function 'main':
main.c:8:19: error: expected ')' before ';' token
    8 |        sum+=((n-i);
      |             ~     ^
      |                   )
main.c:8:20: error: expected ';' before '}' token
    8 |        sum+=((n-i);
      |                    ^
      |                    ;
    9 |        }
      |        ~
Language: C++

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

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

#include <bits/stdc++.h>
#define REP(i, n) for (int (i) = 0; (i) < (int)(n); i++) 
#define FOR(i, a, b) for(int (i) = a; (i) < (int)b; i++)
#define RREP(i, n) for(int (i)=((int)(n)-1); (i)>=0; i--)
#define RFOR(i, a, b) for(int (i) =((int)(b)-1); (i)>=(int)a; i--)
#define ALL(v) (v).begin(),(v).end()
#define MOD 1000000007
#define NIL -1
#define FI first
#define SE second
#define MP make_pair
#define PB push_back
#define SZ(x)  (int)x.size()
#define SP(x)  setprecision((int)x)


using namespace std ;
typedef long long ll;
typedef vector<int> vint;
typedef vector<vint> vvint;
typedef vector<string> vstr;
typedef pair<int, int> pii;
const int INF = 1e9;
const ll LINF = 1e18;
const double EPS = 1e-9;
const int dx[4] = {1, 0, -1, 0};
const int dy[4] = {0, 1, 0, -1};
ll gcd(ll a, ll b) {return b ? gcd(b, a % b) : a;} //最大公約数
ll lcm(ll a, ll b) {return a / gcd(a, b) * b;} //最小公倍数

//-------------------------------------------------
// 
void yes(){
  cout <<"Yes"<<endl ;
}
void no(){
  cout <<"No"<<endl ;
}


//-------------------------------------------------
// メモ
/*






*/
//-------------------------------------------------


int main()
{
  cin.tie(0);
  ios::sync_with_stdio(false);
  string  s;
  cin >> s ;
  bool f1,f2,f3 ;
  f1 = false ;
  f2 = false ;
  f3 = false ;
  string s1, s2, s3, t1, t2, t3 ;
  s1 = s ;
  t1 = s ;
  reverse(ALL(s1)) ;
  if(s1==t1){
    f1 = true ;
  }
  s2 = s.substr(0,(n-1)/2) ;
  t2 = s2 ;
  reverse(ALL(s2)) ;
  if(s2==t2){
    f2 = true ;
  }
  s3 = s.substr((n+3)/2,n-(n+3)/2+1) ;
  t3 = s3 ;
  if(s3==t3){
    f3 = true ;
  }
  
  if(f1 && f2 && f3){
    yes() ;
  }
  else{
    no() ;
  }
  
  
  
  
  return 0 ;
}




Compiler output:
a.cc: In function 'int main()':
a.cc:71:20: error: 'n' was not declared in this scope
   71 |   s2 = s.substr(0,(n-1)/2) ;
      |                    ^
Language: C++

#include<iostream>
using namespace std;
 
bool check(string s){
    string t = s;
  	reverse(s.begin(), s.end());
  	return s == t;
}
 
int main(){
    string s;
    cin>>s;
    int n=s.length();
    if(check(s) && check(s.substr(0,(n-1)/2)) && check(s.substr((n+1)/2))){
        cout<<"Yes"<<endl;
    }
    else cout<<"No"<<endl;
}

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

#include <bits/stdc++.h>
using namespace std;
#define rep(i,n); for(long long i = 0;i < (n);i++)
using ll = long long;
using vl = vector<long long>;
using P = pair<long long,long long>;

int main(){
	string s; cin >> s;
	ll n = s.size();
	bool r = true;
	rep(i,n){
		if(s[i] != s[n-1-i])r = false;
	}
	rep(i,(n-1)/2){
		if(s[i] != s[(n-1)/2 -1-i])r = false;
	}
	rep(i,(n-1)/2){
		if(s[(n+1)/2 +i] != s[n-1-i])r = false;
	}
	cout << r ? "Yes":"No" << endl;
}


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

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


Compiler output:
a.cc: In function 'int main()':
a.cc:15:35: error: expected primary-expression before '/' token
   15 |                if(x==s.length()-1)/2&&y==x)
      |                                   ^
Language: C++

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

Compiler output:
a.cc: In function 'int main()':
a.cc:8:36: error: expected ')' before ']' token
    8 |     if(s[i]==s[(i+ (s.length()+3)/2])
      |                ~                   ^
      |                                    )
a.cc:9:19: error: expected ']' before ';' token
    9 |                x++;
      |                   ^
      |                   ]
a.cc:10:16: error: expected primary-expression before '}' token
   10 |                }
      |                ^
a.cc:9:20: error: expected ')' before '}' token
    9 |                x++;
      |                    ^
      |                    )
   10 |                }
      |                ~    
a.cc:8:7: note: to match this '('
    8 |     if(s[i]==s[(i+ (s.length()+3)/2])
      |       ^
a.cc:10:16: error: expected primary-expression before '}' token
   10 |                }
      |                ^
a.cc:15:35: error: expected primary-expression before '/' token
   15 |                if(x==s.length()-1)/2&&y==x)
      |                                   ^
Language: C++

#include<bits/stdc++.h>
#define f(a,j,k) for(int i = a ; i < j ; i += k)
#define f1(a,j,k) for(int i = a ; i > j ; i -= k)
using namespace std;
typedef long long ll;
typedef vector<long long> vl;
typedef vector<int> vi;
typedef pair<int,int> pri;
typedef pair<long long,long long> prl;
inline ok(char *s,int i , int j){
	while(i < j){
		if(s[i] != s[j]) return 0;
		++ i , -- j;
	}
	return 1;
}
int main() {
	std::ios::sync_with_stdio(false);
  char s[110] = "";
	cin >> s;
	int len = strlen(s);
	if(ok(s,0,len/2-1) && ok(s,len/2+1,len-1)) cout << "Yes" << endl;
	else cout << "No" << endl;

	return 0;
}


Compiler output:
a.cc:10:8: error: ISO C++ forbids declaration of 'ok' with no type [-fpermissive]
   10 | inline ok(char *s,int i , int j){
      |        ^~