No candidate received more than 50 percent of the vote, officials say, as two former prime ministers prepare for runoff.