garden.cpp: In function 'void count_routes(int, int, int, int (*)[2], int, int*)':
garden.cpp:26:32: warning: 'void* memset(void*, int, size_t)' writing to an object of type 'struct std::pair<int, int>' with no trivial copy-assignment [-Wclass-memaccess]
26 | memset(sig, -1, sizeof(sig));
| ^
In file included from /usr/include/c++/10/bits/stl_algobase.h:64,
from /usr/include/c++/10/bits/char_traits.h:39,
from /usr/include/c++/10/ios:40,
from /usr/include/c++/10/istream:38,
from /usr/include/c++/10/sstream:38,
from /usr/include/c++/10/complex:45,
from /usr/include/c++/10/ccomplex:39,
from /usr/include/x86_64-linux-gnu/c++/10/bits/stdc++.h:54,
from garden.cpp:3:
/usr/include/c++/10/bits/stl_pair.h:211:12: note: 'struct std::pair<int, int>' declared here
211 | struct pair
| ^~~~
garden.cpp:46:40: error: too few arguments to function 'int cant_rutas(int, int, int, int)'
46 | resp += cant_rutas(-1, i, 0);
| ^
garden.cpp:11:5: note: declared here
11 | int cant_rutas(int ant, int act, int sum, int fin) {
| ^~~~~~~~~~
garden.cpp:50:12: error: return-statement with a value, in function returning 'void' [-fpermissive]
50 | return 0;
| ^