0_0_30014523_27649.cpp: In function 'int main()':
0_0_30014523_27649.cpp:114:28: error: no matching function for call to 'sqrt(ll&, double)'
ll d2=sqrt(n,0.5);
^
0_0_30014523_27649.cpp:114:28: note: candidates are:
In file included from GCC4.9.2/x86_64-w64-mingw32/include/c++/cmath:44:0,
from GCC4.9.2/x86_64-w64-mingw32/include/c++/random:38,
from GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/stl_algo.h:66,
from GCC4.9.2/x86_64-w64-mingw32/include/c++/algorithm:62,
from 0_0_30014523_27649.cpp:2:
GCC4.9.2/x86_64-w64-mingw32/include/math.h:152:18: note: double sqrt(double)
double __cdecl sqrt(double _X);
^
GCC4.9.2/x86_64-w64-mingw32/include/math.h:152:18: note: candidate expects 1 argument, 2 provided
In file included from GCC4.9.2/x86_64-w64-mingw32/include/c++/random:38:0,
from GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/stl_algo.h:66,
from GCC4.9.2/x86_64-w64-mingw32/include/c++/algorithm:62,
from 0_0_30014523_27649.cpp:2:
GCC4.9.2/x86_64-w64-mingw32/include/c++/cmath:494:5: note: template<class _Tp> constexpr typename __gnu_cxx::__enable_if<std::__is_integer<_Tp>::__value, double>::__type std::sqrt(_Tp)
sqrt(_Tp __x)
^
GCC4.9.2/x86_64-w64-mingw32/include/c++/cmath:494:5: note: template argument deduction/substitution failed:
0_0_30014523_27649.cpp:114:28: note: candidate expects 1 argument, 2 provided
ll d2=sqrt(n,0.5);
^
In file included from GCC4.9.2/x86_64-w64-mingw32/include/c++/random:38:0,
from GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/stl_algo.h:66,
from GCC4.9.2/x86_64-w64-mingw32/include/c++/algorithm:62,
from 0_0_30014523_27649.cpp:2:
GCC4.9.2/x86_64-w64-mingw32/include/c++/cmath:486:3: note: constexpr long double std::sqrt(long double)
sqrt(long double __x)
^
GCC4.9.2/x86_64-w64-mingw32/include/c++/cmath:486:3: note: candidate expects 1 argument, 2 provided
GCC4.9.2/x86_64-w64-mingw32/include/c++/cmath:482:3: note: constexpr float std::sqrt(float)
sqrt(float __x)
^
GCC4.9.2/x86_64-w64-mingw32/include/c++/cmath:482:3: note: candidate expects 1 argument, 2 provided
|