F.A.Q
Hand In Hand
Online Acmers
Problem Archive
Realtime Judge Status
Authors Ranklist
 
     C/C++/Java Exams     
ACM Steps
Go to Job
Contest LiveCast
ICPC@China
Best Coder beta
VIP | STD Contests
    DIY | Web-DIY beta
Author ID 
Password 
 Register new ID

View Compilation Error

0_0_25862416_12038.cpp:3:7: error: 'll' does not name a type
 const ll maxn=1e6+8;
       ^
0_0_25862416_12038.cpp:5:7: error: 'maxn' was not declared in this scope
 ll mu[maxn];
       ^
0_0_25862416_12038.cpp:6:8: error: 'maxn' was not declared in this scope
 ll phi[maxn],prime[maxn],tot,ans;
        ^
0_0_25862416_12038.cpp:6:20: error: 'maxn' was not declared in this scope
 ll phi[maxn],prime[maxn],tot,ans;
                    ^
0_0_25862416_12038.cpp:7:11: error: 'maxn' was not declared in this scope
 bool mark[maxn];
           ^
0_0_25862416_12038.cpp: In function 'void getphi()':
0_0_25862416_12038.cpp:11:4: error: 'phi' was not declared in this scope
    phi[1]=1;
    ^
0_0_25862416_12038.cpp:12:14: error: 'maxn' was not declared in this scope
    for(i=2;i<maxn;i++)
              ^
0_0_25862416_12038.cpp:14:12: error: 'mark' was not declared in this scope
        if(!mark[i])
            ^
0_0_25862416_12038.cpp:16:14: error: 'prime' was not declared in this scope
              prime[++tot]=i;
              ^
0_0_25862416_12038.cpp:21:16: error: 'prime' was not declared in this scope
           if(i*prime[j]>=maxn)  break;
                ^
0_0_25862416_12038.cpp:22:11: error: 'mark' was not declared in this scope
           mark[i*prime[j]]=1;
           ^
0_0_25862416_12038.cpp:22:18: error: 'prime' was not declared in this scope
           mark[i*prime[j]]=1;
                  ^
0_0_25862416_12038.cpp: At global scope:
0_0_25862416_12038.cpp:42:8: error: 'maxn' was not declared in this scope
 ll pri[maxn];
        ^
0_0_25862416_12038.cpp:43:9: error: 'maxn' was not declared in this scope
 bool is[maxn];
         ^
0_0_25862416_12038.cpp: In function 'void getmu()':
0_0_25862416_12038.cpp:45:5: error: 'mu' was not declared in this scope
     mu[1]=1;
     ^
0_0_25862416_12038.cpp:47:18: error: 'maxn' was not declared in this scope
     for(ll i=2;i<maxn;i++){
                  ^
0_0_25862416_12038.cpp:48:13: error: 'is' was not declared in this scope
         if(!is[i]){pri[++tot]=i;mu[i]=-1;}
             ^
0_0_25862416_12038.cpp:48:20: error: 'pri' was not declared in this scope
         if(!is[i]){pri[++tot]=i;mu[i]=-1;}
                    ^
0_0_25862416_12038.cpp:50:18: error: 'pri' was not declared in this scope
             ll k=pri[j]*i;if(k>=maxn)break;
                  ^
0_0_25862416_12038.cpp:51:13: error: 'is' was not declared in this scope
             is[k]=1;
             ^
0_0_25862416_12038.cpp: At global scope:
0_0_25862416_12038.cpp:58:6: error: 'maxn' was not declared in this scope
 ll f[maxn];
      ^
0_0_25862416_12038.cpp: In function 'll mobius(ll)':
0_0_25862416_12038.cpp:66:31: error: 'mu' was not declared in this scope
     for(ll i=1;i<=b;i++)ans1+=mu[i]*(b/i)*(d/i);
                               ^
0_0_25862416_12038.cpp: At global scope:
0_0_25862416_12038.cpp:69:8: error: 'maxn' was not declared in this scope
 ll inv[maxn];
        ^
0_0_25862416_12038.cpp: In function 'void Init(ll, ll)':
0_0_25862416_12038.cpp:71:5: error: 'inv' was not declared in this scope
     inv[0]=inv[1]=1;
     ^
0_0_25862416_12038.cpp: In function 'int main()':
0_0_25862416_12038.cpp:86:13: error: 'f' was not declared in this scope
             f[i]=mobius(i);
             ^
0_0_25862416_12038.cpp:90:20: error: 'f' was not declared in this scope
             ll now=f[i]%p;
                    ^
0_0_25862416_12038.cpp:91:29: error: 'inv' was not declared in this scope
             ans=(ans+now*(i*inv[phi[i]]%p)%p)%p;
                             ^
0_0_25862416_12038.cpp:91:33: error: 'phi' was not declared in this scope
             ans=(ans+now*(i*inv[phi[i]]%p)%p)%p;
                                 ^
0_0_25862416_12038.cpp:93:27: error: 'prllf' was not declared in this scope
         prllf("%lld\n",ans);
                           ^


Hangzhou Dianzi University Online Judge 3.0
Copyright © 2005-2024 HDU ACM Team. All Rights Reserved.
Designer & Developer : Wang Rongtao LinLe GaoJie GanLu
Total 0.000000(s) query 1, Server time : 2024-11-18 17:27:11, Gzip enabled