[quote user="Snorre Olsen"]To clarify, I tried running an empty for loop in a test program just to replicate the error, and indeed I get the same three errors trying to compile this code:[/quote]
Despite the fact you see 3 different diagnostics, there is only one error in your code: the uint8. This is typical of many C compilers. A small syntax error can cause an impressive stream of diagnostics.
Thanks and regards,
-George