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;
^
|