RPM with other inputs

Sorry about that; the problems were that each time I tried to, compile I got 'Undeclared errors. so I added this

unsigned long now;
unsigned long interval;

Then I got rpm not defined so I added thisunsigned int rpm;
but still got rpm not defined.
What is the difference between undeclared and not defined?