I'm new to this, but I believe it's because you did not define 'result'. If you were to define it as an int, that may solve your problem....
Separate names with a comma.