Error message: "The variable top might not have been initialized", whereas I have initialized it.