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

#include <stdio.h>
#include <iostream>
#include <vector>
#include <algorithm>
#include <functional>
#include <cstdlib>
#include <list>
#include <numeric>
#include <map>
#include <cmath>
#include <string>

#define rep(i,n) for(int i=0;i<n;i++)
#define all(x) (x).begin(),(x).end()
#define sz(x) ((int)(x).size())
#define Cout(s) cout<<s<<endl

bool sosuu(const int x)
{
	if (x == 2)return true;
	if (x < 2 || x % 2 == 0)return false;
	for (int i = 3; i * i <= x; i += 2)
		if (x % i == 0)return false;
	return true;
}
int gcd(int a, int b)
{
	if (a % b == 0) { return b; }
	else { return gcd(b, a % b); }
}
int ketawa(int a)
{
	if (a < 10)return a;
	else return a % 10 + ketawa(a / 10);
}

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

typedef long long ll;
using namespace std;
string Yes(bool b) { if (b) { return "Yes"; } else { return "No"; } }
string YES(bool b) { if (b) { return "YES"; } else { return "NO"; } }
//================================================

int a = 0, b = 0, c, d, n, k = 0, ans = 0;
string s, t;


int main()
{
	cin >> s;
	n = sz(s); bool x = true, y = true;
	
	Cout(Yes(kaibun(s.substr(0,(n-1)/2)) && kaibun(s.substr((n+3)/2))));

	return 0;
}


Compiler output:
a.cc:37:13: error: 'string' was not declared in this scope
   37 | bool kaibun(string s)
      |             ^~~~~~
a.cc:37:13: note: suggested alternatives:
In file included from /usr/include/c++/14/iosfwd:41,
                 from /usr/include/c++/14/ios:40,
                 from /usr/include/c++/14/ostream:40,
                 from /usr/include/c++/14/iostream:41,
                 from a.cc:2:
/usr/include/c++/14/bits/stringfwd.h:77:33: note:   'std::string'
   77 |   typedef basic_string<char>    string;
      |                                 ^~~~~~
In file included from /usr/include/c++/14/bits/locale_classes.h:40,
                 from /usr/include/c++/14/bits/ios_base.h:41,
                 from /usr/include/c++/14/ios:44:
/usr/include/c++/14/string:76:11: note:   'std::pmr::string'
   76 |     using string    = basic_string<char>;
      |           ^~~~~~
a.cc: In function 'int main()':
a.cc:63:24: error: 'kaibun' cannot be used as a function
   63 |         Cout(Yes(kaibun(s.substr(0,(n-1)/2)) && kaibun(s.substr((n+3)/2))));
      |                  ~~~~~~^~~~~~~~~~~~~~~~~~~~~
a.cc:16:23: note: in definition of macro 'Cout'
   16 | #define Cout(s) cout<<s<<endl
      |                       ^
a.cc:63:55: error: 'kaibun' cannot be used as a function
   63 |         Cout(Yes(kaibun(s.substr(0,(n-1)/2)) && kaibun(s.substr((n+3)/2))));
      |                                                 ~~~~~~^~~~~~~~~~~~~~~~~~~
a.cc:16:23: note: in definition of macro 'Cout'
   16 | #define Cout(s) cout<<s<<endl
      |                       ^
Language: Java

import java.util.*;
public class Main
{
  public static void main(String args[])
  {
    Scanner in=new Scanner(System.in);
    String S=in.nextLine();String p="",b="";
    int N=S.length();
    StringBuffer br=new StringBuffer(S);
    if(S.reverse().compareTo(S)=0)
    {
      p=S.substring(0,(N-1)/2);
      StringBuffer k=new StringBuffer(p);
      if(p.reverse().compareTo(p)==0)
      {
        b=S.substring((N-1)/2)-1));
        StringBuffer f=new StringBuffer(b);
        if(b.reverse().compareTo(b)==0)
          System.out.println("YES");
        else
          System.out.println("NO");
      }
      else
        System.out.println("NO");
    }
    else
      System.out.println("NO");
  }
}
}

Compiler output:
Main.java:16: error: ';' expected
        b=S.substring((N-1)/2)-1));
                                ^
Main.java:30: error: class, interface, enum, or record expected
}
^
2 errors
Language: C++

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

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


Compiler output:
a.cc: In function 'int main()':
a.cc:9:43: error: expected ')' before '{' token
    9 |   if ((((N - 1) / 2) % 2 == 1) || (N == 3) {
      |      ~                                    ^~
      |                                           )
a.cc:24:1: error: expected primary-expression before '}' token
   24 | }
      | ^
Language: C++

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

