Hi all
I think my test is stuck in a weird state and I am unable to continue on to the next exercises.
I am busy with the C++ track and busy with the “Last Will” exercise. My tests were working at one stage but I ran into a issue due to my own code being faulty.
I have since reverted the entire test to the default template provided at the beginning of the exercise but when I run the test I get the following error:
make[2]: *** [CMakeFiles/test_last-will.dir/build.make:70: CMakeFiles/test_last-will] Segmentation fault (core dumped)
make[1]: *** [CMakeFiles/Makefile2:111: CMakeFiles/test_last-will.dir/all] Error 2
make: *** [Makefile:91: all] Error 2
My test has been reverted to the boilerplate code:
// Enter your code below the lines of the families' information
// Secret knowledge of the Zhang family:
namespace zhang {
int bank_number_part(int secret_modifier) {
int zhang_part{8'541};
return (zhang_part*secret_modifier) % 10000;
}
namespace red {
int code_fragment() {return 512;}
}
namespace blue {
int code_fragment() {return 677;}
}
}
// Secret knowledge of the Khan family:
namespace khan {
int bank_number_part(int secret_modifier) {
int khan_part{4'142};
return (khan_part*secret_modifier) % 10000;
}
namespace red {
int code_fragment() {return 148;}
}
namespace blue {
int code_fragment() {return 875;}
}
}
// Secret knowledge of the Garcia family:
namespace garcia {
int bank_number_part(int secret_modifier) {
int garcia_part{4'023};
return (garcia_part*secret_modifier) % 10000;
}
namespace red {
int code_fragment() {return 118;}
}
namespace blue {
int code_fragment() {return 923;}
}
}
// Enter your code below
Is there anything I can do to get the default/boilerplate test to run? Even if the tests fail I just want to get rid of the segmentation fault
error.
I am running the tests in the web editor and not locally.