Problem singlefile
User jeongwonho64
Submission Time 2023-02-17 21:39:11
Score 0
Max Time N/A
Max Memory N/A

Compile Error

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