Merge sort problem

bro i want to know why it is not running perfectly for this input
5
3 6 4 1 2
here’s the code

hello @ikshit9
check now

the code works fine for this input but when i try to submit the code
run error is displaying

change temp array size, it should be atleast e+1

i made the change but getting same error

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.