Ad
  • Default User Avatar
  • Default User Avatar

    when I test my solution everything is fine, but when I attempt, an error appears outside my code:

    In file included from main.cpp:7:
    ./tests.cpp:22:40: error: use of undeclared identifier 'h'
    for (; lowest < 10; lowest++) r += h(n - lowest, digits - 1, lowest);
    ^
    1 error generated.