criyle/codenet-compile-errors huggingface dataset:
Language: Java

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

public class B
{
	public static void main(String[] args)
	{
		Scanner in = new Scanner(System.in);
		String str = in.next();
		int n = str.length();
		char[] s = new char[n + 1];
		for(int i = 1; i <= n; ++i)
			s[i] = str.charAt(i - 1);
		boolean isStrongPal = true;
		int rb = (n - 1) / 2;
		for(int i = 1; i <= rb; ++i)
		{
			if(s[i] != s[rb + 1 - i])
			{
				isStrongPal = false;
				break;
			}
		}
		if(!isStrongPal)
		{
			System.out.println("No");
			return;
		}
		int lb = (n + 3) / 2;
		for(int i = lb; i <= n; ++i)
		{
			if(s[i] != s[n - i + lb])
			{
				isStrongPal = false;
				break;
			}
		}
		System.out.println(isStrongPal ? "Yes" : "No");
	}
}


Compiler output:
Main.java:4: error: class B is public, should be declared in a file named B.java
public class B
       ^
1 error
Language: Java

/*
 * To change this license header, choose License Headers in Project Properties.
 * To change this template file, choose Tools | Templates
 * and open the template in the editor.
 */

import java.util.Scanner;

/**
 *
 * @author wnqmw
 */
public class morepalindromes {
    public static void main(String args[]) {
        Scanner kb = new Scanner(System.in);
        
        String k = kb.nextLine();
        boolean fin = false;
        int i = 0;
        int j = k.length()-1;
        
        while(i <= j){
            if(k.charAt(i) != k.charAt(j)){
                System.out.println("No");
                fin = true;
                break;
            }
            i++;
            j--;
        }
        i = 0;
        j = (k.length()-1)/2-1;
        while(i <= j && fin != true){
            System.out.println(k.charAt(i) + " lol " + k.charAt(j));
            if(k.charAt(i) != k.charAt(j)){
                System.out.println("No");
                fin = true;
                break;
            }
            i++;
            j--;
        }
        i = (k.length()+3)/2-1;
        j = k.length()-1;
        while(i <= j && fin != true){
            System.out.println(k.charAt(i) + " lmao " + k.charAt(j));
            if(k.charAt(i) != k.charAt(j)){
                System.out.println("No");
                fin = true;
                break;
            }
            i++;
            j--;
        }
        if(fin == false){
            System.out.println("Yes");
        }
    }
}


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

#include<bits/stdc++.h>
using namespace std;
int main()
{
   int a,b,c=0,d,i;
   char s[10001],z[10001];
   scanf("%s",s);
   strcpy(z,s);
   strrev(z);
   if(strcmp(s,z)==0)
   {
       printf("Yes\n");
   }
   else printf("No\n");
}


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

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

