HORRIBLE-SPOJ with Lazy Propagation

Implemented Segment tree with lazy propagation but still getting TLE.
Help?

SPOJ-HORRIBLE

My Code:

instead of this
if(a==b)
{
return tree[node];
}
in 87th line, you should use
if (a >= i && b <= j) {
return tree[node];
}
but still you will get wa