friend.cpp: In function 'void dfs(int)':
friend.cpp:17:19: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector<int>::size_type' {aka 'long unsigned int'} [-Wsign-compare]
17 | while (pt1<adj[u][1].size() && adj[u][1][pt1] < v) cur += dp[adj[u][1][pt1]][1] - dp[adj[u][1][pt1]][0], pt1++;
| ~~~^~~~~~~~~~~~~~~~~
friend.cpp:18:19: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector<int>::size_type' {aka 'long unsigned int'} [-Wsign-compare]
18 | while (pt2<adj[u][2].size() && adj[u][2][pt2] < v) mx = max(dp[adj[u][2][pt2]][1] - dp[adj[u][2][pt2]][0], mx), pt2++;
| ~~~^~~~~~~~~~~~~~~~~
friend.cpp:22:15: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector<int>::size_type' {aka 'long unsigned int'} [-Wsign-compare]
22 | while (pt1<adj[u][1].size()) cur += dp[adj[u][1][pt1]][1] - dp[adj[u][1][pt1]][0], pt1++;
| ~~~^~~~~~~~~~~~~~~~~
friend.cpp:23:15: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector<int>::size_type' {aka 'long unsigned int'} [-Wsign-compare]
23 | while (pt2<adj[u][2].size()) mx = max(dp[adj[u][2][pt2]][1] - dp[adj[u][2][pt2]][0], mx), pt2++;
| ~~~^~~~~~~~~~~~~~~~~