Problem candyshop
User grapecoder
Submission Time 2024-05-18 16:00:55
Score 0
Max Time N/A
Max Memory N/A

Compile Error

candyshop.cpp: In function ‘std::priority_queue<int> dfs(int)’:
candyshop.cpp:67:26: error: invalid use of void expression
67 | remaining.push(s.pop());
| ^
candyshop.cpp:75:29: error: void value not ignored as it ought to be
75 | ans += remaining.pop();
| ~~~~~~~~~~~~~^~