Run error in my mergesort

code ide–>https://ide.codingblocks.com/s/103437
my code is showing run error for all the 3 testcases.
But it is passing the sample input

@Akansha-Singh-2224543271130461 increase the size of your array according to constraints associate with question.

i made the array of ll a[1000000000] now but it is still showing run error

An array of size 10^7 is allowed in case of Global declaration. Your array declaration of size 1000000000 is definitely going to give Runtime error.
Edit : Also check the size of the temp array .

@Akansha-Singh-2224543271130461 hey akansha next time please do tag by @ symbol because if you don’t this we will not any notification about your message the temp array causing run error to give the size as 1000005.

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.