Tetracyclic heterocycle compounds of formula (I) and pharmaceutically acceptable salts thereof are provided, wherein A, A, G, R1, R15, U, V, V, W, W, X, X, Y and Y are as defined in the invention. The pharmaceutical compositions comprising these compounds and the use of the compounds for treating hepatitis C virus (HCV) infection are also provided.