parks.cpp: In function 'int construct_roads(std::vector<int>, std::vector<int>)':
parks.cpp:76:17: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector<std::pair<int, int> >::size_type' {aka 'long unsigned int'} [-Wsign-compare]
76 | for(int i=1; i<c[0].size(); i++){
| ~^~~~~~~~~~~~
parks.cpp:84:17: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector<std::pair<int, int> >::size_type' {aka 'long unsigned int'} [-Wsign-compare]
84 | for(int i=1; i<c[1].size(); i++){
| ~^~~~~~~~~~~~
parks.cpp:93:17: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector<std::pair<int, int> >::size_type' {aka 'long unsigned int'} [-Wsign-compare]
93 | for(int i=0; i<c[0].size(); i++){
| ~^~~~~~~~~~~~
parks.cpp:94:14: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector<std::pair<int, int> >::size_type' {aka 'long unsigned int'} [-Wsign-compare]
94 | while(pos < c[1].size() && c[1][pos].f < c[0][i].f) pos++;
| ~~~~^~~~~~~~~~~~~
parks.cpp:95:11: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector<std::pair<int, int> >::size_type' {aka 'long unsigned int'} [-Wsign-compare]
95 | if(pos < c[1].size() && c[1][pos].f == c[0][i].f){
| ~~~~^~~~~~~~~~~~~
/usr/bin/ld: /tmp/ccB4WQWb.o: in function `build(std::vector<int, std::allocator<int> >, std::vector<int, std::allocator<int> >, std::vector<int, std::allocator<int> >, std::vector<int, std::allocator<int> >)':
grader.cpp:(.text+0x270): multiple definition of `build(std::vector<int, std::allocator<int> >, std::vector<int, std::allocator<int> >, std::vector<int, std::allocator<int> >, std::vector<int, std::allocator<int> >)'; /tmp/ccT8lIm9.o:parks.cpp:(.text+0x680): first defined here
/usr/bin/ld: /tmp/ccB4WQWb.o: in function `main':
grader.cpp:(.text.startup+0x0): multiple definition of `main'; /tmp/ccT8lIm9.o:parks.cpp:(.text.startup+0x0): first defined here
collect2: error: ld returned 1 exit status