city.cpp:12:23: error: expected ',' or '...' before 'int'
12 | int DistanceSum(int n int *X, int *Y) {
| ^~~
city.cpp: In function 'int DistanceSum(int)':
city.cpp:13:34: error: template argument 2 is invalid
13 | map<int, vector<pair<int, int>> x;
| ^
city.cpp:13:34: error: template argument 4 is invalid
city.cpp:14:34: error: template argument 2 is invalid
14 | map<int, vector<pair<int, int>> y;
| ^
city.cpp:14:34: error: template argument 4 is invalid
city.cpp:16:3: error: 'x' was not declared in this scope
16 | x[X[i]].push_back({y[i], i});
| ^
city.cpp:16:5: error: 'X' was not declared in this scope
16 | x[X[i]].push_back({y[i], i});
| ^
city.cpp:16:22: error: 'y' was not declared in this scope
16 | x[X[i]].push_back({y[i], i});
| ^
city.cpp:17:5: error: 'Y' was not declared in this scope
17 | y[Y[i]].push_back({x[i], i});
| ^
city.cpp:21:16: error: 'x' was not declared in this scope
21 | for (auto v : x) {
| ^
city.cpp:38:16: error: 'y' was not declared in this scope
38 | for (auto v : y) {
| ^
city.cpp:55:1: warning: no return statement in function returning non-void [-Wreturn-type]
55 | }
| ^