Merge K sorted arrays...getting TLE

On submission some testcases are passing but others are getting TLE and sometimes all testcases are getting TLE.

code link: https://ide.codingblocks.com/s/324966

Insert all elements in a priority queue, then pop and display them one by one.

This is the same code as discussed in the tutorial video but where is my code getting wrong??
and yes, i’ve done the same thing you’ve mentioned

If the number of test cases passed are changing with each submission, then hard refresh your browser. And then submit it again. Other students are also facing this issue. The team is resolving is it.

nvm, my for loop was wrong .

Oh okay cool. Please mark your doubt as resolved now.