from stackflow we see "You cannot allocate an array of unknown size with automatic storage duration in C++. If you want a variable sized array then you need to dynamically allocate it (or, better yet; just use a vector)."
Thing is we don't know how to proceed here and are looking for hints, maybe showing how other objects in Pd deal with this.