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

Compile Error

duckhunt29.cpp: In function ‘void finddist(int, int)’:
duckhunt29.cpp:17:17: error: expected ‘)’ before ‘]’ token
17 | if(p[i] % N +1] == 0) res = -res;
| ~ ^
| )
duckhunt29.cpp:17:17: error: expected primary-expression before ‘]’ token