The fundamental theorem of calculus states that:
> If $f:[a,b]\to\mathbb R$ (say) is a **continuous** function, and we define:
>
> $$ F(x)=\int_a^x f(t)dt $$
>
> then $F'(x)=f(x)$.
I have put one of the words in the statement in **bold** , which is the clue to seeing why the FTC does not apply to your function. Indeed, the example you provide show why the hypothesis in bold is necessary to derive the FTC.