0_0_35200456_22302.cpp:4:14: error: array bound is not an integer constant before ']' token
int prime[MAX];
^
0_0_35200456_22302.cpp:5:12: error: array bound is not an integer constant before ']' token
int isp[MAX];
^
0_0_35200456_22302.cpp: In function 'void f()':
0_0_35200456_22302.cpp:12:12: error: 'isp' was not declared in this scope
if(isp[i]==0)
^
0_0_35200456_22302.cpp:14:13: error: 'prime' was not declared in this scope
prime[cott]=i;
^
0_0_35200456_22302.cpp:17:32: error: 'prime' was not declared in this scope
for(int j=0;j<cott&& i*prime[j]<MAX;j++)
^
0_0_35200456_22302.cpp:19:13: error: 'isp' was not declared in this scope
isp[i*prime[j]]=1;
^
0_0_35200456_22302.cpp: In function 'int main()':
0_0_35200456_22302.cpp:42:16: error: 'prime' was not declared in this scope
if(prime[i]-prime[i-1]==c)
^
|