I am trying to write a void function that outputs my vectors into my main. I have the following code for the function, however it says I have an error on my coutlines and wants me to use "cout<< &V1<< ends;", can someone please explain this to me please.
I also have another function that sets random numbers between -10 and 10 of the vectors. When I run everything together, I am not getting the result I want.
void output(vector <int> V1, vector<int> V2)
{
int size1;
int size2;
cout<< "How big do you want V1 to be? ";
cin>> size1;
cout<< "How big do you want V2 to be? ";
cin>> size2;