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

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

int main() {
  string s ;
  cin >> s ;
  int N = s.size() ;
  vector<string> a(100) ;
  vector<string> f(100) ;
  vector<string> t(100) ;
  for(int i = 0 ; i < N ; i++) {
    a.at(i) = s.at(i) ;
  }
         
  for(int i = 0 ; i < (N-1)/2 ; i++){
    f.at(i) = s.at(i) ;
  }
   for(int i = (N+3)/2 ; i < N + 1 ; i++){
     t.at(i) = s.at(i) ;
   }
  vector<string> A = reverse(a.bigin(),a.end()) ;
  vector<string> F = reverse(f.bigin(),f.end()) ;
  vector<string> T = reverse(t.bigin(),t.end()) ;
         
   if(A==a && F==f && T==t) cout << "Yes" << endl;
         else cout << "No" << endl;
         
}


Compiler output:
a.cc: In function 'int main()':
a.cc:21:32: error: 'class std::vector<std::__cxx11::basic_string<char> >' has no member named 'bigin'; did you mean 'begin'?
   21 |   vector<string> A = reverse(a.bigin(),a.end()) ;
      |                                ^~~~~
      |                                begin
a.cc:22:32: error: 'class std::vector<std::__cxx11::basic_string<char> >' has no member named 'bigin'; did you mean 'begin'?
   22 |   vector<string> F = reverse(f.bigin(),f.end()) ;
      |                                ^~~~~
      |                                begin
a.cc:23:32: error: 'class std::vector<std::__cxx11::basic_string<char> >' has no member named 'bigin'; did you mean 'begin'?
   23 |   vector<string> T = reverse(t.bigin(),t.end()) ;
      |                                ^~~~~
      |                                begin
Language: C++

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

