Showing -1 output for some nodes


this is my code