Problem lunchbox
User jasmine
Submission Time 2023-11-09 10:09:56
Score 0
Max Time N/A
Max Memory N/A

Compile Error

lunchbox.cpp: In function ‘int main()’:
lunchbox.cpp:13:7: error: ‘top’ was not declared in this scope
13 | pop(top(amount));
| ^~~
lunchbox.cpp:13:3: error: ‘pop’ was not declared in this scope; did you mean ‘pow’?
13 | pop(top(amount));
| ^~~
| pow
lunchbox.cpp:16:8: error: no match for ‘operator>>’ (operand types are ‘std::ostream’ {aka ‘std::basic_ostream<char>’} and ‘std::priority_queue<int>::size_type’ {aka ‘long unsigned int’})
16 | cout >> size(amount);
| ~~~~ ^~ ~~~~~~~~~~~~
| | |
| | std::priority_queue<int>::size_type {aka long unsigned int}
| std::ostream {aka std::basic_ostream<char>}
lunchbox.cpp:16:8: note: candidate: ‘operator>>(int, std::priority_queue<int>::size_type {aka long unsigned int})’ <built-in>
16 | cout >> size(amount);
| ~~~~~^~~~~~~~~~~~~~~