RALEIGH, N.C. — What was Hurricane Matthew is heading out to sea, but it’s leaving behind flooding across North Carolina and at least three deaths.

The National Weather Service downgraded Matthew to a post-tropical cyclone early Sunday. At 5 a.m., the storm was 30 miles southeast of Cape Hatteras and was moving east at 14 mph.

A hurricane watch was still in effect was Surf City to Duck on the Outer Banks, including Pamlico and Albemarle Sounds. A tropical storm warning was in effect from Cape Fear to Duck, including the sounds.

Forecasters said the storm should be well east of the coast Sunday afternoon.

But there are serious flooding problems across much of eastern and even central North Carolina.

Gov. Pat McCrory planned to update the situation at a 9 a.m. briefing.