power.cpp: In function 'void dfs(int, int)':
power.cpp:10:20: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector<int>::size_type' {aka 'long unsigned int'} [-Wsign-compare]
10 | for (int i = 0; i < edge[u].size(); i++) {
| ~~^~~~~~~~~~~~~~~~
power.cpp: In function 'void dfs1(int, int, int)':
power.cpp:22:20: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector<int>::size_type' {aka 'long unsigned int'} [-Wsign-compare]
22 | for (int i = 0; i < edge[u].size(); i++) if (edge[u][i] != v) sum += dp[edge[u][i]];
| ~~^~~~~~~~~~~~~~~~
power.cpp:23:20: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector<int>::size_type' {aka 'long unsigned int'} [-Wsign-compare]
23 | for (int i = 0; i < edge[u].size(); i++) if (edge[u][i] != v) dfs1(edge[u][i],u,(b[u] ? max(maxx+sum-dp[edge[u][i]]-1,1) : maxx+sum-dp[edge[u][i]]));
| ~~^~~~~~~~~~~~~~~~