Probably various compilers use various syntaxes and the compiler you used does not take 0 parameters.
Try providing the message to be displayed to the user.
For reference, check the syntax here.