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_25754039_32672.cpp: In function 'll Pow(ll, ll, ll)':
0_0_25754039_32672.cpp:23:13: error: 'res' was not declared in this scope
             res=res*a,res%=p;
             ^
0_0_25754039_32672.cpp:27:12: error: 'res' was not declared in this scope
     return res;
            ^
0_0_25754039_32672.cpp: In function 'll lucas(ll, ll, ll)':
0_0_25754039_32672.cpp:38:65: error: too few arguments to function 'll Pow(ll, ll, ll)'
         ans = (ans * fact[a] * Pow(fact[a-b] * fact[b] % p,p - 2)) % p;
                                                                 ^
0_0_25754039_32672.cpp:17:4: note: declared here
 ll Pow(ll a,ll b,ll p)
    ^
0_0_25754039_32672.cpp: In function 'll zgsydl(ll*, ll*, ll)':
0_0_25754039_32672.cpp:69:8: error: expected ',' or ';' before 're'
        re=re*b[i]%n;
        ^
0_0_25754039_32672.cpp: In function 'int main()':
0_0_25754039_32672.cpp:85:26: error: 'prim' was not declared in this scope
            scanf("%lld",&prim[i]);
                          ^
0_0_25754039_32672.cpp:86:24: error: 'init' was not declared in this scope
            init(prim[i]);
                        ^
0_0_25754039_32672.cpp:89:34: error: 'prim' was not declared in this scope
         printf("%lld\n",zgsydl(B,prim,k));
                                  ^


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