fork download
  1. def f(n)
  2. if n < 0
  3. (1 - 2 * ((1 - n) % 2)) * f(-n)
  4. elsif n == 0 || n == 1
  5. n
  6. else
  7. f(n - 1) + f(n - 2)
  8. end
  9. end
  10. def l(n)
  11. f(n - 1) + f(n + 1)
  12. end
  13. puts l(-256)
Compilation error #stdin compilation error #stdout 0s 0KB
stdin
Standard input is empty
compilation info
===SORRY!===
Confused at line 1, near "def f(n)\n "
stdout
Standard output is empty