C++ can we pass arrays, or other collections on function line?

I don’t get it; you try to append a zero sized array there.
If you gonna declare as a parameter at least give it a value first.