You had some ; line 42 for instance. You also have an int variable i which you enclosed in () braces instead of { } ones (line 36), which gives a warning - unused variable i. You already have a variable, use it. ;-)
Line 36: What are you trying to do here? You don't want to define a variable (i) in an else clause. What happens when you come through the other path? Hint: i (defined at line 11) is an uninitialized variable. Besides, the () around the statement is not valid syntax.
Line 34: If a is less than 0, you output a message, but then continue as if nothing is wrong.