Merge using heap-----compilation error

hi @guptarahul3100
correct way to insert in pq is
pq.push({arr[i][0],{i,0}}) ;
you also have to make pair of ar[i][0] and {i,0}

Modified Code
i hope this help
if you have more doubts regarding this feel free to ask
if your doubt is resolved mark it as resolved from your doubt section inside your course