Error 1 Arduino code

Hey guys, I'm pretty new to programming in general, and I'm currently trying to write code for an Arduino that will calculate compass bearing based off of GPS longitude and latitude data. I wrote it out but I keep getting an error 1 message and i'm not quite sure where i'm going wrong. I attached my code so if you guys see something that im missing let me know I would appreciate it.

code1.PNG

code2.PNG

Post text, not pictures.

This seems to work comparing against online calculators.

Notice the initialization of Serial and the conversion from degrees to radians.

Post your code and the complete error if you need more help.

#define DEG_TO_RAD(x)   x*PI/180.0
void setup() 
{
    double
        x,y,
        lat1, lat2,
        long1, long2,
        bring,
        polar,
        angle;

    Serial.begin(9600);

    angle = sin(45.0*(PI/180.0));
    Serial.println( angle );

    lat1 = DEG_TO_RAD(41.99263);
    lat2 = DEG_TO_RAD(39.8672);
    long1 = DEG_TO_RAD(-72.9373);
    long2 = DEG_TO_RAD(-76.9375);

    y = sin(long2-long1) * cos(lat2);
    x = cos(lat1) * sin(lat2) - sin(lat1) * cos(lat2) * cos(long2-long1);

    polar = atan2(y, x);
    angle = polar * 4068.0 / 71.0;

    Serial.print( "Compass heading:  " );
    Serial.println( angle );

}//setup

void loop() 
{

}//loop