railway.cpp: In function 'void dfssz(int, int)':
railway.cpp:7:31: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector<int>::size_type' {aka 'long unsigned int'} [-Wsign-compare]
7 | #define f(i,a,b) for(int i=a;i<b;i++)
......
30 | f(i,0,g[x].size()){
| ~~~~~~~~~~~~~~~
railway.cpp:30:2: note: in expansion of macro 'f'
30 | f(i,0,g[x].size()){
| ^
railway.cpp: In function 'void dfs1(int, int, int)':
railway.cpp:7:31: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector<int>::size_type' {aka 'long unsigned int'} [-Wsign-compare]
7 | #define f(i,a,b) for(int i=a;i<b;i++)
......
38 | f(j,0,v[x].size()){
| ~~~~~~~~~~~~~~~
railway.cpp:38:2: note: in expansion of macro 'f'
38 | f(j,0,v[x].size()){
| ^
railway.cpp:7:31: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector<int>::size_type' {aka 'long unsigned int'} [-Wsign-compare]
7 | #define f(i,a,b) for(int i=a;i<b;i++)
......
44 | f(i,0,g[x].size()){
| ~~~~~~~~~~~~~~~
railway.cpp:44:2: note: in expansion of macro 'f'
44 | f(i,0,g[x].size()){
| ^
railway.cpp: In function 'void dfs(int, int)':
railway.cpp:7:31: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector<int>::size_type' {aka 'long unsigned int'} [-Wsign-compare]
7 | #define f(i,a,b) for(int i=a;i<b;i++)
......
52 | f(i,0,g[x].size()){
| ~~~~~~~~~~~~~~~
railway.cpp:52:2: note: in expansion of macro 'f'
52 | f(i,0,g[x].size()){
| ^
railway.cpp:7:31: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector<int>::size_type' {aka 'long unsigned int'} [-Wsign-compare]
7 | #define f(i,a,b) for(int i=a;i<b;i++)
......
57 | f(i,0,g[x].size()){
| ~~~~~~~~~~~~~~~
railway.cpp:57:2: note: in expansion of macro 'f'
57 | f(i,0,g[x].size()){
| ^
railway.cpp:75:20: warning: comparison of integer expressions of different signedness: 'std::map<int, int>::size_type' {aka 'long unsigned int'} and 'int' [-Wsign-compare]
75 | if(mark.size()-res>=k){
| ~~~~~~~~~~~~~~~^~~
railway.cpp: In function 'int main()':
railway.cpp:7:31: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector<std::pair<int, int> >::size_type' {aka 'long unsigned int'} [-Wsign-compare]
7 | #define f(i,a,b) for(int i=a;i<b;i++)
......
102 | f(i,0,ans.size()){
| ~~~~~~~~~~~~~~
railway.cpp:102:2: note: in expansion of macro 'f'
102 | f(i,0,ans.size()){
| ^
railway.cpp:7:31: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector<int>::size_type' {aka 'long unsigned int'} [-Wsign-compare]
7 | #define f(i,a,b) for(int i=a;i<b;i++)
......
106 | f(i,0,v.size()) cout<<v[i]<<" ";
| ~~~~~~~~~~~~
railway.cpp:106:2: note: in expansion of macro 'f'
106 | f(i,0,v.size()) cout<<v[i]<<" ";
| ^