molecules.cpp: In function 'int find_subset(int, int, int*, int, int*)':
molecules.cpp:33:30: warning: 'sizeof' on array function parameter 'result' will return size of 'int*' [-Wsizeof-array-argument]
33 | memset(result, 0, sizeof result);
| ^~~~~~
molecules.cpp:4:51: note: declared here
4 | int find_subset(int l, int u, int w[], int n, int result[]) {
| ~~~~^~~~~~~~
molecules.cpp:33:23: 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]
33 | memset(result, 0, sizeof result);
| ^~~~~~~~~~~~~
/tmp/cc8EhYwn.o: In function `main':
grader.cpp:(.text.startup+0x139): undefined reference to `find_subset(int, int, std::vector<int, std::allocator<int> >)'
collect2: error: ld returned 1 exit status