Mountains.cpp: In function 'void solution()':
Mountains.cpp:53:50: error: no matching function for call to 'lower_bound(std::vector<long long int>::iterator, std::vector<long long int>::iterator)'
53 | H[i] = lower_bound(zip.begin(), zip.end()) - zip.begin() + 1;
| ^
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 Mountains.cpp:1:
/usr/include/c++/10/bits/stl_algobase.h:1350:5: note: candidate: 'template<class _ForwardIterator, class _Tp> _ForwardIterator std::lower_bound(_ForwardIterator, _ForwardIterator, const _Tp&)'
1350 | lower_bound(_ForwardIterator __first, _ForwardIterator __last,
| ^~~~~~~~~~~
/usr/include/c++/10/bits/stl_algobase.h:1350:5: note: template argument deduction/substitution failed:
Mountains.cpp:53:50: note: candidate expects 3 arguments, 2 provided
53 | H[i] = lower_bound(zip.begin(), zip.end()) - zip.begin() + 1;
| ^
In file included from /usr/include/c++/10/algorithm:62,
from /usr/include/x86_64-linux-gnu/c++/10/bits/stdc++.h:65,
from Mountains.cpp:1:
/usr/include/c++/10/bits/stl_algo.h:2031:5: note: candidate: 'template<class _FIter, class _Tp, class _Compare> _FIter std::lower_bound(_FIter, _FIter, const _Tp&, _Compare)'
2031 | lower_bound(_ForwardIterator __first, _ForwardIterator __last,
| ^~~~~~~~~~~
/usr/include/c++/10/bits/stl_algo.h:2031:5: note: template argument deduction/substitution failed:
Mountains.cpp:53:50: note: candidate expects 4 arguments, 2 provided
53 | H[i] = lower_bound(zip.begin(), zip.end()) - zip.begin() + 1;
| ^
Mountains.cpp: In function 'int main()':
Mountains.cpp:79:18: error: expected primary-expression before string constant
79 | if(fopen(FILE".inp","r")) {
| ^~~~~~
Mountains.cpp:80:21: error: expected primary-expression before string constant
80 | freopen(FILE".inp","r",stdin);
| ^~~~~~
Mountains.cpp:81:21: error: expected primary-expression before string constant
81 | freopen(FILE".out","w",stdout);
| ^~~~~~