regions.cpp: In function 'int32_t main()':
regions.cpp:32:13: warning: format '%d' expects argument of type 'int*', but argument 2 has type 'long long int*' [-Wformat=]
32 | scanf("%d %d %d", &n, &sz, &q);
| ~^ ~~
| | |
| int* long long int*
| %lld
regions.cpp:32:16: warning: format '%d' expects argument of type 'int*', but argument 3 has type 'long long int*' [-Wformat=]
32 | scanf("%d %d %d", &n, &sz, &q);
| ~^ ~~~
| | |
| int* long long int*
| %lld
regions.cpp:32:19: warning: format '%d' expects argument of type 'int*', but argument 4 has type 'long long int*' [-Wformat=]
32 | scanf("%d %d %d", &n, &sz, &q);
| ~^ ~~
| | |
| int* long long int*
| %lld
regions.cpp:33:13: warning: format '%d' expects argument of type 'int*', but argument 2 has type 'long long int*' [-Wformat=]
33 | scanf("%d", &x);
| ~^ ~~
| | |
| | long long int*
| int*
| %lld
regions.cpp:36:38: warning: format '%d' expects argument of type 'int*', but argument 2 has type 'long long int*' [-Wformat=]
36 | for (int i=2; i<=n; i++) scanf("%d %d", &p, &x), d[p].push_back(i), r[i]=x, rv[x].push_back(i);
| ~^ ~~
| | |
| int* long long int*
| %lld
regions.cpp:36:41: warning: format '%d' expects argument of type 'int*', but argument 3 has type 'long long int*' [-Wformat=]
36 | for (int i=2; i<=n; i++) scanf("%d %d", &p, &x), d[p].push_back(i), r[i]=x, rv[x].push_back(i);
| ~^ ~~
| | |
| int* long long int*
| %lld
regions.cpp:48:17: warning: format '%d' expects argument of type 'int*', but argument 2 has type 'long long int*' [-Wformat=]
48 | scanf("%d %d", &a, &b);
| ~^ ~~
| | |
| int* long long int*
| %lld
regions.cpp:48:20: warning: format '%d' expects argument of type 'int*', but argument 3 has type 'long long int*' [-Wformat=]
48 | scanf("%d %d", &a, &b);
| ~^ ~~
| | |
| int* long long int*
| %lld
regions.cpp:51:22: warning: format '%d' expects argument of type 'int', but argument 2 has type '__gnu_cxx::__alloc_traits<std::allocator<long long int>, long long int>::value_type' {aka 'long long int'} [-Wformat=]
51 | printf("%d\n", dp[a][b]);
| ~^
| |
| int
| %lld
regions.cpp:57:22: warning: format '%d' expects argument of type 'int', but argument 2 has type 'long long int' [-Wformat=]
57 | printf("%d\n", res);
| ~^ ~~~
| | |
| int long long int
| %lld
regions.cpp:32:10: warning: ignoring return value of 'int scanf(const char*, ...)' declared with attribute 'warn_unused_result' [-Wunused-result]
32 | scanf("%d %d %d", &n, &sz, &q);
| ~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~
regions.cpp:33:10: warning: ignoring return value of 'int scanf(const char*, ...)' declared with attribute 'warn_unused_result' [-Wunused-result]
33 | scanf("%d", &x);
| ~~~~~^~~~~~~~~~
regions.cpp:36:35: warning: ignoring return value of 'int scanf(const char*, ...)' declared with attribute 'warn_unused_result' [-Wunused-result]
36 | for (int i=2; i<=n; i++) scanf("%d %d", &p, &x), d[p].push_back(i), r[i]=x, rv[x].push_back(i);
| ~~~~~^~~~~~~~~~~~~~~~~
regions.cpp:48:14: warning: ignoring return value of 'int scanf(const char*, ...)' declared with attribute 'warn_unused_result' [-Wunused-result]
48 | scanf("%d %d", &a, &b);
| ~~~~~^~~~~~~~~~~~~~~~~