cleaning.cpp: In function 'int main()':
cleaning.cpp:40:13: warning: format '%d' expects argument of type 'int*', but argument 2 has type 'long long int*' [-Wformat=]
40 | scanf("%d%d", &n, &q);
| ~^ ~~
| | |
| int* long long int*
| %lld
cleaning.cpp:40:15: warning: format '%d' expects argument of type 'int*', but argument 3 has type 'long long int*' [-Wformat=]
40 | scanf("%d%d", &n, &q);
| ~^ ~~
| | |
| int* long long int*
| %lld
cleaning.cpp:50:17: warning: format '%d' expects argument of type 'int*', but argument 2 has type 'long long int*' [-Wformat=]
50 | scanf("%d%d\n", &a, &b);
| ~^ ~~
| | |
| int* long long int*
| %lld
cleaning.cpp:50:19: warning: format '%d' expects argument of type 'int*', but argument 3 has type 'long long int*' [-Wformat=]
50 | scanf("%d%d\n", &a, &b);
| ~^ ~~
| | |
| int* long long int*
| %lld
cleaning.cpp:69:17: warning: format '%d' expects argument of type 'int*', but argument 2 has type 'long long int*' [-Wformat=]
69 | scanf("%d\n", &d);
| ~^ ~~
| | |
| int* long long int*
| %lld
cleaning.cpp:74:21: warning: format '%d' expects argument of type 'int*', but argument 2 has type 'long long int*' [-Wformat=]
74 | scanf("%d\n", &v);
| ~^ ~~
| | |
| int* long long int*
| %lld
cleaning.cpp:87:22: warning: format '%d' expects argument of type 'int', but argument 2 has type 'long long int' [-Wformat=]
87 | printf("%d\n", total_cost - 2);
| ~^ ~~~~~~~~~~~~~~
| | |
| int long long int
| %lld
cleaning.cpp:40:10: warning: ignoring return value of 'int scanf(const char*, ...)' declared with attribute 'warn_unused_result' [-Wunused-result]
40 | scanf("%d%d", &n, &q);
| ~~~~~^~~~~~~~~~~~~~~~
cleaning.cpp:50:14: warning: ignoring return value of 'int scanf(const char*, ...)' declared with attribute 'warn_unused_result' [-Wunused-result]
50 | scanf("%d%d\n", &a, &b);
| ~~~~~^~~~~~~~~~~~~~~~~~
cleaning.cpp:69:14: warning: ignoring return value of 'int scanf(const char*, ...)' declared with attribute 'warn_unused_result' [-Wunused-result]
69 | scanf("%d\n", &d);
| ~~~~~^~~~~~~~~~~~
cleaning.cpp:74:18: warning: ignoring return value of 'int scanf(const char*, ...)' declared with attribute 'warn_unused_result' [-Wunused-result]
74 | scanf("%d\n", &v);
| ~~~~~^~~~~~~~~~~~