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