Getting wrong output

can you please check my logic and tell what is wrong with my code

hello @chitranshanmol07
wait i m checking

a) use long long in place of int to avoid overflow
b) array is not sorted so search space should be
start=max in array * t (max u need to find out )
end=summation * t

c)
image
here it should be >