fork(3) download
  1. object Main {
  2. import scala.math.pow
  3. implicit class PowerInt(i: Int) {
  4. def `**`(n: Int, b: Int): Int = pow(n, b).intValue
  5. }
  6. def main(args: Array[String]) {
  7. println(5**6)
  8. }
  9. }
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:7: error: not enough arguments for method **: (n: Int, b: Int)Int.
Unspecified value parameter b.
    	println(5**6)
                 ^
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