Problem duckhunt29
User bachnguyen123
Submission Time 2025-12-28 10:50:35
Score 0
Max Time N/A
Max Memory N/A

Compile Error

duckhunt29.cpp: In function ‘void finddist(int, int)’:
duckhunt29.cpp:16:6: error: ‘qry’ was not declared in this scope; did you mean ‘query’?
16 | if(qry(x) * p[i] == 1) mi = x+1;
| ^~~
| query
duckhunt29.cpp:16:26: error: ‘mi’ was not declared in this scope; did you mean ‘i’?
16 | if(qry(x) * p[i] == 1) mi = x+1;
| ^~
| i
duckhunt29.cpp:17:8: error: ‘ma’ was not declared in this scope; did you mean ‘fma’?
17 | else ma = x-1;
| ^~
| fma