Sorting in linear time

It shows correct output but when i submit, it shows run error. https://ide.codingblocks.com/s/298028

@Sejal.Aloria see the constraints 1 <= N <= 10^6 and make array size accordingly

I tried everything it still shows run error. Can u please correct my code.

@Sejal.Aloria you just have to increase the array size.