Validates a complete-6 c++ source code, which includes more complex loops and a do while loop.