Ad
  • Default User Avatar

    Hi,

    when pressing "attempt" I get a pass
    but stderr says

    main.cpp:75:5: warning: 'const' type qualifier on return type has no effect [-Wignored-qualifiers]
    const int getScore() const { return score; }
    ^~~~~~
    main.cpp:76:5: warning: 'const' type qualifier on return type has no effect [-Wignored-qualifiers]
    const bool isScoreGreaterThan(const TheWord &w) const { return score > w.getScore(); }

    Guess this stderr output prevents from submitting
    the solution, which passes all tests ?

    Both stderr functions are outside my scope.
    How can I fix that?

    language C++ Clang 8 C++17

    Actually, when I switch to C++14 the server stops at 12s execution
    C++17 requires 4s