Put code fragment in correct place.

Entire code inside a main method (so a directive and main method nested inside a main method). Delete lines to fix those errors.