molecules.cpp:18:37: error: expected ',' or '...' before 'w'
18 | 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:20:20: error: 'n' was not declared in this scope
20 | for (int i=0;i<n;i++)
| ^
molecules.cpp:22:17: error: 'w' was not declared in this scope
22 | a[i].ff=w[i];
| ^
molecules.cpp:25:14: error: 'n' was not declared in this scope
25 | sort(a,a+n);
| ^
molecules.cpp:38:17: error: 'result' was not declared in this scope
38 | result[j]=a[j].ss;
| ^~~~~~
molecules.cpp:40:18: error: 'result' was not declared in this scope
40 | sort(result,result+m);
| ^~~~~~
molecules.cpp:60:21: error: 'result' was not declared in this scope
60 | result[j]=a[t1].ss;
| ^~~~~~
molecules.cpp:65:21: error: 'result' was not declared in this scope
65 | result[j]=a[t2].ss;
| ^~~~~~
molecules.cpp:70:19: error: 'result' was not declared in this scope
70 | sort(result,result+m);
| ^~~~~~