On the error of parameter-dependent compound quadrature formulas