fork download
  1. var s,buf,result:string;
  2. i: integer;
  3. begin
  4. readln(s);
  5. i :=0;
  6. result :='';
  7. while (i < length(s)) do
  8. begin
  9. i := i+1;
  10. buf := buf + s[i];
  11. if (s[i] = ' ') then
  12. begin
  13. if (length(buf) mod 2 = 0) then result := result + buf;
  14. buf := '';
  15. end;
  16. end;
  17. writeln(result);
  18. readln();
  19. 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,14) Warning: Variable "buf" does not seem to be initialized
prog.pas(19,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