Problem robots
User shoryu386
Submission Time 2023-05-10 16:21:04
Score 0
Max Time N/A
Max Memory N/A

Compile Error

robots.cpp: In function ‘int putaway(int, int, int, int*, int*, int*, int*)’:
robots.cpp:25:18: error: ‘pi’ was not declared in this scope
25 | priority_queue<pi> pq;
| ^~
robots.cpp:25:20: error: template argument 1 is invalid
25 | priority_queue<pi> pq;
| ^
robots.cpp:25:20: error: template argument 2 is invalid
robots.cpp:25:20: error: template argument 3 is invalid
robots.cpp:30:8: error: request for member ‘push’ in ‘pq’, which is of non-class type ‘int’
30 | pq.push(toys[idx]);
| ^~~~
robots.cpp:34:24: error: ‘k’ was not declared in this scope
34 | for (int y = 0; y < k; y++){
| ^
robots.cpp:35:12: error: request for member ‘empty’ in ‘pq’, which is of non-class type ‘int’
35 | if (pq.empty()) break;
| ^~~~~
robots.cpp:36:8: error: request for member ‘pop’ in ‘pq’, which is of