torrent.cpp: In function 'void efs(int, int)':
torrent.cpp:29:33: error: 'greater' was not declared in this scope
29 | sort(chdp.begin(), chdp.end(), greater<>());
| ^~~~~~~
torrent.cpp:29:41: error: expected primary-expression before '>' token
29 | sort(chdp.begin(), chdp.end(), greater<>());
| ^
torrent.cpp:29:43: error: expected primary-expression before ')' token
29 | sort(chdp.begin(), chdp.end(), greater<>());
| ^
torrent.cpp:29:2: error: 'sort' was not declared in this scope; did you mean 'short'?
29 | sort(chdp.begin(), chdp.end(), greater<>());
| ^~~~
| short
torrent.cpp: In function 'int main()':
torrent.cpp:43:2: error: 'reverse' was not declared in this scope
43 | reverse(ab.begin(), ab.end());
| ^~~~~~~
torrent.cpp:46:14: error: 'find' was not declared in this scope
46 | g[c].erase(find(g[c].begin(), g[c].end(), par[c]));
| ^~~~
torrent.cpp:37:7: warning: ignoring return value of 'int scanf(const char*, ...)' declared with attribute 'warn_unused_result' [-Wunused-result]
37 | scanf("%d%d%d", &n, &a, &b);
| ~~~~~^~~~~~~~~~~~~~~~~~~~~~
torrent.cpp:38:41: warning: ignoring return value of 'int scanf(const char*, ...)' declared with attribute 'warn_unused_result' [-Wunused-result]
38 | for (int u, v, i = 1; i < n; ++i) scanf("%d%d", &u, &v), g[u].push_back(v), g[v].push_back(u);
| ~~~~~^~~~~~~~~~~~~~~~