Okay clearly tried to explain it too quickly.
So, what you did wrong was assuming that the value v(i) was always above the rock even though you only confirmed it at the end of it's flight time. I.E it held true for t= sqrt(22/g) but you didn't confirm it true for all values t
To do that I got...