The compiler is correct. "main" must return an integer:
Code:
#include <iostream>

int main()
{
   std::cout << "Hello World!" << std::endl;
}
However, you do not need to provide the return value (IIRC, the default is 0, but I could be wrong).

Viggy