0_0_13763622_4437.cpp:1:11: error: 'MAX' was not declared in this scope
int prime[MAX+1];
^
0_0_13763622_4437.cpp:2:10: error: 'MAX' was not declared in this scope
int flag[MAX];
^
0_0_13763622_4437.cpp: In function 'void Get_Prime(int&)':
0_0_13763622_4437.cpp:8:6: error: 'flag' was not declared in this scope
flag[2]=1;
^
0_0_13763622_4437.cpp:9:16: error: 'MAX' was not declared in this scope
for(i=3;i<MAX;i++)
^
0_0_13763622_4437.cpp:15:10: error: 'MAX' was not declared in this scope
if (MAX%2 != 0)//MAX不是偶数
^
0_0_13763622_4437.cpp:19:17: error: 'MAX' was not declared in this scope
for(i=3 ;i<MAX/2; i++)//在外层循环,不需要一直执行到MAX
^
0_0_13763622_4437.cpp:29:16: error: 'MAX' was not declared in this scope
for(i=2;i<MAX;i++)
^
0_0_13763622_4437.cpp:33:13: error: 'prime' was not declared in this scope
prime[count]=i;
^
0_0_13763622_4437.cpp: In function 'int main()':
0_0_13763622_4437.cpp:44:28: error: 'scanf' was not declared in this scope
while(scanf("%d",&cases)!=EOF)
^
0_0_13763622_4437.cpp:44:31: error: 'EOF' was not declared in this scope
while(scanf("%d",&cases)!=EOF)
^
0_0_13763622_4437.cpp:49:23: error: 'prime' was not declared in this scope
while(cases%prime[i]==0)
^
0_0_13763622_4437.cpp:54:16: error: 'cout' was not declared in this scope
cout<<prime[i];
^
0_0_13763622_4437.cpp:57:15: error: 'cout' was not declared in this scope
cout<<"*"<<prime[i];
^
0_0_13763622_4437.cpp:62:7: error: 'cout' was not declared in this scope
cout<<endl;
^
0_0_13763622_4437.cpp:62:13: error: 'endl' was not declared in this scope
cout<<endl;
^
|