Merge_Sort doubt

I am not able to submit the code, what’s the error in the code ? Please help.

Plz use comments in your code, I am not able to understand it properly,

Ma’am here’s the code with comments.

I have modified your code , Try to submit now.

Ma’am declaring long long int a[n+1] in the code shows wrong answer. I am not able to understand why ?

Basically, it is always advisable to have the size of array to be maximum, rather than expressing it in terms of n, as at times it might produce the wrong result or leads to runtime error.