beechtree.cpp: In function 'bool first(int, int)':
beechtree.cpp:34:30: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector<std::pair<int, int> >::size_type' {aka 'long unsigned int'} [-Wsign-compare]
34 | for (int i = 0, j = 0; i < g[u].size(); i++) {
| ~~^~~~~~~~~~~~~
beechtree.cpp:35:18: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector<std::pair<int, int> >::size_type' {aka 'long unsigned int'} [-Wsign-compare]
35 | while (j < g[v].size() && g[v][j].f != g[u][i].f)
| ~~^~~~~~~~~~~~~
beechtree.cpp:37:15: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector<std::pair<int, int> >::size_type' {aka 'long unsigned int'} [-Wsign-compare]
37 | if (j == g[v].size())
| ~~^~~~~~~~~~~~~~
beechtree.cpp:38:29: warning: suggest parentheses around assignment used as truth value [-Wparentheses]
38 | return dp[v][u] = false;
beechtree.cpp:40:29: warning: suggest parentheses around assignment used as truth value [-Wparentheses]
40 | return dp[v][u] = false;
beechtree.cpp:42:21: warning: suggest parentheses around assignment used as truth value [-Wparentheses]
42 | return dp[v][u] = true;
beechtree.cpp: In function 'void dfs(int)':
beechtree.cpp:50:27: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector<std::pair<int, int> >::size_type' {aka 'long unsigned int'} [-Wsign-compare]
50 | for (int i = 0; i + 1 < g[v].size(); i++)
| ~~~~~~^~~~~~~~~~~~~
beechtree.cpp:63:27: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector<int>::size_type' {aka 'long unsigned int'} [-Wsign-compare]
63 | for (int i = 0; i + 1 < a.size(); i++)
| ~~~~~~^~~~~~~~~~