I just tried to run it and all it produces is a single line and segfault:
./maze
136789
_._._._._._._._._._._._._._._._._._._._._._._._._._._._._._ ._._._._._._._._._
Segmentation fault (core dumped)