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_39179845_23764.cpp: In function 'long long int dfs(long long int, long long int, bool, bool)':
0_0_39179845_23764.cpp:33:22: error: 'f' was not declared in this scope
   33 |         if(!limit&&(~f[pos][s])) return f[pos][s];
      |                      ^
0_0_39179845_23764.cpp:34:22: error: 'num' was not declared in this scope; did you mean 'enum'?
   34 |         int up=limit?num[pos]:9,res=0;
      |                      ^~~
      |                      enum
0_0_39179845_23764.cpp:37:25: error: 'res' was not declared in this scope
   37 |                         res+=dfs(pos-1,s,lead&&i==0,limit&&i==up);
      |                         ^~~
0_0_39179845_23764.cpp:40:25: error: 'res' was not declared in this scope
   40 |                         res+=dfs(pos-1,calc(s,L)|(1<<i),lead&&i==0,limit&&i==up);
      |                         ^~~
0_0_39179845_23764.cpp:43:20: error: 'f' was not declared in this scope
   43 |         if(!limit) f[pos][s]=res;
      |                    ^
0_0_39179845_23764.cpp:43:30: error: 'res' was not declared in this scope
   43 |         if(!limit) f[pos][s]=res;
      |                              ^~~
0_0_39179845_23764.cpp:44:16: error: 'res' was not declared in this scope
   44 |         return res;
      |                ^~~
0_0_39179845_23764.cpp: In function 'int main()':
0_0_39179845_23764.cpp:50:50: error: 'solve' was not declared in this scope
   50 |                 printf("Case #%lld: %lld\n",++id,solve(r)-solve(l-1));
      |                                                  ^~~~~


Hangzhou Dianzi University Online Judge 3.0
Copyright © 2005-2025 HDU ACM Team. All Rights Reserved.
Designer & Developer : Wang Rongtao LinLe GaoJie GanLu
Total 0.001000(s) query 1, Server time : 2025-02-17 17:30:56, Gzip enabled