Problem duckhunt2
User pavement
Submission Time 2024-12-14 10:05:04
Score 0
Max Time N/A
Max Memory N/A

Compile Error

duckhunt2.cpp: In function ‘int main()’:
duckhunt2.cpp:81:29: error: redeclaration of ‘int ans’
81 | int lo = 0, hi = (int)1e9, ans = -1;
| ^~~
duckhunt2.cpp:66:6: note: ‘int ans’ previously declared here
66 | int ans = 0;
| ^~~