Let \( [\,\cdot\,] \) denote the greatest integer function, and let
\[
f(x) = \min\{\sqrt{2}\,x, x^2\}.
\]
Let
\[
S = \{x \in (-2,2) : \text{the function } g(x) = x[x^2] \text{ is discontinuous at } x\}.
\]
Then
\[
\sum_{x \in S} f(x) \text{ equals}
\]