Let $f:\mathbb{R}\rightarrow\bar{\mathbb{R}}$. Prove for $C(f)=\{x\in\mathbb{R} :f \text{ is continuous in }x\}$ is a $G_\delta$
Definition: $A\subset X$ is a set $G_\delta$ iff $A=\bigcap_{n=1}^\infty G_n$ where $G_n$ is a open set for all $n$.
My attempt:
We need prove $C(f)=\bigcap_{n=1}^\infty G_n$ where $G_n$ is a open set for all $n$.$
Let $x\in C(f)$ then $f$ is continuous in $x$. This implies for all neighbourhood $ V \in (\bar{\mathbb{R}},\tau_\bar{\mathbb{R}}) $ then $f^{-1}(V)$ is open.
here i'm stuck. can someone help me?