// Code derived from Stroustrup's PPP2 book// § 4.6.1 Traversing a vector// -and beginning on p 119#include<iostream>#include<vector>usingstd::cout;usingstd::vector;intmain(){vector<int>v={5,7,9,4,6,8};for(unsignedinti=0;i<v.size();++i)cout<<v[i]<<'\n';}