I thought this was a condo situation? In that case the building was owned by the people who owned the units in the building. Little wonder that the HOA wasn't investing enough in maintenance...
Both HOA’s and landlords are often a major problem when buildings have issues. It’s why local government is involved at all rather unlike single family homes which don’t get inspected.
However, that doesn’t suddenly make it the governments sole responsibility.
Oh yeah I totally agree. I would never buy a condo in a building like this in a location like this, largely because of the impossible situation with respect to "big" maintenance. Americans don't know how to cooperate without the imposition of authority.