0_0_24792248_16634.cpp:1:14: error: 'MAX_P' was not declared in this scope
bool p_check[MAX_P];
^
0_0_24792248_16634.cpp:2:11: error: 'MAX_P' was not declared in this scope
int plist[MAX_P], p_cnt, pnum[MAX_P];
^
0_0_24792248_16634.cpp:2:31: error: 'MAX_P' was not declared in this scope
int plist[MAX_P], p_cnt, pnum[MAX_P];
^
0_0_24792248_16634.cpp:3:9: error: 'MAX_P' was not declared in this scope
int phi[MAX_P];
^
0_0_24792248_16634.cpp:4:8: error: 'MAX_P' was not declared in this scope
int mu[MAX_P];
^
0_0_24792248_16634.cpp:5:11: error: 'MAX_P' was not declared in this scope
int f_num[MAX_P];
^
0_0_24792248_16634.cpp:6:11: error: 'MAX_P' was not declared in this scope
int f_sum[MAX_P];
^
0_0_24792248_16634.cpp: In function 'void prime_init()':
0_0_24792248_16634.cpp:8:8: error: 'p_check' was not declared in this scope
ms(p_check, 0), p_cnt = 0;
^
0_0_24792248_16634.cpp:8:18: error: 'ms' was not declared in this scope
ms(p_check, 0), p_cnt = 0;
^
0_0_24792248_16634.cpp:10:5: error: 'pnum' was not declared in this scope
pnum[0] = pnum[1] = 0;
^
0_0_24792248_16634.cpp:11:5: error: 'phi' was not declared in this scope
phi[1] = 1;
^
0_0_24792248_16634.cpp:12:5: error: 'mu' was not declared in this scope
mu[1] = 1;
^
0_0_24792248_16634.cpp:13:5: error: 'f_num' was not declared in this scope
f_num[1] = 1;
^
0_0_24792248_16634.cpp:14:5: error: 'f_sum' was not declared in this scope
f_sum[1] = 1;
^
0_0_24792248_16634.cpp:15:26: error: 'MAX_P' was not declared in this scope
for (int i = 2; i <= MAX_P - 5; i++) {
^
0_0_24792248_16634.cpp:17:13: error: 'plist' was not declared in this scope
plist[p_cnt++] = i;
^
0_0_24792248_16634.cpp:25:21: error: 'plist' was not declared in this scope
int x = plist[j];
^
|