Programming problem

Hi,
New here and to Arduino. Using a program to activate a servo when triggered by one of five light sensors.
Here is the start of the code and where the problem begins:

#include <Servo.h>
Servo myservo; //create servo object to control a servo
int ResetTimer=0; //sets delay to reset position
int GoalPosition=3; //stores the goal postion (1-5) where the person is standing
int GoalPositionDegrees; //stores the goal position in degrees (30-150)
int CurrentPositionDegrees=90; //stores the current position in degrees (30-150)
int AveragingSpeed=100; //sets how quickly the average values adjust (a lower value changes average value quickly) //quickly. A value of 100 changes the average value
slowly
// his effectively sets the speed at which the sensors recalibrate themselves to changing light conditions
int PinOneCurrent; //stores current value of pins 1-5
int PinTwoCurrent;
int PinThreeCurrent;
int PinFourCurrent;
int PinFiveCurrent;

In the code (red letters) I get the error. The message indicating an error is:
Expected Constructor, Destructor, or type conversion before 'int'.

I have gone over (and obviously missed something) but cannot locate where the error ocurred.
Can anyone shed some light on this?
Thanks.

  • Daryl
of 100 changes the average value
slowly

Does that look like valid C or C++ code?

Crap!
Do I look like a fool? Yup.
Bad copy and paste effort.

Said I was new.
Thank you very much.