Merge K sorted arrays problem

There is something wrong with my code and I am not able to figure it out. Please help.

Hey @rahul.gupta03111999
Update line 37 by

  vector<vector<ll>> arr(k);

Otherwise in loop u try to access arr[i] which doesnt exist