w.r.t to problem Life, the Universe, and Everything &
my submission http://www.codechef.com/viewsolution/1959194
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=]
This is the corresponding code section