wall.cpp:32:23: error: expected ';' at end of member declaration
32 | struct Node { int mx, mn };
| ^~
| ;
wall.cpp: In member function 'void SegTree::update(int, int, int, int, int, int, int)':
wall.cpp:74:33: error: no matching function for call to 'SegTree::update(int, int&, int&, int&, int&)'
74 | update(2*u, tl, tm, l, r);
| ^
wall.cpp:56:10: note: candidate: 'void SegTree::update(int, int, int, int, int, int, int)'
56 | void update(int u, int tl, int tr, int l, int r, int type, int val) {
| ^~~~~~
wall.cpp:56:10: note: candidate expects 7 arguments, 5 provided
wall.cpp:75:37: error: no matching function for call to 'SegTree::update(int, int, int&, int&, int&)'
75 | update(2*u+1, tm+1, tr, l, r);
| ^
wall.cpp:56:10: note: candidate: 'void SegTree::update(int, int, int, int, int, int, int)'
56 | void update(int u, int tl, int tr, int l, int r, int type, int val) {
| ^~~~~~
wall.cpp:56:10: note: candidate expects 7 arguments, 5 provided
wall.cpp: In member function 'void SegTree::query(int, int, int)':
wall.cpp:80:11: error: 'l' was not declared in this scope; did you mean 'ld'?
80 | ans[l] = tree[k].mn;
| ^
| ld
wall.cpp:80:21: error: 'k' was not declared in this scope
80 | ans[l] = tree[k].mn;
| ^
wall.cpp:86:17: error: 'l' was not declared in this scope; did you mean 'ld'?
86 | query(2*u, l, tm);
| ^
| ld
wall.cpp:87:25: error: 'r' was not declared in this scope
87 | query(2*u+1, tm+1, r);
| ^