road_construction.cpp: In function 'int main()':
road_construction.cpp:18:5: error: 'vector' was not declared in this scope
18 | vector<long long> res;
| ^~~~~~
road_construction.cpp:2:1: note: 'std::vector' is defined in header '<vector>'; did you forget to '#include <vector>'?
1 | #include <iostream>
+++ |+#include <vector>
2 | using namespace std;
road_construction.cpp:18:12: error: expected primary-expression before 'long'
18 | vector<long long> res;
| ^~~~
road_construction.cpp:21:13: error: 'res' was not declared in this scope
21 | res.push_back(abs_diff(X[i], X[j]) + abs_diff(Y[i], Y[j]));
| ^~~
road_construction.cpp:23:10: error: 'res' was not declared in this scope
23 | sort(res.begin(), res.end());
| ^~~
road_construction.cpp:23:5: error: 'sort' was not declared in this scope; did you mean 'qsort'?
23 | sort(res.begin(), res.end());
| ^~~~
| qsort