ISO C++ forbids comparison between pointer and integer [-fpermissive] error

Recently I have beng using blynk and Arduino for my projects. I wanted to make a utonomous car which follows me. though I keep getting this error while verifying. ISO C++ forbids comparison between pointer and integer [-fpermissive]

I have a float called Geo Distance which is basically the distance betweeen the car and the phone. Here is the code for the float:

float geoDistance(struct GeoLoc &a, struct GeoLoc &b) {
  const float R = 6371000;
  float p1 = a.lat * DEGTORAD;
  float p2 = b.lat * DEGTORAD;
  float dp = (b.lat - a.lat) * DEGTORAD;
  float dl = (b.lon - a.lon) * DEGTORAD;

  float x = sin(dp / 2) * sin(dp / 2) + cos(p1) * cos(p2) * sin(dl / 2) * sin(dl / 2);
  float y = 2 * atan2(sqrt(x), sqrt(1 - x));

  return R * y;
}

In my variable for moving the car there is an if statement:

void drive(int distance, float turn) {
  int fullSpeed = 230;
  int stopSpeed = 0;
  int s = fullSpeed;
  
  if ( 8 > geoDistance ) {
    int wouldBeSpeed = s - stopSpeed;
    wouldBeSpeed *= distance / 8.0f;
    s = stopSpeed + wouldBeSpeed;
  }
]

In the if statement basically if the distance is less than 8 I want it to stop. This is where the error is happening. Any help would be appreciated

Post the entire text of the error message. Paraphrasing leaves out important information.

here is the full errror:

/home/pi/Arduino/car_raspberry_pi/car_raspberry_pi.ino: In function 'void drive(int, float)':
/home/pi/Arduino/car_raspberry_pi/car_raspberry_pi.ino:264:12: warning: ISO C++ forbids comparison between pointer and integer [-fpermissive]
if ( 8 > geoDistance ) {
^~~~~~~~~~~
The weird thing is after showing the error the code compiles so I am not sure if it is working. I am using arduino on my raspberry pi buit the same thing is happening on my laptop.

so, I tried to make my 8 into a decimal like a float but now I am getting a new error

Arduino: 1.8.12 (Linux), Board: "Arduino Uno"

/home/pi/Arduino/car_raspberry_pi/car_raspberry_pi.ino: In function 'void drive(int, float)':
car_raspberry_pi:264:19: error: invalid operands of types 'float(GeoLoc&, GeoLoc&)' and 'double' to binary 'operator<'
if (geoDistance < 8.0 ) {


exit status 1
invalid operands of types 'float(GeoLoc&, GeoLoc&)' and 'double' to binary 'operator<'

This report would have more information with
"Show verbose output during compilation"
option enabled in File -> Preferences.

even after show verbode output during compilation is enabled I get the same error.
I am very confused.

geoDistance is a pointer

try
if (geoDistance(x,y) < 8.0 )

Turns out I made a mistake in my code. Instead of geoDistance over there it was suppose to be distance. Which I had put as an integer in brackets. Sorry for disturbing you all.