0_0_23897612_3580.cpp:19:1: error: 'll' does not name a type
ll a[20];
^
0_0_23897612_3580.cpp:20:1: error: 'll' does not name a type
ll dp[20][2];
^
0_0_23897612_3580.cpp: In function 'int dfs(int, int, int, bool)':
0_0_23897612_3580.cpp:24:15: error: 'dp' was not declared in this scope
if(!limit && dp[pos][sta] != -1) return dp[pos][sta]; //这就是记忆化啦
^
0_0_23897612_3580.cpp:25:19: error: 'a' was not declared in this scope
int up = limit ? a[pos] : 9;
^
0_0_23897612_3580.cpp:32:13: error: 'dp' was not declared in this scope
if(!limit) dp[pos][sta] = tmp;
^
0_0_23897612_3580.cpp: In function 'int solve(int)':
0_0_23897612_3580.cpp:39:3: error: 'a' was not declared in this scope
a[pos++] = x % 10;
^
0_0_23897612_3580.cpp: In function 'int main()':
0_0_23897612_3580.cpp:48:10: error: 'dp' was not declared in this scope
memset(dp, -1, sizeof(dp));
^
|