Problem robots
User PlayVoltz
Submission Time 2024-02-23 15:41:17
Score 0
Max Time N/A
Max Memory N/A

Compile Error

robots.cpp: In function ‘long long int putaway(long long int, long long int, long long int, long long int*, long long int*, long long int*, long long 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),