Longest Palindromic Substring

giving run time error pls help me to modify my code

@amaaanahmedkhan987,
Line 24, input array is too small for that index, declare it of greater size.

pls modify my code i m not able to do it

@amaaanahmedkhan987,
Really…? Is increasing the size of array that tough…?
char *input = new char[2*str.length()+2];

my code is giving me runtime error thats why i said u modify my code but u said incrs the size of array but the problem is occuring not in size pls check out my code

@amaaanahmedkhan987,
Runtime error can be because of accessing out of bound index, try increasing the size of array and share the link of updated code if problem still persists.

https://ide.codingblocks.com/s/296841 this is the link of updated code

I hope I’ve cleared your doubt. I ask you to please rate your experience here
Your feedback is very important. It helps us improve our platform and hence provide you
the learning experience you deserve.

On the off chance, you still have some questions or not find the answers satisfactory, you may reopen
the doubt.

I hope I’ve cleared your doubt. I ask you to please rate your experience here
Your feedback is very important. It helps us improve our platform and hence provide you
the learning experience you deserve.

On the off chance, you still have some questions or not find the answers satisfactory, you may reopen
the doubt.