To launch the code main8.cpp which is the final code, write this on the terminal:
g++ main8.cpp -o main8.exe ./main8.exe