Problem about changing CVX solver

I have two algorithms in my code, and they all use CVX. The cvx_solver of the first algorithm is sdpt3 while the second algorithm uses mosek. But when i run the code, error happens
image
Does it mean i can only use the same cvx_solver in one code file?

Please show the entire code.