Merge K sorted arrays

I’m getting an error in code wherever I’m trying to insert a node type element in the priority queue(at 2 places).
I’ll be grateful if you can explain the correct syntax as well.
Help will be highly appreciated.
Thank you.