Mergesort123456

https://ide.codingblocks.com/s/52271
it is running correctly in the ide but when i try to attempt in the online portal it is showing run error

Hey Aastha, check the constraints mentioned in the problem carefully, it is mentioned that n < 10^4 but you are taking the array temp of max size 100 only.

https://ide.codingblocks.com/s/52416
i have changed the temp size but still it is showing run time error

Hey Aastha, please check the constraints mentioned in the problem carefully, it is mentioned that 1<=N<=2*10^5 . => so taking the array of 10^5 will not work
|Ai|<=10^9 . => for this you are supposed to take data type as long long int instead of int because 10^9 numbers will exceed the range of int.