Output not coming as expected

why in the output of my resultant vector ,there are so many zeroes in the beginning although everything is fine.

@D19APPPP0016 you are creating a vector of n*k and then you are using push back operation, push_back operation will insert n+1th element in ith so, then n+2nd and so on, it will not start insertion from 0 instead push back insert at the end of the vector so if you already have an vector of size n, on performing the push back new element will be inserted at n+1th position
If this resolves your doubt mark it as resolved.