// Code derived from Stroustrup's PPP2 book// § 4.6 vector// -and beginning on p 118#include<iostream>#include<string>#include<vector>usingstd::cout;usingstd::string;usingstd::vector;intmain(){// vector of 6 intsvector<int>v={5,7,9,4,6,8};// vector of 4 stringsvector<string>philosophers={"Kant","Plato","Hume","Kierkegaard"};// output above variable values to console...for(intx:v)cout<<x<<'\n';//---cout<<'\n';for(stringphilosopher:philosophers)cout<<philosopher<<'\n';}