Update solve.c