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_14814778_26489.cpp: In function 'LL modx(LL*, LL*, int)':
0_0_14814778_26489.cpp:50:37: error: 'mul' was not declared in this scope
         ret = (ret + mul(mul(y, m, n), b[i], n)) % n;
                                     ^
0_0_14814778_26489.cpp:50:47: error: 'mul' was not declared in this scope
         ret = (ret + mul(mul(y, m, n), b[i], n)) % n;
                                               ^
0_0_14814778_26489.cpp:50:47: error: redeclaration of '<typeprefixerror>mul'
0_0_14814778_26489.cpp:50:37: note: previous declaration '<typeprefixerror>mul'
         ret = (ret + mul(mul(y, m, n), b[i], n)) % n;
                                     ^
0_0_14814778_26489.cpp: In function 'LL C(LL, LL, LL)':
0_0_14814778_26489.cpp:58:33: error: 'mul' was not declared in this scope
     return mul(mul(f[n], g[m], p), g[n - m], p);
                                 ^
0_0_14814778_26489.cpp:58:47: error: 'mul' was not declared in this scope
     return mul(mul(f[n], g[m], p), g[n - m], p);
                                               ^
0_0_14814778_26489.cpp:58:47: error: redeclaration of '<typeprefixerror>mul'
0_0_14814778_26489.cpp:58:33: note: previous declaration '<typeprefixerror>mul'
     return mul(mul(f[n], g[m], p), g[n - m], p);
                                 ^
0_0_14814778_26489.cpp: In function 'LL lucas(LL, LL, LL)':
0_0_14814778_26489.cpp:64:61: error: 'mul' was not declared in this scope
     return mul(C(n % p, m % p, p), lucas(n / p, m / p, p), p);
                                                             ^
0_0_14814778_26489.cpp: In function 'LL powmod(LL, LL, LL)':
0_0_14814778_26489.cpp:71:41: error: 'mul' was not declared in this scope
         if(b % 2) res = mul(res, base, p);
                                         ^
0_0_14814778_26489.cpp:72:33: error: 'mul' was not declared in this scope
         base = mul(base, base, p);
                                 ^
0_0_14814778_26489.cpp: In function 'void init(LL)':
0_0_14814778_26489.cpp:82:56: error: 'mul' was not declared in this scope
     for(int i = 1; i <= N; i++) f[i] = mul(f[i-1], i, p);
                                                        ^
0_0_14814778_26489.cpp:84:62: error: 'mul' was not declared in this scope
     for(int i = N-1; i >= 0; i--) g[i] = mul(g[i+1], (i+1), p);
                                                              ^


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 04:52:14, Gzip enabled