Merge sort an array

getting a runtime error in my code can you help me please.

@WARHEAD
The problem constraints specify that n can be as large as 2*10^5 . Your temp array is too small for that. Increase its size.