nekameleoni.cpp:33:45: error: cannot bind non-const lvalue reference of type 'int&' to an rvalue of type 'int'
33 | void update_node(int &node,int &val,int &t=0){
| ^
nekameleoni.cpp: In function 'void update(int, int, int, int, int)':
nekameleoni.cpp:83:33: error: cannot bind non-const lvalue reference of type 'int&' to an rvalue of type 'int'
83 | update_node(seg[node].l[i],v0l);
| ^
nekameleoni.cpp:33:42: note: in passing argument 3 of 'void update_node(int&, int&, int&)'
33 | void update_node(int &node,int &val,int &t=0){
| ~~~~~^~~
nekameleoni.cpp:84:33: error: cannot bind non-const lvalue reference of type 'int&' to an rvalue of type 'int'
84 | update_node(seg[node].l[i],v0r);
| ^
nekameleoni.cpp:33:42: note: in passing argument 3 of 'void update_node(int&, int&, int&)'
33 | void update_node(int &node,int &val,int &t=0){
| ~~~~~^~~
nekameleoni.cpp:85:33: error: cannot bind non-const lvalue reference of type 'int&' to an rvalue of type 'int'
85 | update_node(seg[node].l[i],v1l);
| ^
nekameleoni.cpp:33:42: note: in passing argument 3 of 'void update_node(int&, int&, int&)'
33 | void update_node(int &node,int &val,int &t=0){
| ~~~~~^~~
nekameleoni.cpp:86:33: error: cannot bind non-const lvalue reference of type 'int&' to an rvalue of type 'int'
86 | update_node(seg[node].l[i],v1r);
| ^
nekameleoni.cpp:33:42: note: in passing argument 3 of 'void update_node(int&, int&, int&)'
33 | void update_node(int &node,int &val,int &t=0){
| ~~~~~^~~
nekameleoni.cpp:87:34: error: cannot bind non-const lvalue reference of type 'int&' to an rvalue of type 'int'
87 | update_node(seg[node].r[i],v0l,1);
| ^
nekameleoni.cpp:33:42: note: initializing argument 3 of 'void update_node(int&, int&, int&)'
33 | void update_node(int &node,int &val,int &t=0){
| ~~~~~^~~
nekameleoni.cpp:88:34: error: cannot bind non-const lvalue reference of type 'int&' to an rvalue of type 'int'
88 | update_node(seg[node].r[i],v0r,1);
| ^
nekameleoni.cpp:33:42: note: initializing argument 3 of 'void update_node(int&, int&, int&)'
33 | void update_node(int &node,int &val,int &t=0){
| ~~~~~^~~
nekameleoni.cpp:89:34: error: cannot bind non-const lvalue reference of type 'int&' to an rvalue of type 'int'
89 | update_node(seg[node].r[i],v1l,1);
| ^
nekameleoni.cpp:33:42: note: initializing argument 3 of 'void update_node(int&, int&, int&)'
33 | void update_node(int &node,int &val,int &t=0){
| ~~~~~^~~
nekameleoni.cpp:90:34: error: cannot bind non-const lvalue reference of type 'int&' to an rvalue of type 'int'
90 | update_node(seg[node].r[i],v1r,1);
| ^
nekameleoni.cpp:33:42: note: initializing argument 3 of 'void update_node(int&, int&, int&)'
33 | void update_node(int &node,int &val,int &t=0){
| ~~~~~^~~