Are you using linux?
If so, then if GCC is installed that is the command you should run in your terminal window while current dirrectory contains your program.cpp
Use the Command Prompt. You can find it under Accessories in the start menu somewhere. Another way is to press Flag key+R, type cmd and then press enter.
This will show a black window that you can type the command into. If program.cpp is not in the current folder you will have to use the cd command to navigate to the correct folder before running the compiler command.
cd path/to/program/folder/
g++ program.cpp -o program