Cutting a bar magnet in half won't get rid of its poles. It'll just produce two magnets, each with a north pole that will be attracted to the other magnet's south pole, and vice versa. It's this ...
A compass is a navigational tool that helps people find their direction using the earth's magnetic field. It contains a magnet that aligns itself with the earth's north pole to indicate the direction.