Hello all. I have a macro at the beginning of my source file, however, it cannot be found later in my source file... any ideas? I'm using the MinGW GCC compiler, though I don't think it would matter... Also, there are more uses of the macro in other methods, but I did not show them here

The program here asks simple addition questions

The file
Code:
#include <ctime>
#include <iostream>
#include <string>
#include <sstream>
#include <cstdlib>
#define RANDUPT0(u) (rand()&#37;((u)+1))
using namespace std;

int runAdditionSequence(int numQs, int maxval);

int main(){
	int qnumber, max;
	string qnum, maxnum, type;
	cout<<"Welcome to the Math Quizzer."<<endl;
	cout<<"How many questions do you want to be asked?"<<endl;
	cin>>qnum;
	stringstream(qnum)>>qnumber;
	cout<<"What should the largest possible number be?"<<endl;
	cin>>maxnum;
	stringstream(maxnum)>>max;
	runAdditionSequence(qnumber, max);
	return 0;
}

int runAdditionSequence(int numOfQs, int maxValue){
	int score;
	srand((unsigned) time(0));
	for(int i=1; i<=numOfQs; i++){
		int num1 = RANDUPTO(maxValue), num2 = RANDUPTO(maxValue), ans;
		string ansString;
		cout<<i<<") "<<num1<<" + "<<num2<<" = ";
		cin>>ansString;
		cout<<endl;
		stringstream(ansString)>>ans;
		if(ans==(num1+num2)){
			score +=1;
		}
	}
	cout<<endl<<"Score: "<<score<<"/"<<numOfQs;
	return score;
}
And the error message...
Code:
..\src\Quizzer.cpp: In function `int runAdditionSequence(int, int)':
..\src\Quizzer.cpp:46: error: `RANDUPTO' was not declared in this scope
Please do not criticize my code... I know it's not great, but I don't feel like fixing it right now...
I do realize just writing a function instead of the macro would solve my problem, but I would like what I'm doing wrong.