Der, die or das?
masculine noun · pile · level A2
die Haufen - in the plural, every German noun takes the article die.
"Haufen" doesn't follow any of the 35 gender rules - it belongs to the words you learn together with their article, as one unit: der Haufen. That's exactly what the app's spaced repetition is for.