I have a call
long long a = sqrt(n/2);
Both a and n are long long , but it will not allow me to compile because it says that my use of sqrt() is an ambiguous call. I do not see here, perhaps ambiguous here. How to resolve this? I have the same problem with floor() .
My includes
#include "stdafx.h" #include <iostream> #include <cmath> using namespace std;
source share