capital_city.cpp: In function 'int Get(int)':
capital_city.cpp:25:16: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector<int>::size_type' {aka 'long unsigned int'} [-Wsign-compare]
25 | while(ptr[col]<nodes[col].size()&&dep[Find(nodes[col][ptr[col]])]<dep[head[col]])ptr[col]++;
| ~~~~~~~~^~~~~~~~~~~~~~~~~~
capital_city.cpp:26:13: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector<int>::size_type' {aka 'long unsigned int'} [-Wsign-compare]
26 | if(ptr[col]==nodes[col].size())return 0;
| ~~~~~~~~^~~~~~~~~~~~~~~~~~~
capital_city.cpp: In function 'void DFS(int)':
capital_city.cpp:62:9: warning: suggest parentheses around assignment used as truth value [-Wparentheses]
62 | while(v=Get(u)){
| ~^~~~~~~
capital_city.cpp: In function 'int main()':
capital_city.cpp:85:7: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
85 | scanf("%i %i",&n,&k);
| ~~~~~^~~~~~~~~~~~~~~
capital_city.cpp:87:31: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
87 | for(int i=1,u,v;i<n;i++)scanf("%i %i",&u,&v),E[u].pb(v),E[v].pb(u);
| ~~~~~^~~~~~~~~~~~~~~
capital_city.cpp:89:28: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
89 | for(int i=1;i<=n;i++)scanf("%i",&c[i]),nodes[c[i]].pb(i);
| ~~~~~^~~~~~~~~~~~