int main(){
  string str1,str2,str3;
  cin>>str1;
  int N;
  N =str1.size();
  str2 =str1.substr(0,(N-1)/2);
  str3 =str1.reverse((N-1)/2,N+1);
  
  if(str2 == str3){
    cout<<"Yes"<<endl;
  }
  else cout<<"No"<<endl;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:10:14: error: 'std::string' {aka 'class std::__cxx11::basic_string<char>'} has no member named 'reverse'; did you mean 'reserve'?
   10 |   str3 =str1.reverse((N-1)/2,N+1);
      |              ^~~~~~~
      |              reserve
Language: C++

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

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


Compiler output:
a.cc: In function 'int main()':
a.cc:9:3: error: 'str2' was not declared in this scope; did you mean 'str1'?
    9 |   str2 =str1.substr(0,(N-1)/2);
      |   ^~~~
      |   str1
a.cc:10:3: error: 'str3' was not declared in this scope; did you mean 'str1'?
   10 |   str3 =str1.substr((N-1)/2,N+1);
      |   ^~~~
      |   str1
Language: C++

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

int main(){
  std::string str1;
  cin>>str1;
  int N;
  N =str1.size();
  std::str2 =str1.substr(0,(N-1)/2);
  std::str3 =str1.substr((N-1)/2,N+1);
  
  if(str2 && str3){
    cout<<"Yes"<<endl;
  }
  else cout<<"No"<<endl;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:9:8: error: 'str2' is not a member of 'std'
    9 |   std::str2 =str1.substr(0,(N-1)/2);
      |        ^~~~
a.cc:10:8: error: 'str3' is not a member of 'std'
   10 |   std::str3 =str1.substr((N-1)/2,N+1);
      |        ^~~~
a.cc:12:6: error: 'str2' was not declared in this scope; did you mean 'str1'?
   12 |   if(str2 && str3){
      |      ^~~~
      |      str1
a.cc:12:14: error: 'str3' was not declared in this scope; did you mean 'str1'?
   12 |   if(str2 && str3){
      |              ^~~~
      |              str1
Language: C

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

int main()
{
	char s[100],s1[50],s2[50];
	double n,n1,n2,a=0.0,b=0.0,c=0.0;
	int i;

	scanf("%s",s);
	n=strlen(s);
	for(i=0;i<(n-1)/2;i++)
		if(s[i]==s[n-1-i])//strcmp(s[i],s[n-1-i])==0一文字分ならstrcmpを使わなくとも==だけで比較すればよい
			a++;
	strncpy(s1,s,n/2);
	n1=strlen(s1);
	//s1[n1]='\0';
	for(i=0;i<(n1-1)/2;i++)
		if(s[i]==s[n1-1-i])
			b++;
	strncpy(s2,s+(n/2+1),n/2);
	n2=strlen(s2);
	//s2[n2]='\0';
	for(i=0;i<(n2-1)/2;i++)
		if(s[i]==s[n2-1-i])
			c++;
	if((a==n/2)&&(b==(n1-1)/2)&&(c==(n2-1)/2))
		printf("Yes\n");
	else
		printf("No\n");
	return 0;
}

Compiler output:
main.c: In function 'main':
main.c:13:27: error: array subscript is not an integer
   13 |                 if(s[i]==s[n-1-i])//strcmp(s[i],s[n-1-i])==0一文字分ならstrcmpを使わなくとも==だけで比較すればよい
      |                           ^
main.c:19:27: error: array subscript is not an integer
   19 |                 if(s[i]==s[n1-1-i])
      |                           ^
main.c:21:21: error: invalid operands to binary + (have 'char *' and 'double')
   21 |         strncpy(s2,s+(n/2+1),n/2);
      |                    ~^~~~~~~~
      |                    |     |
      |                    |     double
      |                    char *
main.c:25:27: error: array subscript is not an integer
   25 |                 if(s[i]==s[n2-1-i])
      |                           ^
Language: C

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

int main()
{
	char s[100],s1[50],s2[50];
	double n,n1,n2,i,a=0.0,b=0.0,c=0.0;

	scanf("%s",s);
	n=strlen(s);
	for(i=0;i<(n-1)/2;i++)
		if(s[i]==s[n-1-i])//strcmp(s[i],s[n-1-i])==0一文字分ならstrcmpを使わなくとも==だけで比較すればよい
			a++;
	strncpy(s1,s,n/2);
	n1=strlen(s1);
	//s1[n1]='\0';
	for(i=0;i<(n1-1)/2;i++)
		if(s[i]==s[n1-1-i])
			b++;
	strncpy(s2,s+(n/2+1),n/2);
	n2=strlen(s2);
	//s2[n2]='\0';
	for(i=0;i<(n2-1)/2;i++)
		if(s[i]==s[n2-1-i])
			c++;
	if((a==n/2)&&(b==(n1-1)/2)&&(c==(n2-1)/2))
		printf("Yes\n");
	else
		printf("No\n");
	return 0;
}

Compiler output:
main.c: In function 'main':
main.c:12:21: error: array subscript is not an integer
   12 |                 if(s[i]==s[n-1-i])//strcmp(s[i],s[n-1-i])==0一文字分ならstrcmpを使わなくとも==だけで比較すればよい
      |                     ^
main.c:12:27: error: array subscript is not an integer
   12 |                 if(s[i]==s[n-1-i])//strcmp(s[i],s[n-1-i])==0一文字分ならstrcmpを使わなくとも==だけで比較すればよい
      |                           ^
main.c:18:21: error: array subscript is not an integer
   18 |                 if(s[i]==s[n1-1-i])
      |                     ^
main.c:18:27: error: array subscript is not an integer
   18 |                 if(s[i]==s[n1-1-i])
      |                           ^
main.c:20:21: error: invalid operands to binary + (have 'char *' and 'double')
   20 |         strncpy(s2,s+(n/2+1),n/2);
      |                    ~^~~~~~~~
      |                    |     |
      |                    |     double
      |                    char *
main.c:24:21: error: array subscript is not an integer
   24 |                 if(s[i]==s[n2-1-i])
      |                     ^
main.c:24:27: error: array subscript is not an integer
   24 |                 if(s[i]==s[n2-1-i])
      |                           ^
Language: C

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

int main()
{
	char s[99],s1[50],s2[50];
	int n,n1,n2,i,a=0,b=0,c=0;

	scanf("%s",s);
	n=strlen(s);
	for(i=0;i<(n-1)/2;i++)
		if(s[i]==s[n-1-1-i])//strcmp(s[i],s[n-1-i])==0一文字分ならstrcmpを使わなくとも==だけで比較すればよい
			a++;
	strncpy(s1,s,n/2);
	n1=strlen(s1);
	s1[n1]='\0'
	for(i=0;i<(n1-1)/2;i++)
		if(s[i]==s[n1-1-1-i])
			b++;
	strncpy(s2,s+(n/2+1),n/2);
	n2=strlen(s2);
	s2[n2]='\0'
	for(i=0;i<(n2-1)/2;i++)
		if(s[i]==s[n2-1-1-i])
			c++;
	if((a==n/2)&&(b==(n1-1)/2)&&(c==(n2-1)/2))
		printf("Yes\n");
	else
		printf("No\n");
	return 0;
}

Compiler output:
main.c: In function 'main':
main.c:16:20: error: expected ';' before 'for'
   16 |         s1[n1]='\0'
      |                    ^
      |                    ;
   17 |         for(i=0;i<(n1-1)/2;i++)
      |         ~~~         
main.c:22:20: error: expected ';' before 'for'
   22 |         s2[n2]='\0'
      |                    ^
      |                    ;
   23 |         for(i=0;i<(n2-1)/2;i++)
      |         ~~~
Language: C

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

int main()
{
	char s[99],s1[50],s2[50];
	int n,n1,n2,i,a=0,b=0,c=0;

	scanf("%s",s);
	n=strlen(s);
	for(i=0;i<(n-1)/2;i++)
		if(s[i]==s[n-1-i])//strcmp(s[i],s[n-1-i])==0一文字分ならstrcmpを使わなくとも==だけで比較すればよい
			a++;
	strncpy(s1,n/2);
	n1=strlen(s1);
	for(i=0;i<(n1-1)/2;i++)
		if(s[i]==s[n1-1-i])
			b++;
	strncpy(s2,s+n/2+1,n/2);
	n2=strlen(s2);
	for(i=0;i<(n2-1)/2;i++)
		if(s[i]==s[n2-1-i])
			c++;
	if((a==n/2)&&(b==(n1-1)/2)&&(c==(n2-2)/2))
		printf("Yes\n");
	else
		printf("No\n");
	return 0;
}

Compiler output:
main.c: In function 'main':
main.c:14:21: error: passing argument 2 of 'strncpy' makes pointer from integer without a cast [-Wint-conversion]
   14 |         strncpy(s1,n/2);
      |                    ~^~
      |                     |
      |                     int
In file included from main.c:2:
/usr/include/string.h:145:46: note: expected 'const char * restrict' but argument is of type 'int'
  145 |                       const char *__restrict __src, size_t __n)
      |                       ~~~~~~~~~~~~~~~~~~~~~~~^~~~~
main.c:14:9: error: too few arguments to function 'strncpy'
   14 |         strncpy(s1,n/2);
      |         ^~~~~~~
/usr/include/string.h:144:14: note: declared here
  144 | extern char *strncpy (char *__restrict __dest,
      |              ^~~~~~~
Language: C

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

int main()
{
	char s[99],s1[50],s2[50];
	int n,n1,n2,i,a=0,b=0,c=0;

	scanf("%s",s);
	n=strlen(s);
	for(i=0;i<(n-1)/2;i++)
		if(s[i]==s[n-1-i])//strcmp(s[i],s[n-1-i])==0一文字分ならstrcmpを使わなくとも==だけで比較すればよい
			a++;
	strncpy(s1,n/2);
	n1=strlen(s1);
	for(i=0;i<(n1-1)/2;i++)
		if(strcmp(s[i]==s[n1-1-i])
			b++;
	strncpy(s2,s+n/2+1,n/2);
	n2=strlen(s2);
	for(i=0;i<(n2-1)/2;i++)
		if(strcmp(s[i]==s[n2-1-i])
			c++;
	if((a==n/2)&&(b==(n1-1)/2)&&(c==(n2-2)/2))
		printf("Yes\n");
	else
		printf("No\n");
	return 0;
}

Compiler output:
main.c: In function 'main':
main.c:14:21: error: passing argument 2 of 'strncpy' makes pointer from integer without a cast [-Wint-conversion]
   14 |         strncpy(s1,n/2);
      |                    ~^~
      |                     |
      |                     int
In file included from main.c:2:
/usr/include/string.h:145:46: note: expected 'const char * restrict' but argument is of type 'int'
  145 |                       const char *__restrict __src, size_t __n)
      |                       ~~~~~~~~~~~~~~~~~~~~~~~^~~~~
main.c:14:9: error: too few arguments to function 'strncpy'
   14 |         strncpy(s1,n/2);
      |         ^~~~~~~
/usr/include/string.h:144:14: note: declared here
  144 | extern char *strncpy (char *__restrict __dest,
      |              ^~~~~~~
main.c:17:31: error: passing argument 1 of 'strcmp' makes pointer from integer without a cast [-Wint-conversion]
   17 |                 if(strcmp(s[i]==s[n1-1-i])
      |                           ~~~~^~~~~~~~~~~
      |                               |
      |                               int
/usr/include/string.h:156:32: note: expected 'const char *' but argument is of type 'int'
  156 | extern int strcmp (const char *__s1, const char *__s2)
      |                    ~~~~~~~~~~~~^~~~
main.c:17:20: error: too few arguments to function 'strcmp'
   17 |                 if(strcmp(s[i]==s[n1-1-i])
      |                    ^~~~~~
/usr/include/string.h:156:12: note: declared here
  156 | extern int strcmp (const char *__s1, const char *__s2)
      |            ^~~~~~
main.c:17:43: error: expected ')' before 'b'
   17 |                 if(strcmp(s[i]==s[n1-1-i])
      |                   ~                       ^
      |                                           )
   18 |                         b++;
      |                         ~                  
main.c:29:1: error: expected declaration or statement at end of input
   29 | }
      | ^
Language: C++

#include<iostream>
using namespace std;

int main()
{
  string str;
  cin >> str;
  int size1 = str.size();
  int size2 = (size1-1)/2;
  for(int i=0;i<size1/2;i++){
    if(str[i] != str[size1-1-i]){
      cout << "No" << endl;
      return 0;
    }
  }
  for(int i=0;i<size2/2;i++){
    if(str[i] != str[size2-1-i]){
      cout << "No" << endl;
      return 0;
    }
  }
  for(int i=(size+3)/2;i<size1;i++){
    if(str[i] != str[size1-1-i]){
      cout << "No" << endl;
      return 0;
    }
  }
  cout << "Yes" << endl;
  return 0;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:22:18: error: invalid operands of types '<unresolved overloaded function type>' and 'int' to binary 'operator+'
   22 |   for(int i=(size+3)/2;i<size1;i++){
      |              ~~~~^~
Language: C++

#include<iostream>
using namespace std;

int main()
{
  string str;
  cin >> str;
  int size1 = str.size();
  int size2 = (size1-1)/2;
  for(int i=0;i<size1/2;i++){
    if(str[i] != str[size-1-i]){
      cout << "No" << endl;
      return 0;
    }
  }
  for(int i=0;i<size2/2;i++){
    if(str[i] != str[size-1-i]){
      cout << "No" << endl;
      return 0;
    }
  }
  for(int i=(size+3)/2;i<size;i++){
    if(str[i] != str[size-1-i]){
      cout << "No" << endl;
      return 0;
    }
  }
  cout << "Yes" << endl;
  return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:11:26: error: invalid operands of types '<unresolved overloaded function type>' and 'int' to binary 'operator-'
   11 |     if(str[i] != str[size-1-i]){
      |                      ~~~~^~
a.cc:17:26: error: invalid operands of types '<unresolved overloaded function type>' and 'int' to binary 'operator-'
   17 |     if(str[i] != str[size-1-i]){
      |                      ~~~~^~
a.cc:22:18: error: invalid operands of types '<unresolved overloaded function type>' and 'int' to binary 'operator+'
   22 |   for(int i=(size+3)/2;i<size;i++){
      |              ~~~~^~
a.cc:22:25: error: invalid operands of types 'int' and '<unresolved overloaded function type>' to binary 'operator<'
   22 |   for(int i=(size+3)/2;i<size;i++){
      |                        ~^~~~~
a.cc:23:26: error: invalid operands of types '<unresolved overloaded function type>' and 'int' to binary 'operator-'
   23 |     if(str[i] != str[size-1-i]){
      |                      ~~~~^~
Language: C++

#include <bits/stdc++.h>
using namespace std;
bool p(string v){string w(v);reverse(w.begin(),w.end());return w==v?true:false;}
int main(){string s;cin>>s;int n=s.size()/2;string a=s.substr(0,n),b=s.substr(n+1,n);puts(p(s)+p(a)+p(b)?"Yes":"No";)}


Compiler output:
a.cc: In function 'int main()':
a.cc:4:116: error: expected ')' before ';' token
    4 | int main(){string s;cin>>s;int n=s.size()/2;string a=s.substr(0,n),b=s.substr(n+1,n);puts(p(s)+p(a)+p(b)?"Yes":"No";)}
      |                                                                                          ~                         ^
      |                                                                                                                    )
a.cc:4:117: error: expected primary-expression before ')' token
    4 | int main(){string s;cin>>s;int n=s.size()/2;string a=s.substr(0,n),b=s.substr(n+1,n);puts(p(s)+p(a)+p(b)?"Yes":"No";)}
      |                                                                                                                     ^
Language: C++

#include <iostream>
#include <string>
using namespace std;
bool kaibun(string v){int n = v.size();for(int i=0;i<n;i++){if(v[i]!=v[n-1-i])return false;}return true;}
int main(){string s;cin>>s;int n=s.size();string a=s.substr(0,n/2),b=s.substr(n/2+1,n);if(p(s)&&p(a)&&p(b))puts("Yes");else puts("No");}


Compiler output:
a.cc: In function 'int main()':
a.cc:5:91: error: 'p' was not declared in this scope
    5 | int main(){string s;cin>>s;int n=s.size();string a=s.substr(0,n/2),b=s.substr(n/2+1,n);if(p(s)&&p(a)&&p(b))puts("Yes");else puts("No");}
      |                                                                                           ^
Language: C++

#include <iostream>
#include <string>
using namespace std;
bool kaibun(string v){int n = v.size();for(int i=0;i<n;i++)if(v[i]!=v[n-1-i])return false;}return true;}
int main(){string s;cin >> s;int n = s.size();string a = s.substr(0,n/2),b=s.substr(n/2+1,n);if(kaibun(s)&&kaibun(a)&&kaibun(b))cout << "Yes" << endl;else cout << "No" << endl;}

Compiler output:
a.cc:4:92: error: expected unqualified-id before 'return'
    4 | bool kaibun(string v){int n = v.size();for(int i=0;i<n;i++)if(v[i]!=v[n-1-i])return false;}return true;}
      |                                                                                            ^~~~~~
a.cc:4:104: error: expected declaration before '}' token
    4 | bool kaibun(string v){int n = v.size();for(int i=0;i<n;i++)if(v[i]!=v[n-1-i])return false;}return true;}
      |                                                                                                        ^
a.cc: In function 'bool kaibun(std::string)':
a.cc:4:91: warning: control reaches end of non-void function [-Wreturn-type]
    4 | bool kaibun(string v){int n = v.size();for(int i=0;i<n;i++)if(v[i]!=v[n-1-i])return false;}return true;}
      |                                                                                           ^
Language: C++

#include <bits/stdc++.h>
using namespace std;
 
int main() {
string s;
  cin >>s;
int n = s.length();
int t=s.substr(0, (n-1)/2-1); //i番目以降k文字を抽出して得られる文字列
  int u=s.substr((n+3)/2-1, n-1); //i番目以降k文字を抽出して得られる文字列
  bool count=true;
  for (int i = 0; i < n; i++) {
 if(s[i]==s[n-i-1]){
   count=false;
 }
  }
  for (int j = 0; j <= (n-1)/2-1; j++) {
if(t[j]==t[n-j-1]){
  count=false;
}
  }
     for (int j = (n+3)/2-1; j <= n-1; j++) {
       if(u[j]==u[n-j-1]){
         count==false;
       }
     }
    
 
if(count){
  cout<<"Yes"<<endl;
}
  else{
    cout<<"No"<<endl;
  }
  
 
}

Compiler output:
a.cc: In function 'int main()':
a.cc:8:15: error: cannot convert 'std::__cxx11::basic_string<char>' to 'int' in initialization
    8 | int t=s.substr(0, (n-1)/2-1); //i番目以降k文字を抽出して得られる文字列
      |       ~~~~~~~~^~~~~~~~~~~~~~
      |               |
      |               std::__cxx11::basic_string<char>
a.cc:9:17: error: cannot convert 'std::__cxx11::basic_string<char>' to 'int' in initialization
    9 |   int u=s.substr((n+3)/2-1, n-1); //i番目以降k文字を抽出して得られる文字列
      |         ~~~~~~~~^~~~~~~~~~~~~~~~
      |                 |
      |                 std::__cxx11::basic_string<char>
a.cc:17:5: error: invalid types 'int[int]' for array subscript
   17 | if(t[j]==t[n-j-1]){
      |     ^
a.cc:17:11: error: invalid types 'int[int]' for array subscript
   17 | if(t[j]==t[n-j-1]){
      |           ^
a.cc:22:12: error: invalid types 'int[int]' for array subscript
   22 |        if(u[j]==u[n-j-1]){
      |            ^
a.cc:22:18: error: invalid types 'int[int]' for array subscript
   22 |        if(u[j]==u[n-j-1]){
      |                  ^
Language: C++

#include <bits/stdc++.h>
using namespace std;
 
int main() {
string s;
  cin >>s;
int n = s.length();
int t=s.substr(0, (n-1)/2-1); //i番目以降k文字を抽出して得られる文字列
  int u=s.substr((n+3)/2-1, n-1); //i番目以降k文字を抽出して得られる文字列
  bool count=true;
  for (int i = 0; i < n; i++) {
 if(s[i]==s[n-i-1]){
   count=false;
 }
  }
  for (int j = 0; j <= (n-1)/2-1); j++) {
if(t[j]==t[n-j-1]){
  count=false;
}
  }
     for (int j = (n+3)/2-1; j <= n-1; j++) {
       if(u[j]==u[n-j-1]){
         count==false;
       }
     }
    

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

}

Compiler output:
a.cc: In function 'int main()':
a.cc:8:15: error: cannot convert 'std::__cxx11::basic_string<char>' to 'int' in initialization
    8 | int t=s.substr(0, (n-1)/2-1); //i番目以降k文字を抽出して得られる文字列
      |       ~~~~~~~~^~~~~~~~~~~~~~
      |               |
      |               std::__cxx11::basic_string<char>
a.cc:9:17: error: cannot convert 'std::__cxx11::basic_string<char>' to 'int' in initialization
    9 |   int u=s.substr((n+3)/2-1, n-1); //i番目以降k文字を抽出して得られる文字列
      |         ~~~~~~~~^~~~~~~~~~~~~~~~
      |                 |
      |                 std::__cxx11::basic_string<char>
a.cc:16:33: error: expected ';' before ')' token
   16 |   for (int j = 0; j <= (n-1)/2-1); j++) {
      |                                 ^
      |                                 ;
a.cc:16:36: error: 'j' was not declared in this scope
   16 |   for (int j = 0; j <= (n-1)/2-1); j++) {
      |                                    ^
a.cc:22:12: error: invalid types 'int[int]' for array subscript
   22 |        if(u[j]==u[n-j-1]){
      |            ^
a.cc:22:18: error: invalid types 'int[int]' for array subscript
   22 |        if(u[j]==u[n-j-1]){
      |                  ^
Language: C++


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

int main()
{
  string S;
  cin >> S;
  auto all(S);
  reverse(all.begin(), all.end());
  if (S != all)
  {
    cout << "No";
    return 0;
  }
  auto front = S.substring(0, (S.size() - 1)/2);
  reverse(front.begin(), front.end());
  if (S != front)
  {
    cout << "No";
    return 0;
  }
  auto back = S.substring((S.size() + 1)/2, (S.size() - 1)/2);
  reverse(back.begin(), back.end());
  if (S != back)
  {
    cout << "No";
    return 0;
  }
  cout << "Yes";
  return 0;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:18:18: error: 'std::string' {aka 'class std::__cxx11::basic_string<char>'} has no member named 'substring'; did you mean 'substr'?
   18 |   auto front = S.substring(0, (S.size() - 1)/2);
      |                  ^~~~~~~~~
      |                  substr
a.cc:25:17: error: 'std::string' {aka 'class std::__cxx11::basic_string<char>'} has no member named 'substring'; did you mean 'substr'?
   25 |   auto back = S.substring((S.size() + 1)/2, (S.size() - 1)/2);
      |                 ^~~~~~~~~
      |                 substr
Language: C++

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

Compiler output:
a.cc:1:1: error: 'include' does not name a type
    1 | include<iostream>
      | ^~~~~~~
a.cc:4:20: error: 'string' was not declared in this scope
    4 | bool is_palindrome(string s){
      |                    ^~~~~~
a.cc: In function 'int main()':
a.cc:10:5: error: 'string' was not declared in this scope
   10 |     string s;
      |     ^~~~~~
a.cc:11:5: error: 'cin' was not declared in this scope
   11 |     cin>>s;
      |     ^~~
a.cc:11:10: error: 's' was not declared in this scope
   11 |     cin>>s;
      |          ^
a.cc:13:21: error: 'is_palindrome' cannot be used as a function
   13 |     if(is_palindrome(s) && is_palindrome(s.substr(0,(n-1)/2)) && is_palindrome(s.substr((n+1)/2))){
      |        ~~~~~~~~~~~~~^~~
a.cc:13:61: error: 'is_palindrome' cannot be used as a function
   13 |     if(is_palindrome(s) && is_palindrome(s.substr(0,(n-1)/2)) && is_palindrome(s.substr((n+1)/2))){
      |                                                             ^
a.cc:13:97: error: 'is_palindrome' cannot be used as a function
   13 |     if(is_palindrome(s) && is_palindrome(s.substr(0,(n-1)/2)) && is_palindrome(s.substr((n+1)/2))){
      |                                                                                                 ^
a.cc:14:9: error: 'cout' was not declared in this scope
   14 |         cout<<"Yes"<<endl;
      |         ^~~~
a.cc:14:22: error: 'endl' was not declared in this scope
   14 |         cout<<"Yes"<<endl;
      |                      ^~~~
a.cc:15:6: error: expected '}' at end of input
   15 |     }
      |      ^
a.cc:9:11: note: to match this '{'
    9 | int main(){
      |           ^
Language: Java

import java.io.*;

public class Kaibun{
  static boolean kaibun(String s){
  boolean result = false;
  int l = s.length();
  int i=0;
  for(i=0; i<(l-1)/2; i++){
      if(s.charAt(i)!=s.charAt(l-i-1)) break;
  }
  if(i==(l-1)/2) result=true;
  return result;
  }
  public static void main(String[] args){
    String str =null;
    try{
  	BufferedReader reader = new BufferedReader(new InputStreamReader(System.in));
    str = reader.readLine();
    }catch(IOException e){
        System.out.println("eo");
    
    }
    int l = str.length();
    String str1=str.substring(0,(l-1)/2);
    String str2=str.substring((l+1)/2,l);

    String strs[] = {str, str1, str2};
    int x;
    for (x=0;x<3;x++){
        if(!kaibun(strs[x])) {
            System.out.println("No");
            break;
        }
        x++;
    }
    if(x==4)System.out.println(x);
  }
}

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

#include <iostream>
using namespace std;

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

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

/*
切り捨て→/でおｋ
切り上げが(a+b-1)/b
*/

Compiler output:
a.cc: In function 'int main()':
a.cc:12:12: error: 'hantei' was not declared in this scope
   12 |         if(hantei(s)&&hantei(a)&&hantei(b))cout<<"Yes"<<endl;
      |            ^~~~~~
Language: C++

#include<stdio.h>
#include<string.h>
int main()
{
    char str[100],reverse[100];
    int flag;
    gets(str);
    strcpy(reverse,str);
    strrev(str);
    flag=strcmp(str,reverse);
    if(flag==0)
    {
        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(str);
      |     ^~~~
      |     getw
a.cc:9:5: error: 'strrev' was not declared in this scope; did you mean 'strsep'?
    9 |     strrev(str);
      |     ^~~~~~
      |     strsep
Language: C

#include<stdio.h>
#include<string.h>
int main()
{
    char str[100],reverse[100];
    int flag;
    gets(str);
    strcpy(reverse,str);
    strrev(str);
    flag=strcmp(str,reverse);
    if(flag==0)
    {
        printf("Yes\n");

    }
    else
    {
        printf("No\n");
    }
    return 0;
}


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

#include <bits/stdc++.h>

using namespace std;

int main(){

	string s,aux1,aux2,aux3;

	cin >> s;

	string s1 = s.substr(0,(s.size()-1)/2);
	string s2 = s.substr((s.size()+3)/2-1);

	aux1 = s1;reverse(s1.begin(),s1.end());
	aux2 = s2;reverse(s2.begin(),s2.end());
	aux3 = s;reverse(s.begin(),s.end())

	cout << (aux1 == s1 && aux2 == s2 && aux3 == s ? "Yes" : "No") << '\n';
 
	return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:16:44: error: expected ';' before 'cout'
   16 |         aux3 = s;reverse(s.begin(),s.end())
      |                                            ^
      |                                            ;
   17 | 
   18 |         cout << (aux1 == s1 && aux2 == s2 && aux3 == s ? "Yes" : "No") << '\n';
      |         ~~~~
Language: Java

import java.util.Scanner;

public class Main {
	public static void main(String args[]) {
		Scanner can = new Scanner(System.in);
		String kaibun = can.next();
		char bunkai[] = new char[kaibun.length()];
		
		for(int i = 0; i < (kaibun.length() - 1) / 2;i++) {
			if(kaibun.charAt(i) != kaibun.charAt(kaibun.length() - 1)) {
				System.out.println("no");
				System.exit(0);
				
			}
			
		}
		
		for(int i = 0; i < ((kaibun.length() - 1) /2 - 1) /2 ; i++){
			if(kaibun.charAt(i) != kaibun.charAt((kaibun.length() - 1) / 2 - 1){
				System.out.println("no");
				System.exit(0);
				
			}
			
		}
		
		System.out.println("yes");
		
	}
	
}

Compiler output:
Main.java:19: error: ')' expected
			if(kaibun.charAt(i) != kaibun.charAt((kaibun.length() - 1) / 2 - 1){
			                                                                   ^
1 error
Language: C++

#include<iostream>
#include<string>
using namespace std;
//akasaka
string a;
int main(){
	cin>>a;
	int n=(a.size()-1)/2,m=(a.size()+3)/2,t=1;
	for(int i=0;i<=(n+1)/2-2;i++)
	{
		if(a[1+i-1]!=a[n-i-1])
		{
			t=0;
			break;
		}
	}
	if(a.size(-m)%2==1)
	for(int i=0;i<=(a.size()-m)/2-1;i++)
	{
		if(a[m+i-1]!=a[n-i-1])
		{
			t=0;
			break;
		}
	}
	else
	for(int i=0;i<=(a.size()-m)/2;i++)
	{
		if(a[m+i-1]!=a[n-i-1])
		{
			t=0;
			break;
		}
	}
	for(int i=0;i<=(a.size()+1)/2-2;i++)
	{
		if(a[1+i-1]!=a[a.size()-i-1])
		{
			t=0;
			//cout<<"p"<<endl;
			//break;
		}
	}
	if(t==1)
	cout<<"Yes";
	else
	cout<<"No";
} 

Compiler output:
a.cc: In function 'int main()':
a.cc:17:18: error: no matching function for call to 'std::__cxx11::basic_string<char>::size(int)'
   17 |         if(a.size(-m)%2==1)
      |            ~~~~~~^~~~
In file included from /usr/include/c++/14/string:54,
                 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,
                 from /usr/include/c++/14/ostream:40,
                 from /usr/include/c++/14/iostream:41,
                 from a.cc:1:
/usr/include/c++/14/bits/basic_string.h:1076:7: note: candidate: '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]'
 1076 |       size() const _GLIBCXX_NOEXCEPT
      |       ^~~~
/usr/include/c++/14/bits/basic_string.h:1076:7: note:   candidate expects 0 arguments, 1 provided
Language: C

#include <stdio.h>

int main(void)
{
    int i;
    char S[100];
    scanf("%s", S);
    for(i = 0; S[i]!='\0'; ++i);
    if(i % 2 == 0) printf("No\n");
    else {
        int L, LL, LR, a, RL, RR, b, R, m = 0;
        a = i - 1;
        L = a / 2;
        R = L + 2;
        b = L / 2;
        for(int j = 0; j < b＋１; j ++){
            LL = j; LR = L - j - 1; RL = R + j - 1; RR = i - j - 1;
            if(S[LL] == S[LR]){
                if(S[RL] == S[RR]){
                    if(S[LL] == S[RL]) m++;
                };
            };
        };
        if(m == b) printf("Yes\n");
        else printf("No\n");
    };

    return 0;
}

Compiler output:
main.c: In function 'main':
main.c:16:28: error: 'b\U0000ff0b\U0000ff11' undeclared (first use in this function)
   16 |         for(int j = 0; j < b＋１; j ++){
      |                            ^~~~~
main.c:16:28: note: each undeclared identifier is reported only once for each function it appears in
Language: C++

#include <iostream>
using namespace std;
int main() {
  string S;
  cin >> S;
  bool t = true;
  int n = 0;
  int last;
  last = S.size();
  while(1) {
    if(n == last) break;
    if(S[n] != S[last]) t = false;
    ++n;
    --last;
  }
  n = 0;
  int lasta;
  lasta = (S.size() - 1) / 2;
  while(1) {
    if(n == lasta) break;
    if(S[n] != S[lasta] ) t = false;
    ++n;
    --lasta;
  }
  int start;
  start = (S.size() + 3)/2;
  last = S.size();
  while(1) {
    if(start == last) break;
    if(S[start] != S[last]) t = false;
    ++start:
    --last;
  }
  if(t) cout << "Yes";
  if(t==false) cout << "No";
}
    


Compiler output:
a.cc: In function 'int main()':
a.cc:31:12: error: expected ';' before ':' token
   31 |     ++start:
      |            ^
      |            ;
Language: C++

#include <iostream>
using namespace std;
int main() {
  string S;
  cin >> S;
  bool t = true;
  int n = 0;
  int last;
  last = S.size()
  while(1) {
    if(n == last) break;
    if(S[n] != S[last]) t = false;
    ++n;
    --last;
  }
  n = 0;
  int lasta;
  lasta = (S.size() - 1) / 2;
  while(1) {
    if(n == lasta) break;
    if(S[n] != S[lasta] ) t = false;
    ++n;
    --lasta;
  }
  int start;
  start = (S.size() + 3)/2;
  last = S.size();
  while(1) {
    if(start == last) break;
    if(S[start] != S[last]) t = false;
    ++start:
    --last;
  }
  if(t) cout << "Yes";
  if(t==false) cout << "No";
}
    


Compiler output:
a.cc: In function 'int main()':
a.cc:9:18: error: expected ';' before 'while'
    9 |   last = S.size()
      |                  ^
      |                  ;
   10 |   while(1) {
      |   ~~~~~           
a.cc:31:12: error: expected ';' before ':' token
   31 |     ++start:
      |            ^
      |            ;
Language: C++

#include <iostream>
using namespace std;
int main() {
  string S;
  cin >> S;
  bloom t = true;
  int n = 0;
  int last;
  last = S.size()
  while(1) {
    if(n == last) break;
    if(S[n] != S[last]) t = false;
    ++n;
    --last;
  }
  n = 0;
  int lasta;
  lasta = (S.size() - 1) / 2;
  while(1) {
    if(n == lasta) break;
    if(S[n] != S[lasta] ) t = false;
    ++n;
    --lasta;
  }
  int start;
  start = (S.size() + 3)/2;
  last = S.size();
  while(1) {
    if(start == last) break;
    if(S[start] != S[last]) t = false;
    ++start:
    --last;
  }
  if(t) cout << "Yes";
  if(t==false) cout << "No";
}
    

Compiler output:
a.cc: In function 'int main()':
a.cc:6:3: error: 'bloom' was not declared in this scope
    6 |   bloom t = true;
      |   ^~~~~
a.cc:9:18: error: expected ';' before 'while'
    9 |   last = S.size()
      |                  ^
      |                  ;
   10 |   while(1) {
      |   ~~~~~           
a.cc:21:27: error: 't' was not declared in this scope
   21 |     if(S[n] != S[lasta] ) t = false;
      |                           ^
a.cc:30:29: error: 't' was not declared in this scope
   30 |     if(S[start] != S[last]) t = false;
      |                             ^
a.cc:31:12: error: expected ';' before ':' token
   31 |     ++start:
      |            ^
      |            ;
a.cc:34:6: error: 't' was not declared in this scope
   34 |   if(t) cout << "Yes";
      |      ^
a.cc:35:6: error: 't' was not declared in this scope
   35 |   if(t==false) cout << "No";
      |      ^
Language: C++

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

using namespace std;
int main(){
  string S;
  int N=S.size();
  cin>>S;
  string T=S;
  reverse( S.begin(),S.end());
  string A=T.substr((N-1)/2);
  string C=S.substr((N-1)/2);
  string E=A;
   reverse( A.begin(),A.end());
  string G=C;
  reverse(C.begin(),C.end());
  
  if (T==S && A==E && C=G)cout<<"Yes"<<endl;
  else cout<<"No"<<endl;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:19:20: error: no match for 'operator&&' (operand types are 'bool' and 'std::string' {aka 'std::__cxx11::basic_string<char>'})
   19 |   if (T==S && A==E && C=G)cout<<"Yes"<<endl;
      |       ~~~~~~~~~~~~ ^~ ~
      |            |          |
      |            bool       std::string {aka std::__cxx11::basic_string<char>}
a.cc:19:20: note: candidate: 'operator&&(bool, bool)' (built-in)
   19 |   if (T==S && A==E && C=G)cout<<"Yes"<<endl;
      |       ~~~~~~~~~~~~~^~~~
a.cc:19:20: note:   no known conversion for argument 2 from 'std::string' {aka 'std::__cxx11::basic_string<char>'} to 'bool'
Language: C++

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

using namespace std;
int main(){
  string S;
  int N=S.size();
  cin>>S;
  string T=S;
  reverse( S.begin(),S.end());
  string A=T.substr((N-1)/2);
  string C=S.substr((N-1)/2);
  string E=A;
   reverse( A.begin(),A.end());
  string G=C;
  reverse(C.begin(),C.end());
  
  if (T==S && A==E&& C=G)cout<<"Yes"<<endl;
  else cout<<"No"<<endl;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:19:19: error: no match for 'operator&&' (operand types are 'bool' and 'std::string' {aka 'std::__cxx11::basic_string<char>'})
   19 |   if (T==S && A==E&& C=G)cout<<"Yes"<<endl;
      |       ~~~~~~~~~~~~^~ ~
      |            |         |
      |            bool      std::string {aka std::__cxx11::basic_string<char>}
a.cc:19:19: note: candidate: 'operator&&(bool, bool)' (built-in)
   19 |   if (T==S && A==E&& C=G)cout<<"Yes"<<endl;
      |       ~~~~~~~~~~~~^~~~
a.cc:19:19: note:   no known conversion for argument 2 from 'std::string' {aka 'std::__cxx11::basic_string<char>'} to 'bool'
Language: C++

#include <iostream>
#include <string>

using namespace std;
int main(){
  string S;
  int N=S.size();
  cin>>S;
  string T=reverse( S.begin(),S.end());
  string A=S.substr((N-1)/2);
  string C=T.substr((N-1)/2);
  if (T==reverse(T.begin(),T.end()) && A==reverse(A.begin(),A.end()) && C=reverse(C.begin(),C.end))cout<<"Yes"<<endl;
  else cout<<"No"<<endl;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:9:12: error: 'reverse' was not declared in this scope
    9 |   string T=reverse( S.begin(),S.end());
      |            ^~~~~~~
Language: C

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


int main(){

  int M;
  char N[100];
  scanf("%s",N);

  /*
  int A[N];
  int i;
  for(i=0;i<N;i++){
   scanf("%d",&A[i]);
   }
  */
  M = strlen(N);
  int i;
  int counter;
  counter = 0;
  for (i=0;i<(M-1)/2;i++){
   if(N[i] != N[M-1-i]){
     printf("No");
     return(0);
   }
  }
   if(M == 3){
     printf("Yes");
     return(0);
  }
   else if(M == 5){
     if(N[0]==N[1] && N[3]==N[4]){
     printf("Yes");
       return(0);
     }
     else{
       printf("No");
       return(0);
     }
   }
 else if(M==7){
     if(N[0]==N[2] && N[4]==N[6]){
  printf("Yes");
       return(0);
     }
     else{
       printf("No");
       return(0);
     }
   }
 else{}
  
  if(((M-1)/2)%2 == 1){
  int A,B;
  A = (M-1)/2;
  B = (M+3)/2;
  for (i=0;i<(A-1)/2;i++){
   if(N[i] != N[A-1-i]){
     counter=1;;
   }
   else{}
  }
  
  for (i=B-1;i<M-(A+3)/2;i++){
   if(N[i] != N[M-1-i]){
     counter=1;;
   }
  else{}
  }

  if(counter == 0){
    printf("Yes");
       return(0);
  }
  else{
    printf("No");
       return(0);
  }
  }
  else{
int A,B;
  A = (M-1)/2;
  B = (M+3)/2;
  for (i=0;i<A/2;i++){
   if(N[i] != N[A-1-i]){
     counter=1;;
   }
   else{}
  }
  
  for (i=B-1;i<M-A/2;i++){
   if(N[i] != N[M-1-i]){
     counter=1;;
   }
  else{}
  }

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


  }





 return(0);
 }


Compiler output:
main.c:118:2: error: expected identifier or '(' before 'return'
  118 |  return(0);
      |  ^~~~~~
main.c:119:2: error: expected identifier or '(' before '}' token
  119 |  }
      |  ^
Language: C++

#include<iostream>
#include<string>
using namespace std;
int main(){
  string S;
  int N=S.size();
  cin>>S;
  string T=reverse( S.begin(),S.end());
  string A=S.substr((N-1)/2);
  string C=T.substr((N-1)/2);
  if (T==reverse(T.begin(),T.end()) && A==reverse(A.begin(),A.end()) && C=reverse(C.begin(),C.end))cout<<"Yes"<<endl;
  else cout<<"No"<<endl;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:8:12: error: 'reverse' was not declared in this scope
    8 |   string T=reverse( S.begin(),S.end());
      |            ^~~~~~~
Language: C++

#include<iostream>
#include<string>
using namespace std;
int main(){
  string S;
  int N=S.size();
  cin>>S;
  string T=reverse( S.begin(),S.end());
  string A=S.substr((N-1)/2);
  string C=T.substr((N-1)/2);
  if (T==reverse(T.begin(),T.end()) && A==reverse(A.begin(),A.end()) && C=reverse(C.begin(),C.end))) cout<<"Yes"<<endl;
  else cout<<"No"<<endl;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:8:12: error: 'reverse' was not declared in this scope
    8 |   string T=reverse( S.begin(),S.end());
      |            ^~~~~~~
a.cc:11:100: error: expected primary-expression before ')' token
   11 |   if (T==reverse(T.begin(),T.end()) && A==reverse(A.begin(),A.end()) && C=reverse(C.begin(),C.end))) cout<<"Yes"<<endl;
      |                                                                                                    ^
Language: C++

#include<iostream>
#include<string>
using namespace std;
int main(){
  string S;
  int N=S.size;
  cin>>S;
  string T=reverse( S.begin(),S.end());
  string A=S.substr((N-1)/2);
  string C=T.substr((N-1)/2);
  if (T==reverse(T.begin(),T.end()) && A==reverse(A.begin(),A.end()) && C=reverse(C.begin(),C.end))) cout<<"Yes"<<endl;
  else cout<<"No"<<endl;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:6:11: error: cannot convert 'std::__cxx11::basic_string<char>::size' from type 'std::__cxx11::basic_string<char>::size_type (std::__cxx11::basic_string<char>::)() const noexcept' {aka 'long unsigned int (std::__cxx11::basic_string<char>::)() const noexcept'} to type 'int'
    6 |   int N=S.size;
      |           ^~~~
a.cc:8:12: error: 'reverse' was not declared in this scope
    8 |   string T=reverse( S.begin(),S.end());
      |            ^~~~~~~
a.cc:11:100: error: expected primary-expression before ')' token
   11 |   if (T==reverse(T.begin(),T.end()) && A==reverse(A.begin(),A.end()) && C=reverse(C.begin(),C.end))) cout<<"Yes"<<endl;
      |                                                                                                    ^
Language: C++

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

int main()
{
    string s;
    cin >> s;
    string front, rear;
    int len = (s.length() - 1) / 2;
    front = s.substr(0, len);
    rear = s.substr((s.length() + 2) / 2, len);
    rep(i, len)
    {
        if (front[i] != front[len - i - 1] || rear[i] != rear[len - i - 1])
        {
            cout << "No" << endl;
            return 0;
        }
    }
    rep(i, s.length())
    {
        if (s[i] != s[s.length - i - 1])
        {
            cout << "No" << endl;
            return 0;
        }
    }
    cout << "Yes" << endl;

    return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:23:25: 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 '()' ?)
   23 |         if (s[i] != s[s.length - i - 1])
      |                       ~~^~~~~~
      |                               ()
Language: C++

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

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

  int l = size.s();
  int first = (l-1)/2;
  int second = (l+3)/2;

  bool ans = true;

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

  for(int i = second;i < l;i++){
    if(s[i]!= s[l-1-i+second]){
      ans = false;
    }
  } 

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



Compiler output:
a.cc: In function 'int main()':
a.cc:8:16: error: overloaded function with no contextual type information
    8 |   int l = size.s();
      |                ^
Language: C++

S = input()
N = len(S)

def is_palindrome(s):
  return s == s[::-1]

if is_palindrome(S) \
and is_palindrome(S[:int((N-1)/2)]):
  print('Yes')
else:
  print('No')


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

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

Compiler output:
a.cc: In function 'int main()':
a.cc:15:21: error: redeclaration of 'int j'
   15 |                 int j=n-1;
      |                     ^
a.cc:7:34: note: 'int j' previously declared here
    7 |         int y=1,len=s.length(),i,j=len-1;
      |                                  ^
Language: C++

#include <bits/stdc++.h>
 using namespace std;
#define rep(i,n) for(int i=0;i<n;i++)
 int main(){
   string s,t,u,v;
   int a=0;
   cin>>s;
   t=s;
   reverse(t.begin(),t.end());
   if(s==t)a++;
   u=substr(0,s.size()/2);
   v=u;
   reverse(v.begin(),v.end());
   if(v==u)a++;
   
   if(a==2)cout<<"Yes"<<endl;
   else cout<<"No"<<endl;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:11:6: error: 'substr' was not declared in this scope; did you mean 'strstr'?
   11 |    u=substr(0,s.size()/2);
      |      ^~~~~~
      |      strstr
Language: C++

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



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

  S_reverse=S;

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

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

  S_small_reverse=S_small;

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



  if(S==S_reverse&&S_small==S_small_reverse){
    cout<<"Yes"<<endl;
  }
  else cout<<"No"<<endl;

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



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

  S_reverse=S;

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

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

  S_small_reverse=S_small;

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



  if(S==S_reverse&&S_small==S_small_reverse){
    cout<<"Yes"<<endl;
  }
  else cout<<"No"<<endl;

    return 0;
}


Compiler output:
a.cc:48:5: error: redefinition of 'int main()'
   48 | int main(){
      |     ^~~~
a.cc:12:5: note: 'int main()' previously defined here
   12 | int main(){
      |     ^~~~
Language: C

#include<stdio.h>

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

Compiler output:
main.c: In function 'main':
main.c:7:13: error: redeclaration of 'i' with no linkage
    7 |         int i;
      |             ^
main.c:5:13: note: previous declaration of 'i' with type 'int'
    5 |         int i, x = 1;
      |             ^