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_39179838_25615.cpp: In function 'long long int dfs(long long int, long long int, bool, bool)':
0_0_39179838_25615.cpp:45:28: error: 'k' was not declared in this scope
   45 |                 if(cnt(s)==k) return 1;
      |                            ^
0_0_39179838_25615.cpp:48:22: error: 'f' was not declared in this scope
   48 |         if(!limit&&(~f[pos][s])) return f[pos][s];
      |                      ^
0_0_39179838_25615.cpp:49:22: error: 'num' was not declared in this scope; did you mean 'enum'?
   49 |         int up=limit?num[pos]:9,res=0;
      |                      ^~~
      |                      enum
0_0_39179838_25615.cpp:52:25: error: 'res' was not declared in this scope
   52 |                         res+=dfs(pos-1,s,lead&&i==0,limit&&i==up);
      |                         ^~~
0_0_39179838_25615.cpp:55:25: error: 'res' was not declared in this scope
   55 |                         res+=dfs(pos-1,calc(s,L)|(1<<i),lead&&i==0,limit&&i==up);
      |                         ^~~
0_0_39179838_25615.cpp:58:20: error: 'f' was not declared in this scope
   58 |         if(!limit) f[pos][s]=res;
      |                    ^
0_0_39179838_25615.cpp:58:30: error: 'res' was not declared in this scope
   58 |         if(!limit) f[pos][s]=res;
      |                              ^~~
0_0_39179838_25615.cpp:59:16: error: 'res' was not declared in this scope
   59 |         return res;
      |                ^~~
0_0_39179838_25615.cpp: In function 'long long int solve(long long int)':
0_0_39179838_25615.cpp:63:18: error: 'num' was not declared in this scope; did you mean 'enum'?
   63 |         while(x) num[++len]=x%10,x/=10;
      |                  ^~~
      |                  enum
0_0_39179838_25615.cpp:64:16: error: 'f' was not declared in this scope
   64 |         memset(f,-1,sizeof f);
      |                ^
0_0_39179838_25615.cpp: In function 'int main()':
0_0_39179838_25615.cpp:68:9: error: 'T' was not declared in this scope
   68 |         T=read();
      |         ^
0_0_39179838_25615.cpp:70:17: error: 'l' was not declared in this scope
   70 |                 l=read(),r=read(),k=read();
      |                 ^
0_0_39179838_25615.cpp:70:26: error: 'r' was not declared in this scope
   70 |                 l=read(),r=read(),k=read();
      |                          ^
0_0_39179838_25615.cpp:70:35: error: 'k' was not declared in this scope
   70 |                 l=read(),r=read(),k=read();
      |                                   ^
0_0_39179838_25615.cpp:71:47: error: 'id' was not declared in this scope; did you mean 'void'?
   71 |                 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-23 23:01:29, Gzip enabled