Run-down building divided into flats (8)
I believe the answer is:
tenement
(Other definitions for tenement that I've seen before include "Holding" , "Self-contained room or set of rooms" , "Run-down house for many people" , "Scots maybe in this dwelling" , "living quarters" .)