how can i check if the player in the air using c++

I tried to use it but I get an error in the character