Fix error: request for member ‘push’ in ‘links’, which is of non-class type ‘std::stack<std::basic_string<char> >*’