molecules.cpp: In function 'std::vector<int> find_subset(int, int, std::vector<int>)':
molecules.cpp:5:6: error: 'vector' was not declared in this scope; did you mean 'std::vector'?
5 | vector<int>v(df/w[0]);
| ^~~~~~
| std::vector
In file included from /usr/include/c++/10/vector:67,
from molecules.h:3,
from molecules.cpp:1:
/usr/include/c++/10/bits/stl_vector.h:389:11: note: 'std::vector' declared here
389 | class vector : protected _Vector_base<_Tp, _Alloc>
| ^~~~~~
molecules.cpp:5:13: error: expected primary-expression before 'int'
5 | vector<int>v(df/w[0]);
| ^~~
molecules.cpp:7:15: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector<int>::size_type' {aka 'long unsigned int'} [-Wsign-compare]
7 | if(df/w[0]>w.size()){
| ~~~~~~~^~~~~~~~~
molecules.cpp:8:16: error: could not convert '0' from 'int' to 'std::vector<int>'
8 | return 0;
| ^
| |
| int
molecules.cpp:13:13: error: 'v' was not declared in this scope
13 | v[i]=w[0];
| ^
molecules.cpp:17:12: error: 'v' was not declared in this scope
17 | return v;
| ^