Problem duckhunt29
User Usu
Submission Time 2026-05-12 17:53:21
Score 0
Max Time N/A
Max Memory N/A

Compile Error

duckhunt29.cpp: In function ‘void finddist(int, int)’:
duckhunt29.cpp:7:12: error: ‘M’ was not declared in this scope
7 | int l=0,r=M,mid;
| ^
duckhunt29.cpp:9:3: error: ‘mid’ was not declared in this scope
9 | mid=(l+r)/2;
| ^~~
duckhunt29.cpp:10:24: error: ‘i’ was not declared in this scope
10 | if (query[mid]^truth[i]) l=mid+1;
| ^