[Solved]Another unreachable code detected.Can you help me in the debugging of the code😁? Thanks | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
+ 3

[Solved]Another unreachable code detected.Can you help me in the debugging of the code😁? Thanks

https://code.sololearn.com/czmvY14mBkcs/?ref=app

19th Mar 2021, 11:38 AM
!Derrickee
!Derrickee - avatar
4 Answers
+ 3
See the semicolon at end of line 18? get rid of it, and it'll be alright if (num == 15) // remove semicolon here
19th Mar 2021, 11:42 AM
Ipang
+ 4
Ipang and 12345 Thanks guys 😃. But can you give me some tips so that I don't run into such bugs , I sent like 10hours trying to figure out but gave up.😅
19th Mar 2021, 12:20 PM
!Derrickee
!Derrickee - avatar
+ 2
Remove the ; after if statement.
19th Mar 2021, 11:42 AM
[bool left=True;]
[bool left=True;] - avatar
+ 1
Can't say much but been there done that ¯\_(ツ)_/¯ Maybe you can try find some IDEs armed with AI to cope with possible issues, so you might wanna look for one that is smart enough to predict such issues and capable of proper advice.
19th Mar 2021, 12:35 PM
Ipang