int main() {
  string s ;
  cin >> s ;
  int N = s.size() ;
  vector<string> a(100) ;
  vector<string> f(100) ;
  vector(string> t(100) ;
  for(int i = 0 ; i < N ; i++) {
    a.at(i) = s.at(i) ;
  }
         
  for(int i = 0 ; i < (N-1)/2 ; i++){
    f.at(i) = s.at(i) ;
  }
   for(int i = (N+3)/2 ; i < N + 1 ; i++){
     t.at(i) = s.at(i) ;
   }
  vector<string> A = reverse(a.bigin(),a.end()) ;
  vector<string> F = reverse(f.bigin(),f.end()) ;
  vector<string> T = reverse(t.bigin(),t.end()) ;
         
   if(A==a && F==f && T==t) cout << "Yes" << endl;
         else cout << "No" << endl;
         
}

Compiler output:
a.cc: In function 'int main()':
a.cc:10:9: error: missing template arguments before '(' token
   10 |   vector(string> t(100) ;
      |         ^
a.cc:10:16: error: expected primary-expression before '>' token
   10 |   vector(string> t(100) ;
      |                ^
a.cc:10:18: error: 't' was not declared in this scope
   10 |   vector(string> t(100) ;
      |                  ^
a.cc:21:32: error: 'class std::vector<std::__cxx11::basic_string<char> >' has no member named 'bigin'; did you mean 'begin'?
   21 |   vector<string> A = reverse(a.bigin(),a.end()) ;
      |                                ^~~~~
      |                                begin
a.cc:22:32: error: 'class std::vector<std::__cxx11::basic_string<char> >' has no member named 'bigin'; did you mean 'begin'?
   22 |   vector<string> F = reverse(f.bigin(),f.end()) ;
      |                                ^~~~~
      |                                begin
Language: C++

#include <iostream>
using namespace std;

book is_palindrome(string s) {
  string t(s.rbegin(), s.rend());
  return s == t;
}

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


Compiler output:
a.cc:4:1: error: 'book' does not name a type; did you mean 'bool'?
    4 | book is_palindrome(string s) {
      | ^~~~
      | bool
a.cc: In function 'int main()':
a.cc:13:7: error: 'is_palindrome' was not declared in this scope
   13 |   if (is_palindrome(s) && is_palindrome(s.substr(0, (n - 1) / 2)) &&
      |       ^~~~~~~~~~~~~
Language: C++

#include <bits/stdc++.h>
#include <iostream>
#include <cmath>
using ll = long long; 
using namespace std;
  
int main() {
  string S; cin >> S;
  ll n=S.size();
  for(ll i =0; i<(n-1)/2; i++){
    if(S.at(i) != S.at(n-i-1) 
      cout << "No" << endl; return 0;
       }
      for(ll i =0; i<(n-1)/2; i++){
    if(S.at(i) != S.at((n+1)/2 +i)) 
      cout << "No" << endl; return 0;
  }
  cout << "Yes"<<endl;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:11:30: error: expected ';' before 'cout'
   11 |     if(S.at(i) != S.at(n-i-1)
      |                              ^
      |                              ;
   12 |       cout << "No" << endl; return 0;
      |       ~~~~                    
a.cc:12:29: error: expected primary-expression before 'return'
   12 |       cout << "No" << endl; return 0;
      |                             ^~~~~~
a.cc:12:28: error: expected ')' before 'return'
   12 |       cout << "No" << endl; return 0;
      |                            ^~~~~~~
      |                            )
a.cc:11:7: note: to match this '('
   11 |     if(S.at(i) != S.at(n-i-1)
      |       ^
Language: C++

#include<string.h>
using namespace std;

int main()
{
    char string[99],t,w;
    int n;
    cout<<"enter the string:";
    cin>>string;
    n=strlen(string);
    for(int i=0;i<(n-1)/2;i++)
    {
        t=string[i];
    }
    for(int j=(n+3)/2;j<n;j++)
    {
        w=string[j];
    }
    if(t==w)
    {
        cout<<"Yes"<<endl;
    }
    else
    cout<<"No";
}



Compiler output:
a.cc: In function 'int main()':
a.cc:8:5: error: 'cout' was not declared in this scope
    8 |     cout<<"enter the string:";
      |     ^~~~
a.cc:2:1: note: 'std::cout' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>'
    1 | #include<string.h>
  +++ |+#include <iostream>
    2 | using namespace std;
a.cc:9:5: error: 'cin' was not declared in this scope
    9 |     cin>>string;
      |     ^~~
a.cc:9:5: note: 'std::cin' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>'
a.cc:21:22: error: 'endl' was not declared in this scope
   21 |         cout<<"Yes"<<endl;
      |                      ^~~~
a.cc:2:1: note: 'std::endl' is defined in header '<ostream>'; this is probably fixable by adding '#include <ostream>'
    1 | #include<string.h>
  +++ |+#include <ostream>
    2 | using namespace std;
Language: C++

#include<bits/stdc++.h>

using namespace std;

bool isPal(string s)
{
  int i=0,r=s.length()-1;
  while(i<r){
    if(s[i]!=s[r])return 0;
    i++;r--;
  }
  return 1;
}

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


Compiler output:
a.cc: In function 'int main()':
a.cc:19:76: error: could not convert '((((int)s.std::__cxx11::basic_string<char>::length()) / 2) + 1)' from 'int' to 'std::string' {aka 'std::__cxx11::basic_string<char>'}
   19 |   if(isPal(s) && isPal(s.substr(0,s.length()/2)) && isPal((int)s.length()/2+1))cout<<"Yes"<<endl;
      |                                                           ~~~~~~~~~~~~~~~~~^~
      |                                                                            |
      |                                                                            int
Language: C++

#include<bits/stdc++.h>

using namespace std;

bool isPal(string s)
{
  int i=0,r=s.length()-1;
  while(i<r){
    if(s[i]!=s[r])return 0;
    i++;r--;
  }
  return 1;
}

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


Compiler output:
a.cc: In function 'int main()':
a.cc:19:71: error: could not convert '((s.std::__cxx11::basic_string<char>::length() / 2) + 1)' from 'std::__cxx11::basic_string<char>::size_type' {aka 'long unsigned int'} to 'std::string' {aka 'std::__cxx11::basic_string<char>'}
   19 |   if(isPal(s) && isPal(s.substr(0,s.length()/2)) && isPal(s.length()/2+1))cout<<"Yes"<<endl;
      |                                                           ~~~~~~~~~~~~^~
      |                                                                       |
      |                                                                       std::__cxx11::basic_string<char>::size_type {aka long unsigned int}
Language: C++

#include<bits/stdc++.h>

using namespace std;

bool isPal(string s)
{
  int i=0,r=s.length()-1;
  while(i<r){
    if(s[i]!=s[r])return 0;
    i++;r--;
  }
  return 1;
}

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

Compiler output:
a.cc: In function 'int main()':
a.cc:19:70: error: could not convert '((s.std::__cxx11::basic_string<char>::length() / 2) + 1)' from 'std::__cxx11::basic_string<char>::size_type' {aka 'long unsigned int'} to 'std::string' {aka 'std::__cxx11::basic_string<char>'}
   19 |   if(isPal(s) && isPal(s.substr(0,s.length()/2) && isPal(s.length()/2+1))cout<<"Yes"<<endl;
      |                                                          ~~~~~~~~~~~~^~
      |                                                                      |
      |                                                                      std::__cxx11::basic_string<char>::size_type {aka long unsigned int}
a.cc:20:3: error: expected primary-expression before 'else'
   20 |   else cout<<"No"<<endl;
      |   ^~~~
a.cc:19:92: error: expected ')' before 'else'
   19 |   if(isPal(s) && isPal(s.substr(0,s.length()/2) && isPal(s.length()/2+1))cout<<"Yes"<<endl;
      |     ~                                                                                      ^
      |                                                                                            )
   20 |   else cout<<"No"<<endl;
      |   ~~~~
Language: C++

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

int main(){
  string S;
  cin>>S;
  int n=S.size()-1;
  puts(S.substr(0,n/2)==S.substr(n\2+1)?"Yes":"No");
}

Compiler output:
a.cc:8:35: error: stray '\' in program
    8 |   puts(S.substr(0,n/2)==S.substr(n\2+1)?"Yes":"No");
      |                                   ^
a.cc: In function 'int main()':
a.cc:8:35: error: expected ')' before numeric constant
    8 |   puts(S.substr(0,n/2)==S.substr(n\2+1)?"Yes":"No");
      |                                 ~ ^~
      |                                   )
Language: C++

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

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

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

    return 0;
}

Compiler output:
a.cc:5:16: error: 'stirng' was not declared in this scope
    5 | bool is_kaibun(stirng s)
      |                ^~~~~~
a.cc: In function 'int main()':
a.cc:16:18: error: 'is_kaibun' cannot be used as a function
   16 |     if (is_kaibun(s) && is_kaibun(s.substr(0, (n-1)/2)) && is_kaibun(s.substr((n+1)/2))) cout << "Yes" << endl;
      |         ~~~~~~~~~^~~
a.cc:16:34: error: 'is_kaibun' cannot be used as a function
   16 |     if (is_kaibun(s) && is_kaibun(s.substr(0, (n-1)/2)) && is_kaibun(s.substr((n+1)/2))) cout << "Yes" << endl;
      |                         ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~
a.cc:16:69: error: 'is_kaibun' cannot be used as a function
   16 |     if (is_kaibun(s) && is_kaibun(s.substr(0, (n-1)/2)) && is_kaibun(s.substr((n+1)/2))) cout << "Yes" << endl;
      |                                                            ~~~~~~~~~^~~~~~~~~~~~~~~~~~~
Language: C

#include<stdio.h>
int iskaibun(int N, char *str){
	char *reverse;
	int count = 0;
	for(int i=0; i < N; i++)
		reverse[i] = str[N-i-1];
	for(int i=0; i < N; i++){
		if(str[i] == reverse[i])
			count++;
	}
	if(count == N)
		return 1;
	else
		return 0;
}
int wordlength(char *str){
	int l = 0;
	while(str[l] != '\0')
		l++;
	return l;
}
int main(){
	char *str;
	scanf("%s", str);
	char *sub_str1, *sub_str2;
	int len = wordlength(str);
	for(int i=0; i < (len-1)/2; i++)
		sub_str1[i] = str[i];
	for(int i=(len+3)/2-1; i < len; i++)
		sub_str1[i-(len+3)/2+1] = str[i];
	if(iskaibun(N, str)*iskaibun((N-1)/2, sub_str1)*iskaibun((N-1)/2, sub_str2)==1)
		printf("Yes");
	else
		printf("No");
	return 0;
}

Compiler output:
main.c: In function 'main':
main.c:31:21: error: 'N' undeclared (first use in this function)
   31 |         if(iskaibun(N, str)*iskaibun((N-1)/2, sub_str1)*iskaibun((N-1)/2, sub_str2)==1)
      |                     ^
main.c:31:21: note: each undeclared identifier is reported only once for each function it appears in
Language: C++

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

int main(){
  string s;
  cin>>s;
  size_t n=s.length();
  for(int i=0;i<n;i++){
    if(s[i]==s[n-i]){
    }
    else{
  	  cout<<"No"<<endl;
      break;
    }
  }
  for(int j=0;j<(n-1)/2;j++){
    if(s[j]==s[(n-1)/2-j]){
    }
    else{
      cout<<"No"<<endl;
      break;
    }
  }
  for(int k=0;k<(n-3)/2;k++){
    if(s[(n+3)/2+k]==s[n-k]){
      cout<<"Yes"<<edl;
    }
    else{
      cout<<"No"<<endl;
    }
  }
}
}


Compiler output:
a.cc: In function 'int main()':
a.cc:27:20: error: 'edl' was not declared in this scope
   27 |       cout<<"Yes"<<edl;
      |                    ^~~
a.cc: At global scope:
a.cc:34:1: error: expected declaration before '}' token
   34 | }
      | ^
Language: C++

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

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


Compiler output:
a.cc: In function 'int main()':
a.cc:9:15: error: redeclaration of 'int i'
    9 |   for(int i=0,i=0,k=0;i<n,j<(n-1)/2,k<(n-3)/2;i++,j++,k++){
      |               ^
a.cc:9:11: note: 'int i' previously declared here
    9 |   for(int i=0,i=0,k=0;i<n,j<(n-1)/2,k<(n-3)/2;i++,j++,k++){
      |           ^
a.cc:9:27: error: 'j' was not declared in this scope
    9 |   for(int i=0,i=0,k=0;i<n,j<(n-1)/2,k<(n-3)/2;i++,j++,k++){
      |                           ^
Language: C++

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


bool is_palindrome(const string& S){
  int N = S.size();
  for(int ii=0; ii<N/2; ii++){
    if(S[ii]!=S[N-ii]){
      return false;
    }
  }
  return true;
}

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

Compiler output:
a.cc: In function 'int main()':
a.cc:19:6: error: 'is_parindrome' was not declared in this scope; did you mean 'is_palindrome'?
   19 |   if(is_parindrome(S) && is_parindrome(S.substr(0, (N-1)/2)) && is_parindrome(S.substr((N+3)/2))){
      |      ^~~~~~~~~~~~~
      |      is_palindrome
Language: C++

#include <bits/stdc++.h>
using namespace std;
#define rep(i,N) for(int i = 0; i < (N); i++)
#define repo(i,N) for(int i = 1; i < (N); i++)
#define pb push_back
#define mp make_pair
#define ll long long
#define fi first
#define se second
#define all(x) (x).begin(),(x).end()
//#define num 1000000007
#define pi acos(-1.0)
//cout << fixed << setprecision (20);   小数点以下2０桁まで
//intの最大値2147483647 ≒ 2×10^9
//long longの最大値9223372036854775807 ≒ 9×10^18
//'大文字'+=32;    で小文字に
//string s = to_string(int数);
//int n = stoi(string文字列);
//桁数に注意 long long　にする

int main() {
  string s;
  cin >> s;
  
  int n = s.size();
  
  rep(i,(n-3)/2) {
    if(s[i]!=s[(n-3)/2-i] || s[n-1-i]!=s[n-1-((n-3)/2-i)]
      ||s[i]!=s[i+(n+1)/2]) {
    cout << "No" << endl;
    return 0;
    }
  
  puts("Yes");
  
}


Compiler output:
a.cc: In function 'int main()':
a.cc:36:2: error: expected '}' at end of input
   36 | }
      |  ^
a.cc:21:12: note: to match this '{'
   21 | int main() {
      |            ^
Language: Java

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

public class Main{
  public static boolean kaibun(String s){
  StringBuffer sb=new StringBuffer(s);
  sb.reverse();
  String t=sb.toString();
  return t.equals(s);
  }
  public static void main(String[] args){
    Scanner sc = new Scanner(System.in);
  	String s=sc.next();
    char[] a;
    a=s.toCharArray();
    String x="",y="";
    for(int i=0;i<(n-1)/2;i++){
      x+=a[i];
      y+=a[(n+1)/2+i];
    }
    if(kaibun(s)&&kaibun(x)&&kaibun(y)){
      System.out.print("Yes");
    }else{
      System.out.print("No");
    }
    
  }
}

Compiler output:
Main.java:17: error: cannot find symbol
    for(int i=0;i<(n-1)/2;i++){
                   ^
  symbol:   variable n
  location: class Main
Main.java:19: error: cannot find symbol
      y+=a[(n+1)/2+i];
            ^
  symbol:   variable n
  location: class Main
2 errors
Language: Java

import java.util.*;
import java.io.*;
public static boolean kaibun(String s){
  StringBuffer sb=new StringBuffer(s);
  sb.reverse();
  String t=sb.toString();
  return t.equals(s);
}
public class Main{
  public static void main(String[] args){
    Scanner sc = new Scanner(System.in);
  	String s=sc.next();
    char[] a;
    a=s.toCharArray();
    String x="",y="";
    for(int i=0;i<(n-1)/2;i++){
      x+=a[i];
      y+=a[(n+1)/2+i];
    }
    if(kaibun(s)&&kaibun(x)&&kaibun(y)){
      System.out.print("Yes");
    }else{
      System.out.print("No");
    }
    
  }
}

Compiler output:
Main.java:3: error: unnamed classes are a preview feature and are disabled by default.
public static boolean kaibun(String s){
              ^
  (use --enable-preview to enable unnamed classes)
1 error
Language: Java

import java.util.*;
public class Main{
  static boolean kai(String 
  public static void main(String[] args){
    Scanner sc = new Scanner(System.in);
  	String s=sc.next();
    char[] a;
    a=s.toCharArray();
    int n=a.length;
    int f=0;
    for(int i=0;i<=(n-1)/2;i++){
      if(a[i]==a[n-1-i]){
        if(a[i]==a[(n-1)/2-i]){
          if(a[(n+1)/2+i]==a[n-1-i]){
            f++;
          }else{f=0;}
        }else{f=0;}
      }else{f=0;}
    }
    if(f<=0){
      System.out.print("No");
    }else{
      System.out.print("Yes");
    }
    
  }
}

Compiler output:
Main.java:3: error: <identifier> expected
  static boolean kai(String 
                           ^
1 error
Language: C++

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

int main(){
	// sengen
	string s;
	// nyuryoku
	cin >> s;
	int n = s.size();
	// keisan
	string left = s.substr(0,(n-1)/2);
	string right = s.substr((n+1)/2,(n-1)/2);
	string revl = reverse(left.begin(),left.end());
	string revr = reverse(right.begin(),right.end());
	// syutsuryoku
	if(left == revl && right == revr){
		cout << "Yes";
	}else{
		cout << "No";
	}
}

Compiler output:
a.cc: In function 'int main()':
a.cc:13:30: error: conversion from 'void' to non-scalar type 'std::string' {aka 'std::__cxx11::basic_string<char>'} requested
   13 |         string revl = reverse(left.begin(),left.end());
      |                       ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~
a.cc:14:30: error: conversion from 'void' to non-scalar type 'std::string' {aka 'std::__cxx11::basic_string<char>'} requested
   14 |         string revr = reverse(right.begin(),right.end());
      |                       ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~
Language: C++

#include<bits/stdc++.h>
using namespace std;
int main(){
	string s;
  cin>>s;
  int n = s.length();
  string s1 = reverse(s.begin(),s.end());
  if(s1==s){
  	string k =s.substr(0,(n-1)/2);
    string l = reverse(k.begin(),k.end());
    if(k==l){
    	string m = s.substr((n+3)/2 - 1);
      string o = reverse(m.begin(),m.end());
      if(m==o){
      	cout <<"Yes\n";
      }else 
      cout << "No\n";
    }
    else 
      cout << "No\n";
  }
  else 
      cout << "No\n";
  return 0;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:7:22: error: conversion from 'void' to non-scalar type 'std::string' {aka 'std::__cxx11::basic_string<char>'} requested
    7 |   string s1 = reverse(s.begin(),s.end());
      |               ~~~~~~~^~~~~~~~~~~~~~~~~~~
a.cc:10:23: error: conversion from 'void' to non-scalar type 'std::string' {aka 'std::__cxx11::basic_string<char>'} requested
   10 |     string l = reverse(k.begin(),k.end());
      |                ~~~~~~~^~~~~~~~~~~~~~~~~~~
a.cc:13:25: error: conversion from 'void' to non-scalar type 'std::string' {aka 'std::__cxx11::basic_string<char>'} requested
   13 |       string o = reverse(m.begin(),m.end());
      |                  ~~~~~~~^~~~~~~~~~~~~~~~~~~
Language: C++

#include<bits/stdc++.h>
using namespace std;
int main(){
	string s;
  cin>>s;
  int n = s.length();
  string s1 = reverse(s.begin(),s.end());
  if(s1==s){
  	string k =s.substr(0,(n-1)/2);
    string l = reverse(k.begin().k.end());
    if(k==l){
    	string m = s.substr((n+3)/2 - 1);
      string o = reverse(m.begin(),m.end());
      if(m==o){
      	cout <<"Yes\n";
      }else 
      cout << "No\n";
    }
    else 
      cout << "No\n";
  }
  else 
      cout << "No\n";
  return 0;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:7:22: error: conversion from 'void' to non-scalar type 'std::string' {aka 'std::__cxx11::basic_string<char>'} requested
    7 |   string s1 = reverse(s.begin(),s.end());
      |               ~~~~~~~^~~~~~~~~~~~~~~~~~~
a.cc:10:34: error: 'std::__cxx11::basic_string<char>::iterator' has no member named 'k'
   10 |     string l = reverse(k.begin().k.end());
      |                                  ^
a.cc:13:25: error: conversion from 'void' to non-scalar type 'std::string' {aka 'std::__cxx11::basic_string<char>'} requested
   13 |       string o = reverse(m.begin(),m.end());
      |                  ~~~~~~~^~~~~~~~~~~~~~~~~~~
Language: C++

#include<bits/stdc++.h>
using namespace std;
int main(){
	string s;
  cin>>s;
  int n = s.length();
  string s1 = reverse(s.begin(),s.end());
  if(s1==s){
  	string k =s.substr(0,(n-1)/2);
    string l = reverse(k.begin().k.end());
    if(k==l){
    	string m = s.substr((n+3)/2);
      string o = reverse(m.begin(),m.end());
      if(m==o){
      	cout <<"Yes\n";
      }else 
      cout << "No\n";
    }
    else 
      cout << "No\n";
  }
  else 
      cout << "No\n";
  return 0;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:7:22: error: conversion from 'void' to non-scalar type 'std::string' {aka 'std::__cxx11::basic_string<char>'} requested
    7 |   string s1 = reverse(s.begin(),s.end());
      |               ~~~~~~~^~~~~~~~~~~~~~~~~~~
a.cc:10:34: error: 'std::__cxx11::basic_string<char>::iterator' has no member named 'k'
   10 |     string l = reverse(k.begin().k.end());
      |                                  ^
a.cc:13:25: error: conversion from 'void' to non-scalar type 'std::string' {aka 'std::__cxx11::basic_string<char>'} requested
   13 |       string o = reverse(m.begin(),m.end());
      |                  ~~~~~~~^~~~~~~~~~~~~~~~~~~
Language: C++

#include<bits/stdc++.h>
using namespace std;
int main(){
	string s;
  cin>>s;
  string s1 = reverse(s.begin(),s.end());
  if(s1==s){
  	string k =s.substr(0,(n-1)/2);
    string l = reverse(k.begin().k.end());
    if(k==l){
    	string m = s.substr((n+3)/2);
      string o = reverse(m.begin(),m.end());
      if(m==o){
      	cout <<"Yes\n";
      }else 
      cout << "No\n";
    }
    else 
      cout << "No\n";
  }
  else 
      cout << "No\n";
  return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:6:22: error: conversion from 'void' to non-scalar type 'std::string' {aka 'std::__cxx11::basic_string<char>'} requested
    6 |   string s1 = reverse(s.begin(),s.end());
      |               ~~~~~~~^~~~~~~~~~~~~~~~~~~
a.cc:8:31: error: 'n' was not declared in this scope
    8 |         string k =s.substr(0,(n-1)/2);
      |                               ^
a.cc:9:34: error: 'std::__cxx11::basic_string<char>::iterator' has no member named 'k'
    9 |     string l = reverse(k.begin().k.end());
      |                                  ^
a.cc:12:25: error: conversion from 'void' to non-scalar type 'std::string' {aka 'std::__cxx11::basic_string<char>'} requested
   12 |       string o = reverse(m.begin(),m.end());
      |                  ~~~~~~~^~~~~~~~~~~~~~~~~~~
Language: C++

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

int main(){
  string s;
  cin >> s;
  bool flag = true;
  if(s.length() < 7) flag = false;
  else {
    for(int i = 0; i < s.length() / 2; i++){
      if(s[i] != s[s.length-i-1]) flag = false;
    }
    string firsthalf = s.substr(0, s.length()/2);
    string secondhalf = s.substr(s.length()/2+1, s.length()/2);
    for(int i = 0; i < firsthalf.length()/2; i++){
      if(firsthalf[i] != firsthalf[firsthalf.length-i-1] || secondhalf[i] != secondhalf[secondhalf.length-i-1]) flag = false;
    }
  }
  if(flag) cout << "Yes" << endl;
  else cout << "No" << endl;
  return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:11:22: error: invalid use of member function 'std::__cxx11::basic_string<_CharT, _Traits, _Alloc>::size_type std::__cxx11::basic_string<_CharT, _Traits, _Alloc>::length() const [with _CharT = char; _Traits = std::char_traits<char>; _Alloc = std::allocator<char>; size_type = long unsigned int]' (did you forget the '()' ?)
   11 |       if(s[i] != s[s.length-i-1]) flag = false;
      |                    ~~^~~~~~
      |                            ()
a.cc:16:46: error: invalid use of member function 'std::__cxx11::basic_string<_CharT, _Traits, _Alloc>::size_type std::__cxx11::basic_string<_CharT, _Traits, _Alloc>::length() const [with _CharT = char; _Traits = std::char_traits<char>; _Alloc = std::allocator<char>; size_type = long unsigned int]' (did you forget the '()' ?)
   16 |       if(firsthalf[i] != firsthalf[firsthalf.length-i-1] || secondhalf[i] != secondhalf[secondhalf.length-i-1]) flag = false;
      |                                    ~~~~~~~~~~^~~~~~
      |                                                    ()
a.cc:16:100: error: invalid use of member function 'std::__cxx11::basic_string<_CharT, _Traits, _Alloc>::size_type std::__cxx11::basic_string<_CharT, _Traits, _Alloc>::length() const [with _CharT = char; _Traits = std::char_traits<char>; _Alloc = std::allocator<char>; size_type = long unsigned int]' (did you forget the '()' ?)
   16 |       if(firsthalf[i] != firsthalf[firsthalf.length-i-1] || secondhalf[i] != secondhalf[secondhalf.length-i-1]) flag = false;
      |                                                                                         ~~~~~~~~~~~^~~~~~
      |                                                                                                          ()
Language: C++

#include <iostream>
using namespace std;

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

    int n = s.size();

    bool ans = true;

    for (int i = 0; i < n/2; ++i)
        if (s[i] != s[n-i-1]) ans = false;
    
    for (int i = 0; i < (n - 1)/2; ++i)
        if (s[i] != s[(n - 1)/2-i-1]) ans = false;

    for (int i = (n+3)/2-1; i < n; ++i) 
        if (s[i] != prt2[n-i-1]) ans = false;

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


Compiler output:
a.cc: In function 'int main()':
a.cc:19:21: error: 'prt2' was not declared in this scope
   19 |         if (s[i] != prt2[n-i-1]) ans = false;
      |                     ^~~~
Language: C

#include<stdio.h>
#include<string.h>
int main()
{
    char str[100],str2[100];
    scanf("%s",str);
    strcpy(str2,str);
    strrev(str);
    int len=strlen(str),i;
    if(len%2!=0)
    {
        int d=strcmp(str,str2);
        if(d==0)
        {
            int dummy1=0,dummy2=0;
            dummy1=(len-1)/2;
            dummy2=(len+3)/2;

            char str3[dummy1],str4[dummy1];

            for(i=0;i<dummy1;i++)
            {
                str3[i]=str2[i];
            }
            for(i=dummy2-1;i<len;i++)
            {
                str4[i]=str2[i];
            }
            char str5[dummy1],str6[dummy1];
            strcpy(str5,str3);
            strcpy(str6,str4);
            strrev(str3);
            strrev(str4);
            int d1,d2;
            d1=strcmp(str3,str5);
            d2=strcmp(str4,str6);
            if(d1==0 && d2==0)
            {
                printf("YES");
            }
            else
            {
                printf("NO");
            }
        }
        else
        {
            printf("NO");
        }
    }
    else
    {
        printf("NO");
    }


   return 0;
}

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

#include<stdio.h>
#include<string.h>
int main()
{
    char str[100],str2[100];
    scanf("%s",str);
    strcpy(str2,str);
    strrev(str);
    int len=strlen(str),i;
    if(len%2!=0)
    {
        int d=strcmp(str,str2);
        if(d==0)
        {
            int dummy1=0,dummy2=0;
            dummy1=(len-1)/2;
            dummy2=(len+3)/2;

            char str3[dummy1],str4[dummy1];

            for(i=0;i<dummy1;i++)
            {
                str3[i]=str2[i];
            }
            for(i=dummy2-1;i<len;i++)
            {
                str4[i]=str2[i];
            }
            char str5[dummy1],str6[dummy1];
            strcpy(str5,str3);
            strcpy(str6,str4);
            strrev(str3);
            strrev(str4);
            int d1,d2;
            d1=strcmp(str3,str5);
            d2=strcmp(str4,str6);
            if(d1==0 && d2==0)
            {
                printf("YES");
            }
            else
            {
                printf("NO");
            }
        }
        else
        {
            printf("NO");
        }
    }
    else
    {
        printf("NO");
    }


   return 0;
}


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

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


Compiler output:
a.cc:4:11: warning: multi-character character constant [-Wmultichar]
    4 |     print('Yes')
      |           ^~~~~
a.cc:6:11: warning: multi-character character constant [-Wmultichar]
    6 |     print('No')
      |           ^~~~
a.cc:1:1: error: 's' does not name a type
    1 | s = list(input())
      | ^
Language: C++

#include <iostream>
#include <string>

using namespace std;

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

int main()
{
    string s;
    cin >> s;
    bool ans = true;
    if(!palindrome(s)) ans = false;
    if(!palindrome(s.substr(0,s.size()/2))) ans=false;//半分切り捨て//
    cout << (ans ? "Yes" : "No") << endl;//条件(三項）演算子//
    return 0;
} 

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

#include <iostream>

using namespace std;

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

int main()
{
    string s;
    cin >> s;
    bool ans = true;
    if(!palindrome(s)) ans = false;
    if(!palindrome(s.substr(0,s.size()/2))) ans=false;//半分切り捨て//
    cout << (ans ? "Yes" : "No") << endl;//条件(三項）演算子//
    return 0;
} 

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

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

using namespace std;

#define ll long long
#define vi vector<int>
#define vl vector<long long>
#define pii pair<int,int>
#define mii map<int,int>
#define mci map<char,int>
#define fir first
#define sec second
#define eline "\n"

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

int main() {

	ios::sync_with_stdio(false);
	cin.tie(0);

	string s;
	cin >> s;
	
	if(!f(s)) cout << "No" << eline;
	else {
		int n = (s.length() - 1) / 2;
		if(!f(s.substr(0, n))) cout << "No" << eline;
		else {
			int j = (s.length() + 3) / 2;
			if(!f(s.substr(j - 1))) cout << "No" << eline;
			else cout << "Yes" << eline;
		}
	}
	
	return 0;
}


Compiler output:
a.cc:1:2: error: stray '#' in program
    1 | v#include <bits/stdc++.h>
      |  ^
a.cc:1:1: error: 'v' does not name a type; did you mean 'vi'?
    1 | v#include <bits/stdc++.h>
      | ^
      | vi
a.cc:15:8: error: 'string' was not declared in this scope
   15 | bool f(string s) {
      |        ^~~~~~
a.cc: In function 'int main()':
a.cc:24:9: error: 'ios' has not been declared
   24 |         ios::sync_with_stdio(false);
      |         ^~~
a.cc:25:9: error: 'cin' was not declared in this scope
   25 |         cin.tie(0);
      |         ^~~
a.cc:27:9: error: 'string' was not declared in this scope
   27 |         string s;
      |         ^~~~~~
a.cc:28:16: error: 's' was not declared in this scope
   28 |         cin >> s;
      |                ^
a.cc:30:14: error: 'f' cannot be used as a function
   30 |         if(!f(s)) cout << "No" << eline;
      |             ~^~~
a.cc:30:19: error: 'cout' was not declared in this scope
   30 |         if(!f(s)) cout << "No" << eline;
      |                   ^~~~
a.cc:33:37: error: 'f' cannot be used as a function
   33 |                 if(!f(s.substr(0, n))) cout << "No" << eline;
      |                                     ^
a.cc:33:40: error: 'cout' was not declared in this scope
   33 |                 if(!f(s.substr(0, n))) cout << "No" << eline;
      |                                        ^~~~
a.cc:36:46: error: 'f' cannot be used as a function
   36 |                         if(!f(s.substr(j - 1))) cout << "No" << eline;
      |                                              ^
a.cc:36:49: error: 'cout' was not declared in this scope
   36 |                         if(!f(s.substr(j - 1))) cout << "No" << eline;
      |                                                 ^~~~
a.cc:37:30: error: 'cout' was not declared in this scope
   37 |                         else cout << "Yes" << eline;
      |                              ^~~~
Language: C++

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

int main(){
  char S[100];
  double len1;
  double len2;
  double len3;

  cin >> S;
  len1 = strlen(S);


  for (int i = 0; i < len1; i++){
    if (S[i] != S[len1 - i - 1]){
      cout << "No" << endl;
      return 0;
    } else if (i == len1 - i - 1){
      break;
    }
  }

  len2 = (len1 - 1) / 2;

  for (int i = 0; i < len2; i++){
    if (S[i] != S[len2 - i - 1]){
      cout << "No" << endl;
      return 0;
    } else if (i == len2 - i - 1){
      break;
    }
  }

  len3 = (len1 + 3) / 2;

  for (int i = 0; i < len1; i++){
    if (S[len3 - 1 + i] != S[len1 - 1 - i]){
      cout << "No" << endl;
      return 0;
    } else if (len3 - 1 + i == len1 - 1 - i){
      cout << "Yes" << endl;
      return 0;
    }
  }
}


Compiler output:
a.cc: In function 'int main()':
a.cc:16:18: error: invalid types 'char [100][double]' for array subscript
   16 |     if (S[i] != S[len1 - i - 1]){
      |                  ^
a.cc:27:18: error: invalid types 'char [100][double]' for array subscript
   27 |     if (S[i] != S[len2 - i - 1]){
      |                  ^
a.cc:38:10: error: invalid types 'char [100][double]' for array subscript
   38 |     if (S[len3 - 1 + i] != S[len1 - 1 - i]){
      |          ^
a.cc:38:29: error: invalid types 'char [100][double]' for array subscript
   38 |     if (S[len3 - 1 + i] != S[len1 - 1 - i]){
      |                             ^
Language: C

#include <stdio.h>
#include <string.h>
 
int main()
{
 char s[100],n,i,flag=0,flag2=0;
 
 scanf("%s",s);
 
 n=strlen(s);
 for(i=0;i<(n-1)/2;i++){
     if(s[i]==s[n-1-i]){flag=1;}
     else{flag=0;break;}
 }
 for(i=0;i<n/2;i++){
     if(s[i]==s[(n/2-1-i]){flag2=1;}
     else{flag2=0;break;}
 }

 if(flag==1&&flag2==1){printf("Yes\n");}
 else{printf("No\n");}
 return 0;
}

Compiler output:
main.c: In function 'main':
main.c:16:25: error: expected ')' before ']' token
   16 |      if(s[i]==s[(n/2-1-i]){flag2=1;}
      |                 ~       ^
      |                         )
Language: C++

#include<bits/stdc++.h>
using namespace std;
int main(){
  string s;
  cin>>s;
  str=reverse(s.begin(),s.end());
  if(s==str){
    cout<<"Yes";
  }
  else{
    cout<<"No";
  }
  return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:6:3: error: 'str' was not declared in this scope; did you mean 'std'?
    6 |   str=reverse(s.begin(),s.end());
      |   ^~~
      |   std
Language: C

#define _CRT_SECURE_NO_WARNINGS
#include <stdio.h>  
#include <stdlib.h> 
#include <string.h> 

//回文を判定する関数 内容の理解は頑張って
int IsPalindrome(char* cs) {
	int len = strlen(cs);
	for (int i = 0; i < len; i++)
	{
		if (cs[i] != cs[len - 1 - i]) return false;
	}
}

int check() {
	char a[105], b[105], c[105];
	int len;
	scanf("%s", &a);
	len = strlen(a);

	// 文字列全体が回文になっているか調べる
	if (!IsPalindrome(a)) return 0;

	// 前半部について回文になっているか調べる
	for (int i = 0; i < len / 2; i++)
	{
		b[i] = a[i];
	}
	b[len / 2] = '\0';
	if (!IsPalindrome(b)) return 0;

	// 後半部について回文になっているか調べる(いらない)
	for (int i = 0; i < len / 2; i++)
	{
		b[i] = a[len/2 + 1 + i];
	}
	b[len / 2] = '\0';
	if (!IsPalindrome(c)) return 0;
	return 1;
}

int main()
{
	if (check()) printf("Yes\n");
	else printf("No\n");
	return 0;
}

Compiler output:
main.c: In function 'IsPalindrome':
main.c:11:54: error: 'false' undeclared (first use in this function)
   11 |                 if (cs[i] != cs[len - 1 - i]) return false;
      |                                                      ^~~~~
main.c:5:1: note: 'false' is defined in header '<stdbool.h>'; this is probably fixable by adding '#include <stdbool.h>'
    4 | #include <string.h>
  +++ |+#include <stdbool.h>
    5 | 
main.c:11:54: note: each undeclared identifier is reported only once for each function it appears in
   11 |                 if (cs[i] != cs[len - 1 - i]) return false;
      |                                                      ^~~~~
Language: C

define _CRT_SECURE_NO_WARNINGS
#include <stdio.h>  
#include <stdlib.h> 
#include <string.h> 
#include <math.h>   
 
 
int main(void)
{
    char a[100], b[100];
    int len;
 
    scanf("%s", &a);
    len = strlen(a);
 
    for (int i = 0; i < len; i++) {
        b[i] = a[len - i-1];
    }
    b[len] = '\0';
    
    if (strcmp(a, b) != 0) {
        puts("No");
        return 0;
    }
    
    char c[50];
    char d[50];
    for (int i = 0; i < len / 2; i++) {
        c[i] = a[i];
    }
    c[len / 2] = '\0';
    for (int i = 0; i < len/2; i++) {
        d[i] = c[len/2 - i - 1];
    }
    d[len/2] = '\0';
 
    if (strcmp(c, d) != 0) {
        puts("No");
        return 0;
    }
 

    puts("Yes");
    return 0;
}

Compiler output:
main.c:1:1: error: unknown type name 'define'
    1 | define _CRT_SECURE_NO_WARNINGS
      | ^~~~~~
main.c:1:31: error: expected ';' before 'typedef'
    1 | define _CRT_SECURE_NO_WARNINGS
      |                               ^
      |                               ;
Language: C

#define _CRT_SECURE_NO_WARNINGS
#include <stdio.h>  
#include <stdlib.h> 
#include <string.h> 

//回文を判定する関数 内容の理解は頑張って
int IsPalindrome(char* cs) {
	int len = strlen(cs);
	for (int i = 0; i < len; i++)
	{
		if (cs[i] != cs[len - 1 - i]) return false;
	}
}

int check() {
	char a[105], b[105], c[105];
	scanf("%s", &a);
	int len = strlen(a);

	// 文字列全体が回文になっているか調べる
	if (!IsPalindrome(a)) return 0;

	// 前半部について回文になっているか調べる
	for (int i = 0; i < len / 2; i++)
	{
		b[i] = a[i];
	}
	b[len / 2] = '\0';
	if (!IsPalindrome(b)) return 0;

	// 後半部について回文になっているか調べる(いらない)
	for (int i = 0; i < len / 2; i++)
	{
		b[i] = a[len/2 + 1 + i];
	}
	b[len / 2] = '\0';
	if (!IsPalindrome(c)) return 0;
	return 1;
}

int main()
{
	if (check()) printf("Yes\n");
	else printf("No\n");
	return 0;
}

Compiler output:
main.c: In function 'IsPalindrome':
main.c:11:54: error: 'false' undeclared (first use in this function)
   11 |                 if (cs[i] != cs[len - 1 - i]) return false;
      |                                                      ^~~~~
main.c:5:1: note: 'false' is defined in header '<stdbool.h>'; this is probably fixable by adding '#include <stdbool.h>'
    4 | #include <string.h>
  +++ |+#include <stdbool.h>
    5 | 
main.c:11:54: note: each undeclared identifier is reported only once for each function it appears in
   11 |                 if (cs[i] != cs[len - 1 - i]) return false;
      |                                                      ^~~~~
Language: C

dfine _CRT_SECURE_NO_WARNINGS
#include <stdio.h>  
#include <stdlib.h> 
#include <string.h> 
#include <math.h>   
 
 
int main(void)
{
    char a[100], b[100];
    int len;
 
    scanf("%s", &a);
    len = strlen(a);
 
    for (int i = 0; i < len; i++) {
        b[i] = a[len - i-1];
    }
    b[len] = '\0';
    
    if (strcmp(a, b) != 0) {
        puts("No");
        return 0;
    }
    
    char c[50];
    char d[50];
    for (int i = 0; i < len / 2; i++) {
        c[i] = a[i];
    }
    c[len / 2] = '\0';
    for (int i = 0; i < len/2; i++) {
        d[i] = c[len/2 - i - 1];
    }
    d[len/2] = '\0';
 
    if (strcmp(c, d) != 0) {
        puts("No");
        return 0;
    }
 
    
    puts("Yes");
    return 0;
}

Compiler output:
main.c:1:1: error: unknown type name 'dfine'
    1 | dfine _CRT_SECURE_NO_WARNINGS
      | ^~~~~
main.c:1:30: error: expected ';' before 'typedef'
    1 | dfine _CRT_SECURE_NO_WARNINGS
      |                              ^
      |                              ;
Language: C

#define _CRT_SECURE_NO_WARNINGS
#include <stdio.h>  
#include <stdlib.h> 
#include <string.h> 


bool check() {
	char a[105];
	int len;

	scanf("%s", &a);
	len = strlen(a);

	// i 文字目と len-i-1文字目 が違ったら回文ではない
	for (int i = 0; i < len; i++)
	{
		if (a[i] != a[len - i - 1]) return false;
	}
	// 前半部について、i文字目と(len/2)-i-1文字目が違ったら回分ではない
	for (int i = 0; i < len / 2; i++)
	{
		if (a[i] != a[len / 2 - i - 1]) return false;
	}
	// 後半部について、回文だったら前半部と同じ文字なので調べないで良い
	//強い回文だったらtrueを返す
	return true;
}

int main()
{
	if (check()) printf("Yes\n");
	else printf("No\n");
	return 0;
}

Compiler output:
main.c:7:1: error: unknown type name 'bool'
    7 | bool check() {
      | ^~~~
main.c:5:1: note: 'bool' is defined in header '<stdbool.h>'; this is probably fixable by adding '#include <stdbool.h>'
    4 | #include <string.h>
  +++ |+#include <stdbool.h>
    5 | 
main.c: In function 'check':
main.c:17:52: error: 'false' undeclared (first use in this function)
   17 |                 if (a[i] != a[len - i - 1]) return false;
      |                                                    ^~~~~
main.c:17:52: note: 'false' is defined in header '<stdbool.h>'; this is probably fixable by adding '#include <stdbool.h>'
main.c:17:52: note: each undeclared identifier is reported only once for each function it appears in
main.c:26:16: error: 'true' undeclared (first use in this function)
   26 |         return true;
      |                ^~~~
main.c:26:16: note: 'true' is defined in header '<stdbool.h>'; this is probably fixable by adding '#include <stdbool.h>'
Language: C

#define _CRT_SECURE_NO_WARNINGS
#include <stdio.h>  
#include <stdlib.h> 
#include <string.h> 


bool check() {
	char a[105];

	scanf("%s", &a);
	int len = strlen(a);

	// i 文字目と len-i-1文字目 が違ったら回文ではない
	for (int i = 0; i < len; i++)
	{
		if (a[i] != a[len - i - 1]) return false;
	}
	// 前半部について、i文字目と(len/2)-i-1文字目が違ったら回分ではない
	for (int i = 0; i < len / 2; i++)
	{
		if (a[i] != a[len / 2 - i - 1]) return false;
	}
	// 後半部について、回文だったら前半部と同じ文字なので調べないで良い
	//強い回文だったらtrueを返す
	return true;
}

int main()
{
	if (check()) printf("Yes\n");
	else printf("No\n");
	return 0;
}

Compiler output:
main.c:7:1: error: unknown type name 'bool'
    7 | bool check() {
      | ^~~~
main.c:5:1: note: 'bool' is defined in header '<stdbool.h>'; this is probably fixable by adding '#include <stdbool.h>'
    4 | #include <string.h>
  +++ |+#include <stdbool.h>
    5 | 
main.c: In function 'check':
main.c:16:52: error: 'false' undeclared (first use in this function)
   16 |                 if (a[i] != a[len - i - 1]) return false;
      |                                                    ^~~~~
main.c:16:52: note: 'false' is defined in header '<stdbool.h>'; this is probably fixable by adding '#include <stdbool.h>'
main.c:16:52: note: each undeclared identifier is reported only once for each function it appears in
main.c:25:16: error: 'true' undeclared (first use in this function)
   25 |         return true;
      |                ^~~~
main.c:25:16: note: 'true' is defined in header '<stdbool.h>'; this is probably fixable by adding '#include <stdbool.h>'
Language: Java

import java.util.Scanner;
import java.util.*;
/**
 * @author yamato
 *
 */
public class Main {

	/**
	 * @param args
	 */
	public static boolean kaibun(String S,int N) {
		int i;
		String s1;
		String s2;
		if(N%2 != 0) {
			 s1 = S.substring(0,(N-1)/2);
			 s2 = S.substring((N-1)/2+1);
		}else {
			 s1 = S.substring(0,(N)/2);
			 s2 = S.substring((N)/2+1);
		}
		
        StringBuffer str2 = new StringBuffer(s2);
        s2 = str2.reverse().toString();
        
        //System.out.println(s1);
        //System.out.println(s2);
        
		if(s1.equals(s2)) {
			return true;
		}else {
			return false;
		}
		
	}

Compiler output:
Main.java:36: error: reached end of file while parsing
	}
	 ^
1 error
Language: C++

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

Compiler output:
a.cc: In function 'bool palin(std::string, int, int)':
a.cc:8:9: warning: empty parentheses were disambiguated as a function declaration [-Wvexing-parse]
    8 | int main(){
      |         ^~
a.cc:8:9: note: remove parentheses to default-initialize a variable
    8 | int main(){
      |         ^~
      |         --
a.cc:8:9: note: or replace parentheses with braces to value-initialize a variable
a.cc:8:11: error: a function-definition is not allowed here before '{' token
    8 | int main(){
      |           ^
a.cc:15:2: error: expected '}' at end of input
   15 | }
      |  ^
a.cc:3:34: note: to match this '{'
    3 | bool palin(string s, int l,int h){
      |                                  ^
Language: Java

import java.util.*;
import java.lang.*;
public class Solution {
	public static boolean checkPalindrome(char[] arr, int a, int b){
		for(int i=a;i<b-a;i++){
			if(arr[i]!=arr[b-a-i-1]){
				return false;
			}
		}
		return true;

	}
	public static void main(String args[]){
		Scanner sc=new Scanner(System.in);
		char[] s=sc.nextLine().toCharArray();
		int n=s.length;
		if(checkPalindrome(s,0,n)&&checkPalindrome(s,0,(n-1)/2)&&checkPalindrome(s,(n+3)/2,n)){
			System.out.print("Yes");
		}
		else{
			System.out.println("No");
		}
	}
}

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

#include <iostream>
using namespace std;
int main(){
    string str;
    cin >> str;
    int flag1=0, flag2=0, flag3=0;
    for(int i=0;i<n-i-1;i++){
        if(str[i]!=str[n-i-1]) flag1=1;
    }

    for(int i=0;i<(n-1)/2-i-1;i++){
        if(str[i]!=str[(n-1)/2-i-1]) flag2=1;
    }

    for(int i=0;(n+3)/2+i-1<n-i-1;i++){
        if(str[(n+3)/2+i-1]!=str[n-i-1]) flag3=1;
    }

    if(flag1||flag2||flag3) cout << "No" << endl;
    else cout << "Yes" << endl;
    return 0;
}

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

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

int main() {
  string s;
  cin>>s;
  int n=s.size();
  for(int i=0;i<=n;i++){
    if(s[i]!=s[n-1-i])||s[i]!=s[n/2-1-i]||s[n/2+1+i]!=s[n-1-i]){
      cout<<"No"<<endl;
    }else{
      cout<<"Yes"<<endl;
    }
  }
  
  
}



Compiler output:
a.cc: In function 'int main()':
a.cc:9:23: error: expected primary-expression before '||' token
    9 |     if(s[i]!=s[n-1-i])||s[i]!=s[n/2-1-i]||s[n/2+1+i]!=s[n-1-i]){
      |                       ^~