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_35718878_30115.cpp: In function 'long long int C(int, int)':
0_0_35718878_30115.cpp:10:25: error: 'long long int C(int, int)' redeclared as different kind of symbol
 long long C(int n, int m) {
                         ^
0_0_35718878_30115.cpp:8:5: note: previous declaration 'int C [2000][2000]'
 int C[2000][2000];
     ^
0_0_35718878_30115.cpp:13:18: error: 'fac' was not declared in this scope
     return 1ll * fac[n] * inv[fac[m]] % MOD * inv[fac[n - m]] % MOD;
                  ^
0_0_35718878_30115.cpp:13:27: error: 'inv' was not declared in this scope
     return 1ll * fac[n] * inv[fac[m]] % MOD * inv[fac[n - m]] % MOD;
                           ^
0_0_35718878_30115.cpp: In function 'void solve(long long int, long long int)':
0_0_35718878_30115.cpp:20:45: error: 'C' cannot be used as a function
     cout << ans * C(n - (r - 1) * (k - 1), r) % MOD << endl;
                                             ^
0_0_35718878_30115.cpp: In function 'int main()':
0_0_35718878_30115.cpp:38:36: error: 'LL' was not declared in this scope
    S2[i][j] = (S2[i - 1][j - 1] + (LL)S2[i - 1][j] * j) % MOD;//×¢ŅāŅē³ö
                                    ^
0_0_35718878_30115.cpp:38:39: error: expected ')' before 'S2'
    S2[i][j] = (S2[i - 1][j - 1] + (LL)S2[i - 1][j] * j) % MOD;//×¢ŅāŅē³ö
                                       ^


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-01 17:29:36, Gzip enabled