fork download
  1. program prblm1 (input,output);
  2. var x,y,r:integer;
  3. begin
  4. writeln('enter number');
  5. readln(x);
  6. y=x+(x-1);
  7. r=1;
  8. while x>0 do
  9. begin
  10. write('x');
  11. y=y-2;
  12. end;
  13. writeln(' ');
  14. while r<(x-1) do
  15. begin
  16. write(' ');
  17. end;
  18. r=r+1;
  19. x=x-1;
  20. end;
  22. end.
Compilation error #stdin compilation error #stdout 0s 0KB
compilation info
Free Pascal Compiler version 3.0.0+dfsg-10 [2016/12/12] for x86_64
Copyright (c) 1993-2015 by Florian Klaempfl and others
Target OS: Linux for x86-64
Compiling prog.pas
prog.pas(6,10) Error: Illegal expression
prog.pas(6,1) Warning: Variable "y" does not seem to be initialized
prog.pas(7,4) Error: Illegal expression
prog.pas(7,1) Warning: Variable "r" does not seem to be initialized
prog.pas(11,6) Error: Illegal expression
prog.pas(18,6) Error: Illegal expression
prog.pas(19,6) Error: Illegal expression
prog.pas(20,4) Fatal: Syntax error, "." expected but ";" found
Fatal: Compilation aborted
Error: /usr/bin/ppcx64 returned an error exitcode
Standard output is empty