molecules.cpp: In function 'int* find_subset(int, int, int*)':
molecules.cpp:6:20: warning: division 'sizeof (int*) / sizeof (int)' does not compute the number of array elements [-Wsizeof-pointer-div]
6 | int n = sizeof(w) / sizeof(int);
| ~~~~~~~~~~^~~~~~~~~~~~~
molecules.cpp:5:39: note: first 'sizeof' operand was declared here
5 | int * find_subset(int l, int u, int * w) {
| ~~~~~~^
molecules.cpp:14:11: warning: address of local variable 'tab' returned [-Wreturn-local-addr]
14 | return tab;
| ^~~
molecules.cpp:10:8: note: declared here
10 | int tab[loop];
| ^~~
molecules.cpp:18:9: warning: address of local variable 't' returned [-Wreturn-local-addr]
18 | return t;
| ^
molecules.cpp:17:6: note: declared here
17 | int t[0];
| ^
/usr/bin/ld: /tmp/ccY4YCo9.o: in function `main':
grader.cpp:(.text.startup+0x18d): undefined reference to `find_subset(int, int, std::vector<int, std::allocator<int> >)'
collect2: error: ld returned 1 exit status