At the magnetic poles of the earth, a compass needle will be
bent slightly vertical
vertical
horizontal
inclined at 45o to the horizontal
At poles, the horizontal component of earth's magnetic field is zero and hence the compass needle will be vertical.