molecules.cpp:19:37: error: expected ',' or '...' before 'w'
19 | 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:21:20: error: 'n' was not declared in this scope
21 | for (int i=0;i<n;i++)
| ^
molecules.cpp:23:17: error: 'w' was not declared in this scope
23 | a[i].ff=w[i];
| ^
molecules.cpp:26:14: error: 'n' was not declared in this scope
26 | sort(a,a+n);
| ^
molecules.cpp:39:17: error: 'result' was not declared in this scope
39 | result[j]=a[j].ss;
| ^~~~~~
molecules.cpp:41:18: error: 'result' was not declared in this scope
41 | sort(result,result+m);
| ^~~~~~
molecules.cpp:61:21: error: 'result' was not declared in this scope
61 | result[j]=a[t1].ss;
| ^~~~~~
molecules.cpp:66:21: error: 'result' was not declared in this scope
66 | result[j]=a[t2].ss;
| ^~~~~~
molecules.cpp:71:19: error: 'result' was not declared in this scope
71 | sort(result,result+m);
| ^~~~~~