Severe flooding in northeastern Nigeria has left 30 people dead and affected more than a million others, authorities said on Wednesday.