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_30474308_12651.cpp:37:12: error: invalid use of non-static data member 'Combine8388608::mod'
     ll mod=8388608,mask=8388607;
            ^
0_0_30474308_12651.cpp:49:12: error: from this location
     ll fac[mod+5],inv[mod+5];
            ^
0_0_30474308_12651.cpp:37:12: error: invalid use of non-static data member 'Combine8388608::mod'
     ll mod=8388608,mask=8388607;
            ^
0_0_30474308_12651.cpp:49:23: error: from this location
     ll fac[mod+5],inv[mod+5];
                       ^
0_0_30474308_12651.cpp: In member function 'll Combine8388608::Inv(ll)':
0_0_30474308_12651.cpp:51:12: error: 'inv' was not declared in this scope
         if(inv[x]==0)inv[x]=inverse(x,mod);
            ^
0_0_30474308_12651.cpp:52:16: error: 'inv' was not declared in this scope
         return inv[x];
                ^
0_0_30474308_12651.cpp: In constructor 'Combine8388608::Combine8388608()':
0_0_30474308_12651.cpp:55:9: error: 'fac' was not declared in this scope
         fac[0]=1;
         ^
0_0_30474308_12651.cpp: In member function 'll Combine8388608::factorial(ll)':
0_0_30474308_12651.cpp:61:23: error: 'fac' was not declared in this scope
         if(n<2)return fac[n];
                       ^
0_0_30474308_12651.cpp:63:25: error: 'fac' was not declared in this scope
             ll ans=fpow(fac[mod-1],n>>23,mod)*fac[n%mod]%mod;
                         ^


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-22 23:48:46, Gzip enabled