// 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"};philosophers[2]=99;// error: trying to assign an int to a stringv[2]="Hume";// error: trying to assign a string to an int}