Problem duckhunt12
User Karax
Submission Time 2026-11-11 15:00:13
Score 0
Max Time N/A
Max Memory N/A

Compile Error

duckhunt12.cpp: In function ‘int main()’:
duckhunt12.cpp:3:13: error: expected primary-expression before ‘long’
3 | #define int long long
| ^~~~
duckhunt12.cpp:31:20: note: in expansion of macro ‘int’
31 | int divisor = gcd(int{3}, period);
| ^~~
duckhunt12.cpp:40:31: error: ‘reversemodu’ was not declared in this scope
40 | (inverse % reversemodu) % reducedmodu);
| ^~~~~~~~~~~