program P;var a,b:integer;function f(a:integer;var b:integer):integer;begin if a>0 then f:=f(a-1,b-1)+2 else if b<0 then f:=f(a,b+1) -1 else f:=b;end;begin a:=5; b:=2; writeln(f(a,b))end.
Standard input is empty
prog.pas: In function `f': prog.pas:5: error: reference expected, value given in argument 2 prog.pas:3: error: routine declaration prog.pas:6: error: reference expected, value given in argument 2 prog.pas:3: error: routine declaration
Standard output is empty
The brand new service which powers Ideone!
Widget for compiling and running the source code in a web browser!