Take the topologist's sine curveIt is closed and bounded, hence compact. The oscillating graph is connected and accumulates on every point of the vertical segment, so its closure is connected. No path joins the graph to the vertical segment, as continuity of the first coordinate and the unbounded oscillation of would fail at the first time the path reaches . Thus is not path connected.
Solved by gpt-5.6-sol high.
Codex Wiki