Problem | password |
---|---|
User | Unforgettablepl |
Submission Time | 2024-02-14 20:04:56 |
Score | 0 |
Max Time | N/A |
Max Memory | N/A |
Owl Get a Life
password.cpp: In function ‘int32_t main()’:
password.cpp:43:79: error: no matching function for call to ‘upper_bound(long long int [300002], long long int)’
43 | int gotTill = min(n,upper_bound(costP,(int)(costP+n+1,ans+chosennegat))-costP);
| ^
In file included from /usr/include/c++/9/algorithm:62,
from /usr/include/x86_64-linux-gnu/c++/9/bits/stdc++.h:65,
from password.cpp:1:
/usr/include/c++/9/bits/stl_algo.h:2082:5: note: candidate: ‘template<class _FIter, class _Tp> _FIter std::upper_bound(_FIter, _FIter, const _Tp&)’
2082 | upper_bound(_ForwardIterator __first, _ForwardIterator __last,
| ^~~~~~~~~~~
/usr/include/c++/9/bits/stl_algo.h:2082:5: note: template argument deduction/substitution failed:
password.cpp:43:79: note: deduced conflicting types for parameter ‘_FIter’ (‘long long int*’ and ‘long