79459869

Date: 2025-02-22 16:00:29
Score: 0.5
Natty:
Report link

This is because you could make k valid by specializing std::array:

struct S {};

namespace std {
    template <size_t N>
    array<S> {
        array(...) {}
        int operator(size_t i) const { return i; }
    };
}

k(S{});  // prints 1
Reasons:
  • Low length (0.5):
  • Has code block (-0.5):
  • Low reputation (0.5):
Posted by: Dominik Kaszewski