Script started on Thu Feb 1 09:04:15 2007 white[101]% g++ -ansi -Wall -c PascalIntArray.cpp white[102]% g++ -ansi -Wall piatest.cpp PascalIntArray.o white[103]% ./a.out Hello World Original A: 1 2 3 4 5 6 7 8 9 10 Changed A: 1 17 3 4 5 6 17 17 9 10 B[1] = 1 B[2] = 2 B[3] = 3 B[4] = 4 B[5] = 5 B[6] = 6 B[7] = 7 B[8] = 8 B[9] = 9 B[10] = 10 Sorted A: 1 3 4 5 6 9 10 17 17 17 terminate called after throwing an instance of 'std::out_of_range' what(): vector::_M_range_check Abort white[104]% exit exit Script done on Thu Feb 1 09:04:58 2007