paprike.cpp: In function 'void dfs(int, int)':
paprike.cpp:25:10: error: 'sort' is not a member of 'std'
25 | std::sort(bot.begin(), bot.end());
| ^~~~
paprike.cpp: In function 'int main()':
paprike.cpp:37:10: warning: ignoring return value of 'int scanf(const char*, ...)' declared with attribute 'warn_unused_result' [-Wunused-result]
37 | scanf("%d%d", &n, &K);
| ~~~~~^~~~~~~~~~~~~~~~
paprike.cpp:38:39: warning: ignoring return value of 'int scanf(const char*, ...)' declared with attribute 'warn_unused_result' [-Wunused-result]
38 | for (int i = 1; i <= n; ++i) scanf("%d", a+i);
| ~~~~~^~~~~~~~~~~
paprike.cpp:39:44: warning: ignoring return value of 'int scanf(const char*, ...)' declared with attribute 'warn_unused_result' [-Wunused-result]
39 | for (int u, v, i = 1; i < n; ++i) scanf("%d%d", &u, &v), g[u].push_back(v), g[v].push_back(u);
| ~~~~~^~~~~~~~~~~~~~~~