fork download
  1. program maqsimaluri;
  2. function max(a,b:integer):integer;
  3. begin
  4. if a>=b then
  5. max:=a
  6. else
  7. max:=b;
  8. end;
  9. begin
  10. var a:=5;
  11. var b:=4;
  12. write(max(a,b));
  13. 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(10,5) Error: Illegal expression
prog.pas(10,9) Error: Illegal expression
prog.pas(10,9) Fatal: Syntax error, ";" expected but "identifier A" 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