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

Common Board

Compilation Error
Posted by Mara 30 Sep 2012 02:07
No 1585
VAR pingvins:String; n,a,b,c,i:Integer;
begin
  Readln(n);
  a:=0; b:=0; c:=0;
  FOR i:=1 TO n DO
  begin
    Readln(pingvins);
    Case pingvins OF
     'Emperor Penguin' : a:=a+1;
     'Little Penguin' : b:=b+1;
     'Macaroni Penguin' : c:=c+1;
    end;
  end;
  IF (a>b) and (a>c) THEN Writeln('Emperor Penguin');
  IF (b>a) and (b>c) THEN Writeln('Little Penguin');
  IF (c>a) and (c>b) THEN Writeln('Macaroni Penguin');
end.

Where is problem?