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_36916992_27660.cpp:15:1: error: 'll' does not name a type
 ll f[N],inv[N];
 ^
0_0_36916992_27660.cpp: In function 'int C(int, int)':
0_0_36916992_27660.cpp:28:12: error: 'f' was not declared in this scope
     return f[a] * inv[b] % p * inv[a-b] % p;
            ^
0_0_36916992_27660.cpp:28:19: error: 'inv' was not declared in this scope
     return f[a] * inv[b] % p * inv[a-b] % p;
                   ^
0_0_36916992_27660.cpp: In function 'void init()':
0_0_36916992_27660.cpp:33:5: error: 'f' was not declared in this scope
     f[0]=f[1]=inv[0]=1;
     ^
0_0_36916992_27660.cpp:33:15: error: 'inv' was not declared in this scope
     f[0]=f[1]=inv[0]=1;
               ^
0_0_36916992_27660.cpp: In function 'void solve()':
0_0_36916992_27660.cpp:48:5: error: 'll' was not declared in this scope
     ll ans = C(k+m-1, m-1);
     ^
0_0_36916992_27660.cpp:51:12: error: expected ';' before 'temp'
         ll temp = C(k+m-1 - i*n, m-1) * C(m, i) % p;
            ^
0_0_36916992_27660.cpp:53:13: error: 'ans' was not declared in this scope
             ans = (ans - temp + p) % p;
             ^
0_0_36916992_27660.cpp:53:26: error: 'temp' was not declared in this scope
             ans = (ans - temp + p) % p;
                          ^
0_0_36916992_27660.cpp:55:13: error: 'ans' was not declared in this scope
             ans = (ans + temp) % p;
             ^
0_0_36916992_27660.cpp:55:26: error: 'temp' was not declared in this scope
             ans = (ans + temp) % p;
                          ^
0_0_36916992_27660.cpp:57:22: error: 'ans' was not declared in this scope
     printf("%lld\n", ans);
                      ^


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-06-29 15:10:21, Gzip enabled