0_0_21937482_30013.cpp:28:14: error: size of array 'p' has non-integral type 'double'
bool p[5e5+10];
^
0_0_21937482_30013.cpp: In function 'void get_prime()':
0_0_21937482_30013.cpp:32:7: error: 'i' was not declared in this scope
for (i = 0; i < half; i++) p[i] = true;// 初始化全部奇数为素数。p[0]对应3,即p[i]对应2*i+3
^
0_0_21937482_30013.cpp:33:7: error: 'i' was not declared in this scope
for (i = 0; i < sn; i++) {
^
0_0_21937482_30013.cpp:35:12: error: 'k' was not declared in this scope
for(k=i+i+3, j=k*i+k+i; j < half; j+=k)
^
0_0_21937482_30013.cpp:35:21: error: 'j' was not declared in this scope
for(k=i+i+3, j=k*i+k+i; j < half; j+=k)
^
|