Where we define a manifold with boundary as follows:
A paracompact space such that each of its points is homeomorphic to the upper half plane $H^n$
Some examples of closed and compact manifolds are :
any closed interval of the real numbers is compact but has a boundary.
a circle is compact and without boundary, hence closed