apple.cpp: In member function 'void Node::pushdown()':
apple.cpp:11:9: warning: this 'if' clause does not guard... [-Wmisleading-indentation]
11 | if (!lazy) return ; sum = r - l + 1; int mid = (l + r) / 2;
| ^~
apple.cpp:11:29: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the 'if'
11 | if (!lazy) return ; sum = r - l + 1; int mid = (l + r) / 2;
| ^~~
apple.cpp: In member function 'void Node::update(int, int)':
apple.cpp:24:9: warning: this 'if' clause does not guard... [-Wmisleading-indentation]
24 | if (lc) lc -> pushdown(); if (rc) rc -> pushdown();
| ^~
apple.cpp:24:35: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the 'if'
24 | if (lc) lc -> pushdown(); if (rc) rc -> pushdown();
| ^~
apple.cpp: In member function 'int Node::query(int, int)':
apple.cpp:28:37: warning: unused variable 'mid' [-Wunused-variable]
28 | int query(int tl, int tr) { int mid = (l + r) / 2;
| ^~~