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_30224075_22547.cpp: In function 'node ask(int, int, int, int, int)':
0_0_30224075_22547.cpp:69:47: error: no matching function for call to 'node::up(node, node&)'
     if (L<=mid) res.up(ask(i<<1,l,mid,L,R),res);
                                               ^
0_0_30224075_22547.cpp:69:47: note: candidate is:
0_0_30224075_22547.cpp:13:10: note: void node::up(node&, node&)
     void up(node &a,node &b){
          ^
0_0_30224075_22547.cpp:13:10: note:   no known conversion for argument 1 from 'node' to 'node&'
0_0_30224075_22547.cpp:70:50: error: no matching function for call to 'node::up(node&, node)'
     if (R>mid) res.up(res,ask(i<<1|1,mid+1,r,L,R));
                                                  ^
0_0_30224075_22547.cpp:70:50: note: candidate is:
0_0_30224075_22547.cpp:13:10: note: void node::up(node&, node&)
     void up(node &a,node &b){
          ^
0_0_30224075_22547.cpp:13:10: note:   no known conversion for argument 2 from 'node' to 'node&'
0_0_30224075_22547.cpp: In function 'void solve(int, int, ll)':
0_0_30224075_22547.cpp:77:64: error: no matching function for call to 'node::up(node, node&)'
         if (op==0) res[0].up(ask(1,1,n,in[top[x]],in[x]),res[0]);
                                                                ^
0_0_30224075_22547.cpp:77:64: note: candidate is:
0_0_30224075_22547.cpp:13:10: note: void node::up(node&, node&)
     void up(node &a,node &b){
          ^
0_0_30224075_22547.cpp:13:10: note:   no known conversion for argument 1 from 'node' to 'node&'
0_0_30224075_22547.cpp:78:58: error: no matching function for call to 'node::up(node, node&)'
         else res[1].up(ask(1,1,n,in[top[x]],in[x]),res[1]);
                                                          ^
0_0_30224075_22547.cpp:78:58: note: candidate is:
0_0_30224075_22547.cpp:13:10: note: void node::up(node&, node&)
     void up(node &a,node &b){
          ^
0_0_30224075_22547.cpp:13:10: note:   no known conversion for argument 1 from 'node' to 'node&'
0_0_30224075_22547.cpp:82:55: error: no matching function for call to 'node::up(node, node&)'
     if (op==0) res[0].up(ask(1,1,n,in[y],in[x]),res[0]);
                                                       ^
0_0_30224075_22547.cpp:82:55: note: candidate is:
0_0_30224075_22547.cpp:13:10: note: void node::up(node&, node&)
     void up(node &a,node &b){
          ^
0_0_30224075_22547.cpp:13:10: note:   no known conversion for argument 1 from 'node' to 'node&'
0_0_30224075_22547.cpp:83:49: error: no matching function for call to 'node::up(node, node&)'
     else res[1].up(ask(1,1,n,in[y],in[x]),res[1]);
                                                 ^
0_0_30224075_22547.cpp:83:49: note: candidate is:
0_0_30224075_22547.cpp:13:10: note: void node::up(node&, node&)
     void up(node &a,node &b){
          ^
0_0_30224075_22547.cpp:13:10: note:   no known conversion for argument 1 from 'node' to 'node&'


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-06-16 09:00:26, Gzip enabled