Problem | flamethrower |
---|---|
User | neogaoen2007 |
Submission Time | 2023-12-06 16:30:36 |
Score | 0 |
Max Time | N/A |
Max Memory | N/A |
Owl Get a Life
flamethrower.cpp: In function ‘int main()’:
flamethrower.cpp:9:2: error: expected unqualified-id before ‘int’
9 | int currentSum = 0;
| ^~~
flamethrower.cpp:14:9: error: ‘currentSum’ was not declared in this scope
14 | currentSum += damage[i];
| ^~~~~~~~~~
flamethrower.cpp:16:18: error: ‘a’ was not declared in this scope
16 | currentSum -= a[i-K];
| ^