railway.cpp: In function 'int main()':
railway.cpp:50:11: warning: format '%i' expects argument of type 'int', but argument 2 has type 'std::vector<int>::size_type' {aka 'long unsigned int'} [-Wformat=]
50 | printf("%i\n",ans.size());
| ~^ ~~~~~~~~~~
| | |
| int std::vector<int>::size_type {aka long unsigned int}
| %li
railway.cpp:51:15: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector<int>::size_type' {aka 'long unsigned int'} [-Wsign-compare]
51 | for(int i=0;i<ans.size();i++)printf("%i ",ans[i]);
| ~^~~~~~~~~~~
railway.cpp:26:7: warning: ignoring return value of 'int scanf(const char*, ...)' declared with attribute 'warn_unused_result' [-Wunused-result]
26 | scanf("%i%i%i",&n,&m,&k);
| ~~~~~^~~~~~~~~~~~~~~~~~~
railway.cpp:28:8: warning: ignoring return value of 'int scanf(const char*, ...)' declared with attribute 'warn_unused_result' [-Wunused-result]
28 | scanf("%i%i",&x[i],&y[i]);
| ~~~~~^~~~~~~~~~~~~~~~~~~~
railway.cpp:34:14: warning: ignoring return value of 'int scanf(const char*, ...)' declared with attribute 'warn_unused_result' [-Wunused-result]
34 | int s;scanf("%i",&s);
| ~~~~~^~~~~~~~~
railway.cpp:35:29: warning: ignoring return value of 'int scanf(const char*, ...)' declared with attribute 'warn_unused_result' [-Wunused-result]
35 | for(int i=1;i<=s;i++)scanf("%i",&a[i]);
| ~~~~~^~~~~~~~~~~~