Use gcc to compile the following .cpp programs
g++ -Wall rectangle1.cpp -o rectangle1
If you are on Code::Blocks, you can use file-open to open the file and run it.