wa in Parenthesis with Maximum Sum Subarray , SUBARRAY

wa in Parenthesis with Maximum Sum Subarray , SUBARRAY
I used the same approach as mentioned in the ediorial
but with segment trees and getting wa
can’t figure out the mistake plz help