Variable Declaration Error?

I have this problems figuring out the error that has come up in the variable declaration. I am modifying a program i found online but when i hit 'Verify' the error keeps on showing up. The error is 'expected initializer before int'

Here is the error:

 [color=blue][glow=yellow,2,300]Instrucatables_Frequency_Detection__unmodified_:5: error: expected initializer before 'int'
Instrucatables_Frequency_Detection__unmodified_:29: error: expected initializer before 'int'[/glow][/color]
Instrucatables_Frequency_Detection__unmodified_.ino: In function 'void noteCheck(int, int, int, int, int, int, int)':
Instrucatables_Frequency_Detection__unmodified_:198: error: 'Down4' was not declared in this scope
Instrucatables_Frequency_Detection__unmodified_:205: error: 'Down3' was not declared in this scope
Instrucatables_Frequency_Detection__unmodified_:212: error: 'Down2' was not declared in this scope
Instrucatables_Frequency_Detection__unmodified_:219: error: 'Down1' was not declared in this scope
Instrucatables_Frequency_Detection__unmodified_:233: error: 'Up1' was not declared in this scope
Instrucatables_Frequency_Detection__unmodified_:240: error: 'Up2' was not declared in this scope
Instrucatables_Frequency_Detection__unmodified_:247: error: 'Up3' was not declared in this scope
Instrucatables_Frequency_Detection__unmodified_:254: error: 'Up4' was not declared in this scope
Instrucatables_Frequency_Detection__unmodified_:263: error: 'Down4' was not declared in this scope
Instrucatables_Frequency_Detection__unmodified_:270: error: 'Down3' was not declared in this scope
Instrucatables_Frequency_Detection__unmodified_:277: error: 'Down2' was not declared in this scope
Instrucatables_Frequency_Detection__unmodified_:284: error: 'Down1' was not declared in this scope
Instrucatables_Frequency_Detection__unmodified_:298: error: 'Up1' was not declared in this scope
Instrucatables_Frequency_Detection__unmodified_:305: error: 'Up2' was not declared in this scope
Instrucatables_Frequency_Detection__unmodified_:312: error: 'Up3' was not declared in this scope
Instrucatables_Frequency_Detection__unmodified_:319: error: 'Up4' was not declared in this scope
Instrucatables_Frequency_Detection__unmodified_:328: error: 'Down4' was not declared in this scope
Instrucatables_Frequency_Detection__unmodified_:335: error: 'Down3' was not declared in this scope
Instrucatables_Frequency_Detection__unmodified_:342: error: 'Down2' was not declared in this scope
Instrucatables_Frequency_Detection__unmodified_:349: error: 'Down1' was not declared in this scope
Instrucatables_Frequency_Detection__unmodified_:363: error: 'Up1' was not declared in this scope
Instrucatables_Frequency_Detection__unmodified_:370: error: 'Up2' was not declared in this scope
Instrucatables_Frequency_Detection__unmodified_:377: error: 'Up3' was not declared in this scope
Instrucatables_Frequency_Detection__unmodified_:384: error: 'Up4' was not declared in this scope
Instrucatables_Frequency_Detection__unmodified_:393: error: 'Down4' was not declared in this scope
Instrucatables_Frequency_Detection__unmodified_:400: error: 'Down3' was not declared in this scope
Instrucatables_Frequency_Detection__unmodified_:407: error: 'Down2' was not declared in this scope
Instrucatables_Frequency_Detection__unmodified_:414: error: 'Down1' was not declared in this scope
Instrucatables_Frequency_Detection__unmodified_:427: error: 'Up1' was not declared in this scope
Instrucatables_Frequency_Detection__unmodified_:434: error: 'Up2' was not declared in this scope
Instrucatables_Frequency_Detection__unmodified_:441: error: 'Up3' was not declared in this scope
Instrucatables_Frequency_Detection__unmodified_:448: error: 'Up4' was not declared in this scope
Instrucatables_Frequency_Detection__unmodified_:457: error: 'Down4' was not declared in this scope
Instrucatables_Frequency_Detection__unmodified_:464: error: 'Down3' was not declared in this scope
Instrucatables_Frequency_Detection__unmodified_:471: error: 'Down2' was not declared in this scope
Instrucatables_Frequency_Detection__unmodified_:478: error: 'Down1' was not declared in this scope
Instrucatables_Frequency_Detection__unmodified_:492: error: 'Up1' was not declared in this scope
Instrucatables_Frequency_Detection__unmodified_:499: error: 'Up2' was not declared in this scope
Instrucatables_Frequency_Detection__unmodified_:506: error: 'Up3' was not declared in this scope
Instrucatables_Frequency_Detection__unmodified_:513: error: 'Up4' was not declared in this scope
Instrucatables_Frequency_Detection__unmodified_:522: error: 'Down4' was not declared in this scope
Instrucatables_Frequency_Detection__unmodified_:529: error: 'Down3' was not declared in this scope
Instrucatables_Frequency_Detection__unmodified_:536: error: 'Down2' was not declared in this scope
Instrucatables_Frequency_Detection__unmodified_:543: error: 'Down1' was not declared in this scope
Instrucatables_Frequency_Detection__unmodified_:557: error: 'Up1' was not declared in this scope
Instrucatables_Frequency_Detection__unmodified_:564: error: 'Up2' was not declared in this scope
Instrucatables_Frequency_Detection__unmodified_:571: error: 'Up3' was not declared in this scope
Instrucatables_Frequency_Detection__unmodified_:578: error: 'Up4' was not declared in this scope
Instrucatables_Frequency_Detection__unmodified_:587: error: 'Down4' was not declared in this scope
Instrucatables_Frequency_Detection__unmodified_:594: error: 'Down3' was not declared in this scope
Instrucatables_Frequency_Detection__unmodified_:601: error: 'Down2' was not declared in this scope
Instrucatables_Frequency_Detection__unmodified_:608: error: 'Down1' was not declared in this scope
Instrucatables_Frequency_Detection__unmodified_:622: error: 'Up1' was not declared in this scope
Instrucatables_Frequency_Detection__unmodified_:629: error: 'Up2' was not declared in this scope
Instrucatables_Frequency_Detection__unmodified_:636: error: 'Up3' was not declared in this scope
Instrucatables_Frequency_Detection__unmodified_:643: error: 'Up4' was not declared in this scope
Instrucatables_Frequency_Detection__unmodified_.ino: In function 'void loop()':
Instrucatables_Frequency_Detection__unmodified_:196: error: too few arguments to function 'void noteCheck(int, int, int, int, int, int, int)'
Instrucatables_Frequency_Detection__unmodified_:1541: error: at this point in file
Instrucatables_Frequency_Detection__unmodified_:658: error: too few arguments to function 'void flatCheck(int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int)'
Instrucatables_Frequency_Detection__unmodified_:1542: error: at this point in file
Instrucatables_Frequency_Detection__unmodified_:1485: error: too few arguments to function 'void frequencyCheck(int, int, int, int, int, int, int, int)'
Instrucatables_Frequency_Detection__unmodified_:1543: error: at this point in file

