molecules.cpp: In function 'std::vector<int> find_subset(int, int, std::vector<int>)':
molecules.cpp:8:24: error: 'n' was not declared in this scope
8 | for(int i = 0; i < n; i++){
| ^
molecules.cpp:12:24: error: 'n' was not declared in this scope
12 | for(int r = 0; r < n; r++){
| ^
molecules.cpp:15:24: error: request for member 'first' in 'w.std::vector<int>::operator[](((std::vector<int>::size_type)le))', which is of non-class type '__gnu_cxx::__alloc_traits<std::allocator<int>, int>::value_type' {aka 'int'}
15 | s -= w[le].first;
| ^~~~~
molecules.cpp:19:36: error: request for member 'second' in 'w.std::vector<int>::operator[](((std::vector<int>::size_type)i))', which is of non-class type '__gnu_cxx::__alloc_traits<std::allocator<int>, int>::value_type' {aka 'int'}
19 | ans.push_back(w[i].second);
| ^~~~~~
molecules.h:1:9: warning: #pragma once in main file
1 | #pragma once
| ^~~~
molecules_c.h:1:9: warning: #pragma once in main file
1 | #pragma once
| ^~~~