hacker.org Forum Index
RegisterSearchFAQMemberlistUsergroupsLog in
Labyrinth

 
Reply to topic    hacker.org Forum Index » Challenges View previous topic
View next topic
Labyrinth
Author Message
DaymItzJack



Joined: 29 Oct 2009
Posts: 106

Post Labyrinth Reply with quote
Can someone explain how the board is set into memory, maybe an example? Same with the flood fill HVM challenge, it seems very vague and it would be nice if both challenges had a example of a board memory string.

If the board is:

Code:
X X X X .
. . . X .
. X X X .
. . . . .


is that:

Code:
5,4,
1,1,1,1,0,
0,0,0,1,0,
0,1,1,1,0,
0,0,0,0,0
without new lines?
Sun Jul 31, 2011 11:10 pm View user's profile Send private message
Redford



Joined: 04 Jul 2009
Posts: 41
Location: Poland

Post Reply with quote
For the maze on the "preview" looking like this:
Code:

X X X X E
. . . X .
. X X X .
S . . . .

S - start
E - end
Memory contains following ints: 5 4 0 0 0 0 0 0 1 1 1 0 0 0 0 1 0 1 1 1 1 0
And correct solution is rrrruuu

Quote:
without new lines?

It is initialized with 2+xsize*ysize integers, not chars.

_________________


Last edited by Redford on Mon Dec 16, 2013 10:08 am; edited 1 time in total
Thu Apr 04, 2013 1:29 pm View user's profile Send private message Visit poster's website
chiefrocker



Joined: 16 Aug 2013
Posts: 4

Post "Failed to run correctly"? Reply with quote
I have finally solved this level according to my local tests, but my answer will not be accepted. I am getting "Your program failed to run correctly", but I find that message rather unspecific.

I wish that I had a better idea of what the error is, but to be honest I just wish my program ran as successfully on the server as it does locally. Wink I don't see how I could have abnormal terminations with my program, and I already tried to shorten it in order to find the faulty instructions. The first 80% of my program passes, only if I add the final solving loop (which also does the output), I get the error. (At that point, I am not accessing any memory I did not write to before.)
Sun Dec 15, 2013 7:31 am View user's profile Send private message
chiefrocker



Joined: 16 Aug 2013
Posts: 4

Post Re: "Failed to run correctly"? Reply with quote
chiefrocker wrote:
I have finally solved this level according to my local tests, but my answer will not be accepted. I am getting "Your program failed to run correctly", but I find that message rather unspecific.

I realized that after some tries (trying to debug the error), I got the first maze correct, so I dared to just reload and suddenly I got no error anymore. Very Happy On to the next challenge. But I still wonder what this error could've been.
Sun Dec 15, 2013 8:16 am View user's profile Send private message
wischi



Joined: 08 Apr 2012
Posts: 9

Post Is the challenge still working? Reply with quote
Got the following error message
Code:

Fatal error: Cannot redeclare buildMaze() (previously declared in /home/hacker_apache/html/hacker/html/challenge/misc/hvmmaze.php:32) in /home/hacker_apache/html/hacker/html/challenge/misc/hvmmaze.php on line 32

Wed Aug 09, 2017 3:46 pm View user's profile Send private message
Hippo



Joined: 01 Feb 2014
Posts: 339
Location: Praha 5

Post Re: Is the challenge still working? Reply with quote
wischi wrote:
Got the following error message
Code:

Fatal error: Cannot redeclare buildMaze() (previously declared in /home/hacker_apache/html/hacker/html/challenge/misc/hvmmaze.php:32) in /home/hacker_apache/html/hacker/html/challenge/misc/hvmmaze.php on line 32


I got the same when attempting to try my already accepted solution. So seems there is a problem with the challenge.

Oops, I have recchecked it once again with correct code and it looks fine ... Test result: ok (3 times) with shown labyrinths and answers,
'*' is correct.
Thu Aug 10, 2017 7:17 am View user's profile Send private message
Display posts from previous:    
Reply to topic    hacker.org Forum Index » Challenges All times are GMT
Page 1 of 1

 
Jump to: 
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2005 phpBB Group
Design by Freestyle XL / Flowers Online.