0_0_18783179_4001.cpp: In function 'void siftPrime(int, primeTable*)':
0_0_18783179_4001.cpp:13:47: error: 'malloc' was not declared in this scope
flag = (char *)malloc(sizeof(char) * (n >> 1));
^
0_0_18783179_4001.cpp:14:43: error: 'memset' was not declared in this scope
memset(flag, '0', sizeof(char) * (n >> 1));
^
0_0_18783179_4001.cpp:16:19: error: 'sqrt' was not declared in this scope
sqrtRoot = sqrt(n);
^
0_0_18783179_4001.cpp:27:11: error: 'free' was not declared in this scope
free(flag);
^
0_0_18783179_4001.cpp: In function 'long long int maxPower(long long int, long long int, primeTable*)':
0_0_18783179_4001.cpp:76:53: error: 'malloc' was not declared in this scope
pf = (primeFactor *)malloc(sizeof(primeFactor) * 50);
^
0_0_18783179_4001.cpp:85:9: error: 'free' was not declared in this scope
free(pf);
^
0_0_18783179_4001.cpp: In function 'int main()':
0_0_18783179_4001.cpp:94:79: error: 'malloc' was not declared in this scope
pt.primeSet = (int *)malloc(sizeof(int) * (((MAXN / 100) >> 1) + (MAXN >> 3)));
^
0_0_18783179_4001.cpp:107:18: error: 'free' was not declared in this scope
free(pt.primeSet);
^
|