fork download
  1. object Test {
  2. def main(args: Array[String]) {
  3. printStrings("Hello", "Scala", "Python");
  4. }
  5. def printStrings( args:String* ) = {
  6. var i : Int = 0;
  7. for( arg <- args ){
  8. println("Arg value[" + i + "] = " + arg );
  9. i = i + 1;
  10. }
  11. }
  12. }
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
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