How can I take input from user of three vectors
hello @supratik260699
vector< vector < int > > v(n);
this will declare a vector of vector of size n .
now to read in ith vector.
for(int j=0;j<num_of_elements_in_ith_vector;j++){
int val;
cin>>val;
v[i].push_back(val);
}
i have explained u about how to read for a particular vector.
here u are given n vectors so so we need to iterate from i=0 to n-1 and read each vector.
so we just need to put one extra loop .
refer this

updated code->
I hope I’ve cleared your doubt. I ask you to please rate your experience here
Your feedback is very important. It helps us improve our platform and hence provide you
the learning experience you deserve.
On the off chance, you still have some questions or not find the answers satisfactory, you may reopen
the doubt.