[Solved]Another unreachable code detected.Can you help me in the debugging of the codešŸ˜? Thanks | Sololearn: Learn to code for FREE!
Novo curso! Todo programador deveria aprender IA generativa!
Experimente uma aula grƔtis
+ 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 Respostas
+ 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