For continuity we need to check the two potential discontinuities at x=0 and x=1.
At x=0: The left-hand limit is limx→0−(sinx−ex)=sin0−e0=−1. For the right-hand limit, when 0<x<1, we have −1<−x<0, so [−x]=−1. Thus the right-hand limit is limx→0+(a+[−x])=a−1. Setting equal: a−1=−1, giving a=0.
At x=1: For the left-hand limit, as x→1− with 0<x<1, we have −x→−1+, so [−x]=−1. Thus the left-hand limit is 0+(−1)=−1. The right-hand value is 2(1)−b=2−b. Setting equal: 2−b=−1, giving b=3.
Therefore a+b=0+3=3.