here is the link to my code I don't understand the reasons for the errors in compiling: https://pastebin.com/KhrWPKec
Usually it's best to start with the first error, fix it, and try again, since many errors are caused by others.
use of undeclared identifier 'unit8_t'
means compiler does not know what a
unit8_t is. If you look into
stdint.h, the actual name is
uint8_t, which stands for "unsigned integer of 8 bits".