Let $(X,\tau)$ be a topological space such that for each $p \in X$ there is a continuous function $f:X \to \Bbb R$ verifying $f^{-1}(\{0\}) = \{p\}$. Then $(X,\tau)$ is Hausdorff.
Welp, take $p,q \in X$ distinct points and fix two continuous functions $f_p,f_q: X \to \Bbb R$ with $f_p^{-1}(\{0\}) = \{p\}$ and $f_q^{-1}(\{0\}) = \{q\}$. Then we have: $f_p(p) = f_q(q) = 0$ and $f_p(q),f_q(p) \neq 0$. The idea seems to be using continuity to find the neighbourhoods.
I had two ideas, but they didn't seem to go anywhere.
there exists $r > 0$ small enough (after a possible reduction) such that $f_p(q),f_q(p) \not\in \left]-r,r\right[$, then we take $f_p^{-1}( \left]-r,r\right[)$ and $f_q^{-1}( \left]-r,r\right[)$. They're open by continuity, but I couldn't quite show that they're disjoint.
use continuity of $f_p$ and $f_q$ at $p$ and $q$ to find neighbourhoods $U_p$ and $U_q$, but we have a lot of possible combinations of inequalities.
I'm unsure if I'm on the right track. Help? Thanks.