Problem chickensoup
User yhkhoo
Submission Time 2023-12-06 11:56:10
Score 0
Max Time N/A
Max Memory N/A

Compile Error

chickensoup.cpp: In function ‘long long int query(long long int*, long long int)’:
chickensoup.cpp:14:33: error: ‘mod’ was not declared in this scope; did you mean ‘modf’?
14 | for(; p; p -= lsb(p)) sum = mod(sum + ft[p]);
| ^~~
| modf
chickensoup.cpp: In function ‘void update(long long int*, long long int, long long int)’:
chickensoup.cpp:19:37: error: ‘mod’ was not declared in this scope; did you mean ‘modf’?
19 | for(; p <= n; p += lsb(p)) ft[p] = mod(ft[p] + v);
| ^~~
| modf