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_23897612_3580.cpp:19:1: error: 'll' does not name a type
 ll a[20];
 ^
0_0_23897612_3580.cpp:20:1: error: 'll' does not name a type
 ll dp[20][2];
 ^
0_0_23897612_3580.cpp: In function 'int dfs(int, int, int, bool)':
0_0_23897612_3580.cpp:24:15: error: 'dp' was not declared in this scope
  if(!limit && dp[pos][sta] != -1) return dp[pos][sta]; //这就是记忆化啦 
               ^
0_0_23897612_3580.cpp:25:19: error: 'a' was not declared in this scope
  int up = limit ? a[pos] : 9;
                   ^
0_0_23897612_3580.cpp:32:13: error: 'dp' was not declared in this scope
  if(!limit) dp[pos][sta] = tmp;
             ^
0_0_23897612_3580.cpp: In function 'int solve(int)':
0_0_23897612_3580.cpp:39:3: error: 'a' was not declared in this scope
   a[pos++] = x % 10;
   ^
0_0_23897612_3580.cpp: In function 'int main()':
0_0_23897612_3580.cpp:48:10: error: 'dp' was not declared in this scope
   memset(dp, -1, sizeof(dp));
          ^


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-09-22 15:34:08, Gzip enabled