The election is expected to be decided by razor-thin margins and the results may not be known for days.