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_39179841_20708.cpp: In function 'long long int dfs(long long int, long long int, bool, bool)':
0_0_39179841_20708.cpp:46:28: error: 'k' was not declared in this scope
   46 |                 if(cnt(s)==k) return 1;
      |                            ^
0_0_39179841_20708.cpp:50:22: error: 'num' was not declared in this scope; did you mean 'enum'?
   50 |         int up=limit?num[pos]:9,res=0;
      |                      ^~~
      |                      enum
0_0_39179841_20708.cpp:53:25: error: 'res' was not declared in this scope
   53 |                         res+=dfs(pos-1,s,lead&&i==0,limit&&i==up);
      |                         ^~~
0_0_39179841_20708.cpp:56:25: error: 'res' was not declared in this scope
   56 |                         res+=dfs(pos-1,calc(s,L)|(1<<i),lead&&i==0,limit&&i==up);
      |                         ^~~
0_0_39179841_20708.cpp:59:30: error: 'res' was not declared in this scope
   59 |         if(!limit) f[pos][s]=res;
      |                              ^~~
0_0_39179841_20708.cpp:60:16: error: 'res' was not declared in this scope
   60 |         return res;
      |                ^~~
0_0_39179841_20708.cpp: In function 'long long int solve(long long int)':
0_0_39179841_20708.cpp:64:18: error: 'num' was not declared in this scope; did you mean 'enum'?
   64 |         while(x) num[++len]=x%10,x/=10;
      |                  ^~~
      |                  enum
0_0_39179841_20708.cpp: In function 'int main()':
0_0_39179841_20708.cpp:69:9: error: 'T' was not declared in this scope
   69 |         T=read();
      |         ^
0_0_39179841_20708.cpp:71:17: error: 'l' was not declared in this scope
   71 |                 l=read(),r=read(),k=read();
      |                 ^
0_0_39179841_20708.cpp:71:26: error: 'r' was not declared in this scope
   71 |                 l=read(),r=read(),k=read();
      |                          ^
0_0_39179841_20708.cpp:71:35: error: 'k' was not declared in this scope
   71 |                 l=read(),r=read(),k=read();
      |                                   ^
0_0_39179841_20708.cpp:72:47: error: 'id' was not declared in this scope; did you mean 'void'?
   72 |                 printf("Case #%lld: %lld\n",++id,solve(r)-solve(l-1));
      |                                               ^~
      |                                               void


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-27 14:54:01, Gzip enabled