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_37783886_2940.cpp: In function 'void MAIN::pre()':
0_0_37783886_2940.cpp:40:9: error: 'fac' was not declared in this scope
         fac[0]=fac[1]=inv[0]=inv[1]=1;
         ^
0_0_37783886_2940.cpp:40:23: error: 'inv' was not declared in this scope
         fac[0]=fac[1]=inv[0]=inv[1]=1;
                       ^
0_0_37783886_2940.cpp:41:54: error: 'mul' was not declared in this scope
         for(res i=2;i<=N-10;i++)fac[i]=mul(fac[i-1],i),inv[i]=mul(inv[kcz%i],kcz-kcz/i);
                                                      ^
0_0_37783886_2940.cpp:41:71: error: 'kcz' was not declared in this scope
         for(res i=2;i<=N-10;i++)fac[i]=mul(fac[i-1],i),inv[i]=mul(inv[kcz%i],kcz-kcz/i);
                                                                       ^
0_0_37783886_2940.cpp:42:59: error: 'mul' was not declared in this scope
         for(res i=2;i<=N-10;i++)inv[i]=mul(inv[i-1],inv[i]);
                                                           ^
0_0_37783886_2940.cpp: In function 'int MAIN::C(const int&, const int&)':
0_0_37783886_2940.cpp:45:26: error: 'fac' was not declared in this scope
         return x<y?0:mul(fac[x],mul(inv[y],inv[x-y]));
                          ^
0_0_37783886_2940.cpp:45:37: error: 'inv' was not declared in this scope
         return x<y?0:mul(fac[x],mul(inv[y],inv[x-y]));
                                     ^
0_0_37783886_2940.cpp:45:52: error: 'mul' was not declared in this scope
         return x<y?0:mul(fac[x],mul(inv[y],inv[x-y]));
                                                    ^
0_0_37783886_2940.cpp:45:53: error: 'mul' was not declared in this scope
         return x<y?0:mul(fac[x],mul(inv[y],inv[x-y]));
                                                     ^
0_0_37783886_2940.cpp:45:53: error: redeclaration of '<typeprefixerror>mul'
0_0_37783886_2940.cpp:45:52: note: previous declaration '<typeprefixerror>mul'
         return x<y?0:mul(fac[x],mul(inv[y],inv[x-y]));
                                                    ^
0_0_37783886_2940.cpp: In function 'void MAIN::add(int&, const int&)':
0_0_37783886_2940.cpp:49:17: error: 'kcz' was not declared in this scope
         x+=y,x>=kcz?x-=kcz:1,x<0?x+=kcz:1;
                 ^
0_0_37783886_2940.cpp: In function 'int MAIN::Add(const int&, const int&)':
0_0_37783886_2940.cpp:52:21: error: 'kcz' was not declared in this scope
         return x+y>=kcz?x+y-kcz:(x+y<0?x+y+kcz:x+y);
                     ^
0_0_37783886_2940.cpp: In function 'void MAIN::change(const int&, const int&)':
0_0_37783886_2940.cpp:55:30: error: 'mul' was not declared in this scope
         laz[rt]=mul(laz[rt],v),tr[rt]=mul(tr[rt],v);
                              ^
0_0_37783886_2940.cpp: In function 'int MAIN::calc()':
0_0_37783886_2940.cpp:116:28: error: 'kcz' was not declared in this scope
         return Add(pw[tot],kcz-Add(query(mx),query(1,1,mid-1,mx+1,mn-mid)));
                            ^
0_0_37783886_2940.cpp: In function 'void MAIN::MAIN()':
0_0_37783886_2940.cpp:120:24: error: 'qpow' was not declared in this scope
         res INV2=qpow(2);
                        ^


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-27 00:12:27, Gzip enabled