vector<int> v[1000];
Is this for reserving space for the vector? But isn't that a command to reserve space () ? What does it do?
()
It is an array, each element of which is a vector, so there are 1000 default (empty) vectors.
However, if you wanted to make one vector 1000 int , you would say
int
vector<int> v(1000);