Problem flamethrower
User dfsssssssssfsdfdssgdfs
Submission Time 2026-01-28 17:34:09
Score 0
Max Time N/A
Max Memory N/A

Compile Error

flamethrower.cpp: In function ‘int maxSum(std::vector<int>&, int)’:
flamethrower.cpp:17:25: error: ‘n’ was not declared in this scope
17 | for (int i = k; i < n; i++) {
| ^
flamethrower.cpp: In function ‘int main()’:
flamethrower.cpp:34:1: error: expected ‘}’ at end of input
34 | }
| ^
flamethrower.cpp:25:11: note: to match this ‘{’
25 | int main(){
| ^