molecules.cpp:4:37: error: expected ',' or '...' before 'w'
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:7:31: error: 'w' was not declared in this scope
lo = ceil((double)l/(double)w[0]);
^
molecules.cpp:8:25: error: 'doublew' was not declared in this scope
hi = floor((double)u/(doublew[0]));
^~~~~~~
molecules.cpp:8:25: note: suggested alternative: 'double'
hi = floor((double)u/(doublew[0]));
^~~~~~~
double
molecules.cpp:9:6: error: 'n' was not declared in this scope
if(n<lo||(lo>=hi))return 0;
^
molecules.cpp:11:5: error: 'result' was not declared in this scope
result[m++] = w[0];
^~~~~~