railway.cpp: In function 'void dfs(int, int)':
railway.cpp:48:18: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
for(int i = 0;i<adj[v].size();i++){
~^~~~~~~~~~~~~~
railway.cpp: In function 'void solve(int, int)':
railway.cpp:62:18: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
for(int i = 0;i<adj[v].size();i++){
~^~~~~~~~~~~~~~
railway.cpp:66:24: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
if(avi[u].size() > mx){
~~~~~~~~~~~~~~^~~~
railway.cpp:73:18: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
for(int i = 0;i<adj[v].size();i++){
~^~~~~~~~~~~~~~
railway.cpp:85:20: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
if(avi[v].size() >= k)erg.push_back(num[v]);
~~~~~~~~~~~~~~^~~~
railway.cpp: In function 'int main()':
railway.cpp:127:27: warning: format '%d' expects argument of type 'int', but argument 2 has type 'std::vector<int>::size_type {aka long unsigned int}' [-Wformat=]
printf("%d\n",erg.size());
~~~~~~~~~~^
railway.cpp:128:18: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
for(int i = 0;i<erg.size();i++){
~^~~~~~~~~~~
railway.cpp:93:8: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
scanf("%d %d %d",&n,&m,&k);
~~~~~^~~~~~~~~~~~~~~~~~~~~
railway.cpp:96:10: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
scanf("%d %d",&a,&b);
~~~~~^~~~~~~~~~~~~~~
railway.cpp:106:10: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
scanf("%d",&cc);
~~~~~^~~~~~~~~~
railway.cpp:109:12: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
scanf("%d",&s);
~~~~~^~~~~~~~~