// Error a propósito: hay caso base, pero con 7 nunca se llega a él. gcc no avisa.
#include <stdio.h>

static int half_steps(int n) {
    if (n == 0) {
        return 0;
    }
    return 1 + half_steps(n - 2);
}

int main(void) {
    printf("con 6: %d\n", half_steps(6));
    printf("con 7: %d\n", half_steps(7));
    return 0;
}
