strange_device.cpp: In function 'int main()':
strange_device.cpp:10:17: warning: format '%d' expects argument of type 'int*', but argument 2 has type 'long long int*' [-Wformat=]
10 | scanf("%d %d",&l,&r);
| ~^ ~~
| | |
| int* long long int*
| %lld
strange_device.cpp:10:20: warning: format '%d' expects argument of type 'int*', but argument 3 has type 'long long int*' [-Wformat=]
10 | scanf("%d %d",&l,&r);
| ~^ ~~
| | |
| int* long long int*
| %lld
strange_device.cpp:7:10: warning: ignoring return value of 'int scanf(const char*, ...)' declared with attribute 'warn_unused_result' [-Wunused-result]
7 | scanf("%lld %lld %lld",&n,&a,&b);
| ~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~
strange_device.cpp:10:14: warning: ignoring return value of 'int scanf(const char*, ...)' declared with attribute 'warn_unused_result' [-Wunused-result]
10 | scanf("%d %d",&l,&r);
| ~~~~~^~~~~~~~~~~~~~~