Is this the correct way of taking input in a 2d vector?

@Manvik-Arya-4391661007540658
one change