![]() |
千杯不醉的拖把 · MySQL函数、存储过程、索引学习 - ...· 昨天 · |
![]() |
活泼的硬盘 · Guide to Spring Retry· 16 小时前 · |
![]() |
强健的鸭蛋 · Java 字符串如何去转义字符-阿里云开发者社区· 10 月前 · |
![]() |
逆袭的山寨机 · win10 任务计划程序运行结果显示 ...· 1 年前 · |
![]() |
失眠的红豆 · optimizer.zero_grad()- ...· 1 年前 · |
![]() |
瘦瘦的橙子 · Linux curl ...· 1 年前 · |
![]() |
帅气的水桶 · ASP.NET Core ...· 2 年前 · |
Long story short , you must move your return results ; statement at the end of the function.
In this case , you must also declare the results variable somewhere at the start of the function not inside any code block
Let me know if it works fine
Thanks and Regards,
Shiva RV
All Answers
I think it is a simple code issue
Just make your return results; statment at the end before the last " } " . I mean by before closing the function write your return results so you must also initailize your result variable at the start of the function and not inside any block of code.
This error pops up because the function is suppose to return string but in some branch section of your code it doesn't return anything
Let me if the solution helps.
Thanks and Regards,
Shiva RV
I'm not sure what you mean. I should move my results variable definition to ouside my if statement?
Long story short , you must move your return results ; statement at the end of the function.
In this case , you must also declare the results variable somewhere at the start of the function not inside any code block
Let me know if it works fine
Thanks and Regards,
Shiva RV