How to use STL max and min in leetcode editor

I have been trying to use max and min but everytime i have to implement it myself bcoz lc editor says error.
What am i doing wrong?
int y = std::max(y, 0)

Comments (0)