The following code contains an infinite loop. ... no, no it isn't infinite just long (undetected integer overflow: one of the joys of C++).