Problem exhibition
User wrizz69
Submission Time 2024-05-28 11:13:01
Score 0
Max Time N/A
Max Memory N/A

Compile Error

exhibition.cpp: In function ‘int32_t main()’:
exhibition.cpp:30:35: error: no type named ‘value_type’ in ‘struct std::greater<long long int>’
30 | priority_queue<int,greater<int>>pq;
| ^~
exhibition.cpp:30:35: error: template argument 3 is invalid
exhibition.cpp:36:16: error: request for member ‘push’ in ‘pq’, which is of non-class type ‘int’
36 | pq.push(pic[j].value);
| ^~~~
exhibition.cpp:39:16: error: request for member ‘empty’ in ‘pq’, which is of non-class type ‘int’
39 | if(!pq.empty()){
| ^~~~~
exhibition.cpp:40:16: error: request for member ‘pop’ in ‘pq’, which is of non-class type ‘int’
40 | pq.pop();
| ^~~