What type of leftover vegetable peelings and such make good compost?

Many times I have carrot leftovers potatoes different things like that but I'm never sure which ones I can use for compost because I've heard there are some that you shouldn't.
  3 answers