Problem photo
User Daembt
Submission Time 2026-02-21 12:44:49
Score 0
Max Time N/A
Max Memory N/A

Compile Error

photo.cpp: In function ‘int main()’:
photo.cpp:29:6: error: ‘class std::priority_queue<std::tuple<int, int, int>, std::vector<std::tuple<int, int, int> >, std::greater<void> >’ has no member named ‘push_back’
29 | cry.push_back({now,i,0});
| ^~~~~~~~~
photo.cpp:37:21: error: overloaded function with no contextual type information
37 | next = sch[ar][ix+1];
| ^
photo.cpp:38:18: error: no matching function for call to ‘max(int&, <unresolved overloaded function type>)’
38 | sm = max(sm,next);
| ^
In file included from /usr/include/c++/9/deque:60,
from /usr/include/c++/9/queue:60,
from photo.cpp:1:
/usr/include/c++/9/bits/stl_algobase.h:222:5: note: candidate: ‘constexpr const _Tp& std::max(const _Tp&, const _Tp&) [with _Tp = int]’
222 | max(const _Tp& __a, const _Tp& __b)
| ^~~
/usr/inc