Some generalizations of the problem of distinct representatives