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

Compile Error

duckhunt29.cpp: In function ‘void finddist(int, int)’:
duckhunt29.cpp:4:5: error: ‘vector’ was not declared in this scope
4 | vector<bool> p(N+5);
| ^~~~~~
duckhunt29.cpp:4:12: error: expected primary-expression before ‘bool’
4 | vector<bool> p(N+5);
| ^~~~
duckhunt29.cpp:6:3: error: ‘p’ was not declared in this scope
6 | p[i] = (query(1)==1?1:0);
| ^
duckhunt29.cpp:13:7: error: ‘p’ was not declared in this scope
13 | if(!p[cnt]) u = (-1)*u;
| ^