ERROR: function used was not declared in scope

Sir john is correct you spelled it wrong!