alias compile "g++ -Wall -g -O -Wshadow"in a terminal window. From then on, in that window, to compile a program foo.cc write
compile foo.cc(Note: -O is dash capital O.)
(You can save yourself more typing by using !! to redo the most recent command, and !c to redo the most recent command that started with a c.)
If you compile using g++ you can run your program by typing command
a.out
Proofread the code. Does it make sense? Can you understand what it is saying? Are variable names sensible? If not, improve the program.