simple program won't compile

All I'm trying to do is get the tree() function to display the output and it won't compile.. :(


#include <iostream>
using namespace std;
void tree();

main ()
{
tree();

cin.get();
return 0;
}

void tree()
{
cout << "Three blind mice.\n";
}
What are the errors? And typeless main = bad. main() shall return an int.
main() must return an int.
thx.. added int to the main() :)
Topic archived. No new replies allowed.