1#include <iostream>
2#include <vector>
3using namespace std;
4
5int main() {
6 //vector element size
7 const int size = 4;
8 //vector with int data type
9 //all elements are equal to 4
10 vector<int> myVect (size, 4);
11
12 for (int i=0; i<size; i++) {
13 cout << "Vector index(" << i <<") is: "<< myVect[i] << endl;
14 }
15 return 0;
16}