OK, here's a summary of the errors:
A bunch of "error: syntax errors before '*/:/}' token"s (*/:/} being one of *, :, or })
error: stray '$' in program
warning: data definition has no type or storage class
A bunch of "_________ undeclared (first use in this function)"s
That pretty much sums it up. It sounds like a header is missing, I just don't know what one.