0_0_25967885_24060.cpp: In function 'int main()':
0_0_25967885_24060.cpp:54:22: error: 'd' was not declared in this scope
double h1 = sqrt(d[0] - w * w) + sqrt();
^
0_0_25967885_24060.cpp:54:43: error: no matching function for call to 'sqrt()'
double h1 = sqrt(d[0] - w * w) + sqrt();
^
0_0_25967885_24060.cpp:54:43: 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_25967885_24060.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, 0 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_25967885_24060.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_25967885_24060.cpp:54:43: note: candidate expects 1 argument, 0 provided
double h1 = sqrt(d[0] - w * w) + sqrt();
^
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_25967885_24060.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_25967885_24060.cpp:54:43: note: candidate expects 1 argument, 0 provided
double h1 = sqrt(d[0] - w * w) + sqrt();
^
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_25967885_24060.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_25967885_24060.cpp:54:43: note: candidate expects 1 argument, 0 provided
double h1 = sqrt(d[0] - w * w) + sqrt();
^
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_25967885_24060.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_25967885_24060.cpp:54:43: note: candidate expects 1 argument, 0 provided
double h1 = sqrt(d[0] - w * w) + sqrt();
^
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_25967885_24060.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, 0 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, 0 provided
0_0_25967885_24060.cpp:55:20: error: expected primary-expression before ')' token
ans = min(ans, );
^
|