fork download
  1. the_world_is_flat = 1
  2. message = “Be careful not to fall off!
  3. try:
  4. if the_world_is_flat:
  5. print message
  6. except:
  7. print “the world is not flat”
Compilation error #stdin compilation error #stdout 0s 0KB
stdin
Standard input is empty
compilation info
Main.java:1: error: class, interface, or enum expected
the_world_is_flat = 1
^
Main.java:2: error: illegal character: '\u201c'
message = ?Be careful not to fall off!?
          ^
Main.java:2: error: illegal character: '\u201d'
message = ?Be careful not to fall off!?
                                      ^
Main.java:7: error: illegal character: '\u201c'
print ?the world is not flat?
      ^
Main.java:7: error: illegal character: '\u201d'
print ?the world is not flat?
                            ^
5 errors
stdout
Standard output is empty