Merge k sorted arrays

I am not able to debug the error. Please help !

hello @vaishnavtannu
a)


here it should be size()

b)
image
here u should read each n elements in some separate vector and then push that vector in v.

c)
this is how we should insert data in pair declared as pair< int,pair<int,int> >
{ a, {b,c} }
ur updatedd code->