Problem duckhunt13
User Jiajing
Submission Time 2025-06-18 13:31:23
Score 0
Max Time N/A
Max Memory N/A

Compile Error

duckhunt13.cpp: In function ‘int main()’:
duckhunt13.cpp:22:38: error: invalid operands of types ‘<unresolved overloaded function type>’ and ‘int’ to binary ‘operator!=’
22 | while(duck.top() == X && duck.top != 0){
| ~~~~~~~~ ^~ ~
| | |
| | int
| <unresolved overloaded function type>