A magnet in the vicinity of a magnetic compass, would NOT affect the alignment of the compass.
Matt has a magnetic compass which is pointing in the north-south direction. He brings a large magnet close to it. In which direction would the magnetic needle align?