molecules.cpp: In function 'std::vector<int> answer(std::deque<int>)':
molecules.cpp:7:20: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
for (int i = 0; i < v.size(); i++) {
~~^~~~~~~~~~
molecules.cpp: In function 'std::vector<int> find_subset(int, int, std::vector<int>)':
molecules.cpp:13:10: error: 'w' was not declared in this scope
int n = w.size();
^
molecules.cpp:15:20: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
for (int i = 0; i < w1.size(); i++) w.push_back({w1[i],i});
~~^~~~~~~~~~~