0_0_21937490_9050.cpp: In function 'void get_prime()':
0_0_21937490_9050.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_21937490_9050.cpp:33:7: error: 'i' was not declared in this scope
for (i = 0; i < sn; i++) {
^
0_0_21937490_9050.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_21937490_9050.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)
^
|