Hello.
On un-commenting the call to my generate() function, I get strange errors which are difficult to fix.
My call to function generate(): generate(A, m, iRangeSize, base, iRank);
It's prototope: void generate( int *A, int m, int s, int n, int rank);
definitions of the variables:
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17
int *A; //Array to hold numbers
int i, j, k; //Loop indices
int base, r; //Used as the range for numbers
int m; //m numbers will be generated
int iBigSize;
int *lBucket;
int iWorldSize;
int iRank;
m = atoi( argv[1]);
base = atoi( argv[2]);
r = atoi( argv[3]);
int iRangeSize = r - base + 1;
A = newint[m];
...
Please help me, as I am blank about the cause for this error