I am trying to compile this code, use the C head but this is returning me errors
#include <stdio.h>
void go_south_east(int* lat, int* lon)
{
*lat = *lat -1;
*lon = *lon - 1;
}
int main()
{
int latitude = 32;
int logitude = -64;
go_south_east(&latitude, &longitude);
printf("Avast! Now at: [%i, %i]\n", latitude, longitude);
return 0;
}
Error:
root@kali:~# gcc testmains.c -o testmains testmains.c: In function ‘main’: testmains.c:14:28: error: ‘longitude’ undeclared (first use in this function) testmains.c:14:28: note: each undeclared identifier is reported only once for each function it appears in