Problem gotoubun
User Gladius3482
Submission Time 2022-12-27 16:47:11
Score 0
Max Time N/A
Max Memory N/A

Compile Error

gotoubun.cpp: In member function ‘void fenwick::update(long long int, long long int)’:
gotoubun.cpp:15:22: error: ‘mod’ was not declared in this scope; did you mean ‘modf’?
15 | fw[x] %= mod;
| ^~~
| modf
gotoubun.cpp: In member function ‘long long int fenwick::sum(long long int)’:
gotoubun.cpp:20:50: error: ‘mod’ was not declared in this scope; did you mean ‘modf’?
20 | for(; x; x-=x&(-x)) res += fw[x], res %= mod;
| ^~~
| modf