Problem candles
User NoobMugger420
Submission Time 2024-10-30 22:34:04
Score 0
Max Time N/A
Max Memory N/A

Compile Error

candles.cpp: In function ‘int main()’:
candles.cpp:18:54: error: ‘k’ was not declared in this scope
18 | leftSum = nums[i+K-1] - nums[i] + abs(0 - nums[i+k-1]);
| ^