+ 2
Fix the code please
25 Respostas
+ 4
Sandeep Have you read the error messages? Most just seem to be syntax errors. Read what line the error is on, look at what the problem is and try and fix it. If your having trouble with some of them ask.
+ 3
Sandeep Okay thats fine, lets take it step by step.
At line 36 you have bit_offset+; + is the error are you trying to do ++ maybe?
Oh and at line 83 you have another one you did boo1 instead of bool thats an easy fix.
And line 86 you just have 1 * 1 im not really sure what you are trying to achive their.
And line 173 your missing a semi colen, it happens.
At line 297 you spelt some stuff wrong it seems.
+ 3
someone had too much time in their hand...
Sandeep please reveal your source.
ok, after extreme refactoring and pruning out decoy codes, it is distilled to this:
https://code.sololearn.com/c4cNG56F99Y5/?ref=app
https://code.sololearn.com/ck6Py1D3QOi2/?ref=app
+ 2
Bob_Li Sorry I didn't see comment 😅😅
+ 1
Fix The Code
+ 1
Junior Thanks A lot
+ 1
Junior Can You Edit the Code and send it
+ 1
Sandeep Yes, some good practices at keeping these bugs away as their are some more, i would recommend giving variables good descriptive names. Also orgranizing ans making your code a little prettier may help and lastly documenting your code! This will help keep the bugs away and maintaing your code better so you can keep those nasty bugs away.
+ 1
Sandeep Im not really sure what you’re even really trying to make here and what you’re trying to implement so my edits may not be what you want
+ 1
any Other Who Can Fix Code Please Fix
+ 1
Sandeep is this meant as a coding challenge? There are gross misspellings, useless statements, unused variables, badly named identifiers, meaningless comments, and bad code galore. The code seems deliberately obscured, as though it is a test that can be solved only if you know the language well. Where did it come from?
+ 1
Brian I have got it from old sololearn courses
+ 1
This it the source where I get the code
+ 1
Sandeep Bro, you didnt see the solutions in the comments?
0
Junior I tried but Failed
0
Junior what are you trying to say?
0
Sandeep Apply what i said with the fixes.
0
How did you get so many Syntax Errors?
0
Dragon RB I don't know 🥲