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_31901805_2075.cpp:4:12: error: 'int_128' does not name a type
 #define ll int_128
            ^
0_0_31901805_2075.cpp:11:1: note: in expansion of macro 'll'
 ll modulo(ll num, ll MOD = mod) { return ((num%MOD) + MOD) % MOD; }
 ^
0_0_31901805_2075.cpp:4:12: error: 'int_128' does not name a type
 #define ll int_128
            ^
0_0_31901805_2075.cpp:12:1: note: in expansion of macro 'll'
 ll power(ll b, ll e, ll MOD = mod) { ll ans = 1; while (e) { if (e % 2) ans = (ans*b) % MOD; b = (b*b) % MOD; e /= 2; } return ans; }
 ^
0_0_31901805_2075.cpp:4:12: error: 'int_128' does not name a type
 #define ll int_128
            ^
0_0_31901805_2075.cpp:13:1: note: in expansion of macro 'll'
 ll inv(ll num, ll MOD = mod) { return power(modulo(num), MOD - 2, MOD); }
 ^
0_0_31901805_2075.cpp:4:12: error: 'int_128' does not name a type
 #define ll int_128
            ^
0_0_31901805_2075.cpp:14:1: note: in expansion of macro 'll'
 ll gcd(ll a, ll b) { return ((b == 0) ? a : gcd(b, a%b)); }
 ^
0_0_31901805_2075.cpp:4:12: error: 'int_128' does not name a type
 #define ll int_128
            ^
0_0_31901805_2075.cpp:15:1: note: in expansion of macro 'll'
 ll phi[MX],pri[MX],inv2,inv6,iphi[MX],phisum[MX];
 ^
0_0_31901805_2075.cpp: In function 'void pre_phi()':
0_0_31901805_2075.cpp:28:3: error: 'phi' was not declared in this scope
   phi[1]=1;
   ^
0_0_31901805_2075.cpp:33:7: error: 'pri' was not declared in this scope
       pri[++tmp]=i;
       ^
0_0_31901805_2075.cpp:36:19: error: 'pri' was not declared in this scope
     for(int j=1;i*pri[j]<MX&&j<=tmp;j++)
                   ^
0_0_31901805_2075.cpp:49:3: error: 'phisum' was not declared in this scope
   phisum[1]=1,iphi[1]=1;
   ^
0_0_31901805_2075.cpp:49:15: error: 'iphi' was not declared in this scope
   phisum[1]=1,iphi[1]=1;
               ^
0_0_31901805_2075.cpp: At global scope:
0_0_31901805_2075.cpp:4:12: error: 'int_128' does not name a type
 #define ll int_128
            ^
0_0_31901805_2075.cpp:56:1: note: in expansion of macro 'll'
 ll get_n3(ll n)
 ^
0_0_31901805_2075.cpp: In function 'int main()':
0_0_31901805_2075.cpp:70:2: error: 'inv2' was not declared in this scope
  inv2=inv(2),inv6=inv(6);
  ^
0_0_31901805_2075.cpp:70:12: error: 'inv' was not declared in this scope
  inv2=inv(2),inv6=inv(6);
            ^
0_0_31901805_2075.cpp:70:14: error: 'inv6' was not declared in this scope
  inv2=inv(2),inv6=inv(6);
              ^
0_0_31901805_2075.cpp:4:12: error: 'int_128' was not declared in this scope
 #define ll int_128
            ^
0_0_31901805_2075.cpp:75:2: note: in expansion of macro 'll'
  ll n;
  ^
0_0_31901805_2075.cpp:76:2: error: 'n' was not declared in this scope
  n=read();
  ^
0_0_31901805_2075.cpp:76:9: error: no matching function for call to 'read()'
  n=read();
         ^
0_0_31901805_2075.cpp:76:9: note: candidate is:
0_0_31901805_2075.cpp:19:6: note: template<class T> void read(T&)
 void read(T &x) {
      ^
0_0_31901805_2075.cpp:19:6: note:   template argument deduction/substitution failed:
0_0_31901805_2075.cpp:76:9: note:   candidate expects 1 argument, 0 provided
  n=read();
         ^
0_0_31901805_2075.cpp:77:5: error: expected ';' before 'ans'
  ll ans=0;
     ^
0_0_31901805_2075.cpp:78:5: error: expected ';' before 'n3'
  ll n3=get_n3(n);
     ^
0_0_31901805_2075.cpp:79:5: error: expected ';' before 'm'
  ll m=n3*n3*n3;
     ^
0_0_31901805_2075.cpp:80:9: error: expected ';' before 'i'
  for(ll i=1;i*i<=n3;i++)
         ^
0_0_31901805_2075.cpp:80:13: error: 'i' was not declared in this scope
  for(ll i=1;i*i<=n3;i++)
             ^
0_0_31901805_2075.cpp:80:18: error: 'n3' was not declared in this scope
  for(ll i=1;i*i<=n3;i++)
                  ^
0_0_31901805_2075.cpp:84:7: error: 'ans' was not declared in this scope
       ans=ans+phi[i]*(n/i-(m-1)/i)%mod;
       ^
0_0_31901805_2075.cpp:84:15: error: 'phi' was not declared in this scope
       ans=ans+phi[i]*(n/i-(m-1)/i)%mod;
               ^
0_0_31901805_2075.cpp:84:28: error: 'm' was not declared in this scope
       ans=ans+phi[i]*(n/i-(m-1)/i)%mod;
                            ^
0_0_31901805_2075.cpp:85:10: error: expected ';' before 't'
       ll t=n3/i;
          ^
0_0_31901805_2075.cpp:91:3: error: 'n3' was not declared in this scope
   n3--;
   ^
0_0_31901805_2075.cpp:92:6: error: expected ';' before 'j'
   ll j,res;
      ^
0_0_31901805_2075.cpp:93:10: error: expected ';' before 'i'
   for(ll i=1;i<=n3;i=j+1)
          ^
0_0_31901805_2075.cpp:93:14: error: 'i' was not declared in this scope
   for(ll i=1;i<=n3;i=j+1)
              ^
0_0_31901805_2075.cpp:93:22: error: 'j' was not declared in this scope
   for(ll i=1;i<=n3;i=j+1)
                      ^
0_0_31901805_2075.cpp:95:5: error: 'res' was not declared in this scope
     res=n3/i;
     ^
0_0_31901805_2075.cpp:97:5: error: 'ans' was not declared in this scope
     ans=ans+3*(iphi[j]-iphi[i-1]+mod)%mod*res%mod*(res+1)%mod*(2*res+1)%mod*inv6%mod;
     ^
0_0_31901805_2075.cpp:97:16: error: 'iphi' was not declared in this scope
     ans=ans+3*(iphi[j]-iphi[i-1]+mod)%mod*res%mod*(res+1)%mod*(2*res+1)%mod*inv6%mod;
                ^
0_0_31901805_2075.cpp:98:14: error: 'phisum' was not declared in this scope
     ans=ans+(phisum[j]-phisum[i-1]+mod)%mod*(3*res*(res+1)%mod*inv2%mod+res)%mod;
              ^
0_0_31901805_2075.cpp:101:9: error: 'ans' was not declared in this scope
   cout<<ans<<endl;
         ^


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-25 07:09:32, Gzip enabled