regions.cpp: In function 'int32_t main()':
regions.cpp:44:21: warning: format '%d' expects argument of type 'int*', but argument 2 has type 'int' [-Wformat=]
44 | scanf("%d\n", n); scanf("%d\n", r); scanf("%d\n", q);
| ~^ ~
| | |
| int* int
regions.cpp:44:39: warning: format '%d' expects argument of type 'int*', but argument 2 has type 'int' [-Wformat=]
44 | scanf("%d\n", n); scanf("%d\n", r); scanf("%d\n", q);
| ~^ ~
| | |
| int* int
regions.cpp:44:57: warning: format '%d' expects argument of type 'int*', but argument 2 has type 'int' [-Wformat=]
44 | scanf("%d\n", n); scanf("%d\n", r); scanf("%d\n", q);
| ~^ ~
| | |
| int* int
regions.cpp:45:21: warning: format '%d' expects argument of type 'int*', but argument 2 has type 'int' [-Wformat=]
45 | scanf("%d\n", arr[1]); home[arr[1]].pb(1);
| ~^ ~~~~~~
| | |
| int* int
regions.cpp:47:35: warning: format '%d' expects argument of type 'int*', but argument 2 has type 'int' [-Wformat=]
47 | int a, h; scanf("%d\n", a); scanf("%d\n", h); home[h].pb(l);
| ~^ ~
| | |
| int* int
regions.cpp:47:53: warning: format '%d' expects argument of type 'int*', but argument 2 has type 'int' [-Wformat=]
47 | int a, h; scanf("%d\n", a); scanf("%d\n", h); home[h].pb(l);
| ~^ ~
| | |
| int* int
regions.cpp:44:18: warning: ignoring return value of 'int scanf(const char*, ...)' declared with attribute 'warn_unused_result' [-Wunused-result]
44 | scanf("%d\n", n); scanf("%d\n", r); scanf("%d\n", q);
| ~~~~~^~~~~~~~~~~
regions.cpp:44:36: warning: ignoring return value of 'int scanf(const char*, ...)' declared with attribute 'warn_unused_result' [-Wunused-result]
44 | scanf("%d\n", n); scanf("%d\n", r); scanf("%d\n", q);
| ~~~~~^~~~~~~~~~~
regions.cpp:44:54: warning: ignoring return value of 'int scanf(const char*, ...)' declared with attribute 'warn_unused_result' [-Wunused-result]
44 | scanf("%d\n", n); scanf("%d\n", r); scanf("%d\n", q);
| ~~~~~^~~~~~~~~~~
regions.cpp:45:18: warning: ignoring return value of 'int scanf(const char*, ...)' declared with attribute 'warn_unused_result' [-Wunused-result]
45 | scanf("%d\n", arr[1]); home[arr[1]].pb(1);
| ~~~~~^~~~~~~~~~~~~~~~
regions.cpp:47:32: warning: ignoring return value of 'int scanf(const char*, ...)' declared with attribute 'warn_unused_result' [-Wunused-result]
47 | int a, h; scanf("%d\n", a); scanf("%d\n", h); home[h].pb(l);
| ~~~~~^~~~~~~~~~~
regions.cpp:47:50: warning: ignoring return value of 'int scanf(const char*, ...)' declared with attribute 'warn_unused_result' [-Wunused-result]
47 | int a, h; scanf("%d\n", a); scanf("%d\n", h); home[h].pb(l);
| ~~~~~^~~~~~~~~~~
regions.cpp:47:24: warning: 'h' may be used uninitialized in this function [-Wmaybe-uninitialized]
47 | int a, h; scanf("%d\n", a); scanf("%d\n", h); home[h].pb(l);
| ^