Problem | roadsideadverts |
---|---|
User | user123 |
Submission Time | 2023-09-20 13:22:49 |
Score | 0 |
Max Time | N/A |
Max Memory | N/A |
Owl Get a Life
roadsideadverts.cpp: In lambda function:
roadsideadverts.cpp:74:44: error: ‘pre’ was not declared in this scope
74 | sort(s, s+5, [](int x, int y) { return pre[x]<pre[y]; });
| ^~~
In file included from /usr/include/c++/9/bits/stl_algobase.h:71,
from /usr/include/c++/9/bits/char_traits.h:39,
from /usr/include/c++/9/ios:40,
from /usr/include/c++/9/ostream:38,
from /usr/include/c++/9/iostream:39,
from roadsideadverts.cpp:1:
/usr/include/c++/9/bits/predefined_ops.h: In instantiation of ‘constexpr bool __gnu_cxx::__ops::_Iter_comp_iter<_Compare>::operator()(_Iterator1, _Iterator2) [with _Iterator1 = int*; _Iterator2 = int*; _Compare = solve()::<lambda(int, int)>]’:
/usr/include/c++/9/bits/stl_algo.h:81:17: required from ‘void std::__move_median_to_first(_Iterator, _Iterator, _Iterator, _Iterator, _Comp