Stačiakampio paklaida
- [1] 2017-11-04 12:07 (34.1)
- [2] 2017-11-04 12:09 (34.1)
- [3] 2017-11-04 13:30 (34.1)
- [4] 2017-11-04 13:32 (34.1)
- [5] 2017-11-04 13:35 (0)
- [6] 2017-11-04 13:36 (34.1)
Taškai: 0
Compile: FAIL
paklaida.cpp: In function ‘int main()’: paklaida.cpp:23:103: error: no matching function for call to ‘pow(const long double&)’ minLength = sqrt(pow(a, 2) + pow(min(min(abs(f - c), abs(f - d)), min(abs(e - c), abs(e - d)))), 2)); ^ In file included from /usr/include/features.h:367:0, from /usr/include/assert.h:35, from /usr/include/c++/5/cassert:43, from /usr/include/x86_64-linux-gnu/c++/5/bits/stdc++.h:33, from paklaida.cpp:1: /usr/include/x86_64-linux-gnu/bits/mathcalls.h:153:1: note: candidate: double pow(double, double) __MATHCALL_VEC (pow,, (_Mdouble_ __x, _Mdouble_ __y)); ^ /usr/include/x86_64-linux-gnu/bits/mathcalls.h:153:1: note: candidate expects 2 arguments, 1 provided In file included from /usr/include/c++/5/valarray:587:0, from /usr/include/x86_64-linux-gnu/c++/5/bits/stdc++.h:94, from paklaida.cpp:1: /usr/include/c++/5/bits/valarray_after.h:544:1: note: candidate: template<class _Tp> std::_Expr<std::_BinClos<std::_Pow, std::_Constant, std::_ValArray, _Tp, _Tp>, _Tp> std::pow(const _Tp&, const std::valarray<_Tp>&) _DEFINE_EXPR_BINARY_FUNCTION(pow, _Pow) ^ /usr/include/c++/5/bits/valarray_after.h:544:1: note: template argument deduction/substitution failed: paklaida.cpp:23:103: note: candidate expects 2 arguments, 1 provided minLength = sqrt(pow(a, 2) + pow(min(min(abs(f - c), abs(f - d)), min(abs(e - c), abs(e - d)))), 2)); ^ In file included from /usr/include/c++/5/valarray:587:0, from /usr/include/x86_64-linux-gnu/c++/5/bits/stdc++.h:94, from paklaida.cpp:1: /usr/include/c++/5/bits/valarray_after.h:544:1: note: candidate: template<class _Tp> std::_Expr<std::_BinClos<std::_Pow, std::_ValArray, std::_Constant, _Tp, _Tp>, _Tp> std::pow(const std::valarray<_Tp>&, const _Tp&) _DEFINE_EXPR_BINARY_FUNCTION(pow, _Pow) ^ /usr/include/c++/5/bits/valarray_after.h:544:1: note: template argument deduction/substitution failed: paklaida.cpp:23:103: note: mismatched types ‘const std::valarray<_Tp>’ and ‘const long double’ minLength = sqrt(pow(a, 2) + pow(min(min(abs(f - c), abs(f - d)), min(abs(e - c), abs(e - d)))), 2)); ^ In file included from /usr/include/c++/5/valarray:587:0, from /usr/include/x86_64-linux-gnu/c++/5/bits/stdc++.h:94, from paklaida.cpp:1: /usr/include/c++/5/bits/valarray_after.h:544:1: note: candidate: template<class _Tp> std::_Expr<std::_BinClos<std::_Pow, std::_ValArray, std::_ValArray, _Tp, _Tp>, _Tp> std::pow(const std::valarray<_Tp>&, const std::valarray<_Tp>&) _DEFINE_EXPR_BINARY_FUNCTION(pow, _Pow) ^ /usr/include/c++/5/bits/valarray_after.h:544:1: note: template argument deduction/substitution failed: paklaida.cpp:23:103: note: mismatched types ‘const std::valarray<_Tp>’ and ‘const long double’ minLength = sqrt(pow(a, 2) + pow(min(min(abs(f - c), abs(f - d)), min(abs(e - c), abs(e - d)))), 2)); ^ In file included from /usr/include/c++/5/valarray:587:0, from /usr/include/x86_64-linux-gnu/c++/5/bits/stdc++.h:94, from paklaida.cpp:1: /usr/include/c++/5/bits/valarray_after.h:544:1: note: candidate: template<class _Dom> std::_Expr<std::_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>&) _DEFINE_EXPR_BINARY_FUNCTION(pow, _Pow) ^ /usr/include/c++/5/bits/valarray_after.h:544:1: note: template argument deduction/substitution failed: paklaida.cpp:23:103: note: candidate expects 2 arguments, 1 provided minLength = sqrt(pow(a, 2) + pow(min(min(abs(f - c), abs(f - d)), min(abs(e - c), abs(e - d)))), 2)); ^ In file included from /usr/include/c++/5/valarray:587:0, from /usr/include/x86_64-linux-gnu/c++/5/bits/stdc++.h:94, from paklaida.cpp:1: /usr/include/c++/5/bits/valarray_after.h:544:1: note: candidate: template<class _Dom> std::_Expr<std::_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&) _DEFINE_EXPR_BINARY_FUNCTION(pow, _Pow) ^ /usr/include/c++/5/bits/valarray_after.h:544:1: note: template argument deduction/substitution failed: paklaida.cpp:23:103: note: mismatched types ‘const std::_Expr<_Dom1, typename _Dom1::value_type>’ and ‘const long double’ minLength = sqrt(pow(a, 2) + pow(min(min(abs(f - c), abs(f - d)), min(abs(e - c), abs(e - d)))), 2)); ^ In file included from /usr/include/c++/5/valarray:587:0, from /usr/include/x86_64-linux-gnu/c++/5/bits/stdc++.h:94, from paklaida.cpp:1: /usr/include/c++/5/bits/valarray_after.h:544:1: note: candidate: template<class _Dom> std::_Expr<std::_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>&) _DEFINE_EXPR_BINARY_FUNCTION(pow, _Pow) ^ /usr/include/c++/5/bits/valarray_after.h:544:1: note: template argument deduction/substitution failed: paklaida.cpp:23:103: note: candidate expects 2 arguments, 1 provided minLength = sqrt(pow(a, 2) + pow(min(min(abs(f - c), abs(f - d)), min(abs(e - c), abs(e - d)))), 2)); ^ In file included from /usr/include/c++/5/valarray:587:0, from /usr/include/x86_64-linux-gnu/c++/5/bits/stdc++.h:94, from paklaida.cpp:1: /usr/include/c++/5/bits/valarray_after.h:544:1: note: candidate: template<class _Dom> std::_Expr<std::_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>&) _DEFINE_EXPR_BINARY_FUNCTION(pow, _Pow) ^ /usr/include/c++/5/bits/valarray_after.h:544:1: note: template argument deduction/substitution failed: paklaida.cpp:23:103: note: mismatched types ‘const std::_Expr<_Dom1, typename _Dom1::value_type>’ and ‘const long double’ minLength = sqrt(pow(a, 2) + pow(min(min(abs(f - c), abs(f - d)), min(abs(e - c), abs(e - d)))), 2)); ^ In file included from /usr/include/c++/5/valarray:587:0, from /usr/include/x86_64-linux-gnu/c++/5/bits/stdc++.h:94, from paklaida.cpp:1: /usr/include/c++/5/bits/valarray_after.h:544:1: note: candidate: template<class _Dom1, class _Dom2> std::_Expr<std::_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>&) _DEFINE_EXPR_BINARY_FUNCTION(pow, _Pow) ^ /usr/include/c++/5/bits/valarray_after.h:544:1: note: template argument deduction/substitution failed: paklaida.cpp:23:103: note: mismatched types ‘const std::_Expr<_Dom1, typename _Dom1::value_type>’ and ‘const long double’ minLength = sqrt(pow(a, 2) + pow(min(min(abs(f - c), abs(f - d)), min(abs(e - c), abs(e - d)))), 2)); ^ In file included from /usr/include/c++/5/ccomplex:38:0, from /usr/include/x86_64-linux-gnu/c++/5/bits/stdc++.h:52, from paklaida.cpp:1: /usr/include/c++/5/complex:1875: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>&) pow(const std::complex<_Tp>& __x, const std::complex<_Up>& __y) ^ /usr/include/c++/5/complex:1875:5: note: template argument deduction/substitution failed: paklaida.cpp:23:103: note: mismatched types ‘const std::complex<_Tp>’ and ‘const long double’ minLength = sqrt(pow(a, 2) + pow(min(min(abs(f - c), abs(f - d)), min(abs(e - c), abs(e - d)))), 2)); ^ In file included from /usr/include/c++/5/ccomplex:38:0, from /usr/include/x86_64-linux-gnu/c++/5/bits/stdc++.h:52, from paklaida.cpp:1: /usr/include/c++/5/complex:1867: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>&) pow(const _Tp& __x, const std::complex<_Up>& __y) ^ /usr/include/c++/5/complex:1867:5: note: template argument deduction/substitution failed: paklaida.cpp:23:103: note: candidate expects 2 arguments, 1 provided minLength = sqrt(pow(a, 2) + pow(min(min(abs(f - c), abs(f - d)), min(abs(e - c), abs(e - d)))), 2)); ^ In file included from /usr/include/c++/5/ccomplex:38:0, from /usr/include/x86_64-linux-gnu/c++/5/bits/stdc++.h:52, from paklaida.cpp:1: /usr/include/c++/5/complex:1859: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&) pow(const std::complex<_Tp>& __x, const _Up& __y) ^ /usr/include/c++/5/complex:1859:5: note: template argument deduction/substitution failed: paklaida.cpp:23:103: note: mismatched types ‘const std::complex<_Tp>’ and ‘const long double’ minLength = sqrt(pow(a, 2) + pow(min(min(abs(f - c), abs(f - d)), min(abs(e - c), abs(e - d)))), 2)); ^ In file included from /usr/include/c++/5/ccomplex:38:0, from /usr/include/x86_64-linux-gnu/c++/5/bits/stdc++.h:52, from paklaida.cpp:1: /usr/include/c++/5/complex:1038:5: note: candidate: template<class _Tp> std::complex<_Tp> std::pow(const _Tp&, const std::complex<_Tp>&) pow(const _Tp& __x, const complex<_Tp>& __y) ^ /usr/include/c++/5/complex:1038:5: note: template argument deduction/substitution failed: paklaida.cpp:23:103: note: candidate expects 2 arguments, 1 provided minLength = sqrt(pow(a, 2) + pow(min(min(abs(f - c), abs(f - d)), min(abs(e - c), abs(e - d)))), 2)); ^ In file included from /usr/include/c++/5/ccomplex:38:0, from /usr/include/x86_64-linux-gnu/c++/5/bits/stdc++.h:52, from paklaida.cpp:1: /usr/include/c++/5/complex:1027:5: note: candidate: template<class _Tp> std::complex<_Tp> std::pow(const std::complex<_Tp>&, const std::complex<_Tp>&) pow(const complex<_Tp>& __x, const complex<_Tp>& __y) ^ /usr/include/c++/5/complex:1027:5: note: template argument deduction/substitution failed: paklaida.cpp:23:103: note: mismatched types ‘const std::complex<_Tp>’ and ‘const long double’ minLength = sqrt(pow(a, 2) + pow(min(min(abs(f - c), abs(f - d)), min(abs(e - c), abs(e - d)))), 2)); ^ In file included from /usr/include/c++/5/ccomplex:38:0, from /usr/include/x86_64-linux-gnu/c++/5/bits/stdc++.h:52, from paklaida.cpp:1: /usr/include/c++/5/complex:993:5: note: candidate: template<class _Tp> std::complex<_Tp> std::pow(const std::complex<_Tp>&, const _Tp&) pow(const complex<_Tp>& __x, const _Tp& __y) ^ /usr/include/c++/5/complex:993:5: note: template argument deduction/substitution failed: paklaida.cpp:23:103: note: mismatched types ‘const std::complex<_Tp>’ and ‘const long double’ minLength = sqrt(pow(a, 2) + pow(min(min(abs(f - c), abs(f - d)), min(abs(e - c), abs(e - d)))), 2)); ^ In file included from /usr/include/c++/5/ccomplex:38:0, from /usr/include/x86_64-linux-gnu/c++/5/bits/stdc++.h:52, from paklaida.cpp:1: /usr/include/c++/5/complex:984:5: note: candidate: template<class _Tp> std::complex<_Tp> std::pow(const std::complex<_Tp>&, int) pow(const complex<_Tp>& __z, int __n) ^ /usr/include/c++/5/complex:984:5: note: template argument deduction/substitution failed: paklaida.cpp:23:103: note: mismatched types ‘const std::complex<_Tp>’ and ‘const long double’ minLength = sqrt(pow(a, 2) + pow(min(min(abs(f - c), abs(f - d)), min(abs(e - c), abs(e - d)))), 2)); ^ In file included from /usr/include/x86_64-linux-gnu/c++/5/bits/stdc++.h:41:0, from paklaida.cpp:1: /usr/include/c++/5/cmath:434:5: note: candidate: template<class _Tp, class _Up> constexpr typename __gnu_cxx::__promote_2<_Tp, _Up>::__type std::pow(_Tp, _Up) pow(_Tp __x, _Up __y) ^ /usr/include/c++/5/cmath:434:5: note: template argument deduction/substitution failed: paklaida.cpp:23:103: note: candidate expects 2 arguments, 1 provided minLength = sqrt(pow(a, 2) + pow(min(min(abs(f - c), abs(f - d)), min(abs(e - c), abs(e - d)))), 2)); ^ In file included from /usr/include/x86_64-linux-gnu/c++/5/bits/stdc++.h:41:0, from paklaida.cpp:1: /usr/include/c++/5/cmath:411:3: note: candidate: constexpr long double std::pow(long double, long double) pow(long double __x, long double __y) ^ /usr/include/c++/5/cmath:411:3: note: candidate expects 2 arguments, 1 provided /usr/include/c++/5/cmath:407:3: note: candidate: constexpr float std::pow(float, float) pow(float __x, float __y) ^ /usr/include/c++/5/cmath:407:3: note: candidate expects 2 arguments, 1 provided
nr. | result | time | message |
---|