Brackets

Taškai: 0

Compile: FAIL

brackets.cpp: In function ‘long long int posekis(int, int)’: brackets.cpp:33:29: error: no matching function for call to ‘min(long long int&, int&)’ t = min(b1, D[l]); ^ In file included from /usr/include/c++/5/bits/char_traits.h:39:0, from /usr/include/c++/5/ios:40, from /usr/include/c++/5/ostream:38, from /usr/include/c++/5/iostream:39, from brackets.cpp:1: /usr/include/c++/5/bits/stl_algobase.h:195:5: note: candidate: template<class _Tp> const _Tp& std::min(const _Tp&, const _Tp&) min(const _Tp& __a, const _Tp& __b) ^ /usr/include/c++/5/bits/stl_algobase.h:195:5: note: template argument deduction/substitution failed: brackets.cpp:33:29: note: deduced conflicting types for parameter ‘const _Tp’ (‘long long int’ and ‘int’) t = min(b1, D[l]); ^ In file included from /usr/include/c++/5/bits/char_traits.h:39:0, from /usr/include/c++/5/ios:40, from /usr/include/c++/5/ostream:38, from /usr/include/c++/5/iostream:39, from brackets.cpp:1: /usr/include/c++/5/bits/stl_algobase.h:243:5: note: candidate: template<class _Tp, class _Compare> const _Tp& std::min(const _Tp&, const _Tp&, _Compare) min(const _Tp& __a, const _Tp& __b, _Compare __comp) ^ /usr/include/c++/5/bits/stl_algobase.h:243:5: note: template argument deduction/substitution failed: brackets.cpp:33:29: note: deduced conflicting types for parameter ‘const _Tp’ (‘long long int’ and ‘int’) t = min(b1, D[l]); ^ brackets.cpp:40:29: error: no matching function for call to ‘min(long long int&, int&)’ t = min(c2, K[r]); ^ In file included from /usr/include/c++/5/bits/char_traits.h:39:0, from /usr/include/c++/5/ios:40, from /usr/include/c++/5/ostream:38, from /usr/include/c++/5/iostream:39, from brackets.cpp:1: /usr/include/c++/5/bits/stl_algobase.h:195:5: note: candidate: template<class _Tp> const _Tp& std::min(const _Tp&, const _Tp&) min(const _Tp& __a, const _Tp& __b) ^ /usr/include/c++/5/bits/stl_algobase.h:195:5: note: template argument deduction/substitution failed: brackets.cpp:40:29: note: deduced conflicting types for parameter ‘const _Tp’ (‘long long int’ and ‘int’) t = min(c2, K[r]); ^ In file included from /usr/include/c++/5/bits/char_traits.h:39:0, from /usr/include/c++/5/ios:40, from /usr/include/c++/5/ostream:38, from /usr/include/c++/5/iostream:39, from brackets.cpp:1: /usr/include/c++/5/bits/stl_algobase.h:243:5: note: candidate: template<class _Tp, class _Compare> const _Tp& std::min(const _Tp&, const _Tp&, _Compare) min(const _Tp& __a, const _Tp& __b, _Compare __comp) ^ /usr/include/c++/5/bits/stl_algobase.h:243:5: note: template argument deduction/substitution failed: brackets.cpp:40:29: note: deduced conflicting types for parameter ‘const _Tp’ (‘long long int’ and ‘int’) t = min(c2, K[r]); ^

nr.resulttimemessage