Optimize program

int32_t ComputePID(int32_t DTms, int32_t DTinv, int32_t in, int32_t setPoint, int32_t *errorSum, int32_t *errorOld, int32_t Kp, int16_t Ki, int32_t Kd)
{
  


//Define Variables we'll be connecting to
double SetPoint, In, Out;

//Specify the links and initial tuning parameters
PID myPID(&In, &Out, &SetPoint,2,5,1, DIRECT);

void setup();

  //initialize the variables we're linked to
  In= analogRead(0);
  SetPoint = 100;

  //turn the PID on
  myPID.SetMode(AUTOMATIC);

void loop();

  In = analogRead(0);
  myPID.Compute();
  analogWrite(3,Out);
 
}

Strange placement of function prototypes for setup and loop.