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

do you really use Visual C++ 6.0 compiler?
Posted by tjq(killer of zju) 9 Oct 2000 10:12
I try to use sqrt(l) in my program, l is a long int, but
the compiler reported amibigous call:
temp\3122(13) : error C2668: 'sqrt' : ambiguous call to
overloaded function
while I compile it in my VC6, it's all ok,

and when I use hypot function, it reported linker error:
3589.obj : error LNK2001: unresolved external symbol _hypot
temp/3589.exe : fatal error LNK1120: 1 unresolved externals
that means you have the function in your header file, but
you cut it in your library file or you delete the whole
library, it's terrible, I don't know for any reason it can
become a restricted function.
Re: do you really use Visual C++ 6.0 compiler?
Posted by longman cheng(@Killer team of ZJU) 9 Oct 2000 11:45
as i remember,the ANSI sqrt() is :

double sqrt(double x)