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


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 07:14:15, Gzip enabled