Guinea pigs, like humans but unlike rabbits, are unable to make their own Vitamin C within their bodies and so must be provided with Vitamin C as part of their diet.
Guinea pigs have a high Vitamin A requirement, much higher than that of rabbits or other rodents.
The guinea pig also requires moderately high levels of fibre in their food. So feeding good quality hay alongside a prepared diet is advisable.
There are life stage diets available for guinea pigs.