Whale talk - no instance of constructor


 #include <iostream>

#include <vector>

#include <string>

using std::string;

using std::cout;

using std::vector;

int main() {

  string input ="turpentine and turtles";

  vector<char> vowels = {"a", "e", "i", "o", "u"};

  vector<char> whale_talk;

  for(int i=0; i < input.size(); i++){

    for(int j =0; j < vowels.size(); j++){







  for (int k = 0; k < whale_talk.size(); k++) {

        cout << whale_talk[k];


cout << "\n";


line 12

vector<char> vowels = {"a", "e", "i", "o", "u"};

I get error:
no instance of constructor “std::vector<_Tp, _Alloc>::vector [with _Tp=char, _Alloc=std::allocator]” matches the argument list – argument types are: (const char [2], const char [2], const char [2], const char [2], const char [2])

Tried looking up resolutions online but was not able to find anything. Please let me know what I’m doing wrong.

Thank you

How do we refer to chars in c++?
– Single quotes. Not double quotes.

Your code should run after this.

Welcome to the forums :tada: :tada:

Yes running the code with single quotes instead of double quotes can solve the error