worst_reporter3.cpp: In function 'int main()':
worst_reporter3.cpp:25:11: warning: format '%d' expects argument of type 'int*', but argument 2 has type 'long long int*' [-Wformat=]
25 | scanf("%d%d%d",&t,&l,&r);
| ~^ ~~
| | |
| int* long long int*
| %lld
worst_reporter3.cpp:25:13: warning: format '%d' expects argument of type 'int*', but argument 3 has type 'long long int*' [-Wformat=]
25 | scanf("%d%d%d",&t,&l,&r);
| ~^ ~~
| | |
| int* long long int*
| %lld
worst_reporter3.cpp:25:15: warning: format '%d' expects argument of type 'int*', but argument 4 has type 'long long int*' [-Wformat=]
25 | scanf("%d%d%d",&t,&l,&r);
| ~^ ~~
| | |
| int* long long int*
| %lld
worst_reporter3.cpp:31:17: warning: suggest parentheses around '+' inside '>>' [-Wparentheses]
31 | int mid = lo + hi >> 1;
| ~~~^~~~
worst_reporter3.cpp:46:17: warning: suggest parentheses around '+' inside '>>' [-Wparentheses]
46 | int mid = lo + hi >> 1;
| ~~~^~~~
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:25:8: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
25 | scanf("%d%d%d",&t,&l,&r);
| ~~~~~^~~~~~~~~~~~~~~~~~~