Stock Span Problem

im not able to debug my code plz help;;;

you are not printing END in your output
also the betterday should take value of -1 in case s.empty() is true as better day tells you the index of first value greater than the current value .
I have corrected your code here:

In case of any doubt feel free to ask :slight_smile:
If you got the answer mark the doubt as resolved