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