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_30420273_25048.cpp:22:5: error: expected initializer before 'if'
     if(l==r)return l;
     ^
0_0_30420273_25048.cpp:24:5: error: expected unqualified-id before 'if'
     if(sum[ls]>k&&mid>=pos&&cc==n+1)cc=min(q(pos,k,l,mid,ls),cc);
     ^
0_0_30420273_25048.cpp:25:5: error: expected unqualified-id before 'if'
     if(sum[rs]>k&&mid<n&&cc==n+1)cc=min(q(pos,k,mid+1,r,rs),cc);
     ^
0_0_30420273_25048.cpp:26:5: error: expected unqualified-id before 'return'
     return cc;
     ^
0_0_30420273_25048.cpp:27:1: error: expected declaration before '}' token
 }
 ^


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-16 09:29:16, Gzip enabled