vector<int> vect1(10); //number of elements in vector int value = 0; fill(vect1.begin(), vect1.end(), value);