// Code derived from Stroustrup's PPP2 book// § 5.9.1 Practical debug advice// -and beginning on p 162#include<iostream>#include<vector>usingstd::cout;usingstd::vector;intmain(){vector<double>v{1.1,2.2,3.3,4.4,5.5};// note: try un-commenting the code below (all at once) and fixing it:// int j = 5;// for (int i = 0; i <= max; ++j) { // oops! (twice)// for (int i = 0; 0 < max; ++i) // print the elements of v// ;// cout << "v[" << i << "]==" << v[i] << '\n';// // …// }}