Compensate for a pear being bad at the very end (5)
I believe the answer is:
repay
'compensate' is the definition.
(I've seen this in another clue)
'a pear being bad at the very end' is the wordplay.
'being bad' is an anagram indicator.
'at' is a charade indicator (letters next to each other).
'end' indicates one should take the final letters.
The last letter of 'very' is 'y'.
'pear' with letters rearranged gives 'repa'.
'repa'+'y'='REPAY'
'for' is the link.
(Other definitions for repay that I've seen before include "Refund or reward" , "Settle a score" , "recompense" , "Reimburse" , "Return money borrowed" .)