As seen the sequence in console āExpectedā is different than actual expected sequence as there appears 3 zeros and 5 zeros and that makes no sense.
My source code is this:
[ NO FULL SOURCE PLEASE ]
I know that the source has some problems that need to be resolved, but the console output is having problems.
The checker tests your output one character at a time and stops once it finds something wrong. What youāre seeing is the expected value, truncated at the point where the mistake occurred. Thatās why it doesnāt match the actual expected value shown.
Just wanted to let you know what kept me stumbling around.
random outputs in the console, even with result success
an impossible expected output like 0 0 00 000 0000
it was, because i didnāt fill up the space left of chars, that are only 6bit in binary.
First I asked myself, why would I have to put something there, it makes the output incorrect, because I just decided to fill it up with a value - but it makes sense, because you need to know how many bits on char is, when you want to be able to decode it again.
It saying itās found āNothingā when Iām outputting it using System.out.print (In Java). I get the correct output as well.
Standard Output Stream:
0 0 00 0000 0
Failure
Found: Nothing
Expected: 0 0 00 0000 0 0
Iām new to this site so probably missing something obviousā¦
Please check that you are not printing an empty string before printing your final print.
In python I reproduce your error by adding a line with print() before printing my answer, or by printing a single ā\nā before my answer.
36 bits in on chuckās message itās interpreting 3 1ās as only 2. My program is correct but the test is wrong. Anyone experienced this? Canāt complete the puzzle.
The raw input for his code (up until this point) is:
100001111010001110101110001111010111
My issue is at the end:
111 == 0 000
111 != 0 00
Not really sure what to do anymore considering Iāve manually written out the solution for this portion and my program is correct from what I can calculate. I must be missing something.
The error is not at the end of your string, itās in the middle.
Keep in mind that the referee does not show you the entire output string. It looks through your answer character-by-character until it finds a mistake, at which point it stops and shows you the output you had up until that point. The expected answer is much longer.
You can view the expected output by selecting Expert mode in settings and clicking on the 3 horizontal lines icon.
Yes I understand that this is only a portion of the expected output. Iām just not sure why at this point itās incorrect. The last three characters ā111ā are equal to 0 000, not 0 00.
I suspect that was an mistake in the cut-and paste, since the referee was also looking for those numbersā¦ should have been 00 000, according to the test casesā¦
Squidward, I ran my old code in C#, javascript, and C and got the same as the referee wanted. Youāve got a logic error somewhere.
Hello there,
Can someone help with the last test?.. everything worked fine but the message from chuck always show me that there is a mistakeā¦
but i canāt find the problemā¦(i use java)