Merge k sorted arrays question

sir I am confused in this question I tried only this much as I did the link but I am confused how to proceed further and I also want to know how should I combine priority queue and pair. link:https://ide.codingblocks.com/s/117000

@khushi91200 if you are clear with the approach and facing problem in the implementation, please refer this code:


Hope this helps.