apple.cpp: In constructor 'Node::Node(int, int)':
apple.cpp:6:20: warning: 'Node::lazy' will be initialized after [-Wreorder]
6 | int sum, l, r, lazy; Node *lc, *rc;
| ^~~~
apple.cpp:6:14: warning: 'int Node::l' [-Wreorder]
6 | int sum, l, r, lazy; Node *lc, *rc;
| ^
apple.cpp:8:5: warning: when initialized here [-Wreorder]
8 | Node(int L, int R): sum(0), lazy(0), l(L), r(R), lc(nullptr), rc(nullptr) {}
| ^~~~
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 'int Node::query(int, int)':
apple.cpp:26:37: warning: unused variable 'mid' [-Wunused-variable]
26 | int query(int tl, int tr) { int mid = (l + r) / 2;
| ^~~