I have the same question as asked here:
Without the extra assumption that $f$ nonnegative. How can I adapt the any one of the arguments (or a new argument) to deal with a general function $f$? Would I have to show somehow that continuity implies there's an interval where the function has the same sign?
Edit:
I realized my question is slightly different, I have for every $c,d \in [a,b]$, $\int_{c}^{d} f(x) dx = 0$.