0_0_21937538_29155.cpp:27:10: error: 'N' was not declared in this scope
int flag[N+1],prime[N+1],pnum;
^
0_0_21937538_29155.cpp:27:21: error: 'N' was not declared in this scope
int flag[N+1],prime[N+1],pnum;
^
0_0_21937538_29155.cpp: In function 'void CreatePrime()':
0_0_21937538_29155.cpp:36:21: error: 'N' was not declared in this scope
for(int i=0; i<=N; i++){
^
0_0_21937538_29155.cpp:37:9: error: 'flag' was not declared in this scope
flag[i]=1;
^
0_0_21937538_29155.cpp:40:21: error: 'N' was not declared in this scope
for(int i=2; i<=N; i++){
^
0_0_21937538_29155.cpp:41:12: error: 'flag' was not declared in this scope
if(flag[i]==1){
^
0_0_21937538_29155.cpp:43:13: error: 'p' was not declared in this scope
p[pnum++]=i;
^
0_0_21937538_29155.cpp:46:32: error: 'p' was not declared in this scope
for(int j=0; j<pnum && p[j]*i<=N; j++){
^
0_0_21937538_29155.cpp:48:13: error: 'flag' was not declared in this scope
flag[p[j]*i]=0;
^
0_0_21937538_29155.cpp:54:5: error: 'flag' was not declared in this scope
flag[1]=false;
^
0_0_21937538_29155.cpp: In function 'int main()':
0_0_21937538_29155.cpp:61:13: error: 'get_prime' was not declared in this scope
get_prime();
^
0_0_21937538_29155.cpp:65:15: error: 'falg' was not declared in this scope
if(t%2==1&&falg[t]) cout<<++kase<<": yes"<<endl;
^
|