worst_reporter3.cpp: In function 'int main()':
worst_reporter3.cpp:25:10: warning: ignoring return value of 'int scanf(const char*, ...)' declared with attribute 'warn_unused_result' [-Wunused-result]
25 | scanf("%d %d", &n, &q);
| ~~~~~^~~~~~~~~~~~~~~~~
worst_reporter3.cpp:26:34: warning: ignoring return value of 'int scanf(const char*, ...)' declared with attribute 'warn_unused_result' [-Wunused-result]
26 | for(int i=1; i<=n; i++) scanf("%lld", &arr[i]);
| ~~~~~^~~~~~~~~~~~~~~~~
worst_reporter3.cpp:36:14: warning: ignoring return value of 'int scanf(const char*, ...)' declared with attribute 'warn_unused_result' [-Wunused-result]
36 | scanf("%lld %lld %lld", &t, &l, &r);
| ~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~