any idea? #include using std::cout; using std::endl; using std::ostream; using std::cin; using std::boolalpha; #include using std::copy; using std::sort; #include using std::swap; #include using std::string; #include using std::vector; #include using std::distance; using std::istream_iterator; using std::back_inserter; #include using std::ostringstream; // ADD MORE INCLUDES if you need them to the above template struct SetElement{ public: T element; int cnt; SetElement()=default; SetElement(T val); }; // FIX BELOW for SetElement!!! // The T val constructor and operator<< below here for SetElement template SetElement::SetElement(T val){ cnt = 1; element = val; } template ostream &operator<<(ostream os, const SetElement& p){ os< class MSet{ private: SetElement* ary_; size_t size_; size_t capacity_; void grow(); public: MSet(size_t s=2); MSet(T val); MSet(vector&); MSet(MSet&); MSet operator=(MSet); ~MSet(); size_t size(); size_t capacity(); SetElement* find(T); void insert(T); size_t count(T val); bool erase(T); friend ostream& operator<<(ostream& out, MSet& m){ // FIX THIS RIGHT HERE. ENTER YOUR CODE HERE out<<\"test\"; return out; }; }; // MANY THINGS BELOW HERE FOR MSet template MSet::MSet(size_t s){ ary_ = new T[s](); } /* template size_t MSet::size_(){ cout <<\"test\"<< endl; return size_t; } */ // DO NOT CHANGE ANYTHING BELOW. TESTING! int main(){ int test; long l1, l2, l3; cin >> test; cout << boolalpha; switch (test){ // basic constructors, .size() and .capacity() case 1 : { MSet m_l; /* cout << m_l.size() <<\":\"<< m_l.capacity()<> l1; MSet m_l_oneval(l1); cout << m_l_oneval.size() <<\":\"<< m_l_oneval.capacity()< Solution your mistack is: ary_ = new SetElement[s]; is correct. not ary_ = new T[s](); Program: #include using std::cout; using std::endl; using std::ostream; using std::cin; using std::boolalpha; #include using std::copy; using std::sort; #include using std::swap; #include using std::string; #include using std::vector; #include using std::distance; using std::istream_iterator; using std::back_inserter; #include using std::ostringstream; // ADD MORE INCLUDES if you need them to the above template struct SetElement{ public: T element; int cnt; SetElement()=default; SetElement(T val); }; // FIX BELOW for SetElement!!! // The T val constructor and operator<< below here for SetElement template SetElement::SetElement(T val){ cnt = 1; element = val; } template ostream &operator<<(ostream os, const SetElement& p){ os< class MSet{ private: SetElement* ary_; size_t size_; size_t capacity_; void grow(); public: MSet(size_t s=2); MSet(T val); MSet(vector&); MSet(MSet&); MSet operator=(MSet); ~MSet(); size_t size(); size_t capacity(); SetElement* find(T); void insert(T); size_t count(T val); bool erase(T); friend ostream& operator<<(ostream& out, MSet& m){ // FIX THIS RIGHT HERE. ENTER YOUR CODE HERE out<<\"test\"; return out; }; }; // MANY THINGS BELOW HERE FOR MSet template MSet::MSet(size_t s){ ary_ = new SetElement[s]; } /* template .