I am trying to prove the following but I am not sure how to use the compactness:
Let $f$ be a real analytic function on a compact set $K$. Let $(x_n)_n$ be a sequence in $K$ such that $f(x_n) = 0$. Prove that $f = 0$.
I would appreciate a hint. Thank you!