railway.cpp: In function 'int main()':
railway.cpp:62:14: warning: format '%d' expects argument of type 'int', but argument 2 has type 'std::set<int>::size_type' {aka 'long unsigned int'} [-Wformat=]
62 | printf("%d\n", roads.size());
| ~^ ~~~~~~~~~~~~
| | |
| int std::set<int>::size_type {aka long unsigned int}
| %ld
railway.cpp:30:10: warning: ignoring return value of 'int scanf(const char*, ...)' declared with attribute 'warn_unused_result' [-Wunused-result]
30 | scanf("%d %d %d",&n,&m,&k);
| ~~~~~^~~~~~~~~~~~~~~~~~~~~
railway.cpp:36:23: warning: ignoring return value of 'int scanf(const char*, ...)' declared with attribute 'warn_unused_result' [-Wunused-result]
36 | int a,b; scanf("%d %d",&a,&b);
| ~~~~~^~~~~~~~~~~~~~~
railway.cpp:42:21: warning: ignoring return value of 'int scanf(const char*, ...)' declared with attribute 'warn_unused_result' [-Wunused-result]
42 | int s; scanf("%d",&s);
| ~~~~~^~~~~~~~~
railway.cpp:44:25: warning: ignoring return value of 'int scanf(const char*, ...)' declared with attribute 'warn_unused_result' [-Wunused-result]
44 | int z; scanf("%d",&z);
| ~~~~~^~~~~~~~~