rail.cpp: In function 'void findLocation(int, int, int*, int*)':
rail.cpp:54:32: warning: 'sizeof' on array function parameter 'location' will return size of 'int*' [-Wsizeof-array-argument]
54 | memset(location, 0, sizeof location); memset(stype, 0, sizeof stype);
| ^~~~~~~~
rail.cpp:53:41: note: declared here
53 | void findLocation(int n, int first, int location[], int stype[]){
| ~~~~^~~~~~~~~~
rail.cpp:54: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]
54 | memset(location, 0, sizeof location); memset(stype, 0, sizeof stype);
| ^~~~~~~~~~~~~~~
rail.cpp:54:67: warning: 'sizeof' on array function parameter 'stype' will return size of 'int*' [-Wsizeof-array-argument]
54 | memset(location, 0, sizeof location); memset(stype, 0, sizeof stype);
| ^~~~~
rail.cpp:53:57: note: declared here
53 | void findLocation(int n, int first, int location[], int stype[]){
| ~~~~^~~~~~~
rail.cpp:54:60: 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]
54 | memset(location, 0, sizeof location); memset(stype, 0, sizeof stype);
| ^~~~~~~~~~~~
/usr/bin/ld: /tmp/cctbLPBq.o: in function `getDistance':
grader.cpp:(.text+0x0): multiple definition of `getDistance'; /tmp/ccYIQaAr.o:rail.cpp:(.text+0x90): first defined here
collect2: error: ld returned 1 exit status