worst_reporter3.cpp: In function 'int main()':
worst_reporter3.cpp:31:25: warning: unused variable 'res' [-Wunused-variable]
ll T, L, R; int res = 0;
^~~
worst_reporter3.cpp:24:10: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
scanf("%d%d",&n,&q);
~~~~~^~~~~~~~~~~~~~
worst_reporter3.cpp:27:14: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
scanf("%lld",&dist[i]);
~~~~~^~~~~~~~~~~~~~~~~
worst_reporter3.cpp:32:14: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
scanf("%lld%lld%lld",&T,&L,&R);
~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~