fork download
  1. object Main extends App {
  2. def div(a: Int, b: Int) = {
  3. def inneDiv(acc,a,b) : (Int, Int) = {
  4. (3,3)
  5. }
  6. innerDiv(0,a,b)
  7. }
  8. // your code goes here
  9. println(div(6,2))
  10. }
  11.  
  12.  
Compilation error #stdin compilation error #stdout 0.34s 382080KB
stdin
Standard input is empty
compilation info
/opt/scala/bin/scalac: line 50: /dev/null: Permission denied
Main.scala:3: error: ':' expected but ',' found.
		def inneDiv(acc,a,b) : (Int, Int) = {
                               ^
Main.scala:7: error: identifier expected but '}' found.
    }	
    ^
two errors 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