+ 1
Errors in code. Help
Wrote the code. Must output all values of powers of 2 to the entered number. Why does the code generate errors? https://code.sololearn.com/ci9O0AiRfgJT/?ref=app https://code.sololearn.com/ci9O0AiRfgJT/?ref=app
2 Answers
+ 8
you forget one ; in somewhere in your code
here a working version for comparison:
https://code.sololearn.com/cHRX9Qg2tR1D
+ 2
The problem is that you have sure copied these code from an text editor that inserted unsupported chars on SL... Try to see your code on SL on Web (dont on app) and you will see some strange chars with pink background... You have to remove they else compiler cannot compile source