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)
  14.  
  15.  
Compilation error #stdin compilation error #stdout 0s 0KB
stdin
Standard input is empty
compilation info
Mozart Compiler 1.4.0 (20080704) playing Oz 3

%%% feeding file prog.oz

%*************************** parse error ************************
%**
%** syntax error, unexpected '|'
%**
%** in file "./prog.oz", line 4, column 16
%** ------------------ rejected (1 error)
stdout
Standard output is empty