molecules.cpp: In function 'std::vector<int> find_subset(int, int, std::vector<int>)':
molecules.cpp:9:20: error: 'n' was not declared in this scope
for(int i=1;i<=n;i++){
^
molecules.cpp:12:13: error: 'n' was not declared in this scope
sort(p+1,p+n+1);
^
molecules.cpp:14:2: error: 'll' was not declared in this scope
ll sum=0,id=0;
^~
molecules.cpp:14:2: note: suggested alternative: 'l'
ll sum=0,id=0;
^~
l
molecules.cpp:16:3: error: 'sum' was not declared in this scope
sum+=p[i].ff;
^~~
molecules.cpp:25:4: error: 'id' was not declared in this scope
id=i-1;
^~
molecules.cpp:25:4: note: suggested alternative: 'i'
id=i-1;
^~
i
molecules.cpp:30:5: error: 'id' was not declared in this scope
if(id==0){
^~
molecules.cpp:33:12: error: 'id' was not declared in this scope
for(int i=id;i>=1;i--){
^~
molecules.cpp:33:12: note: suggested alternative: 'i'
for(int i=id;i>=1;i--){
^~
i
molecules.cpp:34:3: error: 'sum' was not declared in this scope
sum=sum-p[i].ff;
^~~