molecules.cpp:9:37: error: expected ',' or '...' before 'w'
9 | int find_subset(int l, int u, int[] w, int n, int[] result){
| ^
molecules.cpp: In function 'int find_subset(int, int, int*)':
molecules.cpp:11:16: error: 'n' was not declared in this scope
11 | for(int i=0;i<n;i++){
| ^
molecules.cpp:12:10: error: 'w' was not declared in this scope
12 | if(sum+w[i]<u){
| ^
molecules.cpp:14:8: error: 'result' was not declared in this scope
14 | k++,result[k]=i;
| ^~~~~~
molecules.cpp:18:10: error: 'result' was not declared in this scope
18 | return result;
| ^~~~~~