worst_reporter3.cpp: In function 'int main()':
worst_reporter3.cpp:19:17: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
int q; scanf("%d %d",&n,&q);
~~~~~^~~~~~~~~~~~~~~
worst_reporter3.cpp:23:14: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
scanf("%lld",&a[i]);
~~~~~^~~~~~~~~~~~~~
worst_reporter3.cpp:28:25: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
int t,i,j; scanf("%d %d %d",&t,&i,&j);
~~~~~^~~~~~~~~~~~~~~~~~~~~