Building divided into flats (8)
I believe the answer is:
tenement
(Other definitions for tenement that I've seen before include "Flat" , "Block with several residences" , "Rundown house with many occupants" , "Building containing several dwellings" , "Run-down house for many people" .)