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_18083173_26403.cpp:28:7: error: 'maxn' was not declared in this scope
 ll dl[maxn], dr[maxn], cnt[maxn], ans[maxn], len[maxn];
       ^
0_0_18083173_26403.cpp:28:17: error: 'maxn' was not declared in this scope
 ll dl[maxn], dr[maxn], cnt[maxn], ans[maxn], len[maxn];
                 ^
0_0_18083173_26403.cpp:28:28: error: 'maxn' was not declared in this scope
 ll dl[maxn], dr[maxn], cnt[maxn], ans[maxn], len[maxn];
                            ^
0_0_18083173_26403.cpp:28:39: error: 'maxn' was not declared in this scope
 ll dl[maxn], dr[maxn], cnt[maxn], ans[maxn], len[maxn];
                                       ^
0_0_18083173_26403.cpp:28:50: error: 'maxn' was not declared in this scope
 ll dl[maxn], dr[maxn], cnt[maxn], ans[maxn], len[maxn];
                                                  ^
0_0_18083173_26403.cpp: In function 'void init()':
0_0_18083173_26403.cpp:31:5: error: 'dl' was not declared in this scope
     dl[3]=0,dr[3]=2,dl[4]=2,dr[4]=2,ans[4]=0,len[3]=3,len[4]=5,cnt[3]=cnt[4]=1;
     ^
0_0_18083173_26403.cpp:31:13: error: 'dr' was not declared in this scope
     dl[3]=0,dr[3]=2,dl[4]=2,dr[4]=2,ans[4]=0,len[3]=3,len[4]=5,cnt[3]=cnt[4]=1;
             ^
0_0_18083173_26403.cpp:31:37: error: 'ans' was not declared in this scope
     dl[3]=0,dr[3]=2,dl[4]=2,dr[4]=2,ans[4]=0,len[3]=3,len[4]=5,cnt[3]=cnt[4]=1;
                                     ^
0_0_18083173_26403.cpp:31:46: error: 'len' was not declared in this scope
     dl[3]=0,dr[3]=2,dl[4]=2,dr[4]=2,ans[4]=0,len[3]=3,len[4]=5,cnt[3]=cnt[4]=1;
                                              ^
0_0_18083173_26403.cpp:31:64: error: 'cnt' was not declared in this scope
     dl[3]=0,dr[3]=2,dl[4]=2,dr[4]=2,ans[4]=0,len[3]=3,len[4]=5,cnt[3]=cnt[4]=1;
                                                                ^
0_0_18083173_26403.cpp:32:26: error: 'maxn' was not declared in this scope
     for (int i = 5; i <= maxn; i++) {
                          ^
0_0_18083173_26403.cpp:33:37: error: 'mod' was not declared in this scope
         ans[i] = dr[i-2]*cnt[i-1] % mod + cnt[i-2] * dl[i-1] % mod + cnt[i-1]*cnt[i-2] % mod + ans[i-1] + ans[i-2];
                                     ^
0_0_18083173_26403.cpp: In function 'void solve()':
0_0_18083173_26403.cpp:50:16: error: 'ans' was not declared in this scope
         ansr = ans[n];
                ^


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-30 12:10:55, Gzip enabled