Problem volcanic
User shoryu386
Submission Time 2023-01-10 19:16:05
Score 0
Max Time N/A
Max Memory N/A

Compile Error

volcanic.cpp: In lambda function:
volcanic.cpp:18:22: error: ‘vx’ is not captured
18 | return min(abs(x - vx), abs(y - vx)) > d;
| ^~
volcanic.cpp:17:15: note: the lambda has no capture-default
17 | auto safe = [](int x, int y, int d){
| ^
volcanic.cpp:15:6: note: ‘int vx’ declared here
15 | int vx, vy; cin >> vx >> vy;
| ^~
volcanic.cpp:18:35: error: ‘vx’ is not captured
18 | return min(abs(x - vx), abs(y - vx)) > d;
| ^~
volcanic.cpp:17:15: note: the lambda has no capture-default
17 | auto safe = [](int x, int y, int d){
| ^
volcanic.cpp:15:6: note: ‘int vx’ declared here
15 | int vx, vy; cin >> vx >> vy;
| ^~
volcanic.cpp: In function ‘int main()’:
volcanic.cpp:21:2: error: expected ‘,’ or ‘;’ before ‘int’
21 | int lo = 0, hi = min(r,