Why does my maze solver not work?

后端 未结 2 940
挽巷
挽巷 2021-01-26 13:43

I\'m trying to write a program that solves a specific inputted maze recursively and outputs it\'s position in the maze after each move.

Whenever I try and run my code,

2条回答
  •  小鲜肉
    小鲜肉 (楼主)
    2021-01-26 14:26

    When main is first called the runtime environment passes it arguments, so your default arguments aren't used. Rename the function and call it from main.

提交回复
热议问题