sortbooks.cpp: In function 'void update(int, int, int, int, int)':
sortbooks.cpp:15:5: warning: this 'if' clause does not guard... [-Wmisleading-indentation]
15 | if (r < pos || l > pos) return ; if (l == r) { tree[x] = val; return ; }
| ^~
sortbooks.cpp:15:38: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the 'if'
15 | if (r < pos || l > pos) return ; if (l == r) { tree[x] = val; return ; }
| ^~
sortbooks.cpp: In function 'int query(int, int, int, int, int)':
sortbooks.cpp:22:5: warning: this 'if' clause does not guard... [-Wmisleading-indentation]
22 | if (r < tl || l > tr) return 0; if (tl <= l && r <= tr) return tree[x];
| ^~
sortbooks.cpp:22:37: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the 'if'
22 | if (r < tl || l > tr) return 0; if (tl <= l && r <= tr) return tree[x];
| ^~
sortbooks.cpp: In function 'int main()':
sortbooks.cpp:37:9: warning: this 'if' clause does not guard... [-Wmisleading-indentation]
37 | if (!CUR.empty()) update(1, 1, N, CUR.top(), A[CUR.top()] + A[i]); CUR.push(i);
| ^~
sortbooks.cpp:37:76: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the 'if'
37 | if (!CUR.empty()) update(1, 1, N, CUR.top(), A[CUR.top()] + A[i]); CUR.push(i);
| ^~~