catinatree.cpp: In function 'int main()':
catinatree.cpp:27:15: warning: format '%lld' expects argument of type 'long long int*', but argument 2 has type 'int*' [-Wformat=]
27 | scanf("%lld %lld", &n, &d);
| ~~~^ ~~
| | |
| | int*
| long long int*
| %d
catinatree.cpp:27:20: warning: format '%lld' expects argument of type 'long long int*', but argument 3 has type 'int*' [-Wformat=]
27 | scanf("%lld %lld", &n, &d);
| ~~~^ ~~
| | |
| | int*
| long long int*
| %d
catinatree.cpp:33:19: warning: format '%lld' expects argument of type 'long long int*', but argument 2 has type 'int*' [-Wformat=]
33 | scanf("%lld", &a);
| ~~~^ ~~
| | |
| | int*
| long long int*
| %d
catinatree.cpp:36:16: warning: format '%lld' expects argument of type 'long long int', but argument 2 has type 'int' [-Wformat=]
36 | printf("%lld\n", dfs(0).first);
| ~~~^ ~~~~~~~~~~~~
| | |
| | int
| long long int
| %d
catinatree.cpp:27:10: warning: ignoring return value of 'int scanf(const char*, ...)' declared with attribute 'warn_unused_result' [-Wunused-result]
27 | scanf("%lld %lld", &n, &d);
| ~~~~~^~~~~~~~~~~~~~~~~~~~~
catinatree.cpp:33:14: warning: ignoring return value of 'int scanf(const char*, ...)' declared with attribute 'warn_unused_result' [-Wunused-result]
33 | scanf("%lld", &a);
| ~~~~~^~~~~~~~~~~~