ho_t5.cpp: In function 'int main()':
ho_t5.cpp:102:29: 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]
102 | for(int u = 0;u < m[k-i].size();++u)
| ~~^~~~~~~~~~~~~~~
ho_t5.cpp:110:47: error: no matching function for call to 'max(long long int, int64_t)'
110 | int res = pr[max(0ll,r+1-(k-i))]-pr[max(0ll,l-(k-i))];
| ^
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 ho_t5.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:
ho_t5.cpp:110:47: note: deduced conflicting types for parameter 'const _Tp' ('long long int' and 'int64_t' {aka 'long int'})
110 | int res = pr[max(0ll,r+1-(k-i))]-pr[max(0ll,l-(k-i))];
| ^
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 ho_t5.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:
ho_t5.cpp:110:47: note: deduced conflicting types for parameter 'const _Tp' ('long long int' and 'int64_t' {aka 'long int'})
110 | int res = pr[max(0ll,r+1-(k-i))]-pr[max(0ll,l-(k-i))];
| ^
In file included from /usr/include/c++/10/algorithm:62,
from /usr/include/x86_64-linux-gnu/c++/10/bits/stdc++.h:65,
from ho_t5.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:
ho_t5.cpp:110:47: note: mismatched types 'std::initializer_list<_Tp>' and 'long long int'
110 | int res = pr[max(0ll,r+1-(k-i))]-pr[max(0ll,l-(k-i))];
| ^
In file included from /usr/include/c++/10/algorithm:62,
from /usr/include/x86_64-linux-gnu/c++/10/bits/stdc++.h:65,
from ho_t5.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:
ho_t5.cpp:110:47: note: mismatched types 'std::initializer_list<_Tp>' and 'long long int'
110 | int res = pr[max(0ll,r+1-(k-i))]-pr[max(0ll,l-(k-i))];
| ^
ho_t5.cpp:110:68: error: no matching function for call to 'max(long long int, int64_t)'
110 | int res = pr[max(0ll,r+1-(k-i))]-pr[max(0ll,l-(k-i))];
| ^
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 ho_t5.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:
ho_t5.cpp:110:68: note: deduced conflicting types for parameter 'const _Tp' ('long long int' and 'int64_t' {aka 'long int'})
110 | int res = pr[max(0ll,r+1-(k-i))]-pr[max(0ll,l-(k-i))];
| ^
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 ho_t5.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:
ho_t5.cpp:110:68: note: deduced conflicting types for parameter 'const _Tp' ('long long int' and 'int64_t' {aka 'long int'})
110 | int res = pr[max(0ll,r+1-(k-i))]-pr[max(0ll,l-(k-i))];
| ^
In file included from /usr/include/c++/10/algorithm:62,
from /usr/include/x86_64-linux-gnu/c++/10/bits/stdc++.h:65,
from ho_t5.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:
ho_t5.cpp:110:68: note: mismatched types 'std::initializer_list<_Tp>' and 'long long int'
110 | int res = pr[max(0ll,r+1-(k-i))]-pr[max(0ll,l-(k-i))];
| ^
In file included from /usr/include/c++/10/algorithm:62,
from /usr/include/x86_64-linux-gnu/c++/10/bits/stdc++.h:65,
from ho_t5.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:
ho_t5.cpp:110:68: note: mismatched types 'std::initializer_list<_Tp>' and 'long long int'
110 | int res = pr[max(0ll,r+1-(k-i))]-pr[max(0ll,l-(k-i))];
| ^
ho_t5.cpp:117:53: error: no matching function for call to 'max(long long int, std::tuple_element<1, std::pair<long int, long int> >::type)'
117 | res -= pr[max(0ll,rr+1-(k-i))]-pr[max(0ll,ll-(k-i))];
| ^
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 ho_t5.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:
ho_t5.cpp:117:53: note: deduced conflicting types for parameter 'const _Tp' ('long long int' and 'std::tuple_element<1, std::pair<long int, long int> >::type' {aka 'long int'})
117 | res -= pr[max(0ll,rr+1-(k-i))]-pr[max(0ll,ll-(k-i))];
| ^
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 ho_t5.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:
ho_t5.cpp:117:53: note: deduced conflicting types for parameter 'const _Tp' ('long long int' and 'std::tuple_element<1, std::pair<long int, long int> >::type' {aka 'long int'})
117 | res -= pr[max(0ll,rr+1-(k-i))]-pr[max(0ll,ll-(k-i))];
| ^
In file included from /usr/include/c++/10/algorithm:62,
from /usr/include/x86_64-linux-gnu/c++/10/bits/stdc++.h:65,
from ho_t5.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:
ho_t5.cpp:117:53: note: mismatched types 'std::initializer_list<_Tp>' and 'long long int'
117 | res -= pr[max(0ll,rr+1-(k-i))]-pr[max(0ll,ll-(k-i))];
| ^
In file included from /usr/include/c++/10/algorithm:62,
from /usr/include/x86_64-linux-gnu/c++/10/bits/stdc++.h:65,
from ho_t5.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:
ho_t5.cpp:117:53: note: mismatched types 'std::initializer_list<_Tp>' and 'long long int'
117 | res -= pr[max(0ll,rr+1-(k-i))]-pr[max(0ll,ll-(k-i))];
| ^
ho_t5.cpp:117:75: error: no matching function for call to 'max(long long int, std::tuple_element<0, std::pair<long int, long int> >::type)'
117 | res -= pr[max(0ll,rr+1-(k-i))]-pr[max(0ll,ll-(k-i))];
| ^
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 ho_t5.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:
ho_t5.cpp:117:75: note: deduced conflicting types for parameter 'const _Tp' ('long long int' and 'std::tuple_element<0, std::pair<long int, long int> >::type' {aka 'long int'})
117 | res -= pr[max(0ll,rr+1-(k-i))]-pr[max(0ll,ll-(k-i))];
| ^
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 ho_t5.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:
ho_t5.cpp:117:75: note: deduced conflicting types for parameter 'const _Tp' ('long long int' and 'std::tuple_element<0, std::pair<long int, long int> >::type' {aka 'long int'})
117 | res -= pr[max(0ll,rr+1-(k-i))]-pr[max(0ll,ll-(k-i))];
| ^
In file included from /usr/include/c++/10/algorithm:62,
from /usr/include/x86_64-linux-gnu/c++/10/bits/stdc++.h:65,
from ho_t5.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:
ho_t5.cpp:117:75: note: mismatched types 'std::initializer_list<_Tp>' and 'long long int'
117 | res -= pr[max(0ll,rr+1-(k-i))]-pr[max(0ll,ll-(k-i))];
| ^
In file included from /usr/include/c++/10/algorithm:62,
from /usr/include/x86_64-linux-gnu/c++/10/bits/stdc++.h:65,
from ho_t5.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:
ho_t5.cpp:117:75: note: mismatched types 'std::initializer_list<_Tp>' and 'long long int'
117 | res -= pr[max(0ll,rr+1-(k-i))]-pr[max(0ll,ll-(k-i))];
| ^