#include <vector> #include <iostream> int main () { std::vector <int> v (4); // Copy integer values into individual element locations v [0] = 50; v [1] = 1; v [2] = 987; v [3] = 1001; std::cout << "The vector contains "; std::cout << v.size () << " Elements"; return 0; }