worst_reporter3.cpp: In function 'int main()':
worst_reporter3.cpp:21:13: 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:22:15: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
rep(i,n)scanf("%lld",&d[i+1]);
~~~~~^~~~~~~~~~~~~~~~
worst_reporter3.cpp:29:17: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
ll t,l,r;scanf("%lld%lld%lld",&t,&l,&r);
~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~