I will have to look into the "no line 6" error.
But you can probably ignore this error, your program was still run. At least that happened to me, I got the error, I clicked ok, and the program run.
I guess you are on windows?
If that program runs, you will not see much. There will be a black console window, for a short moment, and then it closes, and that it is.
On windows, the console belongs to the program. So if the program exits, the console closes.
Your program just writes a line of text (that takes milliseconds only). Then the console closes.
If you run from an external cmd.exe, then the console belongs to cmd.exe, and stays open.
If you run inside the IDE, just do a
at the end, to keep the console open. (the app runs untill you press a key)
----------
if you are on linux, go to menu: view > debug window > terminal output
------------------------
If the error (no line 6) bothers you:
The easiest is to add an empty line before the "end."
(Don't know why / but at least works for me)
If you add more code, the error probably goes away too.