Firefighting.cpp: In function 'int main()':
Firefighting.cpp:20:37: warning: format '%d' expects argument of type 'int*', but argument 2 has type 'int' [-Wformat=]
20 | for(int i=1; i<=n; i++) scanf("%d ", i);
| ~^ ~
| | |
| int* int
Firefighting.cpp:11:10: warning: ignoring return value of 'int scanf(const char*, ...)' declared with attribute 'warn_unused_result' [-Wunused-result]
11 | scanf("%d %lld", &n, &k);
| ~~~~~^~~~~~~~~~~~~~~~~~~
Firefighting.cpp:14:14: warning: ignoring return value of 'int scanf(const char*, ...)' declared with attribute 'warn_unused_result' [-Wunused-result]
14 | scanf("%d %d %lld", &x, &y, &v);
| ~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~
Firefighting.cpp:20:34: warning: ignoring return value of 'int scanf(const char*, ...)' declared with attribute 'warn_unused_result' [-Wunused-result]
20 | for(int i=1; i<=n; i++) scanf("%d ", i);
| ~~~~~^~~~~~~~~~