Problem robots
User PlayVoltz
Submission Time 2024-02-23 15:41:43
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:26:51: error: conflicting declaration ‘std::priority_queue<long long int, std::vector<long long int>, std::greater<long long int> > pq’
26 | priority_queue<int, vector<int>, greater<int> > pq;
| ^~
robots.cpp:25:23: note: previous declaration as ‘std::priority_queue<long long int> pq’
25 | priority_queue<int> pq;
| ^~
robots.cpp:32:22: error: ‘pq2’ was not declared in this scope; did you mean ‘pq’?
32 | while (!pq.empty())pq2.push(pq.top()), pq.pop();
| ^~~
| pq
robots.cpp:33:14: error: ‘pq2’ was not declared in this scope; did you mean ‘pq’?
33 | while (p<n)pq2.push(toys[p].se), ++p;
| ^~~
| pq
robots.cpp:36:12