SyntaxFix
Write A Post
Hire A Developer
Questions
The compiler cannot tell from that code if the function will ever reach the end and still return something. To make that clear, replace the last else if(...) with just else.
else if(...)
else