Problem specialgirlfriends
User BoneMeBurner
Submission Time 2024-08-19 15:02:18
Score 0
Max Time N/A
Max Memory N/A

Compile Error

specialgirlfriends.cpp: In function ‘int main()’:
specialgirlfriends.cpp:13:82: error: no matching function for call to ‘pow(int, int, const int&)’
13 | sum = (sum + (1LL * (x % MOD) * (x % MOD) % MOD * pow(x % MOD, b - 2, MOD) % MOD)) % MOD;
| ^
In file included from /usr/include/features.h:461,
from /usr/include/x86_64-linux-gnu/c++/9/bits/os_defines.h:39,
from /usr/include/x86_64-linux-gnu/c++/9/bits/c++config.h:528,
from /usr/include/c++/9/cassert:43,
from /usr/include/x86_64-linux-gnu/c++/9/bits/stdc++.h:33,
from specialgirlfriends.cpp:1:
/usr/include/x86_64-linux-gnu/bits/mathcalls.h:140:1: note: candidate: ‘double pow(double, double)’
140 | __MATHCALL_VEC (pow,, (_Mdouble_ __x, _Mdouble_ __y));
| ^~~~~~~~~~~~~~
/usr/include/x86_64-linux-gnu/bits/mathcal