#include using namespace std; int main(int argc, char** argv) { vector intVector; vector::iterator it = intVector.end(); *it = 10; // BUG! it doesn't refer to a valid element vector vectorOne(10); vector vectorTwo(10); // fill in the vectors // BUG! infinite loop for (vector::iterator it = vectorTwo.begin(); it != vectorOne.end(); ++it) { // loop body } return (0); }