rail.cpp: In function 'void findLocation(int, int, int*, int*)':
rail.cpp:18:32: warning: 'sizeof' on array function parameter 'location' will return size of 'int*' [-Wsizeof-array-argument]
18 | memset(location, 0, sizeof(location));
| ~^~~~~~~~~
rail.cpp:4:41: note: declared here
4 | void findLocation(int N, int first, int location[], int stype[]){
| ~~~~^~~~~~~~~~
rail.cpp:18:25: warning: argument to 'sizeof' in 'void* memset(void*, int, size_t)' call is the same expression as the destination; did you mean to dereference it? [-Wsizeof-pointer-memaccess]
18 | memset(location, 0, sizeof(location));
| ^~~~~~~~~~~~~~~~
rail.cpp:19:29: warning: 'sizeof' on array function parameter 'stype' will return size of 'int*' [-Wsizeof-array-argument]
19 | memset(stype, 0, sizeof(stype));
| ~^~~~~~
rail.cpp:4:57: note: declared here
4 | void findLocation(int N, int first, int location[], int stype[]){
| ~~~~^~~~~~~
rail.cpp:19:22: warning: argument to 'sizeof' in 'void* memset(void*, int, size_t)' call is the same expression as the destination; did you mean to dereference it? [-Wsizeof-pointer-memaccess]
19 | memset(stype, 0, sizeof(stype));
| ^~~~~~~~~~~~~