Question: a what is formed of two atoms?
Answer: Electrostatic attraction then bonds the atoms into a lattice structure. This isn't a molecule, because the pairs of atoms aren't independent, but it's a compound, because it's formed from two different elements.