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_39179842_5158.cpp: In function 'long long int dfs(long long int, long long int, bool, bool)':
0_0_39179842_5158.cpp:28:28: error: 'k' was not declared in this scope
   28 |                 if(cnt(s)==k) return 1;
      |                            ^
0_0_39179842_5158.cpp:31:22: error: 'f' was not declared in this scope
   31 |         if(!limit&&(~f[pos][s])) return f[pos][s];
      |                      ^
0_0_39179842_5158.cpp:32:22: error: 'num' was not declared in this scope; did you mean 'enum'?
   32 |         int up=limit?num[pos]:9,res=0;
      |                      ^~~
      |                      enum
0_0_39179842_5158.cpp:35:25: error: 'res' was not declared in this scope
   35 |                         res+=dfs(pos-1,s,lead&&i==0,limit&&i==up);
      |                         ^~~
0_0_39179842_5158.cpp:38:25: error: 'res' was not declared in this scope
   38 |                         res+=dfs(pos-1,calc(s,L)|(1<<i),lead&&i==0,limit&&i==up);
      |                         ^~~
0_0_39179842_5158.cpp:41:20: error: 'f' was not declared in this scope
   41 |         if(!limit) f[pos][s]=res;
      |                    ^
0_0_39179842_5158.cpp:41:30: error: 'res' was not declared in this scope
   41 |         if(!limit) f[pos][s]=res;
      |                              ^~~
0_0_39179842_5158.cpp:42:16: error: 'res' was not declared in this scope
   42 |         return res;
      |                ^~~
0_0_39179842_5158.cpp: In function 'int main()':
0_0_39179842_5158.cpp:45:9: error: 't' was not declared in this scope; did you mean 'tm'?
   45 |         t=read();
      |         ^
      |         tm
0_0_39179842_5158.cpp:47:17: error: 'l' was not declared in this scope
   47 |                 l=read(),r=read(),k=read();
      |                 ^
0_0_39179842_5158.cpp:47:26: error: 'r' was not declared in this scope
   47 |                 l=read(),r=read(),k=read();
      |                          ^
0_0_39179842_5158.cpp:47:35: error: 'k' was not declared in this scope
   47 |                 l=read(),r=read(),k=read();
      |                                   ^
0_0_39179842_5158.cpp:48:47: error: 'id' was not declared in this scope; did you mean 'void'?
   48 |                 printf("Case #%lld: %lld\n",++id,solve(r)-solve(l-1));
      |                                               ^~
      |                                               void
0_0_39179842_5158.cpp:48:50: error: 'solve' was not declared in this scope
   48 |                 printf("Case #%lld: %lld\n",++id,solve(r)-solve(l-1));
      |                                                  ^~~~~


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-23 22:48:40, Gzip enabled