magictree.cpp: In function 'int main()':
magictree.cpp:9:13: warning: format '%d' expects argument of type 'int*', but argument 2 has type 'long long int*' [-Wformat=]
9 | scanf("%d%d%d", &n, &m, &k);
| ~^ ~~
| | |
| int* long long int*
| %lld
magictree.cpp:9:15: warning: format '%d' expects argument of type 'int*', but argument 3 has type 'long long int*' [-Wformat=]
9 | scanf("%d%d%d", &n, &m, &k);
| ~^ ~~
| | |
| int* long long int*
| %lld
magictree.cpp:9:17: warning: format '%d' expects argument of type 'int*', but argument 4 has type 'long long int*' [-Wformat=]
9 | scanf("%d%d%d", &n, &m, &k);
| ~^ ~~
| | |
| int* long long int*
| %lld
magictree.cpp:14:17: warning: format '%d' expects argument of type 'int*', but argument 2 has type 'long long int*' [-Wformat=]
14 | scanf("%d", &p[i]);
| ~^ ~~~~~
| | |
| | long long int*
| int*
| %lld
magictree.cpp:21:17: warning: format '%d' expects argument of type 'int*', but argument 2 has type 'long long int*' [-Wformat=]
21 | scanf("%d%d%d", &u[i], &d[i], &w[i]);
| ~^ ~~~~~
| | |
| int* long long int*
| %lld
magictree.cpp:21:19: warning: format '%d' expects argument of type 'int*', but argument 3 has type 'long long int*' [-Wformat=]
21 | scanf("%d%d%d", &u[i], &d[i], &w[i]);
| ~^ ~~~~~
| | |
| int* long long int*
| %lld
magictree.cpp:21:21: warning: format '%d' expects argument of type 'int*', but argument 4 has type 'long long int*' [-Wformat=]
21 | scanf("%d%d%d", &u[i], &d[i], &w[i]);
| ~^ ~~~~~
| | |
| int* long long int*
| %lld
magictree.cpp:42:18: warning: format '%d' expects argument of type 'int', but argument 2 has type 'long long int' [-Wformat=]
42 | printf("%d", pre[1][k]);
| ~^ ~~~~~~~~~
| | |
| int long long int
| %lld
magictree.cpp:9:10: warning: ignoring return value of 'int scanf(const char*, ...)' declared with attribute 'warn_unused_result' [-Wunused-result]
9 | scanf("%d%d%d", &n, &m, &k);
| ~~~~~^~~~~~~~~~~~~~~~~~~~~~
magictree.cpp:14:14: warning: ignoring return value of 'int scanf(const char*, ...)' declared with attribute 'warn_unused_result' [-Wunused-result]
14 | scanf("%d", &p[i]);
| ~~~~~^~~~~~~~~~~~~
magictree.cpp:21:14: warning: ignoring return value of 'int scanf(const char*, ...)' declared with attribute 'warn_unused_result' [-Wunused-result]
21 | scanf("%d%d%d", &u[i], &d[i], &w[i]);
| ~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~