cpp compiles and runs correctly.