Problem flamethrower
User Butterbeer0412
Submission Time 2025-08-21 16:12:51
Score 0
Max Time N/A
Max Memory N/A

Compile Error

flamethrower.cpp: In function ‘int main()’:
flamethrower.cpp:10:21: error: ‘k’ was not declared in this scope
10 | for (int j=i; j<i+k; ++j)
| ^
flamethrower.cpp:14:3: error: ‘total’ was not declared in this scope
14 | total = max(sum,total);
| ^~~~~
flamethrower.cpp:16:10: error: ‘total’ was not declared in this scope
16 | cout << total;
| ^~~~~
flamethrower.cpp:16:15: error: expected ‘}’ at end of input
16 | cout << total;
| ^
flamethrower.cpp:3:13: note: to match this ‘{’
3 | int main () {
| ^