0_0_38833312_28130.cpp: In function 'long long int solve1(long long int)':
0_0_38833312_28130.cpp:3:31: error: 'a' was not declared in this scope
3 | for(int i=1;i<=19;i++)a[i]=n%10,n/=10;
| ^
0_0_38833312_28130.cpp:8:31: error: 'a' was not declared in this scope
8 | for(int j=0;j<a[i];j++)cnt+=(j!=7);//上一位是边界,但是当前数位不能跑到边界
| ^
0_0_38833312_28130.cpp:9:22: error: 'p9' was not declared in this scope
9 | res+=p9[i-1]*cnt;//因为未到边界,所以直接后续数位的状况是p9[i-1]种
| ^~
0_0_38833312_28130.cpp:10:20: error: 'a' was not declared in this scope
10 | if(a[i]==7)
| ^
0_0_38833312_28130.cpp:17:23: error: 'x' was not declared in this scope
17 | for(int t=1;t<x;t++)//枚举最终状态的余数
| ^
0_0_38833312_28130.cpp:19:59: error: 'dp1' was not declared in this scope
19 | for(int i=0;i<=19;i++)for(int j=0;j<x;j++)dp1[i][j][0][0]=dp1[i][j][0][1]=dp1[i][j][1][0]=dp1[i][j][1][1]=0;
| ^~~
0_0_38833312_28130.cpp:20:17: error: 'dp1' was not declared in this scope
20 | dp1[19][0][1][1]=1;
| ^~~
0_0_38833312_28130.cpp:30:58: error: 'a' was not declared in this scope
30 | int mx=k?a[i]:9;
| ^
0_0_38833312_28130.cpp:38:78: error: 'p10' was not declared in this scope
38 | if(i>1 && nj*p10[i-1]%x==t)continue;
| ^~~
|