In this answer
https://math.stackexchange.com/a/1986000/344530,
the user arguments that there is only a finite number of points where $f_n(x) = 1$, thus integrable. I don't see how this actually works since I always thought that a function is continuous when it is continuous on every point. Now, the user shows that there are actually points where the function is not continuous, thus, it can't be continuous, can it?