joi2019_ho_t3.cpp: In function 'int main()':
joi2019_ho_t3.cpp:38:25: warning: comparison of integer expressions of different signedness: 'int64_t' {aka 'long int'} and 'std::vector<std::vector<std::vector<long int> > >::size_type' {aka 'long unsigned int'} [-Wsign-compare]
38 | for(int j= 0;j < dp[i].size();++j)
| ~~^~~~~~~~~~~~~~
joi2019_ho_t3.cpp:41:29: warning: comparison of integer expressions of different signedness: 'int64_t' {aka 'long int'} and 'std::vector<std::vector<long int> >::size_type' {aka 'long unsigned int'} [-Wsign-compare]
41 | for(int k = 0;k < dp[i][j].size();++k)
| ~~^~~~~~~~~~~~~~~~~
joi2019_ho_t3.cpp:48:23: warning: comparison of integer expressions of different signedness: 'int64_t' {aka 'long int'} and 'std::vector<long int>::size_type' {aka 'long unsigned int'} [-Wsign-compare]
48 | for(k[0] = 0;k[0] <= pos[0].size();++k[0])
| ~~~~~^~~~~~~~~~~~~~~~
joi2019_ho_t3.cpp:50:27: warning: comparison of integer expressions of different signedness: 'int64_t' {aka 'long int'} and 'std::vector<long int>::size_type' {aka 'long unsigned int'} [-Wsign-compare]
50 | for(k[1] = 0;k[1] <= pos[1].size();++k[1])
| ~~~~~^~~~~~~~~~~~~~~~
joi2019_ho_t3.cpp:52:31: warning: comparison of integer expressions of different signedness: 'int64_t' {aka 'long int'} and 'std::vector<long int>::size_type' {aka 'long unsigned int'} [-Wsign-compare]
52 | for(k[2] = 0;k[2] <= pos[2].size();++k[2])
| ~~~~~^~~~~~~~~~~~~~~~
joi2019_ho_t3.cpp:69:50: error: no matching function for call to 'max(long long int, int64_t)'
69 | int c = max(0ll,k[0]-ind0) + max(0ll,k[1]-ind1) + max(0ll,k[2]-ind2);
| ^
In file included from /usr/include/c++/10/bits/specfun.h:45,
from /usr/include/c++/10/cmath:1927,
from /usr/include/x86_64-linux-gnu/c++/10/bits/stdc++.h:41,
from joi2019_ho_t3.cpp:1:
/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:
joi2019_ho_t3.cpp:69:50: note: deduced conflicting types for parameter 'const _Tp' ('long long int' and 'int64_t' {aka 'long int'})
69 | int c = max(0ll,k[0]-ind0) + max(0ll,k[1]-ind1) + max(0ll,k[2]-ind2);
| ^
In file included from /usr/include/c++/10/bits/specfun.h:45,
from /usr/include/c++/10/cmath:1927,
from /usr/include/x86_64-linux-gnu/c++/10/bits/stdc++.h:41,
from joi2019_ho_t3.cpp:1:
/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:
joi2019_ho_t3.cpp:69:50: note: deduced conflicting types for parameter 'const _Tp' ('long long int' and 'int64_t' {aka 'long int'})
69 | int c = max(0ll,k[0]-ind0) + max(0ll,k[1]-ind1) + max(0ll,k[2]-ind2);
| ^
In file included from /usr/include/c++/10/algorithm:62,
from /usr/include/x86_64-linux-gnu/c++/10/bits/stdc++.h:65,
from joi2019_ho_t3.cpp:1:
/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:
joi2019_ho_t3.cpp:69:50: note: mismatched types 'std::initializer_list<_Tp>' and 'long long int'
69 | int c = max(0ll,k[0]-ind0) + max(0ll,k[1]-ind1) + max(0ll,k[2]-ind2);
| ^
In file included from /usr/include/c++/10/algorithm:62,
from /usr/include/x86_64-linux-gnu/c++/10/bits/stdc++.h:65,
from joi2019_ho_t3.cpp:1:
/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:
joi2019_ho_t3.cpp:69:50: note: mismatched types 'std::initializer_list<_Tp>' and 'long long int'
69 | int c = max(0ll,k[0]-ind0) + max(0ll,k[1]-ind1) + max(0ll,k[2]-ind2);
| ^
joi2019_ho_t3.cpp:69:71: error: no matching function for call to 'max(long long int, int64_t)'
69 | int c = max(0ll,k[0]-ind0) + max(0ll,k[1]-ind1) + max(0ll,k[2]-ind2);
| ^
In file included from /usr/include/c++/10/bits/specfun.h:45,
from /usr/include/c++/10/cmath:1927,
from /usr/include/x86_64-linux-gnu/c++/10/bits/stdc++.h:41,
from joi2019_ho_t3.cpp:1:
/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:
joi2019_ho_t3.cpp:69:71: note: deduced conflicting types for parameter 'const _Tp' ('long long int' and 'int64_t' {aka 'long int'})
69 | int c = max(0ll,k[0]-ind0) + max(0ll,k[1]-ind1) + max(0ll,k[2]-ind2);
| ^
In file included from /usr/include/c++/10/bits/specfun.h:45,
from /usr/include/c++/10/cmath:1927,
from /usr/include/x86_64-linux-gnu/c++/10/bits/stdc++.h:41,
from joi2019_ho_t3.cpp:1:
/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:
joi2019_ho_t3.cpp:69:71: note: deduced conflicting types for parameter 'const _Tp' ('long long int' and 'int64_t' {aka 'long int'})
69 | int c = max(0ll,k[0]-ind0) + max(0ll,k[1]-ind1) + max(0ll,k[2]-ind2);
| ^
In file included from /usr/include/c++/10/algorithm:62,
from /usr/include/x86_64-linux-gnu/c++/10/bits/stdc++.h:65,
from joi2019_ho_t3.cpp:1:
/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:
joi2019_ho_t3.cpp:69:71: note: mismatched types 'std::initializer_list<_Tp>' and 'long long int'
69 | int c = max(0ll,k[0]-ind0) + max(0ll,k[1]-ind1) + max(0ll,k[2]-ind2);
| ^
In file included from /usr/include/c++/10/algorithm:62,
from /usr/include/x86_64-linux-gnu/c++/10/bits/stdc++.h:65,
from joi2019_ho_t3.cpp:1:
/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:
joi2019_ho_t3.cpp:69:71: note: mismatched types 'std::initializer_list<_Tp>' and 'long long int'
69 | int c = max(0ll,k[0]-ind0) + max(0ll,k[1]-ind1) + max(0ll,k[2]-ind2);
| ^
joi2019_ho_t3.cpp:69:92: error: no matching function for call to 'max(long long int, int64_t)'
69 | int c = max(0ll,k[0]-ind0) + max(0ll,k[1]-ind1) + max(0ll,k[2]-ind2);
| ^
In file included from /usr/include/c++/10/bits/specfun.h:45,
from /usr/include/c++/10/cmath:1927,
from /usr/include/x86_64-linux-gnu/c++/10/bits/stdc++.h:41,
from joi2019_ho_t3.cpp:1:
/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:
joi2019_ho_t3.cpp:69:92: note: deduced conflicting types for parameter 'const _Tp' ('long long int' and 'int64_t' {aka 'long int'})
69 | int c = max(0ll,k[0]-ind0) + max(0ll,k[1]-ind1) + max(0ll,k[2]-ind2);
| ^
In file included from /usr/include/c++/10/bits/specfun.h:45,
from /usr/include/c++/10/cmath:1927,
from /usr/include/x86_64-linux-gnu/c++/10/bits/stdc++.h:41,
from joi2019_ho_t3.cpp:1:
/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:
joi2019_ho_t3.cpp:69:92: note: deduced conflicting types for parameter 'const _Tp' ('long long int' and 'int64_t' {aka 'long int'})
69 | int c = max(0ll,k[0]-ind0) + max(0ll,k[1]-ind1) + max(0ll,k[2]-ind2);
| ^
In file included from /usr/include/c++/10/algorithm:62,
from /usr/include/x86_64-linux-gnu/c++/10/bits/stdc++.h:65,
from joi2019_ho_t3.cpp:1:
/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:
joi2019_ho_t3.cpp:69:92: note: mismatched types 'std::initializer_list<_Tp>' and 'long long int'
69 | int c = max(0ll,k[0]-ind0) + max(0ll,k[1]-ind1) + max(0ll,k[2]-ind2);
| ^
In file included from /usr/include/c++/10/algorithm:62,
from /usr/include/x86_64-linux-gnu/c++/10/bits/stdc++.h:65,
from joi2019_ho_t3.cpp:1:
/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:
joi2019_ho_t3.cpp:69:92: note: mismatched types 'std::initializer_list<_Tp>' and 'long long int'
69 | int c = max(0ll,k[0]-ind0) + max(0ll,k[1]-ind1) + max(0ll,k[2]-ind2);
| ^