fork download
  1. type
  2. TType = real;
  3.  
  4. procedure XorSwap (var a, b : TType);
  5. begin
  6. a := a xor b;
  7. b := a xor b;
  8. a := a xor b;
  9. end;
  10. var
  11. a, b : TType;
  12.  
  13. begin
  14. a := 1.345;
  15. b := 7.890;
  16.  
  17. WriteLn (a);
  18. WriteLn (b);
  19.  
  20. XorSwap (a, b);
  21. WriteLn (a);
  22. WriteLn (b)
  23. end.
Compilation error #stdin compilation error #stdout 0s 0KB
stdin
Standard input is empty
compilation info
prog.pas(6,10) Error: Operation "xor" not supported for types "Real" and "Real"
prog.pas(7,10) Error: Operation "xor" not supported for types "Real" and "Real"
prog.pas(8,10) Error: Operation "xor" not supported for types "Real" and "Real"
prog.pas(23,4) Fatal: There were 3 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