Decoding Radio Control signal pulses

Hi guys, it is getting dificult to get this task forward, when i compile this sketch, i got some error messages as follows.

// ServoDecodeTest
#include <Servodecode.h>
#include <ServoTimer2.h> // the servo library

// define the servo pins
#define servo1Pin 2 //the pin the servo is attached to
#define servo2Pin 3

ServoTimer2 servo1; // declare variables for the servos
ServoTimer2 servo2;

void setup()
{
Serial.begin(38400);
servo1.attach(servo1Pin);
servo2.attach(servo2Pin);
ServoDecode.begin();
}

void loop()
{
int pulsewidth[MAX_CHANNELS];

if (ServoDecode.getState()!= READY_state) {
Serial.println("The decoder is not ready");
}
}
else {
// decoder is ready, do something with the channel pulse widths
if (ServoDecode.GetChannelPulseWidth(1) > 1500)

{ // run script 1 if pulse width greater than 1500 ;
int argumentA = (2250 - ServoDecode.GetChannelPulseWidth(2)) / 200; // some values proportional to stick position
boolean argumentB = ServoDecode.GetChannelPulseWidth(2) < 1500; // true if channel 2 less than 1500
runScript1(argumentA, argumentB);
}
}
delay(100); // update 10 times a second
}

void runScript1(int argumentA, boolean argumentB)

{ // do something here to control servo...
servo1.write(2000);
delay(5000); // note that all servo are pulsed by the interrupt handler with their current value every 20ms
if (argumentA)
servo2.write(2000);
delay(argumentB * 10); //delay a time determined by the transmitter stick position
servo1.write(1000);
servo2.write(1000);

}

In file included from C:\Users\ABBA\Desktop\arduino-0013-Servo Decode\hardware\cores\arduino/WProgram.h:4,

c:/users/abba/desktop/arduino-0013-servo decode/hardware/tools/avr/lib/gcc/../../avr/include/stdlib.h:111: error: expected unqualified-id before 'int'

c:/users/abba/desktop/arduino-0013-servo decode/hardware/tools/avr/lib/gcc/../../avr/include/stdlib.h:111: error: expected `)' before 'int'

c:/users/abba/desktop/arduino-0013-servo decode/hardware/tools/avr/lib/gcc/../../avr/include/stdlib.h:111: error: expected `)' before 'int'

In file included from C:\Users\ABBA\Desktop\arduino-0013-Servo Decode\hardware\cores\arduino/WProgram.h:6,

thanks in advance.