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_25842067_26153.cpp:3:1: error: 'LL' does not name a type
 LL c[1002][1002] ,ans[1002];
 ^
0_0_25842067_26153.cpp: In function 'void init()':
0_0_25842067_26153.cpp:7:30: error: 'c' was not declared in this scope
     for(i = 0;i <= 1001;i++) c[i][0] = 1,c[i][i] = 1;
                              ^
0_0_25842067_26153.cpp:10:9: error: 'c' was not declared in this scope
         c[i][j] = (c[i - 1][j - 1] + c[i - 1][j])%mod;
         ^
0_0_25842067_26153.cpp: In function 'int main()':
0_0_25842067_26153.cpp:26:24: error: 'scanf' was not declared in this scope
     while(scanf("%d",&n) != EOF){
                        ^
0_0_25842067_26153.cpp:26:29: error: 'EOF' was not declared in this scope
     while(scanf("%d",&n) != EOF){
                             ^
0_0_25842067_26153.cpp:28:37: error: 'memset' was not declared in this scope
         memset(num , 0 , sizeof(num));
                                     ^
0_0_25842067_26153.cpp:29:16: error: 'ans' was not declared in this scope
         memset(ans , 0 , sizeof(ans));
                ^
0_0_25842067_26153.cpp:37:33: error: 'c' was not declared in this scope
                     ans[i] += ((c[num[j]][k] * c[n - num[j]][i - k])%mod) * ((1<<j)%mod), ans[i] %= mod;//!!!!!
                                 ^
0_0_25842067_26153.cpp:40:29: error: 'printf' was not declared in this scope
         printf("%lld",ans[1]);
                             ^
0_0_25842067_26153.cpp:42:16: error: 'puts' was not declared in this scope
         puts("");
                ^


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-12-02 04:20:25, Gzip enabled