fork download
  1. program procTest (input, output);
  2. var a, b : integer;
  3. x : array [1..5] of real;
  4. procedure one (i, j : integer; k : array [1..5] of real);
  5. var n : integer;
  6. begin
  7. n := i + j;
  8. k[n] := 2.345
  9. end
  10. begin
  11. a := 1;
  12. b := 2;
  13. one(a,b,x);
  14. write(x[a+b])
  15. end.
Compilation error #stdin compilation error #stdout 0s 0KB
stdin
Standard input is empty
compilation info
prog.pas:4: error: syntax error before `1'
prog.pas: In procedure `one':
prog.pas:8: error: undeclared identifier `k' (first use in this routine)
prog.pas:8: error:  (Each undeclared identifier is reported only once
prog.pas:8: error:  for each routine it appears in.)
prog.pas:10: error: syntax error before `begin'
stdout
Standard output is empty