fork download
  1. type roma=array [1..100] of integer;
  2. var x,y:roma;
  3. n,g,k,i,e,e1:integer;
  4. begin
  5. readln(n);
  6. for i:=1 to n do
  7. read (x[i]);
  8. for i:=1 to n do
  9. begin
  10. k:=0;
  11. g:=x[i];
  12. while g>0 do
  13. begin
  14. k:=k+1;
  15. y[k]:=g mod 10;
  16. g:=g div 10;
  17. end;
  18. repeat
  19. e:=1;
  20. for i:=1 to k-1 do
  21. if y[i]<y[i+1] then
  22. begin
  23. e:=0;
  24. e1:=y[i];
  25. y[i]:=y[i+1];
  26. y[i+1]:=e1;
  27. end;
  28. until e=1;
  29. for i:=1 to k do
  30. write(y[i]);
  31. write(' ');
  32. end;
  33. end.
Compilation error #stdin compilation error #stdout 0s 0KB
stdin
Standard input is empty
compilation info
Free Pascal Compiler version 2.2.0 [2009/11/16] for i386
Copyright (c) 1993-2007 by Florian Klaempfl
Target OS: Linux for i386
Compiling prog.pas
prog.pas(20,18) Error: Illegal assignment to for-loop variable "i"
prog.pas(33,4) Fatal: There were 1 errors compiling module, stopping
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