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 1001. Reverse Root

Compilation Error!!!!!
Posted by rlavila 25 Oct 2011 08:37
which is the meaning of this

f4cff2dd-4313-4428-8b4c-1c069143580a
f4cff2dd-4313-4428-8b4c-1c069143580a(23) : error C2668: 'sqrt' : ambiguous call to overloaded function
        S:\checker\compile\vc10\include\math.h(589): could be 'long double sqrt(long double)'
        S:\checker\compile\vc10\include\math.h(541): or       'float sqrt(float)'
        S:\checker\compile\vc10\include\math.h(127): or       'double sqrt(double)'
        while trying to match the argument list '(long)'


Re: Compilation Error!!!!!
Posted by theVisibleNutrino 29 Dec 2011 20:01
use double or float as datatype as prototype for sqrt() requires non-int types. you have probably used int for d no whose sqrt is found.