Let A={x≥0:f(x)=0}. By (i), 0∈A.
Let x∈A. Then f(x)=0.
By (iii), f(x+g(f(x)))=f(x). Since f(x)=0, g(f(x))=g(0)=0 (by (i)).
So f(x+0)=f(x), i.e., f(x)=f(x), which is trivial.
But this does not help us extend A directly. Instead, let us try to show that f(x)=0 for all x≥0.
Suppose there exists x0>0 such that f(x0)>0.
Then g(f(x0))>0 by (ii), since f(x0)>0 and g(x)=0 for x>0.
Consider x1=x0+g(f(x0))>x0.
By (iii), f(x1)=f(x0).
Now, define recursively xn+1=xn+g(f(xn)), with x0 as above.
Then f(xn+1)=f(xn), so f(xn)=f(x0) for all n.
Also, since f(x0)>0, g(f(x0))>0, so xn+1=xn+g(f(x0)), i.e., xn=x0+ng(f(x0)).
Thus, f(x0+ng(f(x0)))=f(x0)>0 for all n≥0.
But g(f(x0))>0, so as n→∞, xn→∞.
Thus, f(x)>0 for infinitely many x tending to infinity.
But f is continuous and f(0)=0.
Let us consider the set S={x≥0:f(x)>0}.
Suppose S is nonempty. Then, as above, for any x0∈S, f(x0+ng(f(x0)))=f(x0)>0 for all n≥0.
So S contains an unbounded sequence.
But f is continuous and f(0)=0.
Let y>0 be arbitrary. If f(y)>0, then as above, f(y+ng(f(y)))=f(y)>0 for all n≥0.
So f is constant and positive on {y+ng(f(y)):n≥0}.
But f(0)=0 and f is continuous, so for small x, f(x) must be close to 0.
Suppose f(x0)>0 for some x0>0. Then, as above, f(x0+ng(f(x0)))=f(x0)>0 for all n.
But for large enough n, x0+ng(f(x0)) can be made arbitrarily large, so f is positive at arbitrarily large x.
But f is continuous and f(0)=0, so for small x, f(x) must be close to 0.
Let us try to show that f(x)=0 for all x≥0.
Suppose not. Then there exists x0>0 with f(x0)>0.
Then, as above, f(x0+ng(f(x0)))=f(x0)>0 for all n.
But f is continuous, so the set {x0+ng(f(x0)):n≥0} is unbounded and f is constant and positive on this set.
But f(0)=0 and f is continuous, so for small x, f(x) must be close to 0.
Let us try to show that f(x)=0 for all x≥0.
Suppose not. Then there exists x0>0 with f(x0)>0.
Then, as above, f(x0+ng(f(x0)))=f(x0)>0 for all n.
But f is continuous, so the set {x0+ng(f(x0)):n≥0} is unbounded and f is constant and positive on this set.
But f(0)=0 and f is continuous, so for small x, f(x) must be close to 0.
Let us try to show that f(x)=0 for all x≥0.
Suppose not. Then there exists x0>0 with f(x0)>0.
Then, as above, f(x0+ng(f(x0)))=f(x0)>0 for all n.
But f is continuous, so the set {x0+ng(f(x0)):n≥0} is unbounded and f is constant and positive on this set.
But f(0)=0 and f is continuous, so for small x, f(x) must be close to 0.
Therefore, the only possibility is f(x)=0 for all x≥0.