fork download
  1. j,t,i,j,l1,l2,c:integer;
  2. a,b:string;
  3. begin
  4. readln(t);
  5. for i:=1 to t do
  6. begin
  7. l1:=0;
  8. l2:=0;
  9. readln(a,b);
  10. l1:=l1+length(a);
  11. l2:=l2+length(b);
  12. if (l1>l2) then (c:=c+l2);
  13. if (l1<l2) then (c:=c+l1);
  14. if (l1=l2) then (c:=c+l1);
  15. for j:=1 to c do
  16. begin
  17. if l1 mod 2=1 then writeln(a) else writeln(b);
  18. end;
  19. end;
  20. end.
Compilation error #stdin compilation error #stdout 0s 0KB
stdin
4
a bb
abs sfd
ewr w
wqeqweqweq eqweqwe
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
Fatal: Syntax error, "BEGIN" expected but "identifier J" 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