Bitonic sum array

sir my code is showing runtime error
please correct it:

@Megha2468 Maximum possible size is 10^6 and you have declared an array of only 10^5


@Megha2468 this is your corrected code.
If this resolves your doubt mark it as resolved.

sir it is still showing runtime error

@Megha2468 Inside the for loop of dec array i needs to be i–.


If this resolves your doubt mark it as resolved.

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.