Answer:
See below
Step-by-step explanation:
You didn't show the e-magnet construction diagram....but:
If the e-magnet is built properly and has current flowing through the coils, it will affect the compass.....also note that a compass is a magnet, so if the e-magnet is ferrous (iron-containng) material it will affect the compass ....current flowing or not !