Solution

Press the RUN button and see the output!

If you want to try the game after some code changes, press the RUN button, then wait to be dropped back in the Terminal tab. Once there, kill the running program with Ctrl+c on Windows, or command+c on a Mac. Then, type the command g++ main.cpp -o main and hit enter to compile the program. If you don’t get any compilation errors, you may run the program by typing ./main and hitting enter.

Get hands-on with 1200+ tech skills courses.