grader.c: In function 'int main()':
grader.c:18:6: warning: variable 'res' set but not used [-Wunused-but-set-variable]
int res;
^~~
game.cpp: In function 'void update_coluna(Seg*&, int, int, Seg*&, Seg*&)':
game.cpp:54:55: error: cannot bind non-const lvalue reference of type 'Seg*&' to an rvalue of type 'Seg*'
update_coluna (cur -> l, l, mid, (esq && esq -> l ? esq -> l : nullptr), (dir && dir -> l ? dir -> l: nullptr) );
~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~
game.cpp:41:6: note: initializing argument 4 of 'void update_coluna(Seg*&, int, int, Seg*&, Seg*&)'
void update_coluna (Seg *&cur, int l, int r, Seg *&esq, Seg *&dir) {
^~~~~~~~~~~~~
game.cpp:58:59: error: cannot bind non-const lvalue reference of type 'Seg*&' to an rvalue of type 'Seg*'
update_coluna (cur -> r, mid + 1, r, (esq && esq -> r ? esq -> r : nullptr), (dir && dir -> r ? dir -> r : nullptr) );
~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~
game.cpp:41:6: note: initializing argument 4 of 'void update_coluna(Seg*&, int, int, Seg*&, Seg*&)'
void update_coluna (Seg *&cur, int l, int r, Seg *&esq, Seg *&dir) {
^~~~~~~~~~~~~
game.cpp: In function 'void update_linha(Node*&, int, int)':
game.cpp:71:67: error: cannot bind non-const lvalue reference of type 'Seg*&' to an rvalue of type 'Seg*'
update_coluna (cur -> segmentTree, 0, _C - 1, nullptr, nullptr);
^
game.cpp:41:6: note: initializing argument 4 of 'void update_coluna(Seg*&, int, int, Seg*&, Seg*&)'
void update_coluna (Seg *&cur, int l, int r, Seg *&esq, Seg *&dir) {
^~~~~~~~~~~~~
game.cpp:84:59: error: cannot bind non-const lvalue reference of type 'Seg*&' to an rvalue of type 'Seg*'
update_coluna (cur -> segmentTree, 0, _C - 1, (cur -> l ? cur -> l -> segmentTree: nullptr), (cur -> r ? cur -> r -> segmentTree : nullptr) );
~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
game.cpp:41:6: note: initializing argument 4 of 'void update_coluna(Seg*&, int, int, Seg*&, Seg*&)'
void update_coluna (Seg *&cur, int l, int r, Seg *&esq, Seg *&dir) {
^~~~~~~~~~~~~