If $f$ is continuous and non-negative and $\int_a^b f(x)dx=0$ therefore $f(x)=0$ for all $x\in[a,b]$.
My attempts
Suppose $f\neq 0$, i.e. there is an $x\in ]a,b[$ s.t. $f(x)\neq 0$. Since $f$ is continuous, there is a $\delta>0$ s.t. $f|_{]x-\delta,x+\delta[}> 0$ (we take $\delta$ small enough to have $]x-\delta,x+\delta[\subset ]a,b[$. Therefore $$\int_a^b f(t)dt\geq \int_{x-\delta}^{x+\delta}f(t)dt>0$$ contradiction. The cas $x=a$ or $x=b$ goes the same but with $f|_{]a,a+\delta[}>0$ or $f|_{]b-\delta,b[}>0$.