On the representation of integers as sums of distinct terms from a fixed set