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_17208800_27918.cpp: In function 'long int lookUp(int, int, int, int, int)':
0_0_17208800_27918.cpp:42:53: error: ambiguating new declaration of 'long int lookUp(int, int, int, int, int)'
 long int lookUp(int L, int R, int root, int l, int r) {
                                                     ^
0_0_17208800_27918.cpp:28:6: note: old declaration 'void lookUp(int, int, int, int, int)'
 void lookUp(int L, int R, int root, int l, int r);
      ^
0_0_17208800_27918.cpp:47:3: error: 'ret' was not declared in this scope
   ret = 1;
   ^
0_0_17208800_27918.cpp: In function 'int main()':
0_0_17208800_27918.cpp:101:61: error: too few arguments to function 'void lookUp(int, int, int, int, int)'
             long int value = posa<posb?lookUp(posa, posb - 1):1;
                                                             ^
0_0_17208800_27918.cpp:28:6: note: declared here
 void lookUp(int L, int R, int root, int l, int r);
      ^


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-10-05 20:00:47, Gzip enabled