paprike.cpp: In function 'std::pair<long long int, long long int> dfs(int, int)':
paprike.cpp:17:23: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
for (int i = 0; i < graph[x].size(); i++) {
~~^~~~~~~~~~~~~~~~~
paprike.cpp: In function 'int main()':
paprike.cpp:51:32: warning: format '%lld' expects argument of type 'long long int', but argument 2 has type 'std::pair<long long int, long long int>' [-Wformat=]
printf("%lld\n", dfs(1, -1));
~~~~~~~~~~^
paprike.cpp:39:10: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
scanf("%d%lld", &n, &k);
~~~~~^~~~~~~~~~~~~~~~~~
paprike.cpp:41:14: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
scanf("%lld", h+i);
~~~~~^~~~~~~~~~~~~
paprike.cpp:45:14: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
scanf("%d%d", &a, &b);
~~~~~^~~~~~~~~~~~~~~~