Spot the bug in the render definition

from Namespaces
C++23 intermediate 4 min 1 issue to find

The header declares reports::render, but clients get an undefined reference. Find the source-file bug.

C++
#include <string>

namespace reports {
std::string render(int rows);
}

std::string render(int rows) {
    return "rows=" + std::to_string(rows);
}
Open in playground
Report an error