beads.cpp: In function 'void dfs(int, int)':
beads.cpp:12:18: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector<std::pair<long long int, int> >::size_type' {aka 'long unsigned int'} [-Wsign-compare]
12 | for(int i=0;i<adj[node].size();i++)
| ~^~~~~~~~~~~~~~~~~
beads.cpp:21:18: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector<std::pair<long long int, int> >::size_type' {aka 'long unsigned int'} [-Wsign-compare]
21 | for(int i=0;i<adj[node].size();i++)
| ~^~~~~~~~~~~~~~~~~
beads.cpp:26:18: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector<std::pair<long long int, int> >::size_type' {aka 'long unsigned int'} [-Wsign-compare]
26 | for(int i=0;i<adj[node].size();i++)
| ~^~~~~~~~~~~~~~~~~
beads.cpp:40:22: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector<std::pair<long long int, int> >::size_type' {aka 'long unsigned int'} [-Wsign-compare]
40 | for(int i=1;i<adj[node].size();i++)
| ~^~~~~~~~~~~~~~~~~
beads.cpp:56:22: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector<std::pair<long long int, int> >::size_type' {aka 'long unsigned int'} [-Wsign-compare]
56 | for(int i=2;i<adj[node].size();i++)
| ~^~~~~~~~~~~~~~~~~
beads.cpp:63:18: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector<std::pair<long long int, int> >::size_type' {aka 'long unsigned int'} [-Wsign-compare]
63 | for(int i=0;i<adj[node].size();i++)
| ~^~~~~~~~~~~~~~~~~
beads.cpp:65:13: warning: unused variable 'weight' [-Wunused-variable]
65 | int weight=adj[node][i].first;
| ^~~~~~
beads.cpp:66:13: warning: unused variable 'neighbour' [-Wunused-variable]
66 | int neighbour=adj[node][i].second;
| ^~~~~~~~~