Spoj gss1 problem

what is wrong in this?

can anyone help me?

In line no:24 i think it should be sum right ?

NA again

In line no:31 condition should be ( l>=ql && r<=qr ).
and in line no:42 you should consider mynode.psum,ssum,sum for maximum.

updated this correction still WA

ohk got it. ty