Problem duckhunt12
User Karax
Submission Time 2026-11-11 14:59:51
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:39:37: error: ‘mod’ was not declared in this scope; did you mean ‘modf’?
39 | (static_cast<int>(mod(rhs / divisor, reducedmodu)) *
| ^~~
| modf
duckhunt12.cpp:40:31: error: ‘reversemodu’ was not declared in this scope
40 | (inverse % reversemodu) % reducedmodu);
| ^~~~~~~~~~~
duckhunt12.cpp:40:58: error: expected ‘)’ before ‘;’ token
40 | (inverse % reversemodu) % reducedmodu);
| ^<