Problem powerfulmaxsum
User TheRaptor
Submission Time 2025-05-15 20:21:47
Score 0
Max Time N/A
Max Memory N/A

Compile Error

powerfulmaxsum.cpp: In function ‘int32_t main()’:
powerfulmaxsum.cpp:22:23: error: ‘j’ was not declared in this scope
22 | ans=max(ans,cur+min(j-i+1,l)*x);
| ^