At first glance $(\max(0, x))^2$ looks smooth.
If I'm not mistaken:
if $x \le 0$ the derivative equals $2 \times\max(0, x) \times0 = 0$
if $x \ge 0$ the derivative equals $2 \times \max(0, x) \times 1$ and it equal zero if $x = 0$
Looks like derivative of $(\max(0, x))^2$ is continuous.
But when I tried to check with Wolfram Alpha it shows me that derivative of $(\max(0, x))^2$ is indeterminate at $x = 0$. Link
So can anyone tell me where I made a mistake?