Problem mining
User haydendoo
Submission Time 2023-02-15 09:35:36
Score 0
Max Time N/A
Max Memory N/A

Compile Error

mining.cpp: In function ‘void solve()’:
mining.cpp:279:21: error: ‘class std::queue<std::pair<std::pair<long long int, long long int>, std::pair<long long int, long long int> > >’ has no member named ‘top’; did you mean ‘pop’?
279 | auto cur=pq.top(); pq.pop();
| ^~~
| pop
mining.cpp:282:23: error: ‘y’ was not declared in this scope
282 | if(d!=dist[x][y][uses]) continue;
| ^
mining.cpp:282:26: error: ‘uses’ was not declared in this scope; did you mean ‘uset’?
282 | if(d!=dist[x][y][uses]) continue;
| ^~~~
| uset
mining.cpp:284:33: error: ‘y’ was not declared in this scope; did you mean ‘ny’?
284 | int nx=x+d4i[i], ny=y+d4j[i], nd=d+1;
| ^
| ny
mining.cpp:28