kurz in c drucken

scanf("%hu", &length);
        ^
Defeated Dotterel