How to express this objective function in CVX?

where x is the variable and p,q,m is the parameter for each xi, for example x(5), p=[1,1,1,1,1] q=[0.5,0.6,0.40.6,0.7], m=[10,10,10,10,10] and C =100.