Merge sort problem

getting run error in merge sort code : https://ide.codingblocks.com/#/s/14673
question link : https://hack.codingblocks.com/contests/c/452/395

The size of given array can be of order of 10^5 but in merge function you are making tempp array of size 100 only which is wrong , it may possible that its size is 10^5 … huh?
just fix this , other part of ur code is fine (Y)

1 Like

You have not just given the write data type and space
https://ide.codingblocks.com/#/s/15578