Problem gotoubun
User haydendoo
Submission Time 2022-12-23 07:46:13
Score 0
Max Time N/A
Max Memory N/A

Compile Error

gotoubun.cpp: In member function ‘long long int fenwick::range_sum(long long int, long long int)’:
gotoubun.cpp:23:32: error: cannot bind non-const lvalue reference of type ‘long long int&’ to an rvalue of type ‘long long int’
23 | int ans=sub(sum(r) - sum(l-1) + mod);
| ~~~~~~~~~~~~~~~~~~^~~~~
gotoubun.cpp:8:22: note: initializing argument 1 of ‘void sub(long long int&)’
8 | inline void sub(int &x) {
| ^