1. 41
    1. 24

      Somehow both less and more cursed than expected.

    2. 4

      Since printf is almost Turing complete (difficult or impossible to have loops that’s standard compliant?), it might be possible to pass printf to qsort. The array passed in needs careful engineering though.

    3. 3

      And I thought that C++ template metaprogramming was fun, this is even better :)