Problem flamethrower
User neogaoen2007
Submission Time 2023-12-06 16:31:16
Score 0
Max Time N/A
Max Memory N/A

Compile Error

flamethrower.cpp: In function ‘int main()’:
flamethrower.cpp:9:2: error: expected unqualified-id before ‘int’
9 | int currentSum = 0;
| ^~~
flamethrower.cpp:13:9: error: ‘currentSum’ was not declared in this scope
13 | currentSum += damage[i];
| ^~~~~~~~~~
flamethrower.cpp:15:18: error: ‘a’ was not declared in this scope
15 | currentSum -= a[i-K];
| ^