Considered to be the wrong way to begin C and C++ programs. This is a violation according to ANSI/ISO standards. Programs do not just end suddenly; they must return a value.

Instead use:

int main()

And at the end of the main function, add:

return 0;

You will be forgiven.