← Back to archive

Stdle #5 · 2026-06-11

What does this log?

A past puzzle — fully playable. 4 attempts, hints on wrong guesses.

#include <iostream>
int main() {
auto counter = []() {
static int n = 0;
return ++n;
};
std::cout << counter() << counter() << counter() << "\n";
}
Modern
4 attempts left

Answer & explanation