#Pls, help me with task
12 messages · Page 1 of 1 (latest)
When your question is answered use !solved to mark the question as resolved.
Remember to ask specific questions, provide necessary details, and reduce your question to its simplest form. For tips on how to ask a good question use !howto ask.
Youve gotta explain the problem, your attempted fix, expected output/behaviour etc, you cant just put the code here as if its a "find the bug" contest
I don't understand why my code doesn't do the specified things in the assignment. The Cube is constantly locked and no matter what I do, no matter what methods I use - the Cube is constantly locked.
I applied the method to unlock each element of the Cube, but it still doesn't work and I don't understand why
This question is being automatically marked as stale.
If your question has been answered, type !solved.
If your question is not answered feel free to bump the post or re-ask.
Take a look at !howto ask for tips on improving your question.
!howto ask
Anyone can ask a question in our programming channels. Following the guide Writing The Perfect Question is recommended.
State your problem clearly and provide all necessary details:
- the relevant portion of your code, or all of it
- the expected output
- the actual output (or the full error)
:trophy: Gold Standard: Minimal Reproducible Example
Provide the relevant code in the message, and format it nicely with a code block*. If it's too much for one message, you can upload it:
- Compiler Explorer for most C and C++ snippets
- OnlineGDB for interaction, debugging
:no_entry: Do not post screenshots, let alone photos of your screen!
Have you tried setting some breakpoints and stepping through the code as it is running to observe it's behavior? That might help you understand what's going wrong or to better formulate a question if you don't understand something more specific that doesn't behave as you expect. Try writing some tests to see if specific input gets the results you expect.
Debbug doesn't work in this code. Maybe it's just me?
if (!state[x][y][z])
console:
Time taken to unlock the cube: 681 milliseconds
The cube is still locked!