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