You can use the constructor taking a size. This will value-initialize all elements. For int
this means zero initialization:
std::vector<int> v(100); // 100 elements with value 0
If you need a different number, then you can pass a second parameter with the desired value:
std::vector<int> v(100, 42); // 100 elements with value 42