molecules.cpp: In function 'std::vector<int> find_subset(int, int, std::vector<int>)':
molecules.cpp:18:18: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector<int>::size_type' {aka 'long unsigned int'} [-Wsign-compare]
18 | for(int i=0;i<w.size();i++)
| ~^~~~~~~~~
molecules.cpp:24:18: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector<int>::size_type' {aka 'long unsigned int'} [-Wsign-compare]
24 | for(int k=0;k<w.size();k++){
| ~^~~~~~~~~
molecules.cpp:27:18: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector<int>::size_type' {aka 'long unsigned int'} [-Wsign-compare]
27 | for(int i=k;i<w.size();i++)
| ~^~~~~~~~~
molecules.cpp:30:29: warning: narrowing conversion of 'v.std::vector<std::pair<long long int, long long int> >::operator[](((std::vector<std::pair<long long int, long long int> >::size_type)i)).std::pair<long long int, long long int>::second' from 'long long int' to 'std::vector<int>::value_type' {aka 'int'} [-Wnarrowing]
30 | ans.push_back({v[i].second});
molecules.cpp: In function 'void usaco()':
molecules.cpp:9:21: warning: ignoring return value of 'FILE* freopen(const char*, const char*, FILE*)' declared with attribute 'warn_unused_result' [-Wunused-result]
9 | void usaco(){freopen("cruise.out","w",stdout);freopen("cruise.in","r",stdin);}
| ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~
molecules.cpp:9:54: warning: ignoring return value of 'FILE* freopen(const char*, const char*, FILE*)' declared with attribute 'warn_unused_result' [-Wunused-result]
9 | void usaco(){freopen("cruise.out","w",stdout);freopen("cruise.in","r",stdin);}
| ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~