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_35061031_1699.cpp: In function 'long long int build(int, int, int)':
0_0_35061031_1699.cpp:25:31: error: 'mid' was not declared in this scope
    return tt[idx].sum=build(l,mid,LL(idx)+build(mid+1,r,RR(idx)));
                               ^
0_0_35061031_1699.cpp: In function 'void update(int, int, int, int)':
0_0_35061031_1699.cpp:35:19: error: request for member 'sum' in '(idx << 1)', which is of non-class type 'int'
        tt[LL(idx).sum]+=(long long)tt[LL(idx)].caldis()*tt[idx].add;
                   ^
0_0_35061031_1699.cpp:36:19: error: request for member 'sum' in '((idx << 1) | 1)', which is of non-class type 'int'
        tt[RR(idx).sum]++(long long)tt[RR(idx)].caldis()*tt[idx].add;
                   ^
0_0_35061031_1699.cpp:36:26: error: expected primary-expression before 'long'
        tt[RR(idx).sum]++(long long)tt[RR(idx)].caldis()*tt[idx].add;
                          ^
0_0_35061031_1699.cpp: In function 'long long int query(int, int, int)':
0_0_35061031_1699.cpp:65:59: error: expected ')' before ';' token
          return query(l,mid,LL(idx)+query(mid+1,r,RR(idx));
                                                           ^
0_0_35061031_1699.cpp: In function 'int main()':
0_0_35061031_1699.cpp:81:42: error: 'pirntf' was not declared in this scope
               pirntf("lld\n",query(a,b,1));
                                          ^


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-23 01:21:14, Gzip enabled