Problem flamethrower
User Sarah5678
Submission Time 2025-02-20 00:05:25
Score 0
Max Time N/A
Max Memory N/A

Compile Error

flamethrower.cpp: In function ‘int main()’:
flamethrower.cpp:13:3: error: ‘f’ was not declared in this scope
13 | }f
| ^
flamethrower.cpp:16:3: error: ‘currentsum’ was not declared in this scope
16 | currentsum += arr[i];
| ^~~~~~~~~~
flamethrower.cpp:18:12: error: ‘currentsum’ was not declared in this scope
18 | int ans = currentsum;
| ^~~~~~~~~~