ENG  RUSTimus Online Judge
Online Judge
Problems
Authors
Online contests
About Online Judge
Frequently asked questions
Site news
Webboard
Links
Problem set
Submit solution
Judge status
Guide
Register
Update your info
Authors ranklist
Current contest
Scheduled contests
Past contests
Rules
back to board

Discussion of Problem 1226. esreveR redrO

Why Compilation Error?
Posted by S&W 17 Nov 2002 14:35
subj
var alf:set of char; s,w:string;i,j:integer;
begin
alf:=['A'..'Z','a'..'z'];
repeat
 readln(s);
  for i:=1 to length(s) do begin
  if s[i] in alf then begin
   repeat
     w:=w+s[i]; inc(i);
     until not(s[i] in alf) or (i=length(s));
     for j:=length(w) downto 1 do write(w[j]);w:='';
   end; write(s[i]);
  end;
 writeln;
until eof
end.
It WOrks!!!!!!!!!!!!!!!
I chack you it but WA. if you will check my program 1222. I will give you my solution. my E-mail tabo2002@rambler.ru
Posted by I am david. Tabo. 17 Nov 2002 15:08
> subj
> var alf:set of char; s,w:string;i,j:integer;
> begin
> alf:=['A'..'Z','a'..'z'];
> repeat
>  readln(s);
>   for i:=1 to length(s) do begin
>   if s[i] in alf then begin
>    repeat
>      w:=w+s[i]; inc(i);
>      until not(s[i] in alf) or (i=length(s));
>      for j:=length(w) downto 1 do write(w[j]);w:='';
>    end; write(s[i]);
>   end;
>  writeln;
> until eof
> end.
> It WOrks!!!!!!!!!!!!!!!
Re: I chack you it but WA. if you will check my program 1222. I will give you my solution. my E-mail tabo2002@rambler.ru
Posted by S&W 17 Nov 2002 20:37
How? it still compilation error, send your program on
nameless51@mail.ru