29th Jun 2023, 6:22 AM
Sandeep
Sandeep - avatar
25 ответов
+ 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.
29th Jun 2023, 7:23 AM
Junior
Junior - avatar
+ 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.
29th Jun 2023, 7:50 AM
Junior
Junior - avatar
+ 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
30th Jun 2023, 3:35 PM
Bob_Li
Bob_Li - avatar
+ 2
Bob_Li Sorry I didn't see comment 😅😅
30th Jun 2023, 4:08 PM
Sandeep
Sandeep - avatar
+ 1
Fix The Code
29th Jun 2023, 6:45 AM
Sandeep
Sandeep - avatar
+ 1
Junior Thanks A lot
29th Jun 2023, 7:51 AM
Sandeep
Sandeep - avatar
+ 1
Junior Can You Edit the Code and send it
29th Jun 2023, 7:51 AM
Sandeep
Sandeep - avatar
+ 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.
29th Jun 2023, 7:54 AM
Junior
Junior - avatar
+ 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
29th Jun 2023, 7:59 AM
Junior
Junior - avatar
+ 1
any Other Who Can Fix Code Please Fix
29th Jun 2023, 3:38 PM
Sandeep
Sandeep - avatar
+ 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?
29th Jun 2023, 7:16 PM
Brian
Brian - avatar
+ 1
Brian I have got it from old sololearn courses
30th Jun 2023, 5:26 AM
Sandeep
Sandeep - avatar
+ 1
This it the source where I get the code
30th Jun 2023, 4:04 PM
Sandeep
Sandeep - avatar
+ 1
Sandeep Bro, you didnt see the solutions in the comments?
30th Jun 2023, 4:32 PM
Dragon RB
Dragon RB - avatar
0
Junior I tried but Failed
29th Jun 2023, 7:37 AM
Sandeep
Sandeep - avatar
0
Junior what are you trying to say?
29th Jun 2023, 8:19 AM
Sandeep
Sandeep - avatar
0
Sandeep Apply what i said with the fixes.
29th Jun 2023, 8:26 AM
Junior
Junior - avatar
0
How did you get so many Syntax Errors?
29th Jun 2023, 8:55 AM
Dragon RB
Dragon RB - avatar
0
Dragon RB I don't know 🥲
29th Jun 2023, 9:59 AM
Sandeep
Sandeep - avatar