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
|