cave.cpp: In function 'int tryCombination(int*)':
cave.cpp:6:20: warning: 'sizeof' on array function parameter 'S' will return size of 'int*' [-Wsizeof-array-argument]
6 | int n = sizeof(S) / 2;
| ~^~
cave.cpp:5:24: note: declared here
5 | int tryCombination(int S[]){
| ~~~~^~~
cave.cpp: In function 'void answer(int*, int*)':
cave.cpp:17:20: warning: 'sizeof' on array function parameter 'S' will return size of 'int*' [-Wsizeof-array-argument]
17 | int n = sizeof(S) / 2;
| ~^~
cave.cpp:16:17: note: declared here
16 | void answer(int S[], int D[]){
| ~~~~^~~
/usr/bin/ld: /tmp/ccUhHOt5.o: in function `answer':
grader.c:(.text+0x0): multiple definition of `answer'; /tmp/ccT7WD41.o:cave.cpp:(.text+0x180): first defined here
/usr/bin/ld: /tmp/ccUhHOt5.o: in function `tryCombination':
grader.c:(.text+0x80): multiple definition of `tryCombination'; /tmp/ccT7WD41.o:cave.cpp:(.text+0x0): first defined here
collect2: error: ld returned 1 exit status