Problem | lunchbox |
---|---|
User | Henries |
Submission Time | 2024-10-07 22:35:41 |
Score | 0 |
Max Time | N/A |
Max Memory | N/A |
Owl Get a Life
lunchbox.cpp:3:54: error: no type named ‘value_type’ in ‘struct std::greater<long long int>’
3 | void solve(priority_queue<long long,greater<long long>> pq,long long n){
| ^~
lunchbox.cpp:3:54: error: template argument 3 is invalid
lunchbox.cpp: In function ‘void solve(int, long long int)’:
lunchbox.cpp:7:16: error: request for member ‘top’ in ‘pq’, which is of non-class type ‘int’
7 | int min = pq.top();
| ^~~
lunchbox.cpp:16:6: error: request for member ‘pop’ in ‘pq’, which is of non-class type ‘int’
16 | pq.pop();
| ^~~
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: templat