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" ??? TASK 1295
Posted by Pavel Kovaleko a.k.a DarkForcer 9 Apr 2005 10:27
Вот мое решение :
{$N+,E-}

var
    n,i,null : longint;
        st : string;
    res : extended;

function S(num : extended;st : longint):extended;
var
    i : longint;
        result : extended;
begin
    result:=1;
    for i:=1 to st do
        result:=result*num;
    S:=result;
end;

begin
    read(n);
    res:=S(1,n)+S(2,n)+S(3,n)+S(4,n);
    str(res:0:0,st);
    for i:=length(st) downto 1 do
        if st[i]='0' then inc(null)
        else
        begin
            write(null);
                     exit;
        end;
end.
Rename your 'result' variable. BTW, read FAQ - http://acm.timus.ru/faq.aspx (-)
Posted by Dmitry 'Diman_YES' Kovalioff. Retired 9 Apr 2005 12:05