The correct option is B the flow of charges have an associated magnetic field
A static charge has an electric field associated with it. A moving charge has a magnetic field associated with it.
Flowing charges constitute an electric current. Now, we know that a current flowing through a conductor has a magnetic field associated with it.
Hence, due to the influence of that magnetic field, the needle of the compass deflects.