rtype function(vector<int> (&G)[]) { ... } . . vector<int> G[N];
also works. I use C++ 23(GCC 14.2, msys2)