Getting a run error

Why am I geting a run error in every test case, while custom input cases are passing.

Hey Mayank, please provide me your code in coding blocks IDE, so that I can have look at it and tell you the problem.

Hey, here’s tehe link: https://ide.codingblocks.com/s/186090

@Abhinav2604 please look into the same.

Your array size in mergeArr function is fixed to 100, but it might need to store more elements. Either do dynamic allocation or create an array of size 200005.