We say that a function $f$ is Baire Class $1$ if there is a sequence of functions $f_i \to f$ pointwise where each $f_i$ is continuous.
The set of discontinuities of a Baire Class $1$ function $f$ must be a first-category (meagre) set of points.
The Dirichlet function $f(x) = \begin{cases} 1 & x \in \mathbb Q \\ 0 & x \notin \mathbb Q \end{cases}$ is not Baire class $1$ since it is discontinuous everywhere.
But can't we write the function as $f_i(x) = \lim_{i\to\infty} \cos(i!\pi x)^{2i}$, each of which is a continuous function that converges pointwise to the Dirichlet function? What is wrong with this?