![]() |
耍酷的跑步鞋 · Bicep 文件结构和语法 - Azure ...· 3 天前 · |
![]() |
有胆有识的槟榔 · 如何通过Go SDK ...· 3 天前 · |
![]() |
伤情的消防车 · 定义 NMAKE 宏 | ...· 昨天 · |
![]() |
阳刚的路灯 · String.raw() - ...· 昨天 · |
![]() |
阳刚的红茶 · android 图片加载库 Glide ...· 昨天 · |
![]() |
爱喝酒的墨镜 · “中国领事”APP在线办理护照、旅行证须知 ...· 1 年前 · |
![]() |
求醉的枕头 · 广东省医疗保障局召开全省医疗保障系统先进集体 ...· 1 年前 · |
![]() |
坚强的围巾 · 【图】曝奇瑞小蚂蚁量产版内饰_汽车之家· 2 年前 · |
![]() |
沉着的投影仪 · 烧光170亿后,“中国特斯拉”走向破产_新浪 ...· 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