molecules.cpp: In function 'std::vector<int> find_subset(int, int, std::vector<int>)':
molecules.cpp:15:15: warning: comparison of integer expressions of different signedness: 'unsigned int' and 'int' [-Wsign-compare]
15 | if(sm >= l) {
| ~~~^~~~
molecules.cpp:16:19: warning: comparison of integer expressions of different signedness: 'unsigned int' and 'int' [-Wsign-compare]
16 | if(sm <= u) {
| ~~~^~~~
molecules.cpp:28:15: warning: comparison of integer expressions of different signedness: 'unsigned int' and 'int' [-Wsign-compare]
28 | if(sm >= l) {
| ~~~^~~~
molecules.cpp:29:19: warning: comparison of integer expressions of different signedness: 'unsigned int' and 'int' [-Wsign-compare]
29 | if(sm <= u) {
| ~~~^~~~
molecules.cpp:36:38: warning: comparison of integer expressions of different signedness: 'unsigned int' and 'int' [-Wsign-compare]
36 | if(it != s.end() && sm + *it <= u) {
| ~~~~~~~~~^~~~
molecules.cpp:46:19: warning: comparison of integer expressions of different signedness: 'unsigned int' and 'int' [-Wsign-compare]
46 | if(sm > fl) break;
| ~~~^~~~
molecules.cpp:52:19: warning: comparison of integer expressions of different signedness: 'unsigned int' and 'int' [-Wsign-compare]
52 | if(sm > fr) break;
| ~~~^~~~
In file included from /usr/include/c++/9/cassert:44,
from /usr/include/x86_64-linux-gnu/c++/9/bits/stdc++.h:33,
from molecules.cpp:1:
molecules.cpp:56:22: warning: comparison of integer expressions of different signedness: 'std::vector<int>::size_type' {aka 'long unsigned int'} and 'int' [-Wsign-compare]
56 | assert(dr.size() <= n && (dr.size() || fl == -1));
| ~~~~~~~~~~^~~~