Merge k sorted arrays (heaps)

am getting one wrong answer on submission
please tell me what test case i am not able to handle in my code

my code:
https://ide.codingblocks.com/s/51955

question link:
https://hack.codingblocks.com/contests/c/511/886

please help me pass all the test cases,

@tusharsk
@sanjeetboora