In order to compile this program, open up a terminal and type the following:

make

The output should be a program named main.