subset.cpp