Why this run time error came?

Hi! sir /mam,
my code show run time error as i use kedane algorithm acitice,please see my logic.
my souce code-https://ide.codingblocks.com/s/260935

hello @Nikhil-Jettley-2567269533523013
increase ur array size.
(check maximum value of n and decide size accordingly)

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.