Exit status 1 'calculateSum' was not declared in this scope

Code, posted in code tags would be grand.