railway.cpp: In function 'void DFS(int, int)':
railway.cpp:24:22: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector<int>::size_type' {aka 'long unsigned int'} [-Wsign-compare]
24 | for(int i = 0; i < L[x].size(); i++){
| ~~^~~~~~~~~~~~~
railway.cpp: In function 'void DFS2(int, int)':
railway.cpp:33:23: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector<int>::size_type' {aka 'long unsigned int'} [-Wsign-compare]
33 | for(int i = 0 ; i < L[x].size();i++){
| ~~^~~~~~~~~~~~~
railway.cpp: In function 'int main()':
railway.cpp:61:17: warning: unused variable 'c' [-Wunused-variable]
61 | int n,m,a,b,c,d,x,k,q;
| ^
railway.cpp:61:19: warning: unused variable 'd' [-Wunused-variable]
61 | int n,m,a,b,c,d,x,k,q;
| ^
railway.cpp:62:10: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
62 | scanf("%d %d %d",&n,&m,&k);
| ~~~~~^~~~~~~~~~~~~~~~~~~~~
railway.cpp:65:14: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
65 | scanf("%d %d",&a,&b);
| ~~~~~^~~~~~~~~~~~~~~
railway.cpp:73:14: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
73 | scanf("%d",&q);
| ~~~~~^~~~~~~~~
railway.cpp:75:18: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
75 | scanf("%d",&x);
| ~~~~~^~~~~~~~~