railway.cpp: In function 'void dfs(int, int)':
railway.cpp:51: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:65:18: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
for(int i = 0;i<adj[v].size();i++){
~^~~~~~~~~~~~~~
railway.cpp:69:29: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
if(avi[sst[u]].size() >= mx){
~~~~~~~~~~~~~~~~~~~^~~~~
railway.cpp:77:18: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
for(int i = 0;i<adj[v].size();i++){
~^~~~~~~~~~~~~~
railway.cpp:91:25: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
if(avi[sst[v]].size() >= k){
~~~~~~~~~~~~~~~~~~~^~~~
railway.cpp: In function 'int main()':
railway.cpp:135: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:137:18: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
for(int i = 0;i<erg.size();i++){
~^~~~~~~~~~~
railway.cpp:101: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:104: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:114:10: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
scanf("%d",&cc);
~~~~~^~~~~~~~~~
railway.cpp:117:12: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
scanf("%d",&s);
~~~~~^~~~~~~~~