fork download
  1. program dyskol(input,output);
  2. type list = 1..1000000;
  3. var N, i, j, max : list; sum : array[1..10000,1..10000] of integer;
  4. Begin
  5. readln(N);
  6. i := 0;
  7. while not eoln do
  8. begin
  9. i := i + 1;
  10. read(a[i])
  11. end;
  12. readln;
  13. max := 0;
  14. for i := 1 to N-1 do
  15. for j := i + 1 to N do
  16. sum[i,j] := 0;
  17. for i := 1 to N-1 do
  18. for j := i + 1 to N do
  19. begin
  20. sum[i,j] := sum[i,j] + a[i] + a[j];
  21. if max < sum[i,j] then max := sum[i,j]
  22. end;
  23. writeln(max)
  24. End.
Compilation error #stdin compilation error #stdout 0s 0KB
stdin
Standard input is empty
compilation info
prog.pas: In main program:
prog.pas:6: error: constant out of range
prog.pas:10: error: undeclared identifier `a' (first use in this routine)
prog.pas:10: error:  (Each undeclared identifier is reported only once
prog.pas:10: error:  for each routine it appears in.)
prog.pas:13: error: constant out of range
stdout
Standard output is empty