robots.cpp: In function 'int putaway(int, int, int, int*, int*, int*, int*)':
robots.cpp:55:26: warning: 'sizeof' on array function parameter 'x' will return size of 'int*' [-Wsizeof-array-argument]
55 | memcpy(_X, x, sizeof x);
| ^
robots.cpp:50:38: note: declared here
50 | int putaway(int A, int B, int T, int x[], int y[], int w[], int s[]) {
| ~~~~^~~
robots.cpp:55:19: warning: argument to 'sizeof' in 'void* memcpy(void*, const void*, size_t)' call is the same expression as the source; did you mean to dereference it? [-Wsizeof-pointer-memaccess]
55 | memcpy(_X, x, sizeof x);
| ^~~~~~~~
robots.cpp:56:26: warning: 'sizeof' on array function parameter 'y' will return size of 'int*' [-Wsizeof-array-argument]
56 | memcpy(_Y, y, sizeof y);
| ^
robots.cpp:50:47: note: declared here
50 | int putaway(int A, int B, int T, int x[], int y[], int w[], int s[]) {
| ~~~~^~~
robots.cpp:56:19: warning: argument to 'sizeof' in 'void* memcpy(void*, const void*, size_t)' call is the same expression as the source; did you mean to dereference it? [-Wsizeof-pointer-memaccess]
56 | memcpy(_Y, y, sizeof y);
| ^~~~~~~~