fork(1) download
  1. BEGIN
  2. clrscr;
  3. textcolor(2);
  4. Writeln('Tutaj obliczysz pole trapezu. Długości zatwierdź Enterem.');
  5. Writeln;
  6. textcolor(magenta);
  7. Write('Podaj długość boku a: ');
  8. textcolor(yellow);
  9. Readln(a);
  10. Writeln;
  11. textcolor(magenta);
  12. Write('Podaj długość boku b: ');
  13. textcolor(yellow);
  14. Readln(b);
  15. Writeln;
  16. textcolor(magenta);
  17. Write('Podaj długość wysokości h: ');
  18. textcolor(yellow);
  19. Readln(h);
  20. Writeln;
  21. P:=(a+b)*h/2;
  22. Writeln;
  23. Writeln;
  24. textcolor(cyan) ;
  25. Writeln('Pole trapezu wynosi: ',P:1:1);
  26. Writeln;
  27. Writeln;
  28. Writeln;
  29. textcolor(white);
  30. Writeln('Aby wyłączyć program naciśnij Enter.');
  31. Readln;
  32. END;
Compilation error #stdin compilation error #stdout 0s 0KB
stdin
Standard input is empty
compilation info
Free Pascal Compiler version 2.6.4+dfsg-4 [2014/10/14] for i386
Copyright (c) 1993-2014 by Florian Klaempfl and others
Target OS: Linux for i386
Compiling prog.pas
prog.pas(2,7) Error: Identifier not found "clrscr"
prog.pas(3,10) Error: Identifier not found "textcolor"
prog.pas(6,10) Error: Identifier not found "textcolor"
prog.pas(6,18) Error: Identifier not found "magenta"
prog.pas(8,10) Error: Identifier not found "textcolor"
prog.pas(8,17) Error: Identifier not found "yellow"
prog.pas(9,9) Error: Identifier not found "a"
prog.pas(11,10) Error: Identifier not found "textcolor"
prog.pas(11,18) Error: Identifier not found "magenta"
prog.pas(13,10) Error: Identifier not found "textcolor"
prog.pas(13,17) Error: Identifier not found "yellow"
prog.pas(14,9) Error: Identifier not found "b"
prog.pas(16,10) Error: Identifier not found "textcolor"
prog.pas(16,18) Error: Identifier not found "magenta"
prog.pas(18,10) Error: Identifier not found "textcolor"
prog.pas(18,17) Error: Identifier not found "yellow"
prog.pas(19,9) Error: Identifier not found "h"
prog.pas(21,2) Error: Identifier not found "P"
prog.pas(21,6) Error: Identifier not found "a"
prog.pas(21,8) Error: Identifier not found "b"
prog.pas(21,11) Error: Identifier not found "h"
prog.pas(24,10) Error: Identifier not found "textcolor"
prog.pas(24,15) Error: Identifier not found "cyan"
prog.pas(25,34) Error: Identifier not found "P"
prog.pas(29,10) Error: Identifier not found "textcolor"
prog.pas(29,16) Error: Identifier not found "white"
prog.pas(32,4) Fatal: Syntax error, "." expected but ";" 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