The canonical foliation on $\mathbb{R}^k$ is its decomposition into parallel sheets $\{t\} \times \mathbb{R}^{k-1}$ (as oriented submanifolds). In general, a foliation $\mathcal{F}$ on a compact, oriented manifold $X$ is a decomposition into $1-1$ immersed oriented manifolds $Y_\alpha$ (not necessarily compact) that is locally given (preserving all orientations) by the canonical foliation in a suitable chart at each point. For example, the lines in $\mathbb{R}^2$ of any fixed slope (possibly irrational) descend to a foliation on $T^2 = \mathbb{R}^2/\mathbb{Z}^2$.
(a) If $X$ admits a foliation, prove that $\chi(X) = 0$. (Hint: Partition of unity.)
(b) Prove (with suitable justification) that $S^2 \times S^2$ does not admit a foliation as defined above.
Theorem A compact, connected, oriented manifold $X$ possesses a nowhere vanishing vector field if and only if its Euler characteristic is zero.
Question: How could $X$ in this problem satisfy the connectness property in the theorem? Can I just say if it is not connected, treat each connected component individually?