worst_reporter2.cpp: In function 'int merge(int, int, int, int, ll, ll)':
worst_reporter2.cpp:12:16: warning: suggest parentheses around '+' inside '>>' [-Wparentheses]
12 | #define mid (l + r >> 1)
| ~~^~~
worst_reporter2.cpp:45:39: note: in expansion of macro 'mid'
45 | t[k1].l = merge(t[k1].l, t[k2].l, l, mid, max(mx1, t[t[k1].r].mx) + t[k1].tag,
| ^~~
worst_reporter2.cpp:12:16: warning: suggest parentheses around '+' inside '>>' [-Wparentheses]
12 | #define mid (l + r >> 1)
| ~~^~~
worst_reporter2.cpp:47:36: note: in expansion of macro 'mid'
47 | t[k1].r = merge(t[k1].r, t[k2].r, mid + 1, r, mx1, mx2);
| ^~~
worst_reporter2.cpp: In function 'void modify(int&, int, int, int, ll)':
worst_reporter2.cpp:12:16: warning: suggest parentheses around '+' inside '>>' [-Wparentheses]
12 | #define mid (l + r >> 1)
| ~~^~~
worst_reporter2.cpp:55:6: note: in expansion of macro 'mid'
55 | if (mid >= p) modify(t[k].l, l, mid, p, v);
| ^~~
worst_reporter2.cpp:12:16: warning: suggest parentheses around '+' inside '>>' [-Wparentheses]
12 | #define mid (l + r >> 1)
| ~~^~~
worst_reporter2.cpp:55:34: note: in expansion of macro 'mid'
55 | if (mid >= p) modify(t[k].l, l, mid, p, v);
| ^~~
worst_reporter2.cpp:12:16: warning: suggest parentheses around '+' inside '>>' [-Wparentheses]
12 | #define mid (l + r >> 1)
| ~~^~~
worst_reporter2.cpp:56:22: note: in expansion of macro 'mid'
56 | else modify(t[k].r, mid + 1, r, p, v);
| ^~~
worst_reporter2.cpp: In function 'll query(int, int, int, int, int)':
worst_reporter2.cpp:61:20: warning: suggest parentheses around '&&' within '||' [-Wparentheses]
61 | if (!k || l >= ql && r <= qr) return t[k].mx;
| ~~~~~~~~^~~~~~~~~~
worst_reporter2.cpp:12:16: warning: suggest parentheses around '+' inside '>>' [-Wparentheses]
12 | #define mid (l + r >> 1)
| ~~^~~
worst_reporter2.cpp:64:6: note: in expansion of macro 'mid'
64 | if (mid >= ql) ans = query(t[k].l, l, mid, ql, qr);
| ^~~
worst_reporter2.cpp:12:16: warning: suggest parentheses around '+' inside '>>' [-Wparentheses]
12 | #define mid (l + r >> 1)
| ~~^~~
worst_reporter2.cpp:64:40: note: in expansion of macro 'mid'
64 | if (mid >= ql) ans = query(t[k].l, l, mid, ql, qr);
| ^~~
worst_reporter2.cpp:12:16: warning: suggest parentheses around '+' inside '>>' [-Wparentheses]
12 | #define mid (l + r >> 1)
| ~~^~~
worst_reporter2.cpp:65:6: note: in expansion of macro 'mid'
65 | if (mid < qr) ans = max(ans, query(t[k].r, mid + 1, r, ql, qr));
| ^~~
worst_reporter2.cpp:12:16: warning: suggest parentheses around '+' inside '>>' [-Wparentheses]
12 | #define mid (l + r >> 1)
| ~~^~~
worst_reporter2.cpp:65:45: note: in expansion of macro 'mid'
65 | if (mid < qr) ans = max(ans, query(t[k].r, mid + 1, r, ql, qr));
| ^~~
worst_reporter2.cpp: In function 'int main()':
worst_reporter2.cpp:74:7: warning: ignoring return value of 'int scanf(const char*, ...)' declared with attribute 'warn_unused_result' [-Wunused-result]
74 | scanf("%d", &n);
| ~~~~~^~~~~~~~~~
worst_reporter2.cpp:78:8: warning: ignoring return value of 'int scanf(const char*, ...)' declared with attribute 'warn_unused_result' [-Wunused-result]
78 | scanf("%d %d %d", &a[i], &h[i], &c[i]);
| ~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~