fork download
  1. program test;
  2.  
  3. const M = 10; N = 10;
  4.  
  5. type Item = Integer;
  6.  
  7. var
  8. x : array [1..M, 1..N] of Item;
  9. y : array [1..M] of Item;
  10. i, j : Integer;
  11. v : Item;
  12.  
  13. begin
  14. for i := 1 to M do begin
  15. for j := 1 to N do begin
  16. v := i*N + j;
  17. x[i, j] := v;
  18. Write(v:3, ' ');
  19. end;
  20. WriteLn;
  21. end;
  22.  
  23. WriteLn;
  24. y := x[,1];
  25. for i := 1 to M do
  26. Write(y[i]:3, ' ');
  27. WriteLn;
  28. end.
Compilation error #stdin compilation error #stdout 0s 0KB
stdin
compilation info
prog.pas(24,10) Error: Illegal expression
prog.pas(24,11) Fatal: Syntax error, "]" expected but "ordinal const" found
Fatal: Compilation aborted
Error: /usr/bin/ppc386 returned an error exitcode (normal if you did not specify a source file to be compiled)
stdout
Standard output is empty