How to take variable Vector Inputs from user?

How to take n number of inputs from the user and push_back in a vector?

Like a create a vector v
vector v;
int size;
cin>>size;
for(int i=0;i<size;i++){
//What to write here?? I’m confused please
//answer with some explanation to clear my concept.
}

In the for loop, simpy:
cin>>number ; //taking input the i’th number
v.push_back(number); //pushing that in vector

Refer this.

Okay, thanks now I got it, I was not taking that extra variable number.