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_30965899_23421.cpp: In function 'int dfs(int, int, bool)':
0_0_30965899_23421.cpp:2:31: error: 'all' was not declared in this scope
     if(pos == -1) return sum<=all;
                               ^
0_0_30965899_23421.cpp:3:14: error: 'all' was not declared in this scope
     if(sum > all) return 0;
              ^
0_0_30965899_23421.cpp:4:18: error: 'dp' was not declared in this scope
     if(!limit && dp[pos][all-sum] != -1) return dp[pos][all-sum];
                  ^
0_0_30965899_23421.cpp:4:26: error: 'all' was not declared in this scope
     if(!limit && dp[pos][all-sum] != -1) return dp[pos][all-sum];
                          ^
0_0_30965899_23421.cpp:5:22: error: 'a' was not declared in this scope
     int up= (limit ? a[pos] : 9);
                      ^
0_0_30965899_23421.cpp:10:16: error: 'dp' was not declared in this scope
     if(!limit) dp[pos][all-sum]= ans;
                ^
0_0_30965899_23421.cpp:10:24: error: 'all' was not declared in this scope
     if(!limit) dp[pos][all-sum]= 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-12-02 08:00:48, Gzip enabled