worst_reporter3.cpp: In function 'int main()':
worst_reporter3.cpp:12:10: warning: ignoring return value of 'int scanf(const char*, ...)' declared with attribute 'warn_unused_result' [-Wunused-result]
12 | scanf("%i%i",&n,&q);
| ~~~~~^~~~~~~~~~~~~~
worst_reporter3.cpp:13:31: warning: ignoring return value of 'int scanf(const char*, ...)' declared with attribute 'warn_unused_result' [-Wunused-result]
13 | for(int i=1;i<=n;i++)scanf("%lld",&D[i]);
| ~~~~~^~~~~~~~~~~~~~
worst_reporter3.cpp:24:23: warning: ignoring return value of 'int scanf(const char*, ...)' declared with attribute 'warn_unused_result' [-Wunused-result]
24 | ll t,l,r;scanf("%lld%lld%lld",&t,&l,&r);
| ~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~