Problem duckhunt29
User ForgottenDragon
Submission Time 2025-12-12 11:45:13
Score 0
Max Time N/A
Max Memory N/A

Compile Error

duckhunt29.cpp: In function ‘void finddist(int, int)’:
duckhunt29.cpp:10:21: error: ‘p’ was not declared in this scope
10 | if (m%N == 0) a = p[N-1];
| ^
duckhunt29.cpp:11:12: error: ‘p’ was not declared in this scope
11 | else a = p[m%N-1];
| ^