Problem duckhunt42
User YSH2020
Submission Time 2025-12-26 15:59:18
Score 0
Max Time N/A
Max Memory N/A

Compile Error

duckhunt42.cpp: In function ‘int main()’:
duckhunt42.cpp:17:11: error: ‘class std::queue<int>’ has no member named ‘top’; did you mean ‘pop’?
17 | int a=q.top();q.pop();
| ^~~
| pop