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:14:13: warning: this 'if' clause does not guard... [-Wmisleading-indentation]
14 | if (!lc) lc = new Node(l, mid); lc -> lazy = lazy; lc -> sum = mid - l + 1;
| ^~
apple.cpp:14:45: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the 'if'
14 | if (!lc) lc = new Node(l, mid); lc -> lazy = lazy; lc -> sum = mid - l + 1;
| ^~
apple.cpp:16:13: warning: this 'if' clause does not guard... [-Wmisleading-indentation]
16 | if (!rc) rc = new Node(mid + 1, r); rc -> lazy = lazy; rc -> sum = r - mid;
| ^~
apple.cpp:16:49: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the 'if'
16 | if (!rc) rc = new Node(mid + 1, r); rc -> lazy = lazy; rc -> sum = r - mid;
| ^~
apple.cpp: In member function 'int Node::query(int, int)':
apple.cpp:31:37: warning: unused variable 'mid' [-Wunused-variable]
31 | int query(int tl, int tr) { int mid = (l + r) / 2;
| ^~~