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_36825683_14569.cpp: In function 'bool select(ll)':
0_0_36825683_14569.cpp:35:9: error: 'r' was not declared in this scope
  return r == l;
         ^
0_0_36825683_14569.cpp:35:14: error: 'l' was not declared in this scope
  return r == l;
              ^
0_0_36825683_14569.cpp: In function 'void handle(int, ll, bool, int)':
0_0_36825683_14569.cpp:39:38: error: return-statement with a value, in function returning 'void' [-fpermissive]
  if(pos == -1 && select(pre)) return 1;
                                      ^
0_0_36825683_14569.cpp:42:53: error: return-statement with a value, in function returning 'void' [-fpermissive]
  if(!limit && dp[pos][num] != -1) return dp[pos][num];
                                                     ^
0_0_36825683_14569.cpp:45:56: error: too few arguments to function 'void handle(int, ll, bool, int)'
   tmp += handle(pos - 1, pre * 10 + i, limit && i == up)
                                                        ^
0_0_36825683_14569.cpp:38:6: note: declared here
 void handle(int pos, ll pre, bool limit, int div){
      ^
0_0_36825683_14569.cpp:48:9: error: return-statement with a value, in function returning 'void' [-fpermissive]
  return tmp;
         ^


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-22 10:27:58, Gzip enabled