Maximum subarry problem

Sir, I was trying to solve the “maximum subarry problem for n arrys” … I dont know why its showing runtime error… I gave so many custom inputs and each time i got correct output but After submitting the code its showing run error only … I dont know why its showing like this…

code:

the code is little bit long… So i can’t put the whole code in only one screenshot.

@arif just share the code here using cb ide

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.