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 1119. Metro

compilation error
Posted by Crestez Leonard 31 Oct 2002 03:10
  I somehow get a compilation error if I use sqrt(2) from math.h. Any ideas? What do you compile with?
I have the similar problem too
Posted by VladG 7 Nov 2002 23:24
It looks strange for me, but I too got an compilation error when I
tried to use sqrt function from a math.h library.
Probably the compiler they use doesn't have this function i ntheir
library. The managers of this site somehow should be contacted about
that.
If you will discover the answer, please publish it.
I will do the same.

>   I somehow get a compilation error if I use sqrt(2) from math.h.
Any ideas? What do you compile with?
Re: I have the similar problem too
Posted by Blue Soply 19 Apr 2003 12:27
Change sqrt(2) to sqrt((double)2),and it will OK.
Re: I have the similar problem too
Posted by bug27 27 Mar 2005 15:13
with your help,I got AC now.

faint! what compiler timus uses?