Problem explosion
User blue
Submission Time 2023-02-15 06:18:11
Score 0
Max Time N/A
Max Memory N/A

Compile Error

explosion.cpp: In lambda function:
explosion.cpp:41:22: error: ‘A’ is not captured
41 | ll du = abs(X[u] - A) + abs(Y[u] - B);
| ^
explosion.cpp:39:28: note: the lambda has no capture-default
39 | sort(I.begin(), I.end(), [] (int u, int v)
| ^
explosion.cpp:25:8: note: ‘ll A’ declared here
25 | ll N, A, B;
| ^
explosion.cpp:41:38: error: ‘B’ is not captured
41 | ll du = abs(X[u] - A) + abs(Y[u] - B);
| ^
explosion.cpp:39:28: note: the lambda has no capture-default
39 | sort(I.begin(), I.end(), [] (int u, int v)
| ^
explosion.cpp:25:11: note: ‘ll B’ declared here
25 | ll N, A, B;
| ^
explosion.cpp:42:22: error: ‘A’ is not captured
42 | ll dv = abs(X[v] - A) + abs(Y[v] - B);
| ^
explosion.cpp:39:28: note