Brazil endures historic flood before Morocco