robots.cpp: In function 'int putaway(int, int, int, int*, int*, int*, int*)':
robots.cpp:43:21: warning: comparison of integer expressions of different signedness: 'long long int' and 'std::vector<std::pair<int, int> >::size_type' {aka 'long unsigned int'} [-Wsign-compare]
43 | while(R < v.size() && v[R].fi < X[i])
| ~~^~~~~~~~~~
robots.cpp:47:67: error: no matching function for call to 'std::multiset<std::pair<int, int> >::find(const int&, const int&)'
47 | st.erase(st.find(st.rbegin()->fi , st.rbegin()->se));
| ^
In file included from /usr/include/c++/10/set:62,
from /usr/include/x86_64-linux-gnu/c++/10/bits/stdc++.h:87,
from robots.cpp:1:
/usr/include/c++/10/bits/stl_multiset.h:775:7: note: candidate: 'std::multiset<_Key, _Compare, _Alloc>::iterator std::multiset<_Key, _Compare, _Alloc>::find(const key_type&) [with _Key = std::pair<int, int>; _Compare = std::less<std::pair<int, int> >; _Alloc = std::allocator<std::pair<int, int> >; std::multiset<_Key, _Compare, _Alloc>::iterator = std::_Rb_tree<std::pair<int, int>, std::pair<int, int>, std::_Identity<std::pair<int, int> >, std::less<std::pair<int, int> >, std::allocator<std::pair<int, int> > >::const_iterator; std::multiset<_Key, _Compare, _Alloc>::key_type = std::pair<int, int>]'
775 | find(const key_type& __x)
| ^~~~
/usr/include/c++/10/bits/stl_multiset.h:775:7: note: candidate expects 1 argument, 2 provided
/usr/include/c++/10/bits/stl_multiset.h:779:7: note: candidate: 'std::multiset<_Key, _Compare, _Alloc>::const_iterator std::multiset<_Key, _Compare, _Alloc>::find(const key_type&) const [with _Key = std::pair<int, int>; _Compare = std::less<std::pair<int, int> >; _Alloc = std::allocator<std::pair<int, int> >; std::multiset<_Key, _Compare, _Alloc>::const_iterator = std::_Rb_tree<std::pair<int, int>, std::pair<int, int>, std::_Identity<std::pair<int, int> >, std::less<std::pair<int, int> >, std::allocator<std::pair<int, int> > >::const_iterator; std::multiset<_Key, _Compare, _Alloc>::key_type = std::pair<int, int>]'
779 | find(const key_type& __x) const
| ^~~~
/usr/include/c++/10/bits/stl_multiset.h:779:7: note: candidate expects 1 argument, 2 provided
/usr/include/c++/10/bits/stl_multiset.h:785:2: note: candidate: 'template<class _Kt> decltype (std::multiset<_Key, _Compare, _Alloc>::iterator{((std::multiset<_Key, _Compare, _Alloc>*)this)->std::multiset<_Key, _Compare, _Alloc>::_M_t._M_find_tr(__x)}) std::multiset<_Key, _Compare, _Alloc>::find(const _Kt&) [with _Kt = _Kt; _Key = std::pair<int, int>; _Compare = std::less<std::pair<int, int> >; _Alloc = std::allocator<std::pair<int, int> >]'
785 | find(const _Kt& __x)
| ^~~~
/usr/include/c++/10/bits/stl_multiset.h:785:2: note: template argument deduction/substitution failed:
robots.cpp:47:67: note: candidate expects 1 argument, 2 provided
47 | st.erase(st.find(st.rbegin()->fi , st.rbegin()->se));
| ^
In file included from /usr/include/c++/10/set:62,
from /usr/include/x86_64-linux-gnu/c++/10/bits/stdc++.h:87,
from robots.cpp:1:
/usr/include/c++/10/bits/stl_multiset.h:791:2: note: candidate: 'template<class _Kt> decltype (std::multiset<_Key, _Compare, _Alloc>::const_iterator{((const std::multiset<_Key, _Compare, _Alloc>*)this)->std::multiset<_Key, _Compare, _Alloc>::_M_t._M_find_tr(__x)}) std::multiset<_Key, _Compare, _Alloc>::find(const _Kt&) const [with _Kt = _Kt; _Key = std::pair<int, int>; _Compare = std::less<std::pair<int, int> >; _Alloc = std::allocator<std::pair<int, int> >]'
791 | find(const _Kt& __x) const
| ^~~~
/usr/include/c++/10/bits/stl_multiset.h:791:2: note: template argument deduction/substitution failed:
robots.cpp:47:67: note: candidate expects 1 argument, 2 provided
47 | st.erase(st.find(st.rbegin()->fi , st.rbegin()->se));
| ^
robots.cpp:50:22: warning: comparison of integer expressions of different signedness: 'long long int' and 'std::vector<std::pair<int, int> >::size_type' {aka 'long unsigned int'} [-Wsign-compare]
50 | for(i = R; i < v.size(); i++)
| ~~^~~~~~~~~~
robots.cpp:23:12: warning: unused variable 'j' [-Wunused-variable]
23 | ll i , j , l ,r , s = 0 , f , x , y , k , n, m , ans = 0;
| ^
robots.cpp:23:23: warning: unused variable 's' [-Wunused-variable]
23 | ll i , j , l ,r , s = 0 , f , x , y , k , n, m , ans = 0;
| ^
robots.cpp:23:31: warning: unused variable 'f' [-Wunused-variable]
23 | ll i , j , l ,r , s = 0 , f , x , y , k , n, m , ans = 0;
| ^
robots.cpp:23:35: warning: unused variable 'x' [-Wunused-variable]
23 | ll i , j , l ,r , s = 0 , f , x , y , k , n, m , ans = 0;
| ^
robots.cpp:23:43: warning: unused variable 'k' [-Wunused-variable]
23 | ll i , j , l ,r , s = 0 , f , x , y , k , n, m , ans = 0;
| ^
robots.cpp:23:47: warning: unused variable 'n' [-Wunused-variable]
23 | ll i , j , l ,r , s = 0 , f , x , y , k , n, m , ans = 0;
| ^
robots.cpp:23:54: warning: unused variable 'ans' [-Wunused-variable]
23 | ll i , j , l ,r , s = 0 , f , x , y , k , n, m , ans = 0;
| ^~~