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)
		if(strcmp(s[i],s[n-1-i])==0)
			a++;
	strncpy(s1,n/2);
	n1=strlen(s1);
	for(i=0;i<(n1-1)/2;i++)
		if(strcmp(s[i],s[n1-1-i])==0)
			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])==0)
			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:11:26: error: expected ';' before ')' token
   11 |         for(i=0;i<(n-1)/2)
      |                          ^
      |                          ;
main.c:12:28: error: passing argument 1 of 'strcmp' makes pointer from integer without a cast [-Wint-conversion]
   12 |                 if(strcmp(s[i],s[n-1-i])==0)
      |                           ~^~~
      |                            |
      |                            char
In file included from main.c:2:
/usr/include/string.h:156:32: note: expected 'const char *' but argument is of type 'char'
  156 | extern int strcmp (const char *__s1, const char *__s2)
      |                    ~~~~~~~~~~~~^~~~
main.c:12:33: error: passing argument 2 of 'strcmp' makes pointer from integer without a cast [-Wint-conversion]
   12 |                 if(strcmp(s[i],s[n-1-i])==0)
      |                                ~^~~~~~~
      |                                 |
      |                                 char
/usr/include/string.h:156:50: note: expected 'const char *' but argument is of type 'char'
  156 | extern int strcmp (const char *__s1, const char *__s2)
      |                                      ~~~~~~~~~~~~^~~~
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
/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:28: error: passing argument 1 of 'strcmp' makes pointer from integer without a cast [-Wint-conversion]
   17 |                 if(strcmp(s[i],s[n1-1-i])==0)
      |                           ~^~~
      |                            |
      |                            char
/usr/include/string.h:156:32: note: expected 'const char *' but argument is of type 'char'
  156 | extern int strcmp (const char *__s1, const char *__s2)
      |                    ~~~~~~~~~~~~^~~~
main.c:17:33: error: passing argument 2 of 'strcmp' makes pointer from integer without a cast [-Wint-conversion]
   17 |                 if(strcmp(s[i],s[n1-1-i])==0)
      |                                ~^~~~~~~~
      |                                 |
      |                                 char
/usr/include/string.h:156:50: note: expected 'const char *' but argument is of type 'char'
  156 | extern int strcmp (const char *__s1, const char *__s2)
      |                                      ~~~~~~~~~~~~^~~~
main.c:22:28: error: passing argument 1 of 'strcmp' makes pointer from integer without a cast [-Wint-conversion]
   22 |                 if(strcmp(s[i],s[n2-1-i])==0)
      |                           ~^~~
      |                            |
      |                            char
/usr/include/string.h:156:32: note: expected 'const char *' but argument is of type 'char'
  156 | extern int strcmp (const char *__s1, const char *__s2)
      |                    ~~~~~~~~~~~~^~~~
main.c:22:33: error: passing argument 2 of 'strcmp' makes pointer from integer without a cast [-Wint-conversion]
   22 |                 if(strcmp(s[i],s[n2-1-i])==0)
      |                                ~^~~~~~~~
      |                                 |
      |                                 char
/usr/include/string.h:156:50: note: expected 'const char *' but argument is of type 'char'
  156 | extern int strcmp (const char *__s1, const char *__s2)
      |                                      ~~~~~~~~~~~~^~~~