0_0_21783374_8735.cpp:6:11: error: 'N' was not declared in this scope
int tot,p[N],miu[N],v[N];
^
0_0_21783374_8735.cpp:6:18: error: 'N' was not declared in this scope
int tot,p[N],miu[N],v[N];
^
0_0_21783374_8735.cpp:6:23: error: 'N' was not declared in this scope
int tot,p[N],miu[N],v[N];
^
0_0_21783374_8735.cpp: In function 'void Mobius(int)':
0_0_21783374_8735.cpp:9:9: error: 'miu' was not declared in this scope
for(miu[1]=1,i=2; i<=n; i++) {
^
0_0_21783374_8735.cpp:10:13: error: 'v' was not declared in this scope
if(!v[i])p[tot++]=i,miu[i]=-1;
^
0_0_21783374_8735.cpp:10:18: error: 'p' was not declared in this scope
if(!v[i])p[tot++]=i,miu[i]=-1;
^
0_0_21783374_8735.cpp:11:27: error: 'p' was not declared in this scope
for(j=0; j<tot&&i*p[j]<=n; j++) {
^
0_0_21783374_8735.cpp:12:13: error: 'v' was not declared in this scope
v[i*p[j]]=1;
^
0_0_21783374_8735.cpp: At global scope:
0_0_21783374_8735.cpp:18:8: error: 'N' was not declared in this scope
ll sum[N],ans[N];
^
0_0_21783374_8735.cpp:18:15: error: 'N' was not declared in this scope
ll sum[N],ans[N];
^
0_0_21783374_8735.cpp: In function 'void init(int)':
0_0_21783374_8735.cpp:21:30: error: 'ans' was not declared in this scope
for(int j=1; j<=n; j++) {ans[j]++; for(int i=j; i<=n; i+=j)ans[i+1]++;}
^
0_0_21783374_8735.cpp:22:35: error: 'ans' was not declared in this scope
for(int i=1; i<=n; i++)AddMod(ans[i],ans[i-1]);
^
0_0_21783374_8735.cpp:23:28: error: 'sum' was not declared in this scope
for(int i=1; i<=n; i++)sum[i]=ans[i];
^
0_0_21783374_8735.cpp:23:35: error: 'ans' was not declared in this scope
for(int i=1; i<=n; i++)sum[i]=ans[i];
^
0_0_21783374_8735.cpp:24:33: error: 'miu' was not declared in this scope
for(int j=2; j<=n; j++) {if(miu[j])for(int i=j; i<=n; i+=j)AddMod(sum[i],miu[j]*ans[i]/j);}
^
0_0_21783374_8735.cpp:24:71: error: 'sum' was not declared in this scope
for(int j=2; j<=n; j++) {if(miu[j])for(int i=j; i<=n; i+=j)AddMod(sum[i],miu[j]*ans[i]/j);}
^
0_0_21783374_8735.cpp:24:85: error: 'ans' was not declared in this scope
for(int j=2; j<=n; j++) {if(miu[j])for(int i=j; i<=n; i+=j)AddMod(sum[i],miu[j]*ans[i]/j);}
^
0_0_21783374_8735.cpp:25:28: error: 'sum' was not declared in this scope
for(int i=1; i<=n; i++)sum[i]=(sum[i]+sum[i-1])%mod;
^
0_0_21783374_8735.cpp: In function 'int main()':
0_0_21783374_8735.cpp:31:42: error: 'sum' was not declared in this scope
while(~scanf("%d",&n)) printf("%d\n",sum[n]);
^
|