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_29026871_30849.cpp:25:1: error: 'LL' does not name a type
 LL sum[4 * msz], mx[4 * msz], mn[4 * msz], lz[4 * msz];
 ^
0_0_29026871_30849.cpp: In function 'void down(int, int, int)':
0_0_29026871_30849.cpp:29:7: error: 'lz' was not declared in this scope
  if (!lz[root]) return;
       ^
0_0_29026871_30849.cpp:31:2: error: 'mx' was not declared in this scope
  mx[root << 1] += lz[root];
  ^
0_0_29026871_30849.cpp:31:19: error: 'lz' was not declared in this scope
  mx[root << 1] += lz[root];
                   ^
0_0_29026871_30849.cpp:34:2: error: 'mn' was not declared in this scope
  mn[root << 1] += lz[root];
  ^
0_0_29026871_30849.cpp:37:2: error: 'sum' was not declared in this scope
  sum[root << 1] += lz[root] * (mid - l + 1);
  ^
0_0_29026871_30849.cpp: In function 'void up(int)':
0_0_29026871_30849.cpp:47:2: error: 'sum' was not declared in this scope
  sum[root] = sum[root << 1] + sum[root << 1 | 1];
  ^
0_0_29026871_30849.cpp:48:2: error: 'mx' was not declared in this scope
  mx[root] = max(mx[root << 1], mx[root << 1 | 1]);
  ^
0_0_29026871_30849.cpp:49:2: error: 'mn' was not declared in this scope
  mn[root] = min(mn[root << 1], mn[root << 1 | 1]);
  ^
0_0_29026871_30849.cpp: At global scope:
0_0_29026871_30849.cpp:52:50: error: 'LL' has not been declared
 void Add(int root, int l, int r, int ll, int rr, LL ad)
                                                  ^
0_0_29026871_30849.cpp: In function 'void Add(int, int, int, int, int, int)':
0_0_29026871_30849.cpp:56:3: error: 'lz' was not declared in this scope
   lz[root] += ad;
   ^
0_0_29026871_30849.cpp:57:3: error: 'sum' was not declared in this scope
   sum[root] += ad * (r - l + 1);
   ^
0_0_29026871_30849.cpp:58:3: error: 'mx' was not declared in this scope
   mx[root] += ad;
   ^
0_0_29026871_30849.cpp:59:3: error: 'mn' was not declared in this scope
   mn[root] += ad;
   ^
0_0_29026871_30849.cpp: At global scope:
0_0_29026871_30849.cpp:78:1: error: 'LL' does not name a type
 LL Sum(int root, int l, int r, int ll, int rr)
 ^
0_0_29026871_30849.cpp: In function 'void Sqrt(int, int, int, int, int)':
0_0_29026871_30849.cpp:98:3: error: 'LL' was not declared in this scope
   LL cut;
   ^
0_0_29026871_30849.cpp:99:7: error: 'mx' was not declared in this scope
   if (mx[root] == mn[root])
       ^
0_0_29026871_30849.cpp:99:19: error: 'mn' was not declared in this scope
   if (mx[root] == mn[root])
                   ^
0_0_29026871_30849.cpp:101:4: error: 'cut' was not declared in this scope
    cut = mx[root] - floor(sqrt(mx[root] * 1.0));
    ^
0_0_29026871_30849.cpp:101:46: error: 'sqrt' was not declared in this scope
    cut = mx[root] - floor(sqrt(mx[root] * 1.0));
                                              ^
0_0_29026871_30849.cpp:101:47: error: 'floor' was not declared in this scope
    cut = mx[root] - floor(sqrt(mx[root] * 1.0));
                                               ^
0_0_29026871_30849.cpp:102:4: error: 'lz' was not declared in this scope
    lz[root] -= cut;
    ^
0_0_29026871_30849.cpp:103:4: error: 'sum' was not declared in this scope
    sum[root] -= cut * (r - l + 1);
    ^
0_0_29026871_30849.cpp:109:7: error: expected ';' before 't1'
    LL t1, t2;
       ^
0_0_29026871_30849.cpp:110:4: error: 't1' was not declared in this scope
    t1 = floor(sqrt(mx[root] * 1.0));
    ^
0_0_29026871_30849.cpp:110:34: error: 'sqrt' was not declared in this scope
    t1 = floor(sqrt(mx[root] * 1.0));
                                  ^
0_0_29026871_30849.cpp:110:35: error: 'floor' was not declared in this scope
    t1 = floor(sqrt(mx[root] * 1.0));
                                   ^
0_0_29026871_30849.cpp:111:4: error: 't2' was not declared in this scope
    t2 = floor(sqrt(mn[root] * 1.0));
    ^
0_0_29026871_30849.cpp:114:5: error: 'cut' was not declared in this scope
     cut = mx[root] - t1;
     ^
0_0_29026871_30849.cpp:115:5: error: 'lz' was not declared in this scope
     lz[root] -= cut;
     ^
0_0_29026871_30849.cpp:116:5: error: 'sum' was not declared in this scope
     sum[root] -= cut * (r - l + 1);
     ^
0_0_29026871_30849.cpp:132:3: error: 'S' was not declared in this scope
   S
   ^
0_0_29026871_30849.cpp:132:3: error: expected '}' at end of input
0_0_29026871_30849.cpp:132:3: error: expected '}' at end of input


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-29 19:30:11, Gzip enabled