Problem waterbomb
User JerryCodebreaker
Submission Time 2024-12-04 10:22:05
Score 0
Max Time N/A
Max Memory N/A

Compile Error

waterbomb.cpp: In lambda function:
waterbomb.cpp:17:8: error: ‘cur’ was not declared in this scope
17 | if (cur + d <= a[i]) cur += d;
| ^~~
waterbomb.cpp:17:19: error: ‘a’ was not declared in this scope
17 | if (cur + d <= a[i]) cur += d;
| ^