Declaration not allowed here

Variable declarations are not allowed inside an expression. Example:

int y = int x   ; Error!

Instead, declare each variable on a separate line:

int x = 0
int y = x

See Also
Errors