Individuo.h:17:12: error: no match for ‘operator=’ (operand types are ‘std::vector<std::__cxx11::basic_string<char> >’ and ‘std::__cxx11::string’ {aka ‘std::__cxx11::basic_string<char>’})
factor = ftr;
....
The quantity on the left-hand side, factor is a vector<string>.
The quantity on the right-hand side, ftr, is a string.
A vector<string> is NOT a string.
You need to decide what you want to do:
- set a string equal to a string?
- set a vector<string> equal to a vector<string>?
- push_back() a string into a vector<string>?
YOU need to decide what you want to do. One thing is plain, however: you cannot set one type of object equal to a completely different type of object.