books.cpp: In function 'll minimum_walk(int*, int)':
books.cpp:7:16: warning: 'sizeof' on array function parameter 'p' will return size of 'int*' [-Wsizeof-array-argument]
7 | ll N = sizeof(p);
| ~^~
books.cpp:6:21: note: declared here
6 | ll minimum_walk(int p[], int s) {
| ~~~~^~~
/usr/bin/ld: /tmp/ccQyi8AK.o: in function `main':
grader.cpp:(.text.startup+0x0): multiple definition of `main'; /tmp/ccQ7aSHM.o:books.cpp:(.text.startup+0x0): first defined here
/usr/bin/ld: /tmp/ccQyi8AK.o: in function `main':
grader.cpp:(.text.startup+0x266): undefined reference to `minimum_walk(std::vector<int, std::allocator<int> >, int)'
collect2: error: ld returned 1 exit status