heat will flow from the hot sidewalk to the block of ice & if heat is flow to a substance, then the heat energy in that substance will increase
the hot sidewalk increase the heat energy in the block of ice