worst_reporter3.cpp: In function 'int main()':
worst_reporter3.cpp:31:19: warning: suggest parentheses around '+' inside '>>' [-Wparentheses]
31 | int mid = low + high >> 1;
| ~~~~^~~~~~
worst_reporter3.cpp:39:19: warning: suggest parentheses around '+' inside '>>' [-Wparentheses]
39 | int mid = low + high >> 1;
| ~~~~^~~~~~
worst_reporter3.cpp:18:7: warning: ignoring return value of 'int scanf(const char*, ...)' declared with attribute 'warn_unused_result' [-Wunused-result]
18 | scanf("%d%d", &n, &q);
| ~~~~~^~~~~~~~~~~~~~~~
worst_reporter3.cpp:19:17: warning: ignoring return value of 'int scanf(const char*, ...)' declared with attribute 'warn_unused_result' [-Wunused-result]
19 | rep(i, n) scanf("%d", &d[i]);
| ~~~~~^~~~~~~~~~~~~
worst_reporter3.cpp:26:8: warning: ignoring return value of 'int scanf(const char*, ...)' declared with attribute 'warn_unused_result' [-Wunused-result]
26 | scanf("%d%d%d", &T, &L, &R);
| ~~~~~^~~~~~~~~~~~~~~~~~~~~~