Problem duckhunt29
User CKCodeBreaker55
Submission Time 2026-02-28 16:34:13
Score 0
Max Time N/A
Max Memory N/A

Compile Error

duckhunt29.cpp: In function ‘void finddist(int, int)’:
duckhunt29.cpp:4:2: error: ‘vector’ was not declared in this scope
4 | vector<bool> pattern(N);
| ^~~~~~
duckhunt29.cpp:4:9: error: expected primary-expression before ‘bool’
4 | vector<bool> pattern(N);
| ^~~~
duckhunt29.cpp:10:4: error: ‘pattern’ was not declared in this scope
10 | pattern[i] = true;
| ^~~~~~~
duckhunt29.cpp:14:4: error: ‘pattern’ was not declared in this scope
14 | pattern[i] = false;
| ^~~~~~~
duckhunt29.cpp:25:10: error: ‘pattern’ was not declared in this scope
25 | ans *= pattern[queries];
| ^~~~~~~