How To Convert An Array Into Set In Cpp