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 1133. Fibonacci Sequence

Re: why compilation error?
Posted by Tabledott 14 Jun 2006 02:05
[code deleted]

Just wanna say it works pretty well on my mashine ;)

Edited by author 14.06.2006 02:24

Edited by moderator 14.06.2006 16:24
Re: why compilation error?
Posted by KAV 14 Jun 2006 16:22
Replace
sqrt(5)
with
sqrt(5.)
or
sqrt( double( 5 ) )
because there is an ambiguilty, what type to the compiler should convert an integer.
Re: why compilation error?
Posted by Todor Tsonkov 7 Jul 2006 01:41
Yup, 10x, you`re right. Btw, to all c++ coders who've made this problem, how did you cope with accuracy ?