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