molecules.cpp: In function 'int rad(int, int)':
molecules.cpp:6:13: error: invalid operands of types 'int() throw ()' and 'int' to binary 'operator%'
return rand%(b-a+1);
~~~~^~~~~~~~
molecules.cpp: In function 'std::vector<int> find_subset(int, int, std::vector<int>)':
molecules.cpp:14:10: error: 'r' was not declared in this scope
if(sum>r) {
^
molecules.cpp:15:33: error: expected ',' or ';' before ':' token
int m=rad(0,(int)ans.size()) :
^
molecules.cpp:21:18: error: 'r' was not declared in this scope
if(sum>=l&&sum<=r) {
^