fork(1) download
  1. object Hoge {
  2. def hoge = "hoge"
  3. }
  4.  
  5. object Main extends App {
  6. println(Hoge.hoge()(2))
  7. }
Compilation error #stdin compilation error #stdout 0s 0KB
stdin
Standard input is empty
compilation info
/opt/scala/bin/scalac: line 50: /dev/null: Permission denied
Main.scala:6: error: not enough arguments for method apply: (index: Int)Char in class StringOps.
Unspecified value parameter index.
	println(Hoge.hoge()(2))
                         ^
one error found
spoj: The program compiled successfully, but Main.class was not found.
      Class Main should contain method: def main(args: Array[String]).
stdout
Standard output is empty