Run time error occurred using uint8_t

w.r.t to problem Life, the Universe, and Everything &
my submission

I get runtime error using uint8_t for small numbers but when I used int , solution was accepted.
Pl tell me why error occurred in case of uint8_t .

I think you get a compiler error (Warnings are treated as errors). Apparently the typecasting from character to “hhd” (half half integer) is not allowed.

prog.c:41:4: error: format ‘%hhd’ expects argument of type ‘signed char *’, but argument 2 has type ‘uint8_t *’ [-Werror=format=]
scanf("%"SCNd8, &T);

This is the corresponding code section

uint8_t T;
scanf("%"SCNd8, &T);