I guess what most people said sums it up. The c++ compiler can't figure out what code to run unless there is a main function(be sure to return 0)