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_14235588_12578.cpp: In member function 'int node::mid()':
0_0_14235588_12578.cpp:24:25: error: 'l' was not declared in this scope
     int mid() { return (l+r)>>1; }
                         ^
0_0_14235588_12578.cpp:24:27: error: 'r' was not declared in this scope
     int mid() { return (l+r)>>1; }
                           ^
0_0_14235588_12578.cpp: In function 'void pushup(int, int)':
0_0_14235588_12578.cpp:40:86: error: expected primary-expression before ';' token
         if(tree[lch].llen == llen) tree[rt].llen += tree[rch].llen, tree[rt].lsum += ;
                                                                                      ^
0_0_14235588_12578.cpp:41:69: error: expected primary-expression before ';' token
         if(tree[rch].rlen == rlen) tree[rt].rlen += tree[lch].rlen, ;
                                                                     ^
0_0_14235588_12578.cpp: In function 'void solve()':
0_0_14235588_12578.cpp:94:53: error: 'struct node' has no member named 'mlen'
         if(!op) printf("%d\n", query(1, n, 1, a, b).mlen);
                                                     ^


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-07-03 20:32:26, Gzip enabled