stations.cpp: In function 'int find_next_station(int, int, std::vector<int>)':
stations.cpp:28:27: error: no matching function for call to 'lower_bound(std::vector<int>::iterator, std::vector<int>::iterator)'
28 | int x=(lower_bound(c.begin(),c.end()),t)-c.begin();
| ~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~
In file included from /usr/include/c++/13/vector:62,
from stations.cpp:2:
/usr/include/c++/13/bits/stl_algobase.h:1498:5: note: candidate: 'template<class _ForwardIterator, class _Tp> constexpr _ForwardIterator std::lower_bound(_ForwardIterator, _ForwardIterator, const _Tp&)'
1498 | lower_bound(_ForwardIterator __first, _ForwardIterator __last,
| ^~~~~~~~~~~
/usr/include/c++/13/bits/stl_algobase.h:1498:5: note: template argument deduction/substitution failed:
stations.cpp:28:27: note: candidate expects 3 arguments, 2 provided
28 | int x=(lower_bound(c.begin(),c.end()),t)-c.begin();
| ~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~
In file included from /usr/include/c++/13/algorithm:61,
from /usr/include/x86_64-linux-gnu/c++/13/bits/stdc++.h:51,
from stations.cpp:3:
/usr/include/c++/13/bits/stl_algo.h:2005:5: note: candidate: 'template<class _FIter, class _Tp, class _Compare> constexpr _FIter std::lower_bound(_FIter, _FIter, const _Tp&, _Compare)'
2005 | lower_bound(_ForwardIterator __first, _ForwardIterator __last,
| ^~~~~~~~~~~
/usr/include/c++/13/bits/stl_algo.h:2005:5: note: template argument deduction/substitution failed:
stations.cpp:28:27: note: candidate expects 4 arguments, 2 provided
28 | int x=(lower_bound(c.begin(),c.end()),t)-c.begin();
| ~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~
stations.cpp:33:29: error: no matching function for call to 'upper_bound(std::vector<int>::iterator, std::vector<int>::iterator)'
33 | int idx=(upper_bound(c.begin(),c.end()),t)-c.begin();
| ~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~
/usr/include/c++/13/bits/stl_algo.h:2061:5: note: candidate: 'template<class _FIter, class _Tp> constexpr _FIter std::upper_bound(_FIter, _FIter, const _Tp&)'
2061 | upper_bound(_ForwardIterator __first, _ForwardIterator __last,
| ^~~~~~~~~~~
/usr/include/c++/13/bits/stl_algo.h:2061:5: note: template argument deduction/substitution failed:
stations.cpp:33:29: note: candidate expects 3 arguments, 2 provided
33 | int idx=(upper_bound(c.begin(),c.end()),t)-c.begin();
| ~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~
/usr/include/c++/13/bits/stl_algo.h:2092:5: note: candidate: 'template<class _FIter, class _Tp, class _Compare> constexpr _FIter std::upper_bound(_FIter, _FIter, const _Tp&, _Compare)'
2092 | upper_bound(_ForwardIterator __first, _ForwardIterator __last,
| ^~~~~~~~~~~
/usr/include/c++/13/bits/stl_algo.h:2092:5: note: template argument deduction/substitution failed:
stations.cpp:33:29: note: candidate expects 4 arguments, 2 provided
33 | int idx=(upper_bound(c.begin(),c.end()),t)-c.begin();
| ~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~