A compass works perfectly:
A magnetic compass needle tries to align itself with the magnetic field lines. However at magnetic poles, the field lines of force are vertically converging on a region. The strength and direction tends to tilt the compass up or down into the plane of the earth. So the compass works perfectly at all places except the poles.