citymapping.cpp: In function 'void find(int)':
citymapping.cpp:33:20: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector<std::pair<int, int> >::size_type' {aka 'long unsigned int'} [-Wsign-compare]
33 | for (int i=1; i<temp.size(); ++i) {
| ~^~~~~~~~~~~~
citymapping.cpp: In function 'void find_roads(int, int, int*, int*, int*)':
citymapping.cpp:71:20: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector<std::tuple<int, int, int> >::size_type' {aka 'long unsigned int'} [-Wsign-compare]
71 | for (int i=0; i<ans.size(); ++i) tie(A[i],B[i],W[i])=ans[i],cout<<A[i]<<" "<<B[i]<<" "<<W[i]<<"\n";
| ~^~~~~~~~~~~
citymapping.cpp: In function 'void find(int)':
citymapping.cpp:38:54: warning: 'r' may be used uninitialized in this function [-Wmaybe-uninitialized]
38 | int t=dis[x][s]-(dis[x][s]+dis[s][r]-dis[x][r])/2;
| ~~~~~~~~^
/usr/bin/ld: /tmp/ccylMtbx.o: in function `get_distance(int, int)':
grader.cpp:(.text+0x470): multiple definition of `get_distance(int, int)'; /tmp/ccFjzZew.o:citymapping.cpp:(.text+0xab0): first defined here
/usr/bin/ld: /tmp/ccylMtbx.o: in function `main':
grader.cpp:(.text.startup+0x0): multiple definition of `main'; /tmp/ccFjzZew.o:citymapping.cpp:(.text.startup+0x0): first defined here
collect2: error: ld returned 1 exit status