|
|
back to board I somehow get a compilation error if I use sqrt(2) from math.h. Any ideas? What do you compile with? 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? Change sqrt(2) to sqrt((double)2),and it will OK. with your help,I got AC now. faint! what compiler timus uses? |
|
|