I have a call to
long long a = sqrt(n/2);
Both a
and n
are long long
's but it won't let me compile because it says my use of sqrt()
is an ambiguous call. I don't see how it's possibly ambiguous here at all. How do I resolve this? I have the same problem with floor()
.
My includes
#include "stdafx.h"
#include <iostream>
#include <cmath>
using namespace std;
n/2
todouble
. – Ursine