Witam. Jestem poczatkujacym programista. Dotychczas opieralem sie glownie na jezykach klasy C, z pascalem mialem mialo do czynienia. Bardzo prosze o pomoc w rozwiazaniu problemu z nastepujacym kodem:
{$APPTYPE CONSOLE}
var
a,b:integer;
function f(var x,y:integer):integer;
begin
f:=x+2;
a:=x+2;
end;
function g(x:integer):integer;
begin
g:=a+1;
x:=a+3;
end;
begin
a:=1;
b:=3;
writeln(f(g(a),b):6);
writeln(a+f(g(a),a)/g(a):12:3);
writeln(a+f(a,b)/g(a):12:3);
end.
Bledy przy probie kompilacji:
Linie 19.15, 20.17 -error: can’t take the address of constant expression
Linia 24-fatal: there were 2 errors compiling module, stopping