I was under the impression that guine pigs can be fed any vegetable. Seems not. According to this list, there are veggies that are likely to give gas to the little pets and should be avoided.
Cucumber is highly recommended.
Among the “to avoid” veggies are cabbage, iceberg lettuce and cauliflower.