What's wrong with this code?

There's nothing wrong with the codeget_total is not a function nameThe function has no return statement

There's nothing wrong with the code.