Help with UFO project (core dump error)

Hi there. I am working on the UFO project and after I added the display_status function to the ufo_fuctions.cpp file I get a core dump error when I try to run it. I don’t understand what I have done wrong. heres my fuction code



// Define functions

void end_game(std::string answer, std::string codeword){

if (answer == codeword) {

std::cout << “Hooray! You saved the person and earned a medal of honour!\n”;

} else {

std::cout << “Oh no! the UFO just few away with another person!”;



void display_status(std::vector incorrect, std::string answer){

std::cout << "Icorrect Guesses: ";

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

  std::cout << incorrect[i] << " \n";


std::cout << "Codeword: ";

for (int j = 0; j, answer.size(); ++j){

  std::cout << answer[j] << " \n";



any help much appreciated

Ok I am an idiot I put a , instead of a <

This coding malarky is annoying!

Use -Wall when you compile and fix all warnings before considering anything else