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_18456509_18301.cpp: In function 'int getmax(node*, int, int, int, int)':
0_0_18456509_18301.cpp:28:67: error: 'returno' was not declared in this scope
 int getmax(node*o,int l,int r,int nl=1,int nr=n){if(l<=nl&&nr<=r){returno->mx;}else{pd(o);int mid=(nl+nr)>>1;int ans=0;if(l<=mid) ans=max(ans,getmax(o->ch[0],l,r,nl,mid));if(mid<r) ans=max(ans,getmax(o->ch[1],l,r,mid+1,nr));return ans;}}
                                                                   ^
0_0_18456509_18301.cpp: In function 'long long int getsum(node*, int, int, int, int)':
0_0_18456509_18301.cpp:29:73: error: 'returno' was not declared in this scope
 long long getsum(node*o,int l,int r,int nl=1,int nr=n){if(l<=nl&&nr<=r){returno->sum;}else{pd(o);int mid=(nl+nr)>>1;long long ans=0;if(l<=mid) ans+=getsum(o->ch[0],l,r,nl,mid);if(mid<r) ans+=getsum(o->ch[1],l,r,mid+1,nr);return ans;}}
                                                                         ^


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-30 12:27:06, Gzip enabled