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_18130164_10904.cpp:1:15: error: 't' was not declared in this scope
      int mid=(t[cur].r+t[cur].l)/2;
               ^
0_0_18130164_10904.cpp:1:17: error: 'cur' was not declared in this scope
      int mid=(t[cur].r+t[cur].l)/2;
                 ^
0_0_18130164_10904.cpp:1:24: error: 't' was not declared in this scope
      int mid=(t[cur].r+t[cur].l)/2;
                        ^
0_0_18130164_10904.cpp:1:26: error: 'cur' was not declared in this scope
      int mid=(t[cur].r+t[cur].l)/2;
                          ^
0_0_18130164_10904.cpp:2:9: error: 't' does not name a type
         t[cur<<1].add+=t[cur].add;
         ^
0_0_18130164_10904.cpp:3:9: error: 't' does not name a type
         t[cur<<1|1].add+=t[cur].add;
         ^
0_0_18130164_10904.cpp:4:9: error: 't' does not name a type
         t[cur<<1].sum+=(mid-t[cur].l+1)*t[cur].add;
         ^
0_0_18130164_10904.cpp:5:9: error: 't' does not name a type
         t[cur<<1|1].sum+=(t[cur].r-mid)*t[cur].add;
         ^
0_0_18130164_10904.cpp:6:5: 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-12-02 22:27:48, Gzip enabled