Help with explanation

code: https://ide.codingblocks.com/s/435655

this is the working for merging k sorted arrays problem, what I don’t understand here is that in line 14 we only need a the priority queue to have elements of type pair but it has been initialized with 2 other vectors too which I don’t see being used

hello @raghav007

priority queue is implemented using vector.

the second argument of pq is the same information, by that argument we are saying that this priority queue should use vector of pair in its implementation.

the third argument is the comparator that priority queue will use to order the elements inside vector.