When by 5th grader logic the character must’ve won or otherwise succeeded - or lost, actually - but they didn’t because author needed the plot to happen.
A sign of bad/failed power fantasy, often the author is prejudiced against mary sue or something, but they did make a god character and then they’re trying to make up the stakes by making them stupid, or - and that happens equally as often - by giving the enemies plot armor or ooc genius planning capabilities etc.