Why always zero?

what's the difference
Cant find the bug currently....

wtf ...
Its the dist array's problem

it is not initalized! but why?...
1235 got wrong answer
The start from 1 problem ....
Cant get 1235 right

anyway...