Here is a segment of the long modified program [but the (confusing) error is only so far in the top]:

//data storage variables
byte newData = 0;
byte prevData = 0;
unsigned int time = 0; //keeps time and sends vales to store in timer[] occasionally
int timer[10]; //storage for timing of events
int slope[10]; //storage for slope of events
unsigned int totalTimer; //used to calculate period
unsigned int period; //storage for period of wave
byte index = 0; //current storage index
float frequency; //storage for frequency calculations
int maxSlope = 0; //used to calculate max slope as trigger point
int newSlope; //storage for incoming slope data

//variables for deciding whether you have a match
byte noMatch = 0; //counts how many non-matches you've received to reset variables if it's been too long
byte slopeTol = 3; //slope tolerance- adjust this if you need
int timerTol = 10; //timer tolerance- adjust this if you need

//variables for amp detection
unsigned int ampTimer = 0;
byte maxAmp = 0;
byte checkMaxAmp;
byte ampThreshold = 20; //raise if you have a very noisy signal

//variables for tuning
int correctFrequency; //the correct frequency for the string being played
int Up //FOR THE OCTAVE INDICATORS
int Up2
int Up3
int Up4
int Down1
int Down2
int Down3
int Down4

void setup(){
  
  Serial.begin(9600);

AMP9OE:
I have this problems figuring out the error that has come up in the variable declaration. I am modifying a program i found online but when i hit 'Verify' the error keeps on showing up. The error is 'expected initializer before int'

Here is the error:

//variables for tuning
int correctFrequency; //the correct frequency for the string being played
int Up //FOR THE OCTAVE INDICATORS
int Up2
int Up3
int Up4
int Down1
int Down2
int Down3
int Down4

Each of those lines needs a semicolon at the end.

Oh... i feel dumb :~, thank you :slight_smile:

AMP9OE:
Oh... i feel dumb :~, thank you :slight_smile:

I'm sure everyone's done that at least once. I certainly have.