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_35346987_11808.cpp:12:5: error: 'll' does not name a type
     ll sum[MAXN << 2];
     ^
0_0_35346987_11808.cpp:140:5: error: 'll' does not name a type
     ll QuerySum(int u, int l, int r, int L, int R) {
     ^
0_0_35346987_11808.cpp: In member function 'void SegmentTreeBeats::PushUp(int)':
0_0_35346987_11808.cpp:17:9: error: 'sum' was not declared in this scope
         sum[u] = sum[ls] + sum[rs];
         ^
0_0_35346987_11808.cpp:20:42: error: 'min' was not declared in this scope
             mi2[u] = min(mi2[ls], mi1[rs]);
                                          ^
0_0_35346987_11808.cpp:23:42: error: 'min' was not declared in this scope
             mi2[u] = min(mi1[ls], mi2[rs]);
                                          ^
0_0_35346987_11808.cpp:26:42: error: 'min' was not declared in this scope
             mi2[u] = min(mi2[ls], mi2[rs]);
                                          ^
0_0_35346987_11808.cpp:30:42: error: 'max' was not declared in this scope
             mx2[u] = max(mx1[ls], mx2[rs]);
                                          ^
0_0_35346987_11808.cpp:33:42: error: 'max' was not declared in this scope
             mx2[u] = max(mx2[ls], mx1[rs]);
                                          ^
0_0_35346987_11808.cpp:36:42: error: 'max' was not declared in this scope
             mx2[u] = max(mx2[ls], mx2[rs]);
                                          ^
0_0_35346987_11808.cpp: In member function 'void SegmentTreeBeats::PushTagAdd(int, int, int, int)':
0_0_35346987_11808.cpp:41:9: error: 'sum' was not declared in this scope
         sum[u] += 1LL * (r - l + 1) * t;
         ^
0_0_35346987_11808.cpp: In member function 'void SegmentTreeBeats::PushTagMin(int, int)':
0_0_35346987_11808.cpp:52:9: error: 'sum' was not declared in this scope
         sum[u] += 1LL * (t - mx1[u]) * cmx[u];
         ^
0_0_35346987_11808.cpp: In member function 'void SegmentTreeBeats::PushTagMax(int, int)':
0_0_35346987_11808.cpp:62:9: error: 'sum' was not declared in this scope
         sum[u] += 1LL * (t - mi1[u]) * cmi[u];
         ^
0_0_35346987_11808.cpp: In member function 'void SegmentTreeBeats::Build(int, int, int)':
0_0_35346987_11808.cpp:93:13: error: 'sum' was not declared in this scope
             sum[u] = mi1[u] = mx1[u] = a[l];
             ^
0_0_35346987_11808.cpp:93:40: error: 'a' was not declared in this scope
             sum[u] = mi1[u] = mx1[u] = a[l];
                                        ^
0_0_35346987_11808.cpp: In member function 'int SegmentTreeBeats::QueryMin(int, int, int, int, int)':
0_0_35346987_11808.cpp:155:63: error: 'min' was not declared in this scope
         if(L <= mid) res = min(res, QueryMin(ls, l, mid, L, R));
                                                               ^
0_0_35346987_11808.cpp:156:71: error: 'min' was not declared in this scope
         if(R >= mid + 1) res = min(res, QueryMin(rs, mid + 1, r, L, R));
                                                                       ^
0_0_35346987_11808.cpp: In member function 'int SegmentTreeBeats::QueryMax(int, int, int, int, int)':
0_0_35346987_11808.cpp:165:63: error: 'max' was not declared in this scope
         if(L <= mid) res = max(res, QueryMax(ls, l, mid, L, R));
                                                               ^
0_0_35346987_11808.cpp:166:71: error: 'max' was not declared in this scope
         if(R >= mid + 1) res = max(res, QueryMax(rs, mid + 1, r, L, R));
                                                                       ^


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-06-22 18:46:22, Gzip enabled