Let $X,Y,W,Z$ be topological spaces, and let $f: X \longrightarrow Y$, $g: W \longrightarrow Z$ be closed functions. Let $f \times g: X \times W \longrightarrow Y \times Z$ be such that $f \times g(x,w)= (f(x),g(w))$.
1) Find $X, Y, Z, W$, $f$ and $g$ (closed) such that $f \times g$ is not closed.
2) Find $X, Y, Z, W$, continuous (and closed) functions $f$ and $g$ such that $f \times g$ is not closed.
Edit: I was able to solve the problem when I tried to formalize that an example with $\mathbb{R}$ with the euclidean topology couldn't work. I believed that $f:\mathbb{R}\longrightarrow \mathbb{R}$ is closed and continuous iff its limit for $x \longrightarrow \pm \infty$ is $\pm \infty$, hence forgetting the case were $f$ is definitively costant, which is useful to build the desired example.