| Problem | payraise |
|---|---|
| User | bribritt |
| Submission Time | 2024-12-14 16:37:22 |
| Score | 0 |
| Max Time | N/A |
| Max Memory | N/A |
Owl Get a Life
payraise.cpp: In member function ‘void fenwick::up(int, int, int)’:
payraise.cpp:12:15: error: cannot bind non-const lvalue reference of type ‘int&’ to an rvalue of type ‘int’
12 | for(r=hole(r+1);r<n;r+=(r&(-r))) fw[r]-=v;
| ~^~
payraise.cpp:9:23: note: initializing argument 1 of ‘int fenwick::hole(int&)’
9 | inline int hole(int &x){ return x+(x>>16);}
| ~~~~~^