Problem park
User pasit
Submission Time 2026-02-05 20:52:35
Score 0
Max Time N/A
Max Memory N/A

Compile Error

park.cpp: In function ‘int32_t main()’:
park.cpp:40:20: error: expected initializer before ‘-’ token
40 | auto [idd,ii] - qq.front();
| ^
park.cpp:40:20: error: expected ‘;’ before ‘-’ token
park.cpp:45:40: error: no matching function for call to ‘std::deque<std::pair<long long int, long long int> >::push_front(<brace-enclosed initializer list>)’
45 | if(rem > 0) qq.push_front({idd,ii});
| ^
In file included from /usr/include/c++/9/deque:67,
from /usr/include/x86_64-linux-gnu/c++/9/bits/stdc++.h:68,
from park.cpp:1:
/usr/include/c++/9/bits/stl_deque.h:1532:7: note: candidate: ‘void std::deque<_Tp, _Alloc>::push_front(const value_type&) [with _Tp = std::pair<long long int, long long int>; _Alloc = std::allocator<std::pair<long long int, long long int> >; std::deque<_Tp, _Alloc>::value_t