#c++
19 messages ยท Page 1 of 1 (latest)
The error message
In file included from /usr/local/include/catch2/catch_test_macros.hpp:11,
from /usr/local/include/catch2/catch_template_test_macros.hpp:20,
from /usr/local/include/catch2/catch_all.hpp:36,
from /tmp/last-will/last_will_test.cpp:3:
/tmp/last-will/last_will_test.cpp: In function 'void CATCH2_INTERNAL_TEST_2()':
/tmp/last-will/last_will_test.cpp:34:21: error: 'estate_executor' has not been declared
34 | REQUIRE_NOTHROW(estate_executor::assemble_account_number(0));
| ^~~~~~~~~~~~~~~
...
tells you that the function assemble_account_number is not yet declared
so what should I do?
Looking at the tasks 1-3 you can see that you have to implement a namespace, a function assemble_account_number taking a secret as a parameter and a function named assemble_code that does something
I see your screen only displays up to line 31, as you can see on the right side there is a scroll bar. Scroll down all the way to the bottom
The scroll bar on the right side of the code, sorry for being too unspecific ๐
Can you spot a possible place where you can add your code?
line 46
If your question has been resolved you can react with a โ
to the original post to close the topic ๐
Happy coding ๐
@acoustic spoke If everything is resolved, we ask that the person who posted the request react to the top/original post with a :white_check_mark: (:white_check_mark:). This indicates to others that this issue has been resolved and locks the thread.
If all the tests pass and you want to further improve your solution, we encourage you to use the "Request a Code Review" feature on the website!
I still don't understand what to do
What have you tried so far? If the description of the tasks 1-3 is too confusing you can start by writing what you understand and ask for clarifications on the other parts that are unclear
I think I've completed the tasks but I'm still getting the error
The error you are getting from your code stems from not fully following the instructions from task 1. I suggest taking a second look and reading the entire (second) sentence ๐
I'll take a look