That should not be causing compile-time errors.
Any good compiler will cause compile time errors if you are using void main().