#c++

19 messages ยท Page 1 of 1 (latest)

acoustic spoke
#

I didn't even change anything but I'm getting this error

lucid oasis
#

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

acoustic spoke
#

so what should I do?

lucid oasis
#

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

acoustic spoke
lucid oasis
#

The scroll bar on the right side of the code, sorry for being too unspecific ๐Ÿ˜…

acoustic spoke
lucid oasis
#

Can you spot a possible place where you can add your code?

acoustic spoke
#

line 46

lucid oasis
#

If your question has been resolved you can react with a โœ… to the original post to close the topic ๐Ÿ™‚
Happy coding ๐Ÿ˜„

sleek horizonBOT
#

@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!

acoustic spoke
lucid oasis
acoustic spoke
#

I think I've completed the tasks but I'm still getting the error

lucid oasis
# acoustic spoke

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 ๐Ÿ™‚

acoustic spoke
#

I'll take a look