potion.cpp: In function 'void upd(int, bool, int, int&, long long int, long long int)':
potion.cpp:34:44: error: cannot bind non-const lvalue reference of type 'int&' to a value of type 'long long int'
34 | upd(pos, val, t[v].l, t[u].l, ls);
| ~~~~~^
potion.cpp:26:50: note: initializing argument 4 of 'void upd(int, bool, int, int&, long long int, long long int)'
26 | void upd(signed pos, bool val, signed v, signed &u, ll tl = 1, ll tr = 1ll * n * n) {
| ~~~~~~~~^
potion.cpp:37:44: error: cannot bind non-const lvalue reference of type 'int&' to a value of type 'long long int'
37 | upd(pos, val, t[v].r, t[u].r, rs);
| ~~~~~^
potion.cpp:26:50: note: initializing argument 4 of 'void upd(int, bool, int, int&, long long int, long long int)'
26 | void upd(signed pos, bool val, signed v, signed &u, ll tl = 1, ll tr = 1ll * n * n) {
| ~~~~~~~~^
potion.cpp: In function 'void curseChanges(int, int*, int*)':
potion.cpp:75:56: error: cannot bind non-const lvalue reference of type 'int&' to a value of type 'long long int'
75 | upd((a - 1) * n + b, 1, root[i - 1], root[i]);
| ~~~~~~^
potion.cpp:26:50: note: initializing argument 4 of 'void upd(int, bool, int, int&, long long int, long long int)'
26 | void upd(signed pos, bool val, signed v, signed &u, ll tl = 1, ll tr = 1ll * n * n) {
| ~~~~~~~~^
potion.cpp:78:56: error: cannot bind non-const lvalue reference of type 'int&' to a value of type 'long long int'
78 | upd((a - 1) * n + b, 0, root[i - 1], root[i]);
| ~~~~~~^
potion.cpp:26:50: note: initializing argument 4 of 'void upd(int, bool, int, int&, long long int, long long int)'
26 | void upd(signed pos, bool val, signed v, signed &u, ll tl = 1, ll tr = 1ll * n * n) {
| ~~~~~~~~^
potion.cpp:83:48: error: cannot bind non-const lvalue reference of type 'int&' to a value of type 'long long int'
83 | upd((a - 1) * n + b, 1, rot, root[i]);
| ~~~~~~^
potion.cpp:26:50: note: initializing argument 4 of 'void upd(int, bool, int, int&, long long int, long long int)'
26 | void upd(signed pos, bool val, signed v, signed &u, ll tl = 1, ll tr = 1ll * n * n) {
| ~~~~~~~~^
potion.cpp:85:48: error: cannot bind non-const lvalue reference of type 'int&' to a value of type 'long long int'
85 | upd((a - 1) * n + b, 0, rot, root[i]);
| ~~~~~~^
potion.cpp:26:50: note: initializing argument 4 of 'void upd(int, bool, int, int&, long long int, long long int)'
26 | void upd(signed pos, bool val, signed v, signed &u, ll tl = 1, ll tr = 1ll * n * n) {
| ~~~~~~~~^