robots.cpp: In function 'int putaway(int, int, int, int*, int*, int*, int*)':
robots.cpp:22:25: warning: 'sizeof' on array function parameter 'X' will return size of 'int*' [-Wsizeof-array-argument]
22 | memcpy(x,X,sizeof(X));
| ^
robots.cpp:19:35: note: declared here
19 | int putaway(int A,int B,int T,int X[],int Y[],int W[],int S[]){
| ~~~~^~~
robots.cpp:22:17: 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]
22 | memcpy(x,X,sizeof(X));
| ^~~~~~~~~
robots.cpp:23:22: warning: 'sizeof' on array function parameter 'Y' will return size of 'int*' [-Wsizeof-array-argument]
23 | memcpy(y,Y,sizeof(Y));
| ^
robots.cpp:19:43: note: declared here
19 | int putaway(int A,int B,int T,int X[],int Y[],int W[],int S[]){
| ~~~~^~~
robots.cpp:23:14: 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]
23 | memcpy(y,Y,sizeof(Y));
| ^~~~~~~~~