0_0_38632352_27770.cpp: In function 'int main()':
0_0_38632352_27770.cpp:64:45: error: no matching function for call to 'min(long long int, int&)'
if(tmp1*tmp1*tmp1*tmp1==n)ans=min(4ll,ans);
^
In file included from gcc-8.5.0/lib/gcc/x86_64-w64-mingw32/8.5.0/include/c++/bits/char_traits.h:39,
from gcc-8.5.0/lib/gcc/x86_64-w64-mingw32/8.5.0/include/c++/ios:40,
from gcc-8.5.0/lib/gcc/x86_64-w64-mingw32/8.5.0/include/c++/ostream:38,
from gcc-8.5.0/lib/gcc/x86_64-w64-mingw32/8.5.0/include/c++/iostream:39,
from 0_0_38632352_27770.cpp:1:
gcc-8.5.0/lib/gcc/x86_64-w64-mingw32/8.5.0/include/c++/bits/stl_algobase.h:195:5: note: candidate: 'template<class _Tp> constexpr const _Tp& std::min(const _Tp&, const _Tp&)'
min(const _Tp& __a, const _Tp& __b)
^~~
gcc-8.5.0/lib/gcc/x86_64-w64-mingw32/8.5.0/include/c++/bits/stl_algobase.h:195:5: note: template argument deduction/substitution failed:
0_0_38632352_27770.cpp:64:45: note: deduced conflicting types for parameter 'const _Tp' ('long long int' and 'int')
if(tmp1*tmp1*tmp1*tmp1==n)ans=min(4ll,ans);
^
In file included from gcc-8.5.0/lib/gcc/x86_64-w64-mingw32/8.5.0/include/c++/bits/char_traits.h:39,
from gcc-8.5.0/lib/gcc/x86_64-w64-mingw32/8.5.0/include/c++/ios:40,
from gcc-8.5.0/lib/gcc/x86_64-w64-mingw32/8.5.0/include/c++/ostream:38,
from gcc-8.5.0/lib/gcc/x86_64-w64-mingw32/8.5.0/include/c++/iostream:39,
from 0_0_38632352_27770.cpp:1:
gcc-8.5.0/lib/gcc/x86_64-w64-mingw32/8.5.0/include/c++/bits/stl_algobase.h:243:5: note: candidate: 'template<class _Tp, class _Compare> constexpr const _Tp& std::min(const _Tp&, const _Tp&, _Compare)'
min(const _Tp& __a, const _Tp& __b, _Compare __comp)
^~~
gcc-8.5.0/lib/gcc/x86_64-w64-mingw32/8.5.0/include/c++/bits/stl_algobase.h:243:5: note: template argument deduction/substitution failed:
0_0_38632352_27770.cpp:64:45: note: deduced conflicting types for parameter 'const _Tp' ('long long int' and 'int')
if(tmp1*tmp1*tmp1*tmp1==n)ans=min(4ll,ans);
^
0_0_38632352_27770.cpp:65:36: error: no matching function for call to 'min(long long int, int&)'
else if(sqrt3(n))ans=min(3ll,ans);
^
In file included from gcc-8.5.0/lib/gcc/x86_64-w64-mingw32/8.5.0/include/c++/bits/char_traits.h:39,
from gcc-8.5.0/lib/gcc/x86_64-w64-mingw32/8.5.0/include/c++/ios:40,
from gcc-8.5.0/lib/gcc/x86_64-w64-mingw32/8.5.0/include/c++/ostream:38,
from gcc-8.5.0/lib/gcc/x86_64-w64-mingw32/8.5.0/include/c++/iostream:39,
from 0_0_38632352_27770.cpp:1:
gcc-8.5.0/lib/gcc/x86_64-w64-mingw32/8.5.0/include/c++/bits/stl_algobase.h:195:5: note: candidate: 'template<class _Tp> constexpr const _Tp& std::min(const _Tp&, const _Tp&)'
min(const _Tp& __a, const _Tp& __b)
^~~
gcc-8.5.0/lib/gcc/x86_64-w64-mingw32/8.5.0/include/c++/bits/stl_algobase.h:195:5: note: template argument deduction/substitution failed:
0_0_38632352_27770.cpp:65:36: note: deduced conflicting types for parameter 'const _Tp' ('long long int' and 'int')
else if(sqrt3(n))ans=min(3ll,ans);
^
In file included from gcc-8.5.0/lib/gcc/x86_64-w64-mingw32/8.5.0/include/c++/bits/char_traits.h:39,
from gcc-8.5.0/lib/gcc/x86_64-w64-mingw32/8.5.0/include/c++/ios:40,
from gcc-8.5.0/lib/gcc/x86_64-w64-mingw32/8.5.0/include/c++/ostream:38,
from gcc-8.5.0/lib/gcc/x86_64-w64-mingw32/8.5.0/include/c++/iostream:39,
from 0_0_38632352_27770.cpp:1:
gcc-8.5.0/lib/gcc/x86_64-w64-mingw32/8.5.0/include/c++/bits/stl_algobase.h:243:5: note: candidate: 'template<class _Tp, class _Compare> constexpr const _Tp& std::min(const _Tp&, const _Tp&, _Compare)'
min(const _Tp& __a, const _Tp& __b, _Compare __comp)
^~~
gcc-8.5.0/lib/gcc/x86_64-w64-mingw32/8.5.0/include/c++/bits/stl_algobase.h:243:5: note: template argument deduction/substitution failed:
0_0_38632352_27770.cpp:65:36: note: deduced conflicting types for parameter 'const _Tp' ('long long int' and 'int')
else if(sqrt3(n))ans=min(3ll,ans);
^
0_0_38632352_27770.cpp:66:40: error: no matching function for call to 'min(long long int, int&)'
else if(tmp2*tmp2==n)ans=min(2ll,ans);
^
In file included from gcc-8.5.0/lib/gcc/x86_64-w64-mingw32/8.5.0/include/c++/bits/char_traits.h:39,
from gcc-8.5.0/lib/gcc/x86_64-w64-mingw32/8.5.0/include/c++/ios:40,
from gcc-8.5.0/lib/gcc/x86_64-w64-mingw32/8.5.0/include/c++/ostream:38,
from gcc-8.5.0/lib/gcc/x86_64-w64-mingw32/8.5.0/include/c++/iostream:39,
from 0_0_38632352_27770.cpp:1:
gcc-8.5.0/lib/gcc/x86_64-w64-mingw32/8.5.0/include/c++/bits/stl_algobase.h:195:5: note: candidate: 'template<class _Tp> constexpr const _Tp& std::min(const _Tp&, const _Tp&)'
min(const _Tp& __a, const _Tp& __b)
^~~
gcc-8.5.0/lib/gcc/x86_64-w64-mingw32/8.5.0/include/c++/bits/stl_algobase.h:195:5: note: template argument deduction/substitution failed:
0_0_38632352_27770.cpp:66:40: note: deduced conflicting types for parameter 'const _Tp' ('long long int' and 'int')
else if(tmp2*tmp2==n)ans=min(2ll,ans);
^
In file included from gcc-8.5.0/lib/gcc/x86_64-w64-mingw32/8.5.0/include/c++/bits/char_traits.h:39,
from gcc-8.5.0/lib/gcc/x86_64-w64-mingw32/8.5.0/include/c++/ios:40,
from gcc-8.5.0/lib/gcc/x86_64-w64-mingw32/8.5.0/include/c++/ostream:38,
from gcc-8.5.0/lib/gcc/x86_64-w64-mingw32/8.5.0/include/c++/iostream:39,
from 0_0_38632352_27770.cpp:1:
gcc-8.5.0/lib/gcc/x86_64-w64-mingw32/8.5.0/include/c++/bits/stl_algobase.h:243:5: note: candidate: 'template<class _Tp, class _Compare> constexpr const _Tp& std::min(const _Tp&, const _Tp&, _Compare)'
min(const _Tp& __a, const _Tp& __b, _Compare __comp)
^~~
gcc-8.5.0/lib/gcc/x86_64-w64-mingw32/8.5.0/include/c++/bits/stl_algobase.h:243:5: note: template argument deduction/substitution failed:
0_0_38632352_27770.cpp:66:40: note: deduced conflicting types for parameter 'const _Tp' ('long long int' and 'int')
else if(tmp2*tmp2==n)ans=min(2ll,ans);
^
|