Problem | lunchbox |
---|---|
User | Henries |
Submission Time | 2024-10-07 22:35:03 |
Score | 0 |
Max Time | N/A |
Max Memory | N/A |
Owl Get a Life
lunchbox.cpp: In function ‘int main()’:
lunchbox.cpp:26:46: error: no type named ‘value_type’ in ‘struct std::greater<long long int>’
26 | priority_queue<long long , greater<long long>> pq;
| ^~
lunchbox.cpp:26:46: error: template argument 3 is invalid
lunchbox.cpp:29:6: error: request for member ‘push’ in ‘pq’, which is of non-class type ‘int’
29 | pq.push(num);
| ^~~~
lunchbox.cpp:31:8: error: ‘v’ was not declared in this scope
31 | solve(v,n);
| ^