Problem | photo |
---|---|
User | ahrynn |
Submission Time | 2024-05-04 22:21:25 |
Score | 0 |
Max Time | N/A |
Max Memory | N/A |
Owl Get a Life
photo.cpp: In function ‘int main()’:
photo.cpp:46:51: error: no matching function for call to ‘begin(long long int [n])’
46 | long long idxmax = distance(begin(frontier), max_element(begin(frontier), end(frontier)));
| ^
In file included from /usr/include/c++/9/bits/range_access.h:36,
from /usr/include/c++/9/string:54,
from /usr/include/c++/9/bits/locale_classes.h:40,
from /usr/include/c++/9/bits/ios_base.h:41,
from /usr/include/c++/9/ios:42,
from /usr/include/c++/9/ostream:38,
from /usr/include/c++/9/iostream:39,
from photo.cpp:1:
/usr/include/c++/9/initializer_list:89:5: note: candidate: ‘template<class _Tp> constexpr const _Tp* std::begin(std::initializer_list<_Tp>)’
89 | begin(initializer_list<_Tp> __ils) noexcept
| ^~~~~