int main(){
    char s[99];
    int judge = 0;
    scanf("%s",s);
    int n = strlen(s);
    if(n <= 3){
        judge = 1;
    }

    if(judge == 0){
    for(i = 0; i < n/2: i++){
        if(s[i] != s[n-i-1]){
            judge = 1;
        }
    }
    }

    if(judge == 0){
    for(i = 0; i < (n-1)/2/2; i++){
        if(s[i] != s[(n-1)/2-1-i]){
            judeg = 1;
        }
    }
    }

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

    if(judge == 0){
        printf("Yes");
    }else{
        printf("No");
    }
    }
    return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:14:9: error: 'i' was not declared in this scope
   14 |     for(i = 0; i < n/2: i++){
      |         ^
a.cc:14:16: warning: range-based 'for' loops with initializer only available with '-std=c++20' or '-std=gnu++20' [-Wc++20-extensions]
   14 |     for(i = 0; i < n/2: i++){
      |                ^
a.cc:19:5: error: expected primary-expression before '}' token
   19 |     }
      |     ^
a.cc:18:6: error: expected ';' before '}' token
   18 |     }
      |      ^
      |      ;
   19 |     }
      |     ~ 
a.cc:19:5: error: expected primary-expression before '}' token
   19 |     }
      |     ^
a.cc:18:6: error: expected ')' before '}' token
   18 |     }
      |      ^
      |      )
   19 |     }
      |     ~ 
a.cc:14:8: note: to match this '('
   14 |     for(i = 0; i < n/2: i++){
      |        ^
a.cc:19:5: error: expected primary-expression before '}' token
   19 |     }
      |     ^
a.cc:22:9: error: 'i' was not declared in this scope
   22 |     for(i = 0; i < (n-1)/2/2; i++){
      |         ^
a.cc:24:13: error: 'judeg' was not declared in this scope; did you mean 'judge'?
   24 |             judeg = 1;
      |             ^~~~~
      |             judge
a.cc:30:9: error: 'i' was not declared in this scope
   30 |     for(i = (n+3)/2; i< n; i++){
      |         ^
a.cc: At global scope:
a.cc:43:5: error: expected unqualified-id before 'return'
   43 |     return 0;
      |     ^~~~~~
a.cc:44:1: error: expected declaration before '}' token
   44 | }
      | ^
Language: C++

#include<bits/stdc++.h>
#define endl '\n'
using namespace std;
int main(){
    ios::sync_with_stdio(false);
    cin.tie(0);
    string S,a,b;
  	cin >> S;
  	for(int i = 0; i < (S.length()-1)/2-1; i++) {
        a += S[i];
    }
	for(int i = (S.length()+3)/2-1; i < S.length(); i++){
      	b += S[i];
    }
  	void isPalindrome(char str[]) 
	{
    int l = 0; 
    int h = strlen(str) - 1; 
    while (h > l) 
    { 
        if (str[l++] != str[h--]) 
        { 
            cout << "No";
            return; 
        } 
    }
    isPalindrome(S);
    isPalindrome(a);
    isPalindrome(b);
    cout << "Yes";
}

Compiler output:
a.cc: In function 'int main()':
a.cc:16:9: error: a function-definition is not allowed here before '{' token
   16 |         {
      |         ^
a.cc:31:2: error: expected '}' at end of input
   31 | }
      |  ^
a.cc:4:11: note: to match this '{'
    4 | int main(){
      |           ^
Language: C++

#include<bits/stdc++.h>
using namespace std;
char c[101],a[101],d[101],e[101],f[101],g[101];
int main()
{
	 int lenc,l1,i,pd=0; 
     gets(c);
     lenc=strlen(c);
     for(i=0;i<lenc;i++)
     {
     	a[lenc-i-1]=c[i];
     }
     
     if(strcmp(c,a)==0)
     {
     	l1=(lenc-1)/2;
     	for(i=0;i<l1;i++)
     	{
     		d[l1-i-1]=c[i];
     		e[i]=c[i];
     	}
     	
        if(strcmp(e,d)!=0)cout<<"No";
        else
        {
        	l1=(lenc+3)/2-1;
        	for(i=l1;i<lenc;i++)
        	{
        		f[i-l1]=c[i];
        	}
        	for(i=0;i<lenc-l1;i++)
        	{
        		g[lenc-l1-i-1]=f[i];
        	}
        	if(strcmp(f,g)!=0)cout<<"No";
        	else cout<<"Yes";
        }
     }
     else
     cout<<"No"; 
    
} 

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

#include<stdio.h>
#include<string.h>
void main()
{
  char s[20];
  int i ,l;
  printf("input: ");
  gets(s);
  l=strlen(s);
  for(i=0;i<l/2;i++)
  {  if(s[i]!=s[l-1-i])
    {   printf('No");
      break;
               }}
    if(i==l/2)
       printf("Yes");
}             

Compiler output:
main.c: In function 'main':
main.c:8:3: error: implicit declaration of function 'gets'; did you mean 'fgets'? [-Wimplicit-function-declaration]
    8 |   gets(s);
      |   ^~~~
      |   fgets
main.c:12:16: warning: missing terminating ' character
   12 |     {   printf('No");
      |                ^
main.c:12:16: error: missing terminating ' character
   12 |     {   printf('No");
      |                ^~~~~~
main.c:13:7: error: expected expression before 'break'
   13 |       break;
      |       ^~~~~
main.c:13:13: error: expected ';' before '}' token
   13 |       break;
      |             ^
      |             ;
   14 |                }}
      |                ~
Language: C++

#include<bits/stdc++.h> 
int palin(char *s,int n)
{	
  int k=1;	
  char *head,*tail;	
  head=s;	
  tail=s+n-1;	
  for(int i=0;i<n/2;i++)	
  {	
      if(*head>31&&*head<65) head++;		
	  if(*tail>31&&*tail<65) tail--;					
      if(*head!=*tail) k=0;	
	  head++;		 
	  tail--;			  
  }	
return k;
}
int main()
{	
  int k,n;	
  char s[100];	
  gets(s);	
  n=strlen(s);	
  k=palin(s,n);	
  if(k==1) 
  printf("yes!");	
  else printf("no!");
}



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

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

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


Compiler output:
a.cc: In function 'int main()':
a.cc:36:11: error: invalid operands of types 'int' and 'const char [3]' to binary 'operator<<'
   36 |     count << "No" << endl;
      |     ~~~~~ ^~ ~~~~
      |     |        |
      |     int      const char [3]
Language: C++

#include<bits/stdc++.h>
using namespace std;
bool is_hw(string x){
	int s=0,p;
	p=x.size();
	while(p!=0){
		s+=p%10+s*10;
		p/=10;
	}
	if(s==x.size()) return true;
	else return false;
}
int main(){
	string s;
	cin>>s;
	int n=s.size(),m=s.size();
	for(int i=n;i>(n-1)/2;i--) n--;
	for(int i=(n+3)/2;i>0;i--) m--;
	if(is_hw(s)==1&&is_hw(n)==1&&is_hw(m)==1) cout<<"Yes";
	else cout<<"No";
	return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:19:31: error: could not convert 'n' from 'int' to 'std::string' {aka 'std::__cxx11::basic_string<char>'}
   19 |         if(is_hw(s)==1&&is_hw(n)==1&&is_hw(m)==1) cout<<"Yes";
      |                               ^
      |                               |
      |                               int
a.cc:19:44: error: could not convert 'm' from 'int' to 'std::string' {aka 'std::__cxx11::basic_string<char>'}
   19 |         if(is_hw(s)==1&&is_hw(n)==1&&is_hw(m)==1) cout<<"Yes";
      |                                            ^
      |                                            |
      |                                            int
Language: C++

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


Compiler output:
a.cc: In function 'int main()':
a.cc:19:10: error: expected ';' before '}' token
   19 |       y++
      |          ^
      |          ;
   20 |     }
      |     ~
Language: Java

import java.io.BufferedReader;
import java.io.*;
import java.util.*;
import java.util.ArrayList;
import java.util.Iterator;
import java.util.List;
import java.util.Collections;
public class Main {
	public static void main(final String[] args){
    
    Scanner sc = new Scanner(System.in);
    String s = sc.next();
    List<Character> list = new ArrayList<>();
    List<Character> list2 = new ArrayList<>();
    List<Character> list3 = new ArrayList<>();
    List<Character> list4 = new ArrayList<>();
    List<Character> list5 = new ArrayList<>();
    List<Character> list6 = new ArrayList<>();

    int count = 0;

    for(int i = 0; i < s.length(); i++){
        list.add(s.charAt(i));

        //切り出した文字列を一文字ずつ出力
    }

    for(int i = 0; i < list.size(); i++){
        list2.add(list.get(i));
    }

    Collections.reverse(list);
    if(list == list2){
    }else{count++;}

    for(int i = 0; i < (s.length()-1)/2; i++){
        list3.add(list.get(i));
    }
    
    for(int i = 0; i < list3.size(); i++){
        list4.add(list3.get(i));
    }

    Collections.reverse(list3);

    if(list3 == list4){
    }else{count++;}

    for(int i = s.length(); i > (s.length()+1)/2; i--){
        list5.add(list.get(i-1));
    }
    
    for(int i = 0; i < list5.size(); i++){
        list6.add(list5.get(i));
    }

    Collections.reverse(list5);
    if(list5 == list6){
    }else{count++;}

    if(count == 0){
        System.out.println('Yes');
    }else{
        System.out.println('No');
    }
    
    
    
	}
}

Compiler output:
Main.java:62: error: unclosed character literal
        System.out.println('Yes');
                           ^
Main.java:62: error: unclosed character literal
        System.out.println('Yes');
                               ^
Main.java:62: error: not a statement
        System.out.println('Yes');
                             ^
Main.java:64: error: unclosed character literal
        System.out.println('No');
                           ^
Main.java:64: error: unclosed character literal
        System.out.println('No');
                              ^
Main.java:64: error: not a statement
        System.out.println('No');
                             ^
6 errors
Language: C++

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

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


Compiler output:
a.cc: In function 'void func()':
a.cc:17:34: error: expected ')' before '{' token
   17 |     if(bun.at(i)==bun.at(N/2-1-i){continue;}
      |       ~                          ^
      |                                  )
a.cc:24:11: error: expected primary-expression before '}' token
   24 |           }
      |           ^
Language: C++

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

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

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


Compiler output:
a.cc: In function 'int main()':
a.cc:18:51: error: could not convert '(s.std::__cxx11::basic_string<char>::size() - ((std::__cxx11::basic_string<char>::size_type)n))' from 'std::__cxx11::basic_string<char>::size_type' {aka 'long unsigned int'} to 'std::string' {aka 'std::__cxx11::basic_string<char>'}
   18 |     if (kaibun(s.substr(0, n)) && kaibun(s.size() - n, n)) {
      |                                          ~~~~~~~~~^~~
      |                                                   |
      |                                                   std::__cxx11::basic_string<char>::size_type {aka long unsigned int}
Language: C

#include<stdio.h>
#include<string.h>
void main()
{
  char s[20];
  int i ,l;
  printf("input: ");
  gets(s);
  l=strlen(s);
  for(i=0;i<l/2;i++)
    if(s[i]!=s[l-1-i])
      printf('No");
      break;
    if(i==l/2)
       printf("Yes");
}             

Compiler output:
main.c: In function 'main':
main.c:8:3: error: implicit declaration of function 'gets'; did you mean 'fgets'? [-Wimplicit-function-declaration]
    8 |   gets(s);
      |   ^~~~
      |   fgets
main.c:12:14: warning: missing terminating ' character
   12 |       printf('No");
      |              ^
main.c:12:14: error: missing terminating ' character
   12 |       printf('No");
      |              ^~~~~~
main.c:13:7: error: expected expression before 'break'
   13 |       break;
      |       ^~~~~
main.c:15:22: error: expected ';' before '}' token
   15 |        printf("Yes");
      |                      ^
      |                      ;
   16 | }
      | ~
Language: C++

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

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

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


Compiler output:
a.cc: In function 'int main()':
a.cc:18:51: error: could not convert '(s.std::__cxx11::basic_string<char>::size() - ((std::__cxx11::basic_string<char>::size_type)n))' from 'std::__cxx11::basic_string<char>::size_type' {aka 'long unsigned int'} to 'std::string' {aka 'std::__cxx11::basic_string<char>'}
   18 |     if (kaibun(s.substr(0, n)) && kaibun(s.size() - n, n))) {
      |                                          ~~~~~~~~~^~~
      |                                                   |
      |                                                   std::__cxx11::basic_string<char>::size_type {aka long unsigned int}
a.cc:18:59: error: expected primary-expression before ')' token
   18 |     if (kaibun(s.substr(0, n)) && kaibun(s.size() - n, n))) {
      |                                                           ^
Language: C++

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

int main()
{
  char a , b , c ;
  int ans = 0 ;
  int i , j ;
  string st ;
  cin >> st ;
  
  for(i=1;i<N;i++){
    if(st.at(i) == st.at(i+(st.size)/2))
      ans++;
  }
  
  if(ans=(st.size-1)/2){
    ans = 0;
  	for(i=1;i<(st.size-1)/4+1;i++){
      if(st.at(i) == (st.size-1)/2+1-i)
    	ans++;
   }
   
   if(ans == (st.size-1)/4)
     cout << Yes ; 
   else
     cout << No ;
    
return 0;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:12:13: error: 'N' was not declared in this scope
   12 |   for(i=1;i<N;i++){
      |             ^
a.cc:13:32: error: invalid use of member function 'std::__cxx11::basic_string<_CharT, _Traits, _Alloc>::size_type std::__cxx11::basic_string<_CharT, _Traits, _Alloc>::size() const [with _CharT = char; _Traits = std::char_traits<char>; _Alloc = std::allocator<char>; size_type = long unsigned int]' (did you forget the '()' ?)
   13 |     if(st.at(i) == st.at(i+(st.size)/2))
      |                            ~~~~^~~~~
      |                                     ()
a.cc:17:14: error: invalid use of member function 'std::__cxx11::basic_string<_CharT, _Traits, _Alloc>::size_type std::__cxx11::basic_string<_CharT, _Traits, _Alloc>::size() const [with _CharT = char; _Traits = std::char_traits<char>; _Alloc = std::allocator<char>; size_type = long unsigned int]' (did you forget the '()' ?)
   17 |   if(ans=(st.size-1)/2){
      |           ~~~^~~~
      |                  ()
a.cc:19:23: error: invalid use of member function 'std::__cxx11::basic_string<_CharT, _Traits, _Alloc>::size_type std::__cxx11::basic_string<_CharT, _Traits, _Alloc>::size() const [with _CharT = char; _Traits = std::char_traits<char>; _Alloc = std::allocator<char>; size_type = long unsigned int]' (did you forget the '()' ?)
   19 |         for(i=1;i<(st.size-1)/4+1;i++){
      |                    ~~~^~~~
      |                           ()
a.cc:20:26: error: invalid use of member function 'std::__cxx11::basic_string<_CharT, _Traits, _Alloc>::size_type std::__cxx11::basic_string<_CharT, _Traits, _Alloc>::size() const [with _CharT = char; _Traits = std::char_traits<char>; _Alloc = std::allocator<char>; size_type = long unsigned int]' (did you forget the '()' ?)
   20 |       if(st.at(i) == (st.size-1)/2+1-i)
      |                       ~~~^~~~
      |                              ()
a.cc:24:18: error: invalid use of member function 'std::__cxx11::basic_string<_CharT, _Traits, _Alloc>::size_type std::__cxx11::basic_string<_CharT, _Traits, _Alloc>::size() const [with _CharT = char; _Traits = std::char_traits<char>; _Alloc = std::allocator<char>; size_type = long unsigned int]' (did you forget the '()' ?)
   24 |    if(ans == (st.size-1)/4)
      |               ~~~^~~~
      |                      ()
a.cc:25:14: error: 'Yes' was not declared in this scope
   25 |      cout << Yes ;
      |              ^~~
a.cc:27:14: error: 'No' was not declared in this scope
   27 |      cout << No ;
      |              ^~
a.cc:30:2: error: expected '}' at end of input
   30 | }
      |  ^
a.cc:5:1: note: to match this '{'
    5 | {
      | ^
Language: C++

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

int main() {
  string s;
  cin >> s;
  int l=s.length();
  for (int i=0;i<l/2;++i) {
    if (s[i]!=s[l-i-1]) {
      cout << "No";
      return 0;
    }
  }
  for (int i=0;i<l/4;++i) {
    if (s[i]!=s[l/2-1-i]) {
      cout << "No";
      return 0;
    }
  }
  for (int i=l/2;i<3*l/4;++i) {
    if (s[i]!=s[l-1-i]) {
      cout << "No";
      return 0;
    }
  }
  for (int i=(n+3)/2;i<(l-3)/2;++i) {
    if (s[i]!=s[l-1-i]) {
      cout << "No";
      return 0;
    }
  }
  cout << "Yes";
}

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

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

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

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


Compiler output:
a.cc: In function 'int main()':
a.cc:18:50: error: could not convert '(s.std::__cxx11::basic_string<char>::size() - ((std::__cxx11::basic_string<char>::size_type)n))' from 'std::__cxx11::basic_string<char>::size_type' {aka 'long unsigned int'} to 'std::string' {aka 'std::__cxx11::basic_string<char>'}
   18 |     if (kaibun(s.substr(0, n) && kaibun(s.size() - n, n))) {
      |                                         ~~~~~~~~~^~~
      |                                                  |
      |                                                  std::__cxx11::basic_string<char>::size_type {aka long unsigned int}
Language: C++

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

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

Compiler output:
a.cc: In function 'int main()':
a.cc:16:7: error: return-statement with no value, in function returning 'int' [-fpermissive]
   16 |       return;}
      |       ^~~~~~
a.cc:17:34: error: expected ')' before '{' token
   17 |     if(bun.at(i)==bun.at(N/2-1-i){continue;}
      |       ~                          ^
      |                                  )
a.cc:24:11: error: expected primary-expression before '}' token
   24 |           }
      |           ^
a.cc: At global scope:
a.cc:27:5: error: redefinition of 'int main()'
   27 | int main() {
      |     ^~~~
a.cc:4:5: note: 'int main()' previously defined here
    4 | int main() {
      |     ^~~~
a.cc: In function 'int main()':
a.cc:28:3: error: 'func' was not declared in this scope
   28 |   func();
      |   ^~~~
Language: C++

#include <bits/stdc++.h>
using namespace std;
#define rep(i, n) for (int i = 0; i < (int)(n); i++)
#define rep2(s,i, n) for (int i = (int)s; i < (int)(n); i++)
#define pb push_back
typedef long long ll;

int main(){
    string s;
    cin>>s;
    int l=s.length();
    bool ans=true;
    rep(i,l/2){
        if(s[i]!=s[l-i-1])ans=false;
    }
    int x=(l-1)/2;
    rep(i,x/2){
        if(s[i]!=s[l-i-1])ans=false;
    }
    rep2((l+3)/2/2-1,i,N){
        if(s[i]!=s[l-1-i])ans=false;
    }
    string a =(ans)?"Yes":"No";
    cout<<a<<endl;

    return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:20:24: error: 'N' was not declared in this scope
   20 |     rep2((l+3)/2/2-1,i,N){
      |                        ^
a.cc:4:53: note: in definition of macro 'rep2'
    4 | #define rep2(s,i, n) for (int i = (int)s; i < (int)(n); i++)
      |                                                     ^
Language: C++

#include<stdio.h>
#include<string.h>
int main()
{
    char ch[100],l,a,b,c;
    int i,j,h,k,n,m,x=0,y=0,z;
    gets(ch);
    n=strlen(ch);
    k=(n-1)/2;
    m=(n+3)/2;
    for(i=0,j=k-1;i<k/2;i++,j--)
    {
        if(ch[i]==ch[j])
        {
            x++;
        }
    }
    for(i=k+1,j=n-1;i<(k+1+(k/2));i++,j--)
    {
        if(ch[i]==ch[j])
        y++;
    }
    if(x==(k/2) && y==(k/2))
        printf("Yes\n");
    else printf("No\n");
    return 0;
}


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

#include<stdio.h>
int j(char *a,char *b){
	while(*a==*b&&a<b){
		a++;b--;
	}
	if(a>=b) return 1;
	return 0;
}
int main(){
	char a[1000];
	int n=0;
	gets(a);
	while(a[n]!='\0')
	n++;
	n--;
	if(j(&a[0],&a[n])&&j(&a[0],&a[(n/2)-1])&&j(&a[(n/2)+1],&a[n]))
	printf("Yes");
	else printf("No");
} 

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

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

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


Compiler output:
a.cc: In function 'int main()':
a.cc:16:7: error: return-statement with no value, in function returning 'int' [-fpermissive]
   16 |       return;}
      |       ^~~~~~
a.cc:17:34: error: expected ')' before '{' token
   17 |     if(bun.at(i)==bun.at(N/2-1-i){continue;}
      |       ~                          ^
      |                                  )
a.cc:24:11: error: expected primary-expression before '}' token
   24 |           }
      |           ^
Language: C++

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

int main(){
	string n;
  cin>>n;
  bool check;
	for (int i = 0;i<=n.length();i++){
    	if (n[i] != n[n.length()-i-1]) check = false;
    }
    check = true;
    if (check) cout<<"Yes" else cout<<"No";
    return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:13:27: error: expected ';' before 'else'
   13 |     if (check) cout<<"Yes" else cout<<"No";
      |                           ^~~~~
      |                           ;
Language: Java

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

Compiler output:
Main.java:8: error: cannot find symbol
        BufferdReader input=new BufferedReader(new InputStreamReader(System.in));
        ^
  symbol:   class BufferdReader
  location: class Palin
1 error
Language: C++

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

int main() {
  string s;
  cin >> s;
  string ans = "Yes";
  int n = s.length();
  string s1 = s.substr(0, n/2);
  string s2 = s.substr(n/2+1, n/2);
  if (s1 != s2) ans = "No";
  int t = s1.length();
  string t1 = s1.substr(0, t/2);
  string t2 = s1.ubstr(t/2+1, t/2);
  if (t1 != t2) ans = "No";

  cout << ans << endl;
  return 0;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:17:18: error: 'std::string' {aka 'class std::__cxx11::basic_string<char>'} has no member named 'ubstr'; did you mean 'substr'?
   17 |   string t2 = s1.ubstr(t/2+1, t/2);
      |                  ^~~~~
      |                  substr
Language: C++

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

public class Main {

    static List<Integer> al[];
    private  static void solver(InputReader sc, PrintWriter out) {
        String s = sc.next();
        int n = s.length();
        int a = n/2;
        int b = (n/2)+1;
        String x =s.substring(0, a);
        String y = s.substring(b,n);
        // out.println(x+" "+y);
        StringBuilder sb = new StringBuilder(x);
        StringBuilder sb1 = new StringBuilder(y);
        sb.reverse(); sb1.reverse();
        if(x.equals(sb.toString()) && y.equals(sb1.toString()))
            out.println("Yes");
        else
            out.println("No");
    }

    public static void main(String[] args) throws Exception{
        InputStream inputStream = System.in;
        OutputStream outputStream = System.out;
        InputReader in = new InputReader(inputStream);
        PrintWriter out = new PrintWriter(outputStream);
        solver(in,out);
        out.close();
    }
    static class InputReader {
        public BufferedReader reader;
        public StringTokenizer tokenizer;

        public InputReader(InputStream stream) {
            reader = new BufferedReader(new InputStreamReader(stream), 32768);
            tokenizer = null;
        }

        public String next() {
            while (tokenizer == null || !tokenizer.hasMoreTokens()) {
                try {
                    tokenizer = new StringTokenizer(reader.readLine());
                } catch (IOException e) {
                    throw new RuntimeException(e);
                }
            }
            return tokenizer.nextToken();
        }

        public int nextInt() {
            return Integer.parseInt(next());
        }
        public long nextLong(){
            return Long.parseLong(next());
        }

        public long[] readLongArr(int n){
            long arr[] = new long[n];
            for(int i=0; i<n; i++){
                arr[i] = nextLong();
            }
            return arr;
        }
        public int[] readIntArr(int n){
            int arr[] = new int[n];
            for(int i=0; i<n; i++){
                arr[i] = nextInt();
            }
            return arr;
        }
    }
}


Compiler output:
a.cc:1:1: error: 'import' does not name a type
    1 | import java.io.*;
      | ^~~~~~
a.cc:1:1: note: C++20 'import' only available with '-fmodules-ts'
a.cc:2:1: error: 'import' does not name a type
    2 | import java.util.*;
      | ^~~~~~
a.cc:2:1: note: C++20 'import' only available with '-fmodules-ts'
a.cc:4:1: error: expected unqualified-id before 'public'
    4 | public class Main {
      | ^~~~~~
Language: C

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


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

#include<stdio.h>
#include<string.h>
int i,j,ans=0;
void panduan(char s[])
{
   	i=0;
    j=strlen(s)-1;
    while(i<j)
    if(s[i]==s[j])
    {
        i++;
        j--;
    }
    else
    	break;
    if(i>=j)
    	ans++;
    else;
}
int main()
{
    char a[100],b[100],c[100];
    gets(a);
  	int k=0;
  	for(int t=0;t<=(strlen(a)-1)/2-1;t++)
    {
      b[k]=a[t];
      k++;
    }
  	k=0;
  	for(int x=(strlen(a)+3)/2-1;x<strlen(a);x++)
    {
      c[k]=a[x];
      k++;
    }
  panduan(a);
  panduan(b);
  panduan(c);
  if(ans==3)
    printf("Yes\n");
  else
    printf("No\n");
  return 0;
}


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

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

Compiler output:
Main.java:8: error: cannot find symbol
        BufferdReader input=new BufferedReader(new InputStreamReaader(System.in));
        ^
  symbol:   class BufferdReader
  location: class Palin
Main.java:8: error: cannot find symbol
        BufferdReader input=new BufferedReader(new InputStreamReaader(System.in));
                                                   ^
  symbol:   class InputStreamReaader
  location: class Palin
2 errors
Language: C++

#include <iostream>
#include <string>
#include <cstring>
#include <vector>
#include <numeric>
#include <cstdlib>
#include <map>
#include <set>
#include <algorithm>
#include <math.h>
 
using namespace std;
 
int main(){
    string S;
    cin >> S;
 
    int N = S.size();

    if(N == 3){
        if()
    }
 
    for(int i = 0; i < (N-1)/2; i++){
        if(S[i] != S[(N-1)/2-i-1]){
            cout << "No" << endl;
            return 0;
        }
    }
 
    for(int i = 0; i < (N-3)/2 + 1; i++){
        if(S[(N+3)/2 + i - 1] != S[N-i-1]){
            cout << "No" << endl;
            return 0;
        }
    }
 
    cout << "Yes" << endl;
    
    return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:21:12: error: expected primary-expression before ')' token
   21 |         if()
      |            ^
a.cc:22:5: error: expected primary-expression before '}' token
   22 |     }
      |     ^
Language: C++

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

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


Compiler output:
a.cc: In function 'int main()':
a.cc:8:3: error: expected ',' or ';' before 'vector'
    8 |   vector<char>bun(N);
      |   ^~~~~~
a.cc:10:5: error: 'bun' was not declared in this scope
   10 |     bun.at(i) = S.at(i)
      |     ^~~
a.cc:14:6: error: 'bun' was not declared in this scope
   14 |   if(bun.at(i)==bun.at(N-1-i)){continue;}
      |      ^~~
a.cc:16:7: error: return-statement with no value, in function returning 'int' [-fpermissive]
   16 |       return;}
      |       ^~~~~~
a.cc:17:8: error: 'bun' was not declared in this scope
   17 |     if(bun.at(i)==bun.at(N/2-1-i){continue;}
      |        ^~~
a.cc:17:34: error: expected ')' before '{' token
   17 |     if(bun.at(i)==bun.at(N/2-1-i){continue;}
      |       ~                          ^
      |                                  )
a.cc:24:11: error: expected primary-expression before '}' token
   24 |           }
      |           ^
Language: C++

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

    
    
    
    


Compiler output:
a.cc:29:1: error: 'cout' does not name a type
   29 | cout<<t<<endl;
      | ^~~~
Language: Java

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

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

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

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

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


Compiler output:
a.cc: In function 'bool kaibun(std::string)':
a.cc:6:17: error: 'std::string' {aka 'class std::__cxx11::basic_string<char>'} has no member named 'reverse'; did you mean 'reserve'?
    6 |   return s == s.reverse(s.begin(), s.end());
      |                 ^~~~~~~
      |                 reserve
a.cc: In function 'int main()':
a.cc:16:50: error: could not convert '(s.std::__cxx11::basic_string<char>::size() - ((std::__cxx11::basic_string<char>::size_type)n))' from 'std::__cxx11::basic_string<char>::size_type' {aka 'long unsigned int'} to 'std::string' {aka 'std::__cxx11::basic_string<char>'}
   16 |     if (kaibun(s.substr(0, n) && kaibun(s.size() - n, n))) {
      |                                         ~~~~~~~~~^~~
      |                                                  |
      |                                                  std::__cxx11::basic_string<char>::size_type {aka long unsigned int}
Language: C++

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

int main(){
	string n;
  cin>>n;
  bool check;
	for (int i = 0;i<=n.length();i++){
    	if (n[i] != n[n.length()-i-1) check = false;
    }
    check = true;
    if (check) cout<<"Yes" else cout<<"No";
    return 0;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:9:37: error: expected ']' before ')' token
    9 |         if (n[i] != n[n.length()-i-1) check = false;
      |                                     ^
      |                                     ]
a.cc:12:27: error: expected ';' before 'else'
   12 |     if (check) cout<<"Yes" else cout<<"No";
      |                           ^~~~~
      |                           ;
Language: C++

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


int main(){
    char S[100];
    cin >> S;
    int N;
    N = strlen(S);

    bool answer = true;

    for(int i=0; i<N/2-1; i++){
        if(S[i] != S[N-1-i]){
            answer = false;
        }
    }

    for(int j=0; j<(N-1)/4; j++){
        if(S[j] != S[(N-1)/2-j-1]){
            answer = false;
        }
    }

    for(int k=0; k<(N-3)/2; k++){
        if(S[(N+3)/2-1+k] != S[N-k-1]){
            answer = false;
        }
    }

    if(answer){
        cout << "Yes";
    }
    else{
        cout << "No";
    }

    return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:10:9: error: 'strlen' was not declared in this scope
   10 |     N = strlen(S);
      |         ^~~~~~
a.cc:2:1: note: 'strlen' is defined in header '<cstring>'; this is probably fixable by adding '#include <cstring>'
    1 | #include <iostream>
  +++ |+#include <cstring>
    2 | #include <string>
Language: Java

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

Compiler output:
Main.java:8: error: cannot find symbol
        BufferdReader input=new BufferedReader(new InputStreamReaader(System.in));
        ^
  symbol:   class BufferdReader
  location: class Palin
Main.java:8: error: cannot find symbol
        BufferdReader input=new BufferedReader(new InputStreamReaader(System.in));
                                                   ^
  symbol:   class InputStreamReaader
  location: class Palin
Main.java:10: error: cannot find symbol
        l=s.length();
        ^
  symbol:   variable l
  location: class Palin
Main.java:11: error: cannot find symbol
        l1=(l-1)/2;
        ^
  symbol:   variable l1
  location: class Palin
Main.java:11: error: cannot find symbol
        l1=(l-1)/2;
            ^
  symbol:   variable l
  location: class Palin
Main.java:12: error: cannot find symbol
        l2=(l+3)/2;
        ^
  symbol:   variable l2
  location: class Palin
Main.java:12: error: cannot find symbol
        l2=(l+3)/2;
            ^
  symbol:   variable l
  location: class Palin
Main.java:13: error: cannot find symbol
        s2=s.substring(0,l1);
                         ^
  symbol:   variable l1
  location: class Palin
Main.java:14: error: cannot find symbol
        s3=s.substring(l2-1);
                       ^
  symbol:   variable l2
  location: class Palin
Main.java:15: error: cannot find symbol
        for(i=0;i<l;i++)
                  ^
  symbol:   variable l
  location: class Palin
Main.java:17: error: cannot find symbol
          if(j<l1)
               ^
  symbol:   variable l1
  location: class Palin
Main.java:21: error: cannot find symbol
          if(j<l2)
               ^
  symbol:   variable l2
  location: class Palin
12 errors
Language: C++

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

int main(){
	string n;
  cin>>n;
  bool check;
	for (int i = 0;i<=n.length();i++){
    	if (n[i] != n[n.length()-i-1) check = false;
    }
    check = true;
    if (check) cout<<"Yes" else cout<<"No";
    return 0;
}


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

#include <bits/stdc++.h>
#include<iostream>
#include<string>
using namespace std;
 
int main() {
  
  string str;
  int n,l;
  bool ans = true;
  
  cin>>str;
  n=str.length();
  l=(n-1)/2; //2つの回文の長さ
  
  for(int i=0;i<l;i++)
  {
    ans&=str[i]==str[n-1-i]; 
  }
  for(int i=0;i<(l-1)/2;i++)
  {
    ans &= (str[i] == str[l-1-i]);
    ans &= (str[n-l+1+i] == str[n-1-i]);
  }
  if(ans) cout<<"Yes";
  else cout<<"No";
}
#include <bits/stdc++.h>
#include<iostream>
#include<string>
using namespace std;
 
int main() {
  
  string str;
  int n,l;
  bool ans = true;
  
  cin>>str;
  n=str.length();
  l=(n-1)/2; //2つの回文の長さ
  
  for(int i=0;i<(l-1)/2;i++)
  {
    ans &= (str[i] == str[l-1-i]);
    ans &= (str[n-l+1+i] == str[n-1-i]);
  }
  if(ans) cout<<"Yes";
  else cout<<"No";
}
提出情報

Compiler output:
a.cc:33:5: error: redefinition of 'int main()'
   33 | int main() {
      |     ^~~~
a.cc:6:5: note: 'int main()' previously defined here
    6 | int main() {
      |     ^~~~
a.cc:51:1: error: '\U000063d0\U000051fa\U000060c5\U00005831' does not name a type
   51 | 提出情報
      | ^~~~~~~~
Language: C++

#include <bits/stdc++.h>
using namespace std;
int main() {
  string S;
  std::cin >> S;
  int N = S.size();
  string F = S.substr(0,(N-1)/2);
  string G = S.substr((N+1)/2);
  std::string A = F;
  std::string B = G;
  std::string X = S;
  std::reverse(S.begin(), S.end());
  std::reverse(A.begin(), A.end());
  std::reverse(B.begin(), B.end());
  if (A == F && B  == G && S == X) {
    std::cout << "Yes" << '\n';
  }
  else{
    std::cout << "No" << '\n';
  }
}
v

Compiler output:
a.cc:22:1: error: 'v' does not name a type
   22 | v
      | ^