molecules.cpp: In function 'std::vector<int> find_subset(int, int, std::vector<int>)':
molecules.cpp:31:23: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector<int>::size_type' {aka 'long unsigned int'} [-Wsign-compare]
31 | for (int i = 0; i < w.size(); i++) {
| ~~^~~~~~~~~~
molecules.cpp:36:23: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector<std::pair<int, int> >::size_type' {aka 'long unsigned int'} [-Wsign-compare]
36 | for (int i = 0; i < s.size(); i++) {
| ~~^~~~~~~~~~
molecules.cpp:40:23: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector<std::pair<int, int> >::size_type' {aka 'long unsigned int'} [-Wsign-compare]
40 | for (int i = 1; i <= s.size(); i++) {
| ~~^~~~~~~~~~~
molecules.cpp:45:18: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector<std::pair<int, int> >::size_type' {aka 'long unsigned int'} [-Wsign-compare]
45 | while (r < s.size()) {
| ~~^~~~~~~~~~
molecules.cpp:53:19: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector<std::pair<int, int> >::size_type' {aka 'long unsigned int'} [-Wsign-compare]
53 | if (r == s.size() - 1) break;
| ~~^~~~~~~~~~~~~~~
molecules.cpp:43:13: warning: unused variable 'k' [-Wunused-variable]
43 | int k = i , le = 0 , r = i-1 ;
| ^