The question of if this is a Virginia Construction Code Violation is one of scoping, not of the technical provisions of the code.
From the Virginia code.
"102.2 Scope. This section establishes the scope of the USBC in accordance with Section 36-98 of the Code of Virginia. TheUSBC shall supersede the building codes and regulations of the counties, municipalities and other political subdivisions and state agencies. This code also shall supersede the provisions of local ordinances applicable to single-family residential
construction that (i) regulate dwelling foundations or crawl spaces, (ii) require the use of specific building materials or
finishes in construction, or (iii) require minimum surface area or numbers of windows; however, this code shall not
supersede proffered conditions accepted as a part of a rezoning application, conditions imposed upon the grant of special
exceptions, special or conditional use permits or variances, conditions imposed upon a clustering of single-family homes
and preservation of open space development through standards, conditions, and criteria established by a locality pursuant to
subdivision 8 of Section 15.2-2242 of the Code of Virginia or subdivision A 12 of Section 15.2-2286 of the Code of
Virginia, or land use requirements in airport or highway overlay districts, or historic districts created pursuant to Section
15.2-2306 of the Code of Virginia, or local flood plain regulations adopted as a condition of participation in the National
Flood Insurance Program.
Note: Requirements relating to functional design are contained in Section 103.11 of this code.
102.2.1 Invalidity of provisions. To the extent that any provisions of this code are in conflict with Chapter 6 (Section
36-97 et seq.) of Title 36 of the Code of Virginia or in conflict with the scope of the USBC, those provisions are
considered to be invalid to the extent of such conflict.
102.3 Exemptions. The following are exempt from this code:
...
3. Parking lots and sidewalks, which are not part of an accessible route.
...
6. Farm buildings and structures, except for a building or a portion of a building located on a farm that is operated as
a restaurant as defined in Section 35.1-1 of the Code of Virginia and licensed as such by the Virginia Board of
Health pursuant to Chapter 2 (Section 35.1-11 et seq.) of Title 35.1 of the Code of Virginia. However, farm
buildings and structures lying within a flood plain or in a mudslide-prone area shall be subject to flood-proofing
regulations or mudslide regulations, as applicable."
Given the wording "which are not part of an accessible route" would leave sidewalks that are part of the means of exit discharge outside the scope of the building code. On newer buildings with required accessible routes much of the means of egress is typically included, but this is obviously not part of an accessible route.
The local officials saying that it is not a code violation is not an endorsement that it is/was a safe situation.
A number of years ago we had an abandoned silo in a soybean field collapse while children from the adjacent subdivision were playing in/around it. One child was killed by the tons of clay tiles falling on him. We could not order the adjacent similarly deteriorated silo removed, because there was no code violation because these farm buildings were exempt from the code.
The fact that it is not subject to the building code, does not relieve the landlord of the duty to provide a safe premises.
Where you need to be looking is for a Personal Injury Attorney willing to take the case on a contingency basis, he will have access to the necessary experts to say if it was or was not a safe condition.
It is also probably time to start considering moving to a more accessible complex.
It is a difficult situation