مَرَرْتُ بِبَعْلَبَكَّ — I passed by Baalbek.
مَرَرْتُ: past verb with an attached subject pronoun.
بِـ: preposition.
بَعْلَ: first part, built on fatḥ.
بَكَّ: second part, genitive with fatḥah in place of kasrah, because it behaves as a diptote.
Critical point: The fatḥah on «بَكَّ» is not accusative here; it marks the genitive case.