fork download
  1. fun a(b: Int, c: Int){
  2. b = b - 1
  3. c = c - 1
  4. return b * c
  5. }
Compilation error #stdin compilation error #stdout 0s 0KB
stdin
Standard input is empty
compilation info
prog.kt:2:2: error: val cannot be reassigned
 b = b - 1
 ^
prog.kt:3:2: error: val cannot be reassigned
 c = c - 1
 ^
prog.kt:4:9: error: type mismatch: inferred type is Int but Unit was expected
 return b * c
        ^
stdout
Standard output is empty