worst_reporter3.cpp: In function 'int main()':
worst_reporter3.cpp:35:36: warning: suggest parentheses around '+' inside '>>' [-Wparentheses]
long mid = ( long )( l + r >> 1 );
~~^~~
worst_reporter3.cpp:41:40: warning: suggest parentheses around '+' inside '>>' [-Wparentheses]
long mid = ( long )( l + r + 1 >> 1 );
~~~~~~^~~
worst_reporter3.cpp:12: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:14:42: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
for( int i = 1 ; i <= n ; i++ ) scanf("%lld",&d[i]);
~~~~~^~~~~~~~~~~~~~
worst_reporter3.cpp:24:14: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
scanf("%lld %lld %lld",&ti,&le,&ri);
~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~