0_0_21650633_18762.cpp: In function 'double dist(double, double)':
0_0_21650633_18762.cpp:6:31: error: no matching function for call to 'sqrt(__gnu_cxx::__promote_2<double, int, double, double>::__type, __gnu_cxx::__promote_2<double, int, double, double>::__type)'
return sqrt(pow(x,2),pow(y,2));
^
0_0_21650633_18762.cpp:6:31: 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++/x86_64-w64-mingw32/bits/stdc++.h:41,
from 0_0_21650633_18762.cpp:1:
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++/valarray:587:0,
from GCC4.9.2/x86_64-w64-mingw32/include/c++/x86_64-w64-mingw32/bits/stdc++.h:94,
from 0_0_21650633_18762.cpp:1:
GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/valarray_after.h:455:5: note: template<class _Tp> std::_Expr<std::_UnClos<std::_Sqrt, std::_ValArray, _Tp>, _Tp> std::sqrt(const std::valarray<_Tp>&)
_DEFINE_EXPR_UNARY_FUNCTION(sqrt, _Sqrt)
^
GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/valarray_after.h:455:5: note: template argument deduction/substitution failed:
0_0_21650633_18762.cpp:6:31: note: mismatched types 'const std::valarray<_Tp>' and '__gnu_cxx::__promote_2<double, int, double, double>::__type {aka double}'
return sqrt(pow(x,2),pow(y,2));
^
In file included from GCC4.9.2/x86_64-w64-mingw32/include/c++/valarray:587:0,
from GCC4.9.2/x86_64-w64-mingw32/include/c++/x86_64-w64-mingw32/bits/stdc++.h:94,
from 0_0_21650633_18762.cpp:1:
GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/valarray_after.h:455:5: note: template<class _Dom> std::_Expr<std::_UnClos<std::_Sqrt, std::_Expr, _Dom>, typename _Dom::value_type> std::sqrt(const std::_Expr<_Dom1, typename _Dom1::value_type>&)
_DEFINE_EXPR_UNARY_FUNCTION(sqrt, _Sqrt)
^
GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/valarray_after.h:455:5: note: template argument deduction/substitution failed:
0_0_21650633_18762.cpp:6:31: note: mismatched types 'const std::_Expr<_Dom1, typename _Dom1::value_type>' and '__gnu_cxx::__promote_2<double, int, double, double>::__type {aka double}'
return sqrt(pow(x,2),pow(y,2));
^
In file included from GCC4.9.2/x86_64-w64-mingw32/include/c++/ccomplex:38:0,
from GCC4.9.2/x86_64-w64-mingw32/include/c++/x86_64-w64-mingw32/bits/stdc++.h:52,
from 0_0_21650633_18762.cpp:1:
GCC4.9.2/x86_64-w64-mingw32/include/c++/complex:889:5: note: template<class _Tp> std::complex<_Tp> std::sqrt(const std::complex<_Tp>&)
sqrt(const complex<_Tp>& __z) { return __complex_sqrt(__z.__rep()); }
^
GCC4.9.2/x86_64-w64-mingw32/include/c++/complex:889:5: note: template argument deduction/substitution failed:
0_0_21650633_18762.cpp:6:31: note: mismatched types 'const std::complex<_Tp>' and '__gnu_cxx::__promote_2<double, int, double, double>::__type {aka double}'
return sqrt(pow(x,2),pow(y,2));
^
In file included from GCC4.9.2/x86_64-w64-mingw32/include/c++/x86_64-w64-mingw32/bits/stdc++.h:41:0,
from 0_0_21650633_18762.cpp:1:
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_21650633_18762.cpp:6:31: note: candidate expects 1 argument, 2 provided
return sqrt(pow(x,2),pow(y,2));
^
In file included from GCC4.9.2/x86_64-w64-mingw32/include/c++/x86_64-w64-mingw32/bits/stdc++.h:41:0,
from 0_0_21650633_18762.cpp:1:
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
0_0_21650633_18762.cpp: In function 'int main()':
0_0_21650633_18762.cpp:17:18: error: 'eps' was not declared in this scope
if (fabs(d0) < eps)
^
|