Problem | laptop |
---|---|
User | mentcletan |
Submission Time | 2024-10-19 08:02:01 |
Score | 0 |
Max Time | N/A |
Max Memory | N/A |
Owl Get a Life
laptop.cpp: In function ‘int main()’:
laptop.cpp:5:37: error: no type named ‘value_type’ in ‘struct std::greater<int>’
5 | priority_queue <int, greater<int>> p;
| ^~
laptop.cpp:5:37: error: template argument 3 is invalid
laptop.cpp:6:37: error: no type named ‘value_type’ in ‘struct std::greater<int>’
6 | priority_queue <int, greater<int>> q;
| ^~
laptop.cpp:6:37: error: template argument 3 is invalid
laptop.cpp:10:15: error: request for member ‘push’ in ‘p’, which is of non-class type ‘int’
10 | p.push(d);
| ^~~~
laptop.cpp:13:15: error: request for member ‘push’ in ‘q’, which is of non-class type ‘int’
13 | q.push(d);
| ^~~~
laptop.cpp:16:12: error: request for member ‘empty’ in ‘q’, which is of non-class type ‘int’
16 | if (!q.