worst_reporter3.cpp: In function 'int main()':
worst_reporter3.cpp:30:16: warning: suggest parentheses around '+' inside '>>' [-Wparentheses]
30 | ll mid = lo + hi >> 1;
| ~~~^~~~
worst_reporter3.cpp:45:16: warning: suggest parentheses around '+' inside '>>' [-Wparentheses]
45 | ll mid = lo + hi >> 1;
| ~~~^~~~
worst_reporter3.cpp:60:12: warning: format '%d' expects argument of type 'int', but argument 2 has type 'long long int' [-Wformat=]
60 | printf("%d\n",ans );
| ~^ ~~~
| | |
| int long long int
| %lld
worst_reporter3.cpp:12:35: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
12 | for(int i = 1; i <= n; i++) scanf("%lld",&d[i]);
| ~~~~~^~~~~~~~~~~~~~
worst_reporter3.cpp:24:8: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
24 | scanf("%lld %lld %lld",&t,&l,&r);
| ~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~