When I try to compile the code below I get this error: error: expected ';' before 'push_back' at line 17 but am unsure where I am missing it as I have tried placing it in various places but it just changes the error message.
The question just provides from vector<char> to cout <<myName[i] and we are supposed to predict the output that is why I have written the code below but I might have missed something while doing this.