Problem duckhunt8
User wrizz69
Submission Time 2024-12-30 16:16:00
Score 0
Max Time N/A
Max Memory N/A

Compile Error

duckhunt8.cpp: In member function ‘void segtree::upd(long long int, long long int, long long int, long long int, long long int)’:
duckhunt8.cpp:60:47: error: no matching function for call to ‘segtree::upd(long long int, long long int&, long long int&, long long int&)’
60 | upd(2 * v + 1, tr, pos, newval);
| ^
duckhunt8.cpp:54:10: note: candidate: ‘void segtree::upd(long long int, long long int, long long int, long long int, long long int)’
54 | void upd(int v, int tl, int tr, int pos, int newval) {
| ^~~
duckhunt8.cpp:54:10: note: candidate expects 5 arguments, 4 provided