#include #include using namespace std; int palindrom(char s[]) { for(int i=0,j=strlen(s)-1;i>s; for(int i=0;i<=strlen(s);i++) { strcpy(suf,s+i); strcpy(pre,""); strncat(pre,s,i); if(palindrom(pre)) strcpy(pmax,pre); if(palindrom(suf) && strlen(suf)>strlen(smax)) strcpy(smax,suf); } cout<