Problem duckhunt29
User Yichen
Submission Time 2025-12-12 13:36:09
Score 0
Max Time N/A
Max Memory N/A

Compile Error

duckhunt29.cpp: In function ‘void finddist(int, int)’:
duckhunt29.cpp:30:16: error: invalid operands of types ‘float’ and ‘int’ to binary ‘operator%’
30 | i=(i+1)%N;
| ~~~~~^~
| | |
| | int
| float