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_18072667_10484.cpp: In function 'void init()':
0_0_18072667_10484.cpp:125:29: error: 'MOD' was not declared in this scope
         fact[i]=fact[i-1]*i%MOD;
                             ^
0_0_18072667_10484.cpp: In function 'int main()':
0_0_18072667_10484.cpp:140:25: error: 'num' was not declared in this scope
             scanf("%d",&num[i]);
                         ^
0_0_18072667_10484.cpp:141:14: error: 'num' was not declared in this scope
         sort(num,num+n,cmp);
              ^
0_0_18072667_10484.cpp:141:27: error: 'sort' was not declared in this scope
         sort(num,num+n,cmp);
                           ^
0_0_18072667_10484.cpp:143:41: error: 'MOD' was not declared in this scope
             A[i]=inv[i]*quick_mod(2,n-i,MOD)%MOD;
                                         ^
0_0_18072667_10484.cpp:145:31: error: 'MOD' was not declared in this scope
             B[i]=a[i]*fact[i]%MOD;
                               ^
0_0_18072667_10484.cpp:146:22: error: 'reverse' was not declared in this scope
         reverse(B,B+n);
                      ^
0_0_18072667_10484.cpp:148:32: error: cannot convert 'int*' to 'LL* {aka long long int*}' for argument '1' to 'void Prepare(LL*, LL*, LL*, LL*, int&)'
         Prepare(A, B, a, b, len);
                                ^


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-23 04:45:10, Gzip enabled