# | Time | Username | Problem | Language | Result | Execution time | Memory |
---|---|---|---|---|---|---|---|
1199971 | user736482 | Lottery (CEOI18_lot) | C++17 | Compilation error | 0 ms | 0 KiB |
#include<bits/stdc++.h>
#pragma GCC target("avx2")
#pragma GCC optimize("Ofast")
#define ll int
#define pb push_back
using namespace std;
int n,q,a,k,l;
vector<int>v,poz;//duze jedno do usuniecia
vector<pair<int,int>>pom;
int pod[10007];
int ans[107][10007];
int licz[107][10007];
int main(){
ios_base::sync_with_stdio(0);
cin.tie(0);
cout.tie(0);
cin>>n>>l;
for(int i=0;i<n;i++){
cin>>a;
v.push_back(a);
}
cin>>q;
for(int i=0;i<q;i++){
cin>>k;
k=l-k;
pom.push_back({k,i});
}
sort(pom.begin(),pom.end());
for(int i=0;i<l-1;i++){
for(int j=i+1;j<n;j++){
if(v[i]==v[j])pod[j-i]++;
}
}
for(int i=l-1;i<n;i++){
if(i!=l-1){
i=i-l;
for(int j=i+1;j<n;j++){
if(v[i]==v[j])pod[j-i]--;
}
i=i+l;}
for(int j=i+1;j<n;j++){
if(v[i]==v[j])pod[j-i]++;
}
vector<ll>tb[10007];
for(int j=i+1;j<n;j++){
tb[pod[-i+j]].pb(i-l+1);
tb[pod[j-i]].pb(j-l+1);
for(int s=0;s<q;s++){
k=pom[s];
if(pod[-i+j]>=k){
licz[s][i-l+1]++;
licz[s][j-l+1]++;
}
}
}int ak=0;
for(int i=0;i<10007;i++){
while(ak<pom.size()-1 && pom[ak+1]<=i)ak++;
for(int j : tb[i])licz[ak][j]++;
}
}
for(int i=0;i<q;i++){
for(int j=0;j<n-l+1;j++){
if(i)
licz[i][j]+=licz[i-1][j];
ans[pom[i].ss][j]=licz[i][j];
// cout<<licz[i][j]<<" ";
}
cout<<"\n";
}
for(int i=0;i<q;i++){
for(int j=0;j<n-l+1;j++){
cout<<licz[i][j]<<" ";
}
cout<<"\n";
}
}
Compilation message (stderr)
lot.cpp: In function 'int main()': lot.cpp:53:28: error: cannot convert '__gnu_cxx::__alloc_traits<std::allocator<std::pair<int, int> >, std::pair<int, int> >::value_type' {aka 'std::pair<int, int>'} to 'int' in assignment 53 | k=pom[s]; | ^ lot.cpp:61:49: error: no match for 'operator<=' (operand types are '__gnu_cxx::__alloc_traits<std::allocator<std::pair<int, int> >, std::pair<int, int> >::value_type' {aka 'std::pair<int, int>'} and 'int') 61 | while(ak<pom.size()-1 && pom[ak+1]<=i)ak++; In file included from /usr/include/c++/11/regex:63, from /usr/include/x86_64-linux-gnu/c++/11/bits/stdc++.h:110, from lot.cpp:1: /usr/include/c++/11/bits/regex.h:1110:5: note: candidate: 'template<class _BiIter> bool std::__cxx11::operator<=(const std::__cxx11::sub_match<_BiIter>&, const std::__cxx11::sub_match<_BiIter>&)' 1110 | operator<=(const sub_match<_BiIter>& __lhs, const sub_match<_BiIter>& __rhs) | ^~~~~~~~ /usr/include/c++/11/bits/regex.h:1110:5: note: template argument deduction/substitution failed: lot.cpp:61:51: note: '__gnu_cxx::__alloc_traits<std::allocator<std::pair<int, int> >, std::pair<int, int> >::value_type' {aka 'std::pair<int, int>'} is not derived from 'const std::__cxx11::sub_match<_BiIter>' 61 | while(ak<pom.size()-1 && pom[ak+1]<=i)ak++; | ^ In file included from /usr/include/c++/11/regex:63, from /usr/include/x86_64-linux-gnu/c++/11/bits/stdc++.h:110, from lot.cpp:1: /usr/include/c++/11/bits/regex.h:1216:5: note: candidate: 'template<class _Bi_iter, class _Ch_traits, class _Ch_alloc> bool std::__cxx11::operator<=(std::__cxx11::__sub_match_string<_Bi_iter, _Ch_traits, _Ch_alloc>&, const std::__cxx11::sub_match<_BiIter>&)' 1216 | operator<=(const __sub_match_string<_Bi_iter, _Ch_traits, _Ch_alloc>& __lhs, | ^~~~~~~~ /usr/include/c++/11/bits/regex.h:1216:5: note: template argument deduction/substitution failed: lot.cpp:61:51: note: '__gnu_cxx::__alloc_traits<std::allocator<std::pair<int, int> >, std::pair<int, int> >::value_type' {aka 'std::pair<int, int>'} is not derived from 'std::__cxx11::__sub_match_string<_Bi_iter, _Ch_traits, _Ch_alloc>' 61 | while(ak<pom.size()-1 && pom[ak+1]<=i)ak++; | ^ In file included from /usr/include/c++/11/regex:63, from /usr/include/x86_64-linux-gnu/c++/11/bits/stdc++.h:110, from lot.cpp:1: /usr/include/c++/11/bits/regex.h:1309:5: note: candidate: 'template<class _Bi_iter, class _Ch_traits, class _Ch_alloc> bool std::__cxx11::operator<=(const std::__cxx11::sub_match<_BiIter>&, std::__cxx11::__sub_match_string<_Bi_iter, _Ch_traits, _Ch_alloc>&)' 1309 | operator<=(const sub_match<_Bi_iter>& __lhs, | ^~~~~~~~ /usr/include/c++/11/bits/regex.h:1309:5: note: template argument deduction/substitution failed: lot.cpp:61:51: note: '__gnu_cxx::__alloc_traits<std::allocator<std::pair<int, int> >, std::pair<int, int> >::value_type' {aka 'std::pair<int, int>'} is not derived from 'const std::__cxx11::sub_match<_BiIter>' 61 | while(ak<pom.size()-1 && pom[ak+1]<=i)ak++; | ^ In file included from /usr/include/c++/11/regex:63, from /usr/include/x86_64-linux-gnu/c++/11/bits/stdc++.h:110, from lot.cpp:1: /usr/include/c++/11/bits/regex.h:1383:5: note: candidate: 'template<class _Bi_iter> bool std::__cxx11::operator<=(const typename std::iterator_traits<_Iter>::value_type*, const std::__cxx11::sub_match<_BiIter>&)' 1383 | operator<=(typename iterator_traits<_Bi_iter>::value_type const* __lhs, | ^~~~~~~~ /usr/include/c++/11/bits/regex.h:1383:5: note: template argument deduction/substitution failed: lot.cpp:61:51: note: mismatched types 'const std::__cxx11::sub_match<_BiIter>' and 'int' 61 | while(ak<pom.size()-1 && pom[ak+1]<=i)ak++; | ^ In file included from /usr/include/c++/11/regex:63, from /usr/include/x86_64-linux-gnu/c++/11/bits/stdc++.h:110, from lot.cpp:1: /usr/include/c++/11/bits/regex.h:1477:5: note: candidate: 'template<class _Bi_iter> bool std::__cxx11::operator<=(const std::__cxx11::sub_match<_BiIter>&, const typename std::iterator_traits<_Iter>::value_type*)' 1477 | operator<=(const sub_match<_Bi_iter>& __lhs, | ^~~~~~~~ /usr/include/c++/11/bits/regex.h:1477:5: note: template argument deduction/substitution failed: lot.cpp:61:51: note: '__gnu_cxx::__alloc_traits<std::allocator<std::pair<int, int> >, std::pair<int, int> >::value_type' {aka 'std::pair<int, int>'} is not derived from 'const std::__cxx11::sub_match<_BiIter>' 61 | while(ak<pom.size()-1 && pom[ak+1]<=i)ak++; | ^ In file included from /usr/include/c++/11/regex:63, from /usr/include/x86_64-linux-gnu/c++/11/bits/stdc++.h:110, from lot.cpp:1: /usr/include/c++/11/bits/regex.h:1555:5: note: candidate: 'template<class _Bi_iter> bool std::__cxx11::operator<=(const typename std::iterator_traits<_Iter>::value_type&, const std::__cxx11::sub_match<_BiIter>&)' 1555 | operator<=(typename iterator_traits<_Bi_iter>::value_type const& __lhs, | ^~~~~~~~ /usr/include/c++/11/bits/regex.h:1555:5: note: template argument deduction/substitution failed: lot.cpp:61:51: note: mismatched types 'const std::__cxx11::sub_match<_BiIter>' and 'int' 61 | while(ak<pom.size()-1 && pom[ak+1]<=i)ak++; | ^ In file included from /usr/include/c++/11/regex:63, from /usr/include/x86_64-linux-gnu/c++/11/bits/stdc++.h:110, from lot.cpp:1: /usr/include/c++/11/bits/regex.h:1655:5: note: candidate: 'template<class _Bi_iter> bool std::__cxx11::operator<=(const std::__cxx11::sub_match<_BiIter>&, const typename std::iterator_traits<_Iter>::value_type&)' 1655 | operator<=(const sub_match<_Bi_iter>& __lhs, | ^~~~~~~~ /usr/include/c++/11/bits/regex.h:1655:5: note: template argument deduction/substitution failed: lot.cpp:61:51: note: '__gnu_cxx::__alloc_traits<std::allocator<std::pair<int, int> >, std::pair<int, int> >::value_type' {aka 'std::pair<int, int>'} is not derived from 'const std::__cxx11::sub_match<_BiIter>' 61 | while(ak<pom.size()-1 && pom[ak+1]<=i)ak++; | ^ In file included from /usr/include/c++/11/bits/stl_algobase.h:64, from /usr/include/c++/11/bits/specfun.h:45, from /usr/include/c++/11/cmath:1935, from /usr/include/x86_64-linux-gnu/c++/11/bits/stdc++.h:41, from lot.cpp:1: /usr/include/c++/11/bits/stl_pair.h:508:5: note: candidate: 'template<class _T1, class _T2> constexpr bool std::operator<=(const std::pair<_T1, _T2>&, const std::pair<_T1, _T2>&)' 508 | operator<=(const pair<_T1, _T2>& __x, const pair<_T1, _T2>& __y) | ^~~~~~~~ /usr/include/c++/11/bits/stl_pair.h:508:5: note: template argument deduction/substitution failed: lot.cpp:61:51: note: mismatched types 'const std::pair<_T1, _T2>' and 'int' 61 | while(ak<pom.size()-1 && pom[ak+1]<=i)ak++; | ^ In file included from /usr/include/c++/11/bits/stl_algobase.h:67, from /usr/include/c++/11/bits/specfun.h:45, from /usr/include/c++/11/cmath:1935, from /usr/include/x86_64-linux-gnu/c++/11/bits/stdc++.h:41, from lot.cpp:1: /usr/include/c++/11/bits/stl_iterator.h:444:5: note: candidate: 'template<class _Iterator> constexpr bool std::operator<=(const std::reverse_iterator<_Iterator>&, const std::reverse_iterator<_Iterator>&)' 444 | operator<=(const reverse_iterator<_Iterator>& __x, | ^~~~~~~~ /usr/include/c++/11/bits/stl_iterator.h:444:5: note: template argument deduction/substitution failed: lot.cpp:61:51: note: '__gnu_cxx::__alloc_traits<std::allocator<std::pair<int, int> >, std::pair<int, int> >::value_type' {aka 'std::pair<int, int>'} is not derived from 'const std::reverse_iterator<_Iterator>' 61 | while(ak<pom.size()-1 && pom[ak+1]<=i)ak++; | ^ In file included from /usr/include/c++/11/bits/stl_algobase.h:67, from /usr/include/c++/11/bits/specfun.h:45, from /usr/include/c++/11/cmath:1935, from /usr/include/x86_64-linux-gnu/c++/11/bits/stdc++.h:41, from lot.cpp:1: /usr/include/c++/11/bits/stl_iterator.h:483:5: note: candidate: 'template<class _IteratorL, class _IteratorR> constexpr bool std::operator<=(const std::reverse_iterator<_Iterator>&, const std::reverse_iterator<_IteratorR>&)' 483 | operator<=(const reverse_iterator<_IteratorL>& __x, | ^~~~~~~~ /usr/include/c++/11/bits/stl_iterator.h:483:5: note: template argument deduction/substitution failed: lot.cpp:61:51: note: '__gnu_cxx::__alloc_traits<std::allocator<std::pair<int, int> >, std::pair<int, int> >::value_type' {aka 'std::pair<int, int>'} is not derived from 'const std::reverse_iterator<_Iterator>' 61 | while(ak<pom.size()-1 && pom[ak+1]<=i)ak++; | ^ In file included from /usr/include/c++/11/bits/stl_algobase.h:67, from /usr/include/c++/11/bits/specfun.h:45, from /usr/include/c++/11/cmath:1935, from /usr/include/x86_64-linux-gnu/c++/11/bits/stdc++.h:41, from lot.cpp:1: /usr/include/c++/11/bits/stl_iterator.h:1618:5: note: candidate: 'template<class _IteratorL, class _IteratorR> constexpr bool std::operator<=(const std::move_iterator<_IteratorL>&, const std::move_iterator<_IteratorR>&)' 1618 | operator<=(const move_iterator<_IteratorL>& __x, | ^~~~~~~~ /usr/include/c++/11/bits/stl_iterator.h:1618:5: note: template argument deduction/substitution failed: lot.cpp:61:51: note: '__gnu_cxx::__alloc_traits<std::allocator<std::pair<int, int> >, std::pair<int, int> >::value_type' {aka 'std::pair<int, int>'} is not derived from 'const std::move_iterator<_IteratorL>' 61 | while(ak<pom.size()-1 && pom[ak+1]<=i)ak++; | ^ In file included from /usr/include/c++/11/bits/stl_algobase.h:67, from /usr/include/c++/11/bits/specfun.h:45, from /usr/include/c++/11/cmath:1935, from /usr/include/x86_64-linux-gnu/c++/11/bits/stdc++.h:41, from lot.cpp:1: /usr/include/c++/11/bits/stl_iterator.h:1673:5: note: candidate: 'template<class _Iterator> constexpr bool std::operator<=(const std::move_iterator<_IteratorL>&, const std::move_iterator<_IteratorL>&)' 1673 | operator<=(const move_iterator<_Iterator>& __x, | ^~~~~~~~ /usr/include/c++/11/bits/stl_iterator.h:1673:5: note: template argument deduction/substitution failed: lot.cpp:61:51: note: '__gnu_cxx::__alloc_traits<std::allocator<std::pair<int, int> >, std::pair<int, int> >::value_type' {aka 'std::pair<int, int>'} is not derived from 'const std::move_iterator<_IteratorL>' 61 | while(ak<pom.size()-1 && pom[ak+1]<=i)ak++; | ^ In file included from /usr/include/c++/11/bits/basic_string.h:48, from /usr/include/c++/11/string:55, from /usr/include/c++/11/bits/locale_classes.h:40, from /usr/include/c++/11/bits/ios_base.h:41, from /usr/include/c++/11/ios:42, from /usr/include/c++/11/istream:38, from /usr/include/c++/11/sstream:38, from /usr/include/c++/11/complex:45, from /usr/include/c++/11/ccomplex:39, from /usr/include/x86_64-linux-gnu/c++/11/bits/stdc++.h:54, from lot.cpp:1: /usr/include/c++/11/string_view:627:5: note: candidate: 'template<class _CharT, class _Traits> constexpr bool std::operator<=(std::basic_string_view<_CharT, _Traits>, std::basic_string_view<_CharT, _Traits>)' 627 | operator<=(basic_string_view<_CharT, _Traits> __x, | ^~~~~~~~ /usr/include/c++/11/string_view:627:5: note: template argument deduction/substitution failed: lot.cpp:61:51: note: 'std::pair<int, int>' is not derived from 'std::basic_string_view<_CharT, _Traits>' 61 | while(ak<pom.size()-1 && pom[ak+1]<=i)ak++; | ^ In file included from /usr/include/c++/11/bits/basic_string.h:48, from /usr/include/c++/11/string:55, from /usr/include/c++/11/bits/locale_classes.h:40, from /usr/include/c++/11/bits/ios_base.h:41, from /usr/include/c++/11/ios:42, from /usr/include/c++/11/istream:38, from /usr/include/c++/11/sstream:38, from /usr/include/c++/11/complex:45, from /usr/include/c++/11/ccomplex:39, from /usr/include/x86_64-linux-gnu/c++/11/bits/stdc++.h:54, from lot.cpp:1: /usr/include/c++/11/string_view:633:5: note: candidate: 'template<class _CharT, class _Traits> constexpr bool std::operator<=(std::basic_string_view<_CharT, _Traits>, std::__type_identity_t<std::basic_string_view<_CharT, _Traits> >)' 633 | operator<=(basic_string_view<_CharT, _Traits> __x, | ^~~~~~~~ /usr/include/c++/11/string_view:633:5: note: template argument deduction/substitution failed: lot.cpp:61:51: note: 'std::pair<int, int>' is not derived from 'std::basic_string_view<_CharT, _Traits>' 61 | while(ak<pom.size()-1 && pom[ak+1]<=i)ak++; | ^ In file included from /usr/include/c++/11/bits/basic_string.h:48, from /usr/include/c++/11/string:55, from /usr/include/c++/11/bits/locale_classes.h:40, from /usr/include/c++/11/bits/ios_base.h:41, from /usr/include/c++/11/ios:42, from /usr/include/c++/11/istream:38, from /usr/include/c++/11/sstream:38, from /usr/include/c++/11/complex:45, from /usr/include/c++/11/ccomplex:39, from /usr/include/x86_64-linux-gnu/c++/11/bits/stdc++.h:54, from lot.cpp:1: /usr/include/c++/11/string_view:640:5: note: candidate: 'template<class _CharT, class _Traits> constexpr bool std::operator<=(std::__type_identity_t<std::basic_string_view<_CharT, _Traits> >, std::basic_string_view<_CharT, _Traits>)' 640 | operator<=(__type_identity_t<basic_string_view<_CharT, _Traits>> __x, | ^~~~~~~~ /usr/include/c++/11/string_view:640:5: note: template argument deduction/substitution failed: lot.cpp:61:51: note: mismatched types 'std::basic_string_view<_CharT, _Traits>' and 'int' 61 | while(ak<pom.size()-1 && pom[ak+1]<=i)ak++; | ^ In file included from /usr/include/c++/11/string:55, from /usr/include/c++/11/bits/locale_classes.h:40, from /usr/include/c++/11/bits/ios_base.h:41, from /usr/include/c++/11/ios:42, from /usr/include/c++/11/istream:38, from /usr/include/c++/11/sstream:38, from /usr/include/c++/11/complex:45, from /usr/include/c++/11/ccomplex:39, from /usr/include/x86_64-linux-gnu/c++/11/bits/stdc++.h:54, from lot.cpp:1: /usr/include/c++/11/bits/basic_string.h:6416:5: note: candidate: 'template<class _CharT, class _Traits, class _Alloc> bool std::operator<=(const std::__cxx11::basic_string<_CharT, _Traits, _Allocator>&, const std::__cxx11::basic_string<_CharT, _Traits, _Allocator>&)' 6416 | operator<=(const basic_string<_CharT, _Traits, _Alloc>& __lhs, | ^~~~~~~~ /usr/include/c++/11/bits/basic_string.h:6416:5: note: template argument deduction/substitution failed: lot.cpp:61:51: note: '__gnu_cxx::__alloc_traits<std::allocator<std::pair<int, int> >, std::pair<int, int> >::value_type' {aka 'std::pair<int, int>'} is not derived from 'const std::__cxx11::basic_string<_CharT, _Traits, _Allocator>' 61 | while(ak<pom.size()-1 && pom[ak+1]<=i)ak++; | ^ In file included from /usr/include/c++/11/string:55, from /usr/include/c++/11/bits/locale_classes.h:40, from /usr/include/c++/11/bits/ios_base.h:41, from /usr/include/c++/11/ios:42, from /usr/include/c++/11/istream:38, from /usr/include/c++/11/sstream:38, from /usr/include/c++/11/complex:45, from /usr/include/c++/11/ccomplex:39, from /usr/include/x86_64-linux-gnu/c++/11/bits/stdc++.h:54, from lot.cpp:1: /usr/include/c++/11/bits/basic_string.h:6429:5: note: candidate: 'template<class _CharT, class _Traits, class _Alloc> bool std::operator<=(const std::__cxx11::basic_string<_CharT, _Traits, _Allocator>&, const _CharT*)' 6429 | operator<=(const basic_string<_CharT, _Traits, _Alloc>& __lhs, | ^~~~~~~~ /usr/include/c++/11/bits/basic_string.h:6429:5: note: template argument deduction/substitution failed: lot.cpp:61:51: note: '__gnu_cxx::__alloc_traits<std::allocator<std::pair<int, int> >, std::pair<int, int> >::value_type' {aka 'std::pair<int, int>'} is not derived from 'const std::__cxx11::basic_string<_CharT, _Traits, _Allocator>' 61 | while(ak<pom.size()-1 && pom[ak+1]<=i)ak++; | ^ In file included from /usr/include/c++/11/string:55, from /usr/include/c++/11/bits/locale_classes.h:40, from /usr/include/c++/11/bits/ios_base.h:41, from /usr/include/c++/11/ios:42, from /usr/include/c++/11/istream:38, from /usr/include/c++/11/sstream:38, from /usr/include/c++/11/complex:45, from /usr/include/c++/11/ccomplex:39, from /usr/include/x86_64-linux-gnu/c++/11/bits/stdc++.h:54, from lot.cpp:1: /usr/include/c++/11/bits/basic_string.h:6441:5: note: candidate: 'template<class _CharT, class _Traits, class _Alloc> bool std::operator<=(const _CharT*, const std::__cxx11::basic_string<_CharT, _Traits, _Allocator>&)' 6441 | operator<=(const _CharT* __lhs, | ^~~~~~~~ /usr/include/c++/11/bits/basic_string.h:6441:5: note: template argument deduction/substitution failed: lot.cpp:61:51: note: mismatched types 'const _CharT*' and 'std::pair<int, int>' 61 | while(ak<pom.size()-1 && pom[ak+1]<=i)ak++; | ^ In file included from /usr/include/c++/11/tuple:39, from /usr/include/c++/11/functional:54, from /usr/include/c++/11/pstl/glue_algorithm_defs.h:13, from /usr/include/c++/11/algorithm:74, from /usr/include/x86_64-linux-gnu/c++/11/bits/stdc++.h:65, from lot.cpp:1: /usr/include/c++/11/array:326:5: note: candidate: 'template<class _Tp, long unsigned int _Nm> bool std::operator<=(const std::array<_Tp, _Nm>&, const std::array<_Tp, _Nm>&)' 326 | operator<=(const array<_Tp, _Nm>& __one, const array<_Tp, _Nm>& __two) | ^~~~~~~~ /usr/include/c++/11/array:326:5: note: template argument deduction/substitution failed: lot.cpp:61:51: note: '__gnu_cxx::__alloc_traits<std::allocator<std::pair<int, int> >, std::pair<int, int> >::value_type' {aka 'std::pair<int, int>'} is not derived from 'const std::array<_Tp, _Nm>' 61 | while(ak<pom.size()-1 && pom[ak+1]<=i)ak++; | ^ In file included from /usr/include/c++/11/functional:54, from /usr/include/c++/11/pstl/glue_algorithm_defs.h:13, from /usr/include/c++/11/algorithm:74, from /usr/include/x86_64-linux-gnu/c++/11/bits/stdc++.h:65, from lot.cpp:1: /usr/include/c++/11/tuple:1591:5: note: candidate: 'template<class ... _TElements, class ... _UElements> constexpr bool std::operator<=(const std::tuple<_Tps ...>&, const std::tuple<_UTypes ...>&)' 1591 | operator<=(const tuple<_TElements...>& __t, | ^~~~~~~~ /usr/include/c++/11/tuple:1591:5: note: template argument deduction/substitution failed: lot.cpp:61:51: note: '__gnu_cxx::__alloc_traits<std::allocator<std::pair<int, int> >, std::pair<int, int> >::value_type' {aka 'std::pair<int, int>'} is not derived from 'const std::tuple<_Tps ...>' 61 | while(ak<pom.size()-1 && pom[ak+1]<=i)ak++; | ^ In file included from /usr/include/c++/11/vector:67, from /usr/include/c++/11/functional:62, from /usr/include/c++/11/pstl/glue_algorithm_defs.h:13, from /usr/include/c++/11/algorithm:74, from /usr/include/x86_64-linux-gnu/c++/11/bits/stdc++.h:65, from lot.cpp:1: /usr/include/c++/11/bits/stl_vector.h:1949:5: note: candidate: 'template<class _Tp, class _Alloc> bool std::operator<=(const std::vector<_Tp, _Alloc>&, const std::vector<_Tp, _Alloc>&)' 1949 | operator<=(const vector<_Tp, _Alloc>& __x, const vector<_Tp, _Alloc>& __y) | ^~~~~~~~ /usr/include/c++/11/bits/stl_vector.h:1949:5: note: template argument deduction/substitution failed: lot.cpp:61:51: note: '__gnu_cxx::__alloc_traits<std::allocator<std::pair<int, int> >, std::pair<int, int> >::value_type' {aka 'std::pair<int, int>'} is not derived from 'const std::vector<_Tp, _Alloc>' 61 | while(ak<pom.size()-1 && pom[ak+1]<=i)ak++; | ^ In file included from /usr/include/c++/11/deque:67, from /usr/include/x86_64-linux-gnu/c++/11/bits/stdc++.h:68, from lot.cpp:1: /usr/include/c++/11/bits/stl_deque.h:2304:5: note: candidate: 'template<class _Tp, class _Alloc> bool std::operator<=(const std::deque<_Tp, _Alloc>&, const std::deque<_Tp, _Alloc>&)' 2304 | operator<=(const deque<_Tp, _Alloc>& __x, const deque<_Tp, _Alloc>& __y) | ^~~~~~~~ /usr/include/c++/11/bits/stl_deque.h:2304:5: note: template argument deduction/substitution failed: lot.cpp:61:51: note: '__gnu_cxx::__alloc_traits<std::allocator<std::pair<int, int> >, std::pair<int, int> >::value_type' {aka 'std::pair<int, int>'} is not derived from 'const std::deque<_Tp, _Alloc>' 61 | while(ak<pom.size()-1 && pom[ak+1]<=i)ak++; | ^ In file included from /usr/include/c++/11/bits/locale_conv.h:41, from /usr/include/c++/11/locale:43, from /usr/include/c++/11/iomanip:43, from /usr/include/x86_64-linux-gnu/c++/11/bits/stdc++.h:72, from lot.cpp:1: /usr/include/c++/11/bits/unique_ptr.h:826:5: note: candidate: 'template<class _Tp, class _Dp, class _Up, class _Ep> bool std::operator<=(const std::unique_ptr<_Tp, _Dp>&, const std::unique_ptr<_Up, _Ep>&)' 826 | operator<=(const unique_ptr<_Tp, _Dp>& __x, | ^~~~~~~~ /usr/include/c++/11/bits/unique_ptr.h:826:5: note: template argument deduction/substitution failed: lot.cpp:61:51: note: '__gnu_cxx::__alloc_traits<std::allocator<std::pair<int, int> >, std::pair<int, int> >::value_type' {aka 'std::pair<int, int>'} is not derived from 'const std::unique_ptr<_Tp, _Dp>' 61 | while(ak<pom.size()-1 && pom[ak+1]<=i)ak++; | ^ In file included from /usr/include/c++/11/bits/locale_conv.h:41, from /usr/include/c++/11/locale:43, from /usr/include/c++/11/iomanip:43, from /usr/include/x86_64-linux-gnu/c++/11/bits/stdc++.h:72, from lot.cpp:1: /usr/include/c++/11/bits/unique_ptr.h:833:5: note: candidate: 'template<class _Tp, class _Dp> bool std::operator<=(const std::unique_ptr<_Tp, _Dp>&, std::nullptr_t)' 833 | operator<=(const unique_ptr<_Tp, _Dp>& __x, nullptr_t) | ^~~~~~~~ /usr/include/c++/11/bits/unique_ptr.h:833:5: note: template argument deduction/substitution failed: lot.cpp:61:51: note: '__gnu_cxx::__alloc_traits<std::allocator<std::pair<int, int> >, std::pair<int, int> >::value_type' {aka 'std::pair<int, int>'} is not derived from 'const std::unique_ptr<_Tp, _Dp>' 61 | while(ak<pom.size()-1 && pom[ak+1]<=i)ak++; | ^ In file included from /usr/include/c++/11/bits/locale_conv.h:41, from /usr/include/c++/11/locale:43, from /usr/include/c++/11/iomanip:43, from /usr/include/x86_64-linux-gnu/c++/11/bits/stdc++.h:72, from lot.cpp:1: /usr/include/c++/11/bits/unique_ptr.h:839:5: note: candidate: 'template<class _Tp, class _Dp> bool std::operator<=(std::nullptr_t, const std::unique_ptr<_Tp, _Dp>&)' 839 | operator<=(nullptr_t, const unique_ptr<_Tp, _Dp>& __x) | ^~~~~~~~ /usr/include/c++/11/bits/unique_ptr.h:839:5: note: template argument deduction/substitution failed: lot.cpp:61:51: note: mismatched types 'const std::unique_ptr<_Tp, _Dp>' and 'int' 61 | while(ak<pom.size()-1 && pom[ak+1]<=i)ak++; | ^ In file included from /usr/include/c++/11/list:63, from /usr/include/x86_64-linux-gnu/c++/11/bits/stdc++.h:79, from lot.cpp:1: /usr/include/c++/11/bits/stl_list.h:2104:5: note: candidate: 'template<class _Tp, class _Alloc> bool std::operator<=(const std::__cxx11::list<_Tp, _Alloc>&, const std::__cxx11::list<_Tp, _Alloc>&)' 2104 | operator<=(const list<_Tp, _Alloc>& __x, const list<_Tp, _Alloc>& __y) | ^~~~~~~~ /usr/include/c++/11/bits/stl_list.h:2104:5: note: template argument deduction/substitution failed: lot.cpp:61:51: note: '__gnu_cxx::__alloc_traits<std::allocator<std::pair<int, int> >, std::pair<int, int> >::value_type' {aka 'std::pair<int, int>'} is not derived from 'const std::__cxx11::list<_Tp, _Alloc>' 61 | while(ak<pom.size()-1 && pom[ak+1]<=i)ak++; | ^ In file included from /usr/include/c++/11/map:61, from /usr/include/x86_64-linux-gnu/c++/11/bits/stdc++.h:81, from lot.cpp:1: /usr/include/c++/11/bits/stl_map.h:1522:5: note: candidate: 'template<class _Key, class _Tp, class _Compare, class _Alloc> bool std::operator<=(const std::map<_Key, _Tp, _Compare, _Allocator>&, const std::map<_Key, _Tp, _Compare, _Allocator>&)' 1522 | operator<=(const map<_Key, _Tp, _Compare, _Alloc>& __x, | ^~~~~~~~ /usr/include/c++/11/bits/stl_map.h:1522:5: note: template argument deduction/substitution failed: lot.cpp:61:51: note: '__gnu_cxx::__alloc_traits<std::allocator<std::pair<int, int> >, std::pair<int, int> >::value_type' {aka 'std::pair<int, int>'} is not derived from 'const std::map<_Key, _Tp, _Compare, _Allocator>' 61 | while(ak<pom.size()-1 && pom[ak+1]<=i)ak++; | ^ In file included from /usr/include/c++/11/map:62, from /usr/include/x86_64-linux-gnu/c++/11/bits/stdc++.h:81, from lot.cpp:1: /usr/include/c++/11/bits/stl_multimap.h:1187:5: note: candidate: 'template<class _Key, class _Tp, class _Compare, class _Alloc> bool std::operator<=(const std::multimap<_Key, _Tp, _Compare, _Allocator>&, const std::multimap<_Key, _Tp, _Compare, _Allocator>&)' 1187 | operator<=(const multimap<_Key, _Tp, _Compare, _Alloc>& __x, | ^~~~~~~~ /usr/include/c++/11/bits/stl_multimap.h:1187:5: note: template argument deduction/substitution failed: lot.cpp:61:51: note: '__gnu_cxx::__alloc_traits<std::allocator<std::pair<int, int> >, std::pair<int, int> >::value_type' {aka 'std::pair<int, int>'} is not derived from 'const std::multimap<_Key, _Tp, _Compare, _Allocator>' 61 | while(ak<pom.size()-1 && pom[ak+1]<=i)ak++; | ^ In file included from /usr/include/c++/11/bits/shared_ptr.h:53, from /usr/include/c++/11/memory:77, from /usr/include/x86_64-linux-gnu/c++/11/bits/stdc++.h:82, from lot.cpp:1: /usr/include/c++/11/bits/shared_ptr_base.h:1484:5: note: candidate: 'template<class _Tp1, class _Tp2, __gnu_cxx::_Lock_policy _Lp> bool std::operator<=(const std::__shared_ptr<_Tp1, _Lp>&, const std::__shared_ptr<_Tp2, _Lp>&)' 1484 | operator<=(const __shared_ptr<_Tp1, _Lp>& __a, | ^~~~~~~~ /usr/include/c++/11/bits/shared_ptr_base.h:1484:5: note: template argument deduction/substitution failed: lot.cpp:61:51: note: '__gnu_cxx::__alloc_traits<std::allocator<std::pair<int, int> >, std::pair<int, int> >::value_type' {aka 'std::pair<int, int>'} is not derived from 'const std::__shared_ptr<_Tp1, _Lp>' 61 | while(ak<pom.size()-1 && pom[ak+1]<=i)ak++; | ^ In file included from /usr/include/c++/11/bits/shared_ptr.h:53, from /usr/include/c++/11/memory:77, from /usr/include/x86_64-linux-gnu/c++/11/bits/stdc++.h:82, from lot.cpp:1: /usr/include/c++/11/bits/shared_ptr_base.h:1490:5: note: candidate: 'template<class _Tp, __gnu_cxx::_Lock_policy _Lp> bool std::operator<=(const std::__shared_ptr<_Tp, _Lp>&, std::nullptr_t)' 1490 | operator<=(const __shared_ptr<_Tp, _Lp>& __a, nullptr_t) noexcept | ^~~~~~~~ /usr/include/c++/11/bits/shared_ptr_base.h:1490:5: note: template argument deduction/substitution failed: lot.cpp:61:51: note: '__gnu_cxx::__alloc_traits<std::allocator<std::pair<int, int> >, std::pair<int, int> >::value_type' {aka 'std::pair<int, int>'} is not derived from 'const std::__shared_ptr<_Tp, _Lp>' 61 | while(ak<pom.size()-1 && pom[ak+1]<=i)ak++; | ^ In file included from /usr/include/c++/11/bits/shared_ptr.h:53, from /usr/include/c++/11/memory:77, from /usr/include/x86_64-linux-gnu/c++/11/bits/stdc++.h:82, from lot.cpp:1: /usr/include/c++/11/bits/shared_ptr_base.h:1495:5: note: candidate: 'template<class _Tp, __gnu_cxx::_Lock_policy _Lp> bool std::operator<=(std::nullptr_t, const std::__shared_ptr<_Tp, _Lp>&)' 1495 | operator<=(nullptr_t, const __shared_ptr<_Tp, _Lp>& __a) noexcept | ^~~~~~~~ /usr/include/c++/11/bits/shared_ptr_base.h:1495:5: note: template argument deduction/substitution failed: lot.cpp:61:51: note: mismatched types 'const std::__shared_ptr<_Tp, _Lp>' and 'int' 61 | while(ak<pom.size()-1 && pom[ak+1]<=i)ak++; | ^ In file included from /usr/include/c++/11/memory:77, from /usr/include/x86_64-linux-gnu/c++/11/bits/stdc++.h:82, from lot.cpp:1: /usr/include/c++/11/bits/shared_ptr.h:517:5: note: candidate: 'template<class _Tp, class _Up> bool std::operator<=(const std::shared_ptr<_Tp>&, const std::shared_ptr<_Tp>&)' 517 | operator<=(const shared_ptr<_Tp>& __a, const shared_ptr<_Up>& __b) noexcept | ^~~~~~~~ /usr/include/c++/11/bits/shared_ptr.h:517:5: note: template argument deduction/substitution failed: lot.cpp:61:51: note: '__gnu_cxx::__alloc_traits<std::allocator<std::pair<int, int> >, std::pair<int, int> >::value_type' {aka 'std::pair<int, int>'} is not derived from 'const std::shared_ptr<_Tp>' 61 | while(ak<pom.size()-1 && pom[ak+1]<=i)ak++; | ^ In file included from /usr/include/c++/11/memory:77, from /usr/include/x86_64-linux-gnu/c++/11/bits/stdc++.h:82, from lot.cpp:1: /usr/include/c++/11/bits/shared_ptr.h:523:5: note: candidate: 'template<class _Tp> bool std::operator<=(const std::shared_ptr<_Tp>&, std::nullptr_t)' 523 | operator<=(const shared_ptr<_Tp>& __a, nullptr_t) noexcept | ^~~~~~~~ /usr/include/c++/11/bits/shared_ptr.h:523:5: note: template argument deduction/substitution failed: lot.cpp:61:51: note: '__gnu_cxx::__alloc_traits<std::allocator<std::pair<int, int> >, std::pair<int, int> >::value_type' {aka 'std::pair<int, int>'} is not derived from 'const std::shared_ptr<_Tp>' 61 | while(ak<pom.size()-1 && pom[ak+1]<=i)ak++; | ^ In file included from /usr/include/c++/11/memory:77, from /usr/include/x86_64-linux-gnu/c++/11/bits/stdc++.h:82, from lot.cpp:1: /usr/include/c++/11/bits/shared_ptr.h:529:5: note: candidate: 'template<class _Tp> bool std::operator<=(std::nullptr_t, const std::shared_ptr<_Tp>&)' 529 | operator<=(nullptr_t, const shared_ptr<_Tp>& __a) noexcept | ^~~~~~~~ /usr/include/c++/11/bits/shared_ptr.h:529:5: note: template argument deduction/substitution failed: lot.cpp:61:51: note: mismatched types 'const std::shared_ptr<_Tp>' and 'int' 61 | while(ak<pom.size()-1 && pom[ak+1]<=i)ak++; | ^ In file included from /usr/include/c++/11/queue:64, from /usr/include/x86_64-linux-gnu/c++/11/bits/stdc++.h:86, from lot.cpp:1: /usr/include/c++/11/bits/stl_queue.h:380:5: note: candidate: 'template<class _Tp, class _Seq> bool std::operator<=(const std::queue<_Tp, _Seq>&, const std::queue<_Tp, _Seq>&)' 380 | operator<=(const queue<_Tp, _Seq>& __x, const queue<_Tp, _Seq>& __y) | ^~~~~~~~ /usr/include/c++/11/bits/stl_queue.h:380:5: note: template argument deduction/substitution failed: lot.cpp:61:51: note: '__gnu_cxx::__alloc_traits<std::allocator<std::pair<int, int> >, std::pair<int, int> >::value_type' {aka 'std::pair<int, int>'} is not derived from 'const std::queue<_Tp, _Seq>' 61 | while(ak<pom.size()-1 && pom[ak+1]<=i)ak++; | ^ In file included from /usr/include/c++/11/set:61, from /usr/include/x86_64-linux-gnu/c++/11/bits/stdc++.h:87, from lot.cpp:1: /usr/include/c++/11/bits/stl_set.h:1044:5: note: candidate: 'template<class _Key, class _Compare, class _Alloc> bool std::operator<=(const std::set<_Key, _Compare, _Allocator>&, const std::set<_Key, _Compare, _Allocator>&)' 1044 | operator<=(const set<_Key, _Compare, _Alloc>& __x, | ^~~~~~~~ /usr/include/c++/11/bits/stl_set.h:1044:5: note: template argument deduction/substitution failed: lot.cpp:61:51: note: '__gnu_cxx::__alloc_traits<std::allocator<std::pair<int, int> >, std::pair<int, int> >::value_type' {aka 'std::pair<int, int>'} is not derived from 'const std::set<_Key, _Compare, _Allocator>' 61 | while(ak<pom.size()-1 && pom[ak+1]<=i)ak++; | ^ In file included from /usr/include/c++/11/set:62, from /usr/include/x86_64-linux-gnu/c++/11/bits/stdc++.h:87, from lot.cpp:1: /usr/include/c++/11/bits/stl_multiset.h:1030:5: note: candidate: 'template<class _Key, class _Compare, class _Alloc> bool std::operator<=(const std::multiset<_Key, _Compare, _Allocator>&, const std::multiset<_Key, _Compare, _Allocator>&)' 1030 | operator<=(const multiset<_Key, _Compare, _Alloc>& __x, | ^~~~~~~~ /usr/include/c++/11/bits/stl_multiset.h:1030:5: note: template argument deduction/substitution failed: lot.cpp:61:51: note: '__gnu_cxx::__alloc_traits<std::allocator<std::pair<int, int> >, std::pair<int, int> >::value_type' {aka 'std::pair<int, int>'} is not derived from 'const std::multiset<_Key, _Compare, _Allocator>' 61 | while(ak<pom.size()-1 && pom[ak+1]<=i)ak++; | ^ In file included from /usr/include/c++/11/stack:61, from /usr/include/x86_64-linux-gnu/c++/11/bits/stdc++.h:89, from lot.cpp:1: /usr/include/c++/11/bits/stl_stack.h:355:5: note: candidate: 'template<class _Tp, class _Seq> bool std::operator<=(const std::stack<_Tp, _Seq>&, const std::stack<_Tp, _Seq>&)' 355 | operator<=(const stack<_Tp, _Seq>& __x, const stack<_Tp, _Seq>& __y) | ^~~~~~~~ /usr/include/c++/11/bits/stl_stack.h:355:5: note: template argument deduction/substitution failed: lot.cpp:61:51: note: '__gnu_cxx::__alloc_traits<std::allocator<std::pair<int, int> >, std::pair<int, int> >::value_type' {aka 'std::pair<int, int>'} is not derived from 'const std::stack<_Tp, _Seq>' 61 | while(ak<pom.size()-1 && pom[ak+1]<=i)ak++; | ^ In file included from /usr/include/c++/11/valarray:603, from /usr/include/x86_64-linux-gnu/c++/11/bits/stdc++.h:95, from lot.cpp:1: /usr/include/c++/11/bits/valarray_after.h:421:5: note: candidate: 'template<class _Dom1, class _Dom2> std::_Expr<std::__detail::_BinClos<std::__less_equal, std::_Expr, std::_Expr, _Dom1, _Dom2>, typename std::__fun<std::__less_equal, typename _Dom1::value_type>::result_type> std::operator<=(const std::_Expr<_Dom1, typename _Dom1::value_type>&, const std::_Expr<_Dom2, typename _Dom2::value_type>&)' 421 | _DEFINE_EXPR_BINARY_OPERATOR(<=, struct std::__less_equal) | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~ /usr/include/c++/11/bits/valarray_after.h:421:5: note: template argument deduction/substitution failed: lot.cpp:61:51: note: '__gnu_cxx::__alloc_traits<std::allocator<std::pair<int, int> >, std::pair<int, int> >::value_type' {aka 'std::pair<int, int>'} is not derived from 'const std::_Expr<_Dom1, typename _Dom1::value_type>' 61 | while(ak<pom.size()-1 && pom[ak+1]<=i)ak++; | ^ In file included from /usr/include/c++/11/valarray:603, from /usr/include/x86_64-linux-gnu/c++/11/bits/stdc++.h:95, from lot.cpp:1: /usr/include/c++/11/bits/valarray_after.h:421:5: note: candidate: 'template<class _Dom> std::_Expr<std::__detail::_BinClos<std::__less_equal, std::_Expr, std::_Constant, _Dom, typename _Dom::value_type>, typename std::__fun<std::__less_equal, typename _Dom1::value_type>::result_type> std::operator<=(const std::_Expr<_Dom1, typename _Dom1::value_type>&, const typename _Dom::value_type&)' 421 | _DEFINE_EXPR_BINARY_OPERATOR(<=, struct std::__less_equal) | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~ /usr/include/c++/11/bits/valarray_after.h:421:5: note: template argument deduction/substitution failed: lot.cpp:61:51: note: '__gnu_cxx::__alloc_traits<std::allocator<std::pair<int, int> >, std::pair<int, int> >::value_type' {aka 'std::pair<int, int>'} is not derived from 'const std::_Expr<_Dom1, typename _Dom1::value_type>' 61 | while(ak<pom.size()-1 && pom[ak+1]<=i)ak++; | ^ In file included from /usr/include/c++/11/valarray:603, from /usr/include/x86_64-linux-gnu/c++/11/bits/stdc++.h:95, from lot.cpp:1: /usr/include/c++/11/bits/valarray_after.h:421:5: note: candidate: 'template<class _Dom> std::_Expr<std::__detail::_BinClos<std::__less_equal, std::_Constant, std::_Expr, typename _Dom::value_type, _Dom>, typename std::__fun<std::__less_equal, typename _Dom1::value_type>::result_type> std::operator<=(const typename _Dom::value_type&, const std::_Expr<_Dom1, typename _Dom1::value_type>&)' 421 | _DEFINE_EXPR_BINARY_OPERATOR(<=, struct std::__less_equal) | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~ /usr/include/c++/11/bits/valarray_after.h:421:5: note: template argument deduction/substitution failed: lot.cpp:61:51: note: mismatched types 'const std::_Expr<_Dom1, typename _Dom1::value_type>' and 'int' 61 | while(ak<pom.size()-1 && pom[ak+1]<=i)ak++; | ^ In file included from /usr/include/c++/11/valarray:603, from /usr/include/x86_64-linux-gnu/c++/11/bits/stdc++.h:95, from lot.cpp:1: /usr/include/c++/11/bits/valarray_after.h:421:5: note: candidate: 'template<class _Dom> std::_Expr<std::__detail::_BinClos<std::__less_equal, std::_Expr, std::_ValArray, _Dom, typename _Dom::value_type>, typename std::__fun<std::__less_equal, typename _Dom1::value_type>::result_type> std::operator<=(const std::_Expr<_Dom1, typename _Dom1::value_type>&, const std::valarray<typename _Dom::value_type>&)' 421 | _DEFINE_EXPR_BINARY_OPERATOR(<=, struct std::__less_equal) | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~ /usr/include/c++/11/bits/valarray_after.h:421:5: note: template argument deduction/substitution failed: lot.cpp:61:51: note: '__gnu_cxx::__alloc_traits<std::allocator<std::pair<int, int> >, std::pair<int, int> >::value_type' {aka 'std::pair<int, int>'} is not derived from 'const std::_Expr<_Dom1, typename _Dom1::value_type>' 61 | while(ak<pom.size()-1 && pom[ak+1]<=i)ak++; | ^ In file included from /usr/include/c++/11/valarray:603, from /usr/include/x86_64-linux-gnu/c++/11/bits/stdc++.h:95, from lot.cpp:1: /usr/include/c++/11/bits/valarray_after.h:421:5: note: candidate: 'template<class _Dom> std::_Expr<std::__detail::_BinClos<std::__less_equal, std::_ValArray, std::_Expr, typename _Dom::value_type, _Dom>, typename std::__fun<std::__less_equal, typename _Dom1::value_type>::result_type> std::operator<=(const std::valarray<typename _Dom::value_type>&, const std::_Expr<_Dom1, typename _Dom1::value_type>&)' 421 | _DEFINE_EXPR_BINARY_OPERATOR(<=, struct std::__less_equal) | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~ /usr/include/c++/11/bits/valarray_after.h:421:5: note: template argument deduction/substitution failed: lot.cpp:61:51: note: mismatched types 'const std::_Expr<_Dom1, typename _Dom1::value_type>' and 'int' 61 | while(ak<pom.size()-1 && pom[ak+1]<=i)ak++; | ^ In file included from /usr/include/x86_64-linux-gnu/c++/11/bits/stdc++.h:95, from lot.cpp:1: /usr/include/c++/11/valarray:1202:1: note: candidate: 'template<class _Tp> std::_Expr<std::__detail::_BinClos<std::__less_equal, std::_ValArray, std::_ValArray, _Tp, _Tp>, typename std::__fun<std::__less_equal, _Tp>::result_type> std::operator<=(const std::valarray<_Tp>&, const std::valarray<_Tp>&)' 1202 | _DEFINE_BINARY_OPERATOR(<=, __less_equal) | ^~~~~~~~~~~~~~~~~~~~~~~ /usr/include/c++/11/valarray:1202:1: note: template argument deduction/substitution failed: lot.cpp:61:51: note: '__gnu_cxx::__alloc_traits<std::allocator<std::pair<int, int> >, std::pair<int, int> >::value_type' {aka 'std::pair<int, int>'} is not derived from 'const std::valarray<_Tp>' 61 | while(ak<pom.size()-1 && pom[ak+1]<=i)ak++; | ^ In file included from /usr/include/x86_64-linux-gnu/c++/11/bits/stdc++.h:95, from lot.cpp:1: /usr/include/c++/11/valarray:1202:1: note: candidate: 'template<class _Tp> std::_Expr<std::__detail::_BinClos<std::__less_equal, std::_ValArray, std::_Constant, _Tp, _Tp>, typename std::__fun<std::__less_equal, _Tp>::result_type> std::operator<=(const std::valarray<_Tp>&, const typename std::valarray<_Tp>::value_type&)' 1202 | _DEFINE_BINARY_OPERATOR(<=, __less_equal) | ^~~~~~~~~~~~~~~~~~~~~~~ /usr/include/c++/11/valarray:1202:1: note: template argument deduction/substitution failed: lot.cpp:61:51: note: '__gnu_cxx::__alloc_traits<std::allocator<std::pair<int, int> >, std::pair<int, int> >::value_type' {aka 'std::pair<int, int>'} is not derived from 'const std::valarray<_Tp>' 61 | while(ak<pom.size()-1 && pom[ak+1]<=i)ak++; | ^ In file included from /usr/include/x86_64-linux-gnu/c++/11/bits/stdc++.h:95, from lot.cpp:1: /usr/include/c++/11/valarray:1202:1: note: candidate: 'template<class _Tp> std::_Expr<std::__detail::_BinClos<std::__less_equal, std::_Constant, std::_ValArray, _Tp, _Tp>, typename std::__fun<std::__less_equal, _Tp>::result_type> std::operator<=(const typename std::valarray<_Tp>::value_type&, const std::valarray<_Tp>&)' 1202 | _DEFINE_BINARY_OPERATOR(<=, __less_equal) | ^~~~~~~~~~~~~~~~~~~~~~~ /usr/include/c++/11/valarray:1202:1: note: template argument deduction/substitution failed: lot.cpp:61:51: note: mismatched types 'const std::valarray<_Tp>' and 'int' 61 | while(ak<pom.size()-1 && pom[ak+1]<=i)ak++; | ^ In file included from /usr/include/c++/11/forward_list:38, from /usr/include/x86_64-linux-gnu/c++/11/bits/stdc++.h:104, from lot.cpp:1: /usr/include/c++/11/bits/forward_list.h:1497:5: note: candidate: 'template<class _Tp, class _Alloc> bool std::operator<=(const std::forward_list<_Tp, _Alloc>&, const std::forward_list<_Tp, _Alloc>&)' 1497 | operator<=(const forward_list<_Tp, _Alloc>& __lx, | ^~~~~~~~ /usr/include/c++/11/bits/forward_list.h:1497:5: note: template argument deduction/substitution failed: lot.cpp:61:51: note: '__gnu_cxx::__alloc_traits<std::allocator<std::pair<int, int> >, std::pair<int, int> >::value_type' {aka 'std::pair<int, int>'} is not derived from 'const std::forward_list<_Tp, _Alloc>' 61 | while(ak<pom.size()-1 && pom[ak+1]<=i)ak++; | ^ In file included from /usr/include/x86_64-linux-gnu/c++/11/bits/stdc++.h:130, from lot.cpp:1: /usr/include/c++/11/optional:1079:5: note: candidate: 'template<class _Tp, class _Up> constexpr std::__optional_le_t<_Tp, _Up> std::operator<=(const std::optional<_Tp>&, const std::optional<_Up>&)' 1079 | operator<=(const optional<_Tp>& __lhs, const optional<_Up>& __rhs) | ^~~~~~~~ /usr/include/c++/11/optional:1079:5: note: template argument deduction/substitution failed: lot.cpp:61:51: note: '__gnu_cxx::__alloc_traits<std::allocator<std::pair<int, int> >, std::pair<int, int> >::value_type' {aka 'std::pair<int, int>'} is not derived from 'const std::optional<_Tp>' 61 | while(ak<pom.size()-1 && pom[ak+1]<=i)ak++; | ^ In file included from /usr/include/x86_64-linux-gnu/c++/11/bits/stdc++.h:130, from lot.cpp:1: /usr/include/c++/11/optional:1151:5: note: candidate: 'template<class _Tp> constexpr bool std::operator<=(const std::optional<_Tp>&, std::nullopt_t)' 1151 | operator<=(const optional<_Tp>& __lhs, nullopt_t) noexcept | ^~~~~~~~ /usr/include/c++/11/optional:1151:5: note: template argument deduction/substitution failed: lot.cpp:61:51: note: '__gnu_cxx::__alloc_traits<std::allocator<std::pair<int, int> >, std::pair<int, int> >::value_type' {aka 'std::pair<int, int>'} is not derived from 'const std::optional<_Tp>' 61 | while(ak<pom.size()-1 && pom[ak+1]<=i)ak++; | ^ In file included from /usr/include/x86_64-linux-gnu/c++/11/bits/stdc++.h:130, from lot.cpp:1: /usr/include/c++/11/optional:1156:5: note: candidate: 'template<class _Tp> constexpr bool std::operator<=(std::nullopt_t, const std::optional<_Tp>&)' 1156 | operator<=(nullopt_t, const optional<_Tp>& /* __rhs */) noexcept | ^~~~~~~~ /usr/include/c++/11/optional:1156:5: note: template argument deduction/substitution failed: lot.cpp:61:51: note: mismatched types 'const std::optional<_Tp>' and 'int' 61 | while(ak<pom.size()-1 && pom[ak+1]<=i)ak++; | ^ In file included from /usr/include/x86_64-linux-gnu/c++/11/bits/stdc++.h:130, from lot.cpp:1: /usr/include/c++/11/optional:1221:5: note: candidate: 'template<class _Tp, class _Up> constexpr std::__optional_le_t<_Tp, _Up> std::operator<=(const std::optional<_Tp>&, const _Up&)' 1221 | operator<=(const optional<_Tp>& __lhs, const _Up& __rhs) | ^~~~~~~~ /usr/include/c++/11/optional:1221:5: note: template argument deduction/substitution failed: lot.cpp:61:51: note: '__gnu_cxx::__alloc_traits<std::allocator<std::pair<int, int> >, std::pair<int, int> >::value_type' {aka 'std::pair<int, int>'} is not derived from 'const std::optional<_Tp>' 61 | while(ak<pom.size()-1 && pom[ak+1]<=i)ak++; | ^ In file included from /usr/include/x86_64-linux-gnu/c++/11/bits/stdc++.h:130, from lot.cpp:1: /usr/include/c+