Both vectors and strings have a subscript operator. possibilities[i] gives you the string at index i in the vector. possibilities[i][j] gives you the character at index j in that string.
OK! Thank you for your help. I am trying making this function output the string at index 0, but the compiler gave me some error message:
Error 1 error C2679: binary '<<' : no operator found which takes a right-hand operand of type 'std::basic_string<_Elem,_Traits,_Alloc>' (or there is no acceptable conversion)
2 IntelliSense: no operator "<<" matches these operands
operand types are: std::ostream << std::string