pilot.cpp: In function 'void solve()':
pilot.cpp:35:26: error: no matching function for call to 'upper_bound(std::vector<long long int>::iterator, std::vector<long long int>::iterator)'
35 | int f=upper_bound(all(v));
| ~~~~~~~~~~~^~~~~~~~
In file included from /usr/include/c++/11/string:52,
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 pilot.cpp:1:
/usr/include/c++/11/bits/stl_algo.h:2067:5: note: candidate: 'template<class _FIter, class _Tp> constexpr _FIter std::upper_bound(_FIter, _FIter, const _Tp&)'
2067 | upper_bound(_ForwardIterator __first, _ForwardIterator __last,
| ^~~~~~~~~~~
/usr/include/c++/11/bits/stl_algo.h:2067:5: note: template argument deduction/substitution failed:
pilot.cpp:35:26: note: candidate expects 3 arguments, 2 provided
35 | int f=upper_bound(all(v));
| ~~~~~~~~~~~^~~~~~~~
In file included from /usr/include/c++/11/string:52,
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 pilot.cpp:1:
/usr/include/c++/11/bits/stl_algo.h:2098:5: note: candidate: 'template<class _FIter, class _Tp, class _Compare> constexpr _FIter std::upper_bound(_FIter, _FIter, const _Tp&, _Compare)'
2098 | upper_bound(_ForwardIterator __first, _ForwardIterator __last,
| ^~~~~~~~~~~
/usr/include/c++/11/bits/stl_algo.h:2098:5: note: template argument deduction/substitution failed:
pilot.cpp:35:26: note: candidate expects 4 arguments, 2 provided
35 | int f=upper_bound(all(v));
| ~~~~~~~~~~~^~~~~~~~