closing.cpp: In lambda function:
closing.cpp:105:62: error: no matching function for call to 'max(long long int, int)'
105 | int l = max(0LL, int(dp1.size()) - int(dp2.size()));
| ^
In file included from /usr/include/c++/10/bits/char_traits.h:39,
from /usr/include/c++/10/ios:40,
from /usr/include/c++/10/ostream:38,
from /usr/include/c++/10/iostream:39,
from closing.cpp:2:
/usr/include/c++/10/bits/stl_algobase.h:254:5: note: candidate: 'template<class _Tp> constexpr const _Tp& std::max(const _Tp&, const _Tp&)'
254 | max(const _Tp& __a, const _Tp& __b)
| ^~~
/usr/include/c++/10/bits/stl_algobase.h:254:5: note: template argument deduction/substitution failed:
closing.cpp:105:62: note: deduced conflicting types for parameter 'const _Tp' ('long long int' and 'int')
105 | int l = max(0LL, int(dp1.size()) - int(dp2.size()));
| ^
In file included from /usr/include/c++/10/bits/char_traits.h:39,
from /usr/include/c++/10/ios:40,
from /usr/include/c++/10/ostream:38,
from /usr/include/c++/10/iostream:39,
from closing.cpp:2:
/usr/include/c++/10/bits/stl_algobase.h:300:5: note: candidate: 'template<class _Tp, class _Compare> constexpr const _Tp& std::max(const _Tp&, const _Tp&, _Compare)'
300 | max(const _Tp& __a, const _Tp& __b, _Compare __comp)
| ^~~
/usr/include/c++/10/bits/stl_algobase.h:300:5: note: template argument deduction/substitution failed:
closing.cpp:105:62: note: deduced conflicting types for parameter 'const _Tp' ('long long int' and 'int')
105 | int l = max(0LL, int(dp1.size()) - int(dp2.size()));
| ^
In file included from /usr/include/c++/10/algorithm:62,
from closing.cpp:6:
/usr/include/c++/10/bits/stl_algo.h:3480:5: note: candidate: 'template<class _Tp> constexpr _Tp std::max(std::initializer_list<_Tp>)'
3480 | max(initializer_list<_Tp> __l)
| ^~~
/usr/include/c++/10/bits/stl_algo.h:3480:5: note: template argument deduction/substitution failed:
closing.cpp:105:62: note: mismatched types 'std::initializer_list<_Tp>' and 'long long int'
105 | int l = max(0LL, int(dp1.size()) - int(dp2.size()));
| ^
In file included from /usr/include/c++/10/algorithm:62,
from closing.cpp:6:
/usr/include/c++/10/bits/stl_algo.h:3486:5: note: candidate: 'template<class _Tp, class _Compare> constexpr _Tp std::max(std::initializer_list<_Tp>, _Compare)'
3486 | max(initializer_list<_Tp> __l, _Compare __comp)
| ^~~
/usr/include/c++/10/bits/stl_algo.h:3486:5: note: template argument deduction/substitution failed:
closing.cpp:105:62: note: mismatched types 'std::initializer_list<_Tp>' and 'long long int'
105 | int l = max(0LL, int(dp1.size()) - int(dp2.size()));
| ^
closing.cpp:109:34: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector<std::vector<long long unsigned int> >::size_type' {aka 'long unsigned int'} [-Wsign-compare]
109 | for(int k = 0; k < dp2.size(); k++) if(j - k >= 0)
| ~~^~~~~~~~~~~~
closing.cpp: In function 'int max_score(int, int, int, long long int, std::vector<int>, std::vector<int>, std::vector<int>)':
closing.cpp:168:34: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector<std::vector<long long unsigned int> >::size_type' {aka 'long unsigned int'} [-Wsign-compare]
168 | for(int k = 0; k < dp1.size(); k++) if(j - k >= 0)
| ~~^~~~~~~~~~~~
closing.cpp:188:53: warning: comparison of integer expressions of different signedness: '__gnu_cxx::__alloc_traits<std::allocator<long long unsigned int>, long long unsigned int>::value_type' {aka 'long long unsigned int'} and 'long long int' [-Wsign-compare]
188 | for(int j = 0; j < 3; j++) if(dp[m-1][i][j] <= K){
closing.cpp: In instantiation of 'max_score(int, int, int, long long int, std::vector<int>, std::vector<int>, std::vector<int>)::<lambda(auto:1, int, int)> [with auto:1 = max_score(int, int, int, long long int, std::vector<int>, std::vector<int>, std::vector<int>)::<lambda(auto:1, int, int)>]':
closing.cpp:96:34: required from 'max_score(int, int, int, long long int, std::vector<int>, std::vector<int>, std::vector<int>)::<lambda(auto:2, int, int)> [with auto:2 = max_score(int, int, int, long long int, std::vector<int>, std::vector<int>, std::vector<int>)::<lambda(auto:2, int, int)>]'
closing.cpp:157:54: required from here
closing.cpp:88:40: warning: comparison of integer expressions of different signedness: 'long long unsigned int' and 'int' [-Wsign-compare]
88 | for(auto& u : v[node]) if(u.fs != parent){
| ~~~~~^~~~~~~~~
closing.cpp: In instantiation of 'max_score(int, int, int, long long int, std::vector<int>, std::vector<int>, std::vector<int>)::<lambda(auto:2, int, int)> [with auto:2 = max_score(int, int, int, long long int, std::vector<int>, std::vector<int>, std::vector<int>)::<lambda(auto:2, int, int)>]':
closing.cpp:157:54: required from here
closing.cpp:101:40: warning: comparison of integer expressions of different signedness: 'long long unsigned int' and 'int' [-Wsign-compare]
101 | for(auto& u : v[node]) if(u.fs != parent)
| ~~~~~^~~~~~~~~
closing.cpp:109:34: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector<std::vector<long long unsigned int> >::size_type' {aka 'long unsigned int'} [-Wsign-compare]
109 | for(int k = 0; k < dp2.size(); k++) if(j - k >= 0)
| ~~^~~~~~~~~~~~