city.cpp: In function 'int DistanceSum(int, int*, int*)':
city.cpp:39:19: warning: comparison of integer expressions of different signedness: 'std::vector<int>::size_type' {aka 'long unsigned int'} and 'int' [-Wsign-compare]
39 | while(bfs.size()!=N)
| ~~~~~~~~~~^~~
city.cpp:46:22: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector<int>::size_type' {aka 'long unsigned int'} [-Wsign-compare]
46 | for(int k = 0; k < v[bfs[j]].size(); k++)
| ~~^~~~~~~~~~~~~~~~~~
city.cpp:37:8: warning: unused variable 'ok' [-Wunused-variable]
37 | bool ok=1;
| ^~
city.cpp:63:18: error: expected '}' at end of input
63 | ans%= 1000000000;
| ^
city.cpp:14:1: note: to match this '{'
14 | {
| ^
city.cpp:63:18: warning: no return statement in function returning non-void [-Wreturn-type]
63 | ans%= 1000000000;
| ^