foo.cc: In function 'int main()':
foo.cc:12:41: error: no matching function for call to 'pow(__gnu_cxx::__enable_if<true, double>::__type)'
12 | cout << (1/sqrt(5))*((pow((sqrt(5)+1)/2),n)-(pow((1-sqrt(5)/2),n)));
| ^
In file included from /usr/include/features.h:461,
from /usr/include/x86_64-linux-gnu/c++/9/bits/os_defines.h:39,
from /usr/include/x86_64-linux-gnu/c++/9/bits/c++config.h:524,
from /usr/include/c++/9/cassert:43,
from /usr/include/x86_64-linux-gnu/c++/9/bits/stdc++.h:33,
from foo.cc:1:
/usr/include/x86_64-linux-gnu/bits/mathcalls.h:140:1: note: candidate: 'double pow(double, double)'
140 | __MATHCALL_VEC (pow,, (_Mdouble_ __x, _Mdouble_ __y));
| ^~~~~~~~~~~~~~
/usr/include/x86_64-linux-gnu/bits/mathcalls.h:140:1: note: candidate expects 2 arguments, 1 provided
In file included from /usr/include/c++/9/valarray:603,
from /usr/include/x86_64-linux-gnu/c++/9/bits/stdc++.h:95,
from foo.cc:1:
/usr/include/c++/9/bits/valarray_after.h:549:1: note: candidate: 'template<class _Tp> std::_Expr<std::__detail::_BinClos<std::_Pow, std::_Constant, std::_ValArray, _Tp, _Tp>, _Tp> std::pow(const typename std::valarray<_Tp>::value_type&, const std::valarray<_Tp>&)'
549 | _DEFINE_EXPR_BINARY_FUNCTION(pow, _Pow)
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~
/usr/include/c++/9/bits/valarray_after.h:549:1: note: template argument deduction/substitution failed:
foo.cc:12:41: note: candidate expects 2 arguments, 1 provided
12 | cout << (1/sqrt(5))*((pow((sqrt(5)+1)/2),n)-(pow((1-sqrt(5)/2),n)));
| ^
In file included from /usr/include/c++/9/valarray:603,
from /usr/include/x86_64-linux-gnu/c++/9/bits/stdc++.h:95,
from foo.cc:1:
/usr/include/c++/9/bits/valarray_after.h:549:1: note: candidate: 'template<class _Tp> std::_Expr<std::__detail::_BinClos<std::_Pow, std::_ValArray, std::_Constant, _Tp, _Tp>, _Tp> std::pow(const std::valarray<_Tp>&, const typename std::valarray<_Tp>::value_type&)'
549 | _DEFINE_EXPR_BINARY_FUNCTION(pow, _Pow)
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~
/usr/include/c++/9/bits/valarray_after.h:549:1: note: template argument deduction/substitution failed:
foo.cc:12:41: note: mismatched types 'const std::valarray<_Tp>' and '__gnu_cxx::__enable_if<true, double>::__type' {aka 'double'}
12 | cout << (1/sqrt(5))*((pow((sqrt(5)+1)/2),n)-(pow((1-sqrt(5)/2),n)));
| ^
In file included from /usr/include/c++/9/valarray:603,
from /usr/include/x86_64-linux-gnu/c++/9/bits/stdc++.h:95,
from foo.cc:1:
/usr/include/c++/9/bits/valarray_after.h:549:1: note: candidate: 'template<class _Tp> std::_Expr<std::__detail::_BinClos<std::_Pow, std::_ValArray, std::_ValArray, _Tp, _Tp>, _Tp> std::pow(const std::valarray<_Tp>&, const std::valarray<_Tp>&)'
549 | _DEFINE_EXPR_BINARY_FUNCTION(pow, _Pow)
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~
/usr/include/c++/9/bits/valarray_after.h:549:1: note: template argument deduction/substitution failed:
foo.cc:12:41: note: mismatched types 'const std::valarray<_Tp>' and '__gnu_cxx::__enable_if<true, double>::__type' {aka 'double'}
12 | cout << (1/sqrt(5))*((pow((sqrt(5)+1)/2),n)-(pow((1-sqrt(5)/2),n)));
| ^
In file included from /usr/include/c++/9/valarray:603,
from /usr/include/x86_64-linux-gnu/c++/9/bits/stdc++.h:95,
from foo.cc:1:
/usr/include/c++/9/bits/valarray_after.h:549:1: note: candidate: 'template<class _Dom> std::_Expr<std::__detail::_BinClos<std::_Pow, std::_Constant, std::_Expr, typename _Dom::value_type, _Dom>, typename _Dom::value_type> std::pow(const typename _Dom::value_type&, const std::_Expr<_Dom1, typename _Dom1::value_type>&)'
549 | _DEFINE_EXPR_BINARY_FUNCTION(pow, _Pow)
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~
/usr/include/c++/9/bits/valarray_after.h:549:1: note: template argument deduction/substitution failed:
foo.cc:12:41: note: candidate expects 2 arguments, 1 provided
12 | cout << (1/sqrt(5))*((pow((sqrt(5)+1)/2),n)-(pow((1-sqrt(5)/2),n)));
| ^
In file included from /usr/include/c++/9/valarray:603,
from /usr/include/x86_64-linux-gnu/c++/9/bits/stdc++.h:95,
from foo.cc:1:
/usr/include/c++/9/bits/valarray_after.h:549:1: note: candidate: 'template<class _Dom> std::_Expr<std::__detail::_BinClos<std::_Pow, std::_Expr, std::_Constant, _Dom, typename _Dom::value_type>, typename _Dom::value_type> std::pow(const std::_Expr<_Dom1, typename _Dom1::value_type>&, const typename _Dom::value_type&)'
549 | _DEFINE_EXPR_BINARY_FUNCTION(pow, _Pow)
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~
/usr/include/c++/9/bits/valarray_after.h:549:1: note: template argument deduction/substitution failed:
foo.cc:12:41: note: mismatched types 'const std::_Expr<_Dom1, typename _Dom1::value_type>' and '__gnu_cxx::__enable_if<true, double>::__type' {aka 'double'}
12 | cout << (1/sqrt(5))*((pow((sqrt(5)+1)/2),n)-(pow((1-sqrt(5)/2),n)));
| ^
In file included from /usr/include/c++/9/valarray:603,
from /usr/include/x86_64-linux-gnu/c++/9/bits/stdc++.h:95,
from foo.cc:1:
/usr/include/c++/9/bits/valarray_after.h:549:1: note: candidate: 'template<class _Dom> std::_Expr<std::__detail::_BinClos<std::_Pow, std::_ValArray, std::_Expr, typename _Dom::value_type, _Dom>, typename _Dom::value_type> std::pow(const std::valarray<typename _Dom::valarray>&, const std::_Expr<_Dom1, typename _Dom1::value_type>&)'
549 | _DEFINE_EXPR_BINARY_FUNCTION(pow, _Pow)
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~
/usr/include/c++/9/bits/valarray_after.h:549:1: note: template argument deduction/substitution failed:
foo.cc:12:41: note: candidate expects 2 arguments, 1 provided
12 | cout << (1/sqrt(5))*((pow((sqrt(5)+1)/2),n)-(pow((1-sqrt(5)/2),n)));
| ^
In file included from /usr/include/c++/9/valarray:603,
from /usr/include/x86_64-linux-gnu/c++/9/bits/stdc++.h:95,
from foo.cc:1:
/usr/include/c++/9/bits/valarray_after.h:549:1: note: candidate: 'template<class _Dom> std::_Expr<std::__detail::_BinClos<std::_Pow, std::_Expr, std::_ValArray, _Dom, typename _Dom::value_type>, typename _Dom::value_type> std::pow(const std::_Expr<_Dom1, typename _Dom1::value_type>&, const std::valarray<typename _Dom::value_type>&)'
549 | _DEFINE_EXPR_BINARY_FUNCTION(pow, _Pow)
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~
/usr/include/c++/9/bits/valarray_after.h:549:1: note: template argument deduction/substitution failed:
foo.cc:12:41: note: mismatched types 'const std::_Expr<_Dom1, typename _Dom1::value_type>' and '__gnu_cxx::__enable_if<true, double>::__type' {aka 'double'}
12 | cout << (1/sqrt(5))*((pow((sqrt(5)+1)/2),n)-(pow((1-sqrt(5)/2),n)));
| ^
In file included from /usr/include/c++/9/valarray:603,
from /usr/include/x86_64-linux-gnu/c++/9/bits/stdc++.h:95,
from foo.cc:1:
/usr/include/c++/9/bits/valarray_after.h:549:1: note: candidate: 'template<class _Dom1, class _Dom2> std::_Expr<std::__detail::_BinClos<std::_Pow, std::_Expr, std::_Expr, _Dom1, _Dom2>, typename _Dom1::value_type> std::pow(const std::_Expr<_Dom1, typename _Dom1::value_type>&, const std::_Expr<_Dom2, typename _Dom2::value_type>&)'
549 | _DEFINE_EXPR_BINARY_FUNCTION(pow, _Pow)
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~
/usr/include/c++/9/bits/valarray_after.h:549:1: note: template argument deduction/substitution failed:
foo.cc:12:41: note: mismatched types 'const std::_Expr<_Dom1, typename _Dom1::value_type>' and '__gnu_cxx::__enable_if<true, double>::__type' {aka 'double'}
12 | cout << (1/sqrt(5))*((pow((sqrt(5)+1)/2),n)-(pow((1-sqrt(5)/2),n)));
| ^
In file included from /usr/include/c++/9/ccomplex:39,
from /usr/include/x86_64-linux-gnu/c++/9/bits/stdc++.h:54,
from foo.cc:1:
/usr/include/c++/9/complex:1893:5: note: candidate: 'template<class _Tp, class _Up> std::complex<typename __gnu_cxx::__promote_2<_Tp, _Up>::__type> std::pow(const std::complex<_Tp>&, const std::complex<_Up>&)'
1893 | pow(const std::complex<_Tp>& __x, const std::complex<_Up>& __y)
| ^~~
/usr/include/c++/9/complex:1893:5: note: template argument deduction/substitution failed:
foo.cc:12:41: note: mismatched types 'const std::complex<_Tp>' and '__gnu_cxx::__enable_if<true, double>::__type' {aka 'double'}
12 | cout << (1/sqrt(5))*((pow((sqrt(5)+1)/2),n)-(pow((1-sqrt(5)/2),n)));
| ^
In file included from /usr/include/c++/9/ccomplex:39,
from /usr/include/x86_64-linux-gnu/c++/9/bits/stdc++.h:54,
from foo.cc:1:
/usr/include/c++/9/complex:1885:5: note: candidate: 'template<class _Tp, class _Up> std::complex<typename __gnu_cxx::__promote_2<_Tp, _Up>::__type> std::pow(const _Tp&, const std::complex<_Up>&)'
1885 | pow(const _Tp& __x, const std::complex<_Up>& __y)
| ^~~
/usr/include/c++/9/complex:1885:5: note: template argument deduction/substitution failed:
foo.cc:12:41: note: candidate expects 2 arguments, 1 provided
12 | cout << (1/sqrt(5))*((pow((sqrt(5)+1)/2),n)-(pow((1-sqrt(5)/2),n)));
| ^
In file included from /usr/include/c++/9/ccomplex:39,
from /usr/include/x86_64-linux-gnu/c++/9/bits/stdc++.h:54,
from foo.cc:1:
/usr/include/c++/9/complex:1877:5: note: candidate: 'template<class _Tp, class _Up> std::complex<typename __gnu_cxx::__promote_2<_Tp, _Up>::__type> std::pow(const std::complex<_Tp>&, const _Up&)'
1877 | pow(const std::complex<_Tp>& __x, const _Up& __y)
| ^~~
/usr/include/c++/9/complex:1877:5: note: template argument deduction/substitution failed:
foo.cc:12:41: note: mismatched types 'const std::complex<_Tp>' and '__gnu_cxx::__enable_if<true, double>::__type' {aka 'double'}
12 | cout << (1/sqrt(5))*((pow((sqrt(5)+1)/2),n)-(pow((1-sqrt(5)/2),n)));
| ^
In file included from /usr/include/c++/9/ccomplex:39,
from /usr/include/x86_64-linux-gnu/c++/9/bits/stdc++.h:54,
from foo.cc:1:
/usr/include/c++/9/complex:1070:5: note: candidate: 'template<class _Tp> std::complex<_Tp> std::pow(const _Tp&, const std::complex<_Tp>&)'
1070 | pow(const _Tp& __x, const complex<_Tp>& __y)
| ^~~
/usr/include/c++/9/complex:1070:5: note: template argument deduction/substitution failed:
foo.cc:12:41: note: candidate expects 2 arguments, 1 provided
12 | cout << (1/sqrt(5))*((pow((sqrt(5)+1)/2),n)-(pow((1-sqrt(5)/2),n)));
| ^
In file included from /usr/include/c++/9/ccomplex:39,
from /usr/include/x86_64-linux-gnu/c++/9/bits/stdc++.h:54,
from foo.cc:1:
/usr/include/c++/9/complex:1059:5: note: candidate: 'template<class _Tp> std::complex<_Tp> std::pow(const std::complex<_Tp>&, const std::complex<_Tp>&)'
1059 | pow(const complex<_Tp>& __x, const complex<_Tp>& __y)
| ^~~
/usr/include/c++/9/complex:1059:5: note: template argument deduction/substitution failed:
foo.cc:12:41: note: mismatched types 'const std::complex<_Tp>' and '__gnu_cxx::__enable_if<true, double>::__type' {aka 'double'}
12 | cout << (1/sqrt(5))*((pow((sqrt(5)+1)/2),n)-(pow((1-sqrt(5)/2),n)));
| ^
In file included from /usr/include/c++/9/ccomplex:39,
from /usr/include/x86_64-linux-gnu/c++/9/bits/stdc++.h:54,
from foo.cc:1:
/usr/include/c++/9/complex:1025:5: note: candidate: 'template<class _Tp> std::complex<_Tp> std::pow(const std::complex<_Tp>&, const _Tp&)'
1025 | pow(const complex<_Tp>& __x, const _Tp& __y)
| ^~~
/usr/include/c++/9/complex:1025:5: note: template argument deduction/substitution failed:
foo.cc:12:41: note: mismatched types 'const std::complex<_Tp>' and '__gnu_cxx::__enable_if<true, double>::__type' {aka 'double'}
12 | cout << (1/sqrt(5))*((pow((sqrt(5)+1)/2),n)-(pow((1-sqrt(5)/2),n)));
| ^
In file included from /usr/include/c++/9/ccomplex:39,
from /usr/include/x86_64-linux-gnu/c++/9/bits/stdc++.h:54,
from foo.cc:1:
/usr/include/c++/9/complex:1016:5: note: candidate: 'template<class _Tp> std::complex<_Tp> std::pow(const std::complex<_Tp>&, int)'
1016 | pow(const complex<_Tp>& __z, int __n)
| ^~~
/usr/include/c++/9/complex:1016:5: note: template argument deduction/substitution failed:
foo.cc:12:41: note: mismatched types 'const std::complex<_Tp>' and '__gnu_cxx::__enable_if<true, double>::__type' {aka 'double'}
12 | cout << (1/sqrt(5))*((pow((sqrt(5)+1)/2),n)-(pow((1-sqrt(5)/2),n)));
| ^
In file included from /usr/include/x86_64-linux-gnu/c++/9/bits/stdc++.h:41,
from foo.cc:1:
/usr/include/c++/9/cmath:415:5: note: candidate: 'template<class _Tp, class _Up> constexpr typename __gnu_cxx::__promote_2<_Tp, _Up>::__type std::pow(_Tp, _Up)'
415 | pow(_Tp __x, _Up __y)
| ^~~
/usr/include/c++/9/cmath:415:5: note: template argument deduction/substitution failed:
foo.cc:12:41: note: candidate expects 2 arguments, 1 provided
12 | cout << (1/sqrt(5))*((pow((sqrt(5)+1)/2),n)-(pow((1-sqrt(5)/2),n)));
| ^
In file included from /usr/include/x86_64-linux-gnu/c++/9/bits/stdc++.h:41,
from foo.cc:1:
/usr/include/c++/9/cmath:392:3: note: candidate: 'constexpr long double std::pow(long double, long double)'
392 | pow(long double __x, long double __y)
| ^~~
/usr/include/c++/9/cmath:392:3: note: candidate expects 2 arguments, 1 provided
/usr/include/c++/9/cmath:388:3: note: candidate: 'constexpr float std::pow(float, float)'
388 | pow(float __x, float __y)
| ^~~
/usr/include/c++/9/cmath:388:3: note: candidate expects 2 arguments, 1 provided