this is because
there is no node in graph with 36
why??
because
for i=36
as j=i+dice+board[i];
so min value of j is 37(36+1) but according to our condition j<=36 edge from 36 can’t be added means graph doesn’t know there is a node with 36
although there are node from which you can reach 36 for example
31,32,33,…
but 36 is not present in adjancylist it is present in list of 31,32,.
hence when you update distance of all node as INT_MAX then 36 will not update as it is not present in adjlist
i hope this help
if you have more doubts regarding this feel free to ask
if your doubt is resolved mark it as resolved from your doubt section inside your course