I have done above code by taking input from the user but it is showing error in taking input.Then how can we take input in 2-d vector?
Here is my code:-
How will I take 2-d array input in vector?
hello @priya_Jain
u need to read k vectors and push each time into ur vector a.
check ur updated code here->