cleaning.cpp: In function 'int main()':
cleaning.cpp:32:17: warning: format '%d' expects argument of type 'int*', but argument 2 has type 'long long int*' [-Wformat=]
32 | scanf("%d%d", &a[i], &b[i]);
| ~^ ~~~~~
| | |
| int* long long int*
| %lld
cleaning.cpp:32:19: warning: format '%d' expects argument of type 'int*', but argument 3 has type 'long long int*' [-Wformat=]
32 | scanf("%d%d", &a[i], &b[i]);
| ~^ ~~~~~
| | |
| int* long long int*
| %lld
cleaning.cpp:30:10: warning: ignoring return value of 'int scanf(const char*, ...)' declared with attribute 'warn_unused_result' [-Wunused-result]
30 | scanf("%d%d", &n, &q);
| ~~~~~^~~~~~~~~~~~~~~~
cleaning.cpp:32:14: warning: ignoring return value of 'int scanf(const char*, ...)' declared with attribute 'warn_unused_result' [-Wunused-result]
32 | scanf("%d%d", &a[i], &b[i]);
| ~~~~~^~~~~~~~~~~~~~~~~~~~~~
cleaning.cpp:36:14: warning: ignoring return value of 'int scanf(const char*, ...)' declared with attribute 'warn_unused_result' [-Wunused-result]
36 | scanf("%d", &k);
| ~~~~~^~~~~~~~~~
cleaning.cpp:47:18: warning: ignoring return value of 'int scanf(const char*, ...)' declared with attribute 'warn_unused_result' [-Wunused-result]
47 | scanf("%d", &a);
| ~~~~~^~~~~~~~~~