fork download
  1. object Main {
  2. def main(args: Array[String]) {
  3. var i=3,j;
  4. i=i*3;
  5. for(j in 0..3)
  6. println(j);
  7. println(i);
  8. println("Hello, world!");
  9. }
  10. }
Compilation error #stdin compilation error #stdout 0s 0KB
stdin
Standard input is empty
compilation info
Main.scala:3: error: ';' expected but ',' found.
var i=3,j;
       ^
Main.scala:5: error: '<-' expected but double literal found.
for(j in 0..3)
           ^
Main.scala:9: error: illegal start of simple expression
}
^
three errors found
stdout
Standard output is empty