The present invention provides compounds of formula (I) and compounds of formula (VII-a) as well as pharmaceutical compositions comprising said compounds and their use as PARP inhibitors wherein n, R1, R2, R3, R4, R5, R6, R7, Re, Rd and X have defined meanings.