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_33448756_20380.cpp: In member function 'int ChairmanTree::build(int, int, int)':
0_0_33448756_20380.cpp:40:20: error: no matching function for call to 'ChairmanTree::build(int&, int&)'
   ls[c]=build(L,mid);
                    ^
0_0_33448756_20380.cpp:40:20: note: candidate is:
0_0_33448756_20380.cpp:31:6: note: int ChairmanTree::build(int, int, int)
  int build(int rt,int L,int R)
      ^
0_0_33448756_20380.cpp:31:6: note:   candidate expects 3 arguments, 2 provided
0_0_33448756_20380.cpp:41:22: error: no matching function for call to 'ChairmanTree::build(int, int&)'
   rs[c]=build(mid+1,R);
                      ^
0_0_33448756_20380.cpp:41:22: note: candidate is:
0_0_33448756_20380.cpp:31:6: note: int ChairmanTree::build(int, int, int)
  int build(int rt,int L,int R)
      ^
0_0_33448756_20380.cpp:31:6: note:   candidate expects 3 arguments, 2 provided
0_0_33448756_20380.cpp: In function 'int main()':
0_0_33448756_20380.cpp:92:26: error: no matching function for call to 'ChairmanTree::build(int, int&)'
   root[0]=ctree.build(1,n);
                          ^
0_0_33448756_20380.cpp:92:26: note: candidate is:
0_0_33448756_20380.cpp:31:6: note: int ChairmanTree::build(int, int, int)
  int build(int rt,int L,int R)
      ^
0_0_33448756_20380.cpp:31:6: note:   candidate expects 3 arguments, 2 provided


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-17 10:37:14, Gzip enabled