SÃO PAULO, Brazil — Dilma Rousseff was leading late Sunday in her bid to be Brazil’s first female president, but election officials said she had failed to come up with enough votes to avoid a second round.