Always create a Makefile so others will know how to compile your program.
When compiling, turn on all the warning flags. You never know what the compiler might find.