+ 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

22nd Oct 2018, 6:15 PM
Иван
2 Answers
+ 8
you forget one ; in somewhere in your code here a working version for comparison: https://code.sololearn.com/cHRX9Qg2tR1D
22nd Oct 2018, 6:42 PM
Anya
Anya - avatar
+ 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
22nd Oct 2018, 7:36 PM
KrOW
KrOW - avatar