Problem lunchbox
User noel
Submission Time 2024-06-19 14:17:18
Score 0
Max Time N/A
Max Memory N/A

Compile Error

lunchbox.cpp: In function ‘int main()’:
lunchbox.cpp:6:18: error: ‘pii’ was not declared in this scope
6 | priority_queue<pii, vector<pii>, greater<pii>> pq
| ^~~
lunchbox.cpp:6:33: error: template argument 2 is invalid
6 | priority_queue<pii, vector<pii>, greater<pii>> pq
| ^
lunchbox.cpp:6:47: error: template argument 1 is invalid
6 | priority_queue<pii, vector<pii>, greater<pii>> pq
| ^~
lunchbox.cpp:6:47: error: template argument 2 is invalid
lunchbox.cpp:6:47: error: template argument 3 is invalid
lunchbox.cpp:6:50: error: two or more data types in declaration of ‘type name’
6 | priority_queue<pii, vector<pii>, greater<pii>> pq
| ^~
lunchbox.cpp:6:50: error: expected ‘}’ at end