1#include <iostream>
2#include <vector>
3
4using namespace std;
5
6int main(void) {
7 vector<int> v;
8
9 cout << "Initial vector size = " << v.size() << endl;
10
11 v.resize(5, 10);
12 cout << "Vector size after resize = " << v.size() << endl;
13
14 cout << "Vector contains following elements" << endl;
15 for (int i = 0; i < v.size(); ++i)
16 cout << v[i] << endl;
17
18 return 0;
19}