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_32324204_14383.cpp: In function 'int dfs(int, int, bool)':
0_0_32324204_14383.cpp:4:18: error: 'dp' was not declared in this scope
  if ( ! limit && dp[pos][sum] != - 1 ) return dp[pos][sum];
                  ^
0_0_32324204_14383.cpp:5:19: error: 'dig' was not declared in this scope
  int up = limit ? dig[pos] : 9 , cnt = 0;
                   ^
0_0_32324204_14383.cpp:7:3: error: 'cnt' was not declared in this scope
   cnt += dfs ( pos - 1 , sum - i * ( 1 << ( pos - 1 ) ) , limit && i == dig[pos] );
   ^
0_0_32324204_14383.cpp:9:17: error: 'dp' was not declared in this scope
  if ( ! limit ) dp[pos][sum] = cnt;
                 ^
0_0_32324204_14383.cpp:9:32: error: 'cnt' was not declared in this scope
  if ( ! limit ) dp[pos][sum] = cnt;
                                ^
0_0_32324204_14383.cpp:10:9: error: 'cnt' was not declared in this scope
  return cnt;
         ^


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-26 03:34:08, Gzip enabled