0_0_28962534_7727.cpp: In member function 'int node_t::front()':
0_0_28962534_7727.cpp:18:30: error: 'st' was not declared in this scope
inline int front() { return st.top(); }
^
0_0_28962534_7727.cpp: In member function 'int node_t::back()':
0_0_28962534_7727.cpp:19:29: error: 'has' was not declared in this scope
inline int back() { return has.top(); }
^
0_0_28962534_7727.cpp: In member function 'void node_t::build(int, int)':
0_0_28962534_7727.cpp:21:3: error: 'lb' was not declared in this scope
lb = l;
^
0_0_28962534_7727.cpp:23:4: error: 'b' was not declared in this scope
b[++tot] = a[k];
^
0_0_28962534_7727.cpp:23:8: error: 'tot' was not declared in this scope
b[++tot] = a[k];
^
0_0_28962534_7727.cpp:23:15: error: 'a' was not declared in this scope
b[++tot] = a[k];
^
0_0_28962534_7727.cpp:24:4: error: 'has' was not declared in this scope
has.push(a[k]);
^
0_0_28962534_7727.cpp:25:4: error: 'sum' was not declared in this scope
sum += a[k];
^
0_0_28962534_7727.cpp:27:3: error: 'st' was not declared in this scope
st.push(b[1]);
^
0_0_28962534_7727.cpp:27:11: error: 'b' was not declared in this scope
st.push(b[1]);
^
0_0_28962534_7727.cpp: In member function 'void node_t::rebuild(int, int)':
0_0_28962534_7727.cpp:30:3: error: 'pq_t' was not declared in this scope
pq_t tmp = has;
^
0_0_28962534_7727.cpp:31:11: error: 'tmp' was not declared in this scope
while (!tmp.empty()) c[]
^
0_0_28962534_7727.cpp:31:24: error: 'c' was not declared in this scope
while (!tmp.empty()) c[]
^
0_0_28962534_7727.cpp:31:26: error: expected primary-expression before ']' token
while (!tmp.empty()) c[]
^
0_0_28962534_7727.cpp:33:8: error: expected ';' before 'cur'
pq_t cur;
^
0_0_28962534_7727.cpp:34:15: error: 'tot' was not declared in this scope
rep (i, min(tot, num)) cur.push(c[i]);
^
0_0_28962534_7727.cpp:2:42: note: in definition of macro 'rep'
#define rep(i, n) for (rint i = 1; i <= (n); i ++)
^
0_0_28962534_7727.cpp:34:20: error: 'num' was not declared in this scope
rep (i, min(tot, num)) cur.push(c[i]);
^
0_0_28962534_7727.cpp:2:42: note: in definition of macro 'rep'
#define rep(i, n) for (rint i = 1; i <= (n); i ++)
^
0_0_28962534_7727.cpp:34:26: error: 'cur' was not declared in this scope
rep (i, min(tot, num)) cur.push(c[i]);
^
0_0_28962534_7727.cpp:34:35: error: 'c' was not declared in this scope
rep (i, min(tot, num)) cur.push(c[i]);
^
0_0_28962534_7727.cpp:35:11: error: 'tot' was not declared in this scope
rep (i, tot) {
^
0_0_28962534_7727.cpp:2:42: note: in definition of macro 'rep'
#define rep(i, n) for (rint i = 1; i <= (n); i ++)
^
0_0_28962534_7727.cpp:36:18: error: 'num' was not declared in this scope
int nxt = i + num;
^
0_0_28962534_7727.cpp:37:20: error: 'cur' was not declared in this scope
if (nxt <= tot) cur.push(c[nxt]);
^
0_0_28962534_7727.cpp:37:29: error: 'c' was not declared in this scope
if (nxt <= tot) cur.push(c[nxt]);
^
0_0_28962534_7727.cpp:38:4: error: 'b' was not declared in this scope
b[i] = cur.top();
^
0_0_28962534_7727.cpp:38:11: error: 'cur' was not declared in this scope
b[i] = cur.top();
^
0_0_28962534_7727.cpp:42:12: error: 'lb' was not declared in this scope
l = l - lb + 1; r = r - lb + 1;
^
0_0_28962534_7727.cpp:44:9: error: 'b' was not declared in this scope
if (b[k] > b[k + 1]) swap(b[k], b[k + 1]);
^
0_0_28962534_7727.cpp:46:3: error: 'st' was not declared in this scope
st.clear(); st.push(b[1]);
^
0_0_28962534_7727.cpp:46:23: error: 'b' was not declared in this scope
st.clear(); st.push(b[1]);
^
0_0_28962534_7727.cpp:47:3: error: 'num' was not declared in this scope
num = 0;
^
In file included from GCC4.9.2/x86_64-w64-mingw32/include/c++/cassert:43:0,
from GCC4.9.2/x86_64-w64-mingw32/include/c++/x86_64-w64-mingw32/bits/stdc++.h:33,
from 0_0_28962534_7727.cpp:1:
0_0_28962534_7727.cpp: In member function 'int node_t::getsum(int, int)':
0_0_28962534_7727.cpp:50:10: error: 'num' was not declared in this scope
assert(num == 0);
^
0_0_28962534_7727.cpp:51:11: error: 'lb' was not declared in this scope
l = l - lb + 1; r = r - lb + 1;
^
0_0_28962534_7727.cpp:54:11: error: 'b' was not declared in this scope
sum += b[k];
^
0_0_28962534_7727.cpp: In member function 'void node_t::PT()':
0_0_28962534_7727.cpp:58:5: error: 'num' was not declared in this scope
++num;
^
0_0_28962534_7727.cpp:59:18: error: 'tot' was not declared in this scope
if (num + 1 <= tot) st.push(b[num + 1]);
^
0_0_28962534_7727.cpp:59:23: error: 'st' was not declared in this scope
if (num + 1 <= tot) st.push(b[num + 1]);
^
0_0_28962534_7727.cpp:59:31: error: 'b' was not declared in this scope
if (num + 1 <= tot) st.push(b[num + 1]);
^
0_0_28962534_7727.cpp: In member function 'void node_t::push_front(int, int)':
0_0_28962534_7727.cpp:62:3: error: 'sum' was not declared in this scope
sum += add - del;
^
In file included from GCC4.9.2/x86_64-w64-mingw32/include/c++/cassert:43:0,
from GCC4.9.2/x86_64-w64-mingw32/include/c++/x86_64-w64-mingw32/bits/stdc++.h:33,
from 0_0_28962534_7727.cpp:1:
0_0_28962534_7727.cpp:63:10: error: 'st' was not declared in this scope
assert(st.top == del); st.pop();
^
0_0_28962534_7727.cpp:65:3: error: 'has' was not declared in this scope
has.del(del); has.push(add);
^
0_0_28962534_7727.cpp: In member function 'void node_t::push_back(int, int)':
0_0_28962534_7727.cpp:68:3: error: 'sum' was not declared in this scope
sum += add - del;
^
0_0_28962534_7727.cpp:69:3: error: 'has' was not declared in this scope
has.del(del); has.push(add);
^
0_0_28962534_7727.cpp: In function 'void Sort(int, int)':
0_0_28962534_7727.cpp:74:6: error: 'bl' was not declared in this scope
if (bl[l] == bl[r]) {
^
0_0_28962534_7727.cpp:75:3: error: 'T' was not declared in this scope
T[bl[l]].rebuild(l, r);
^
0_0_28962534_7727.cpp:78:15: error: 'R' was not declared in this scope
blockSort(l, R[bl[l]]);
^
0_0_28962534_7727.cpp:78:17: error: 'bl' was not declared in this scope
blockSort(l, R[bl[l]]);
^
0_0_28962534_7727.cpp:78:23: error: 'blockSort' was not declared in this scope
blockSort(l, R[bl[l]]);
^
0_0_28962534_7727.cpp:80:13: error: 'T' was not declared in this scope
int pre = T[k - 1].back();
^
0_0_28962534_7727.cpp:88:12: error: 'L' was not declared in this scope
blockSort(L[bl[r]], r);
^
0_0_28962534_7727.cpp: In function 'int Query(int, int)':
0_0_28962534_7727.cpp:92:6: error: 'bl' was not declared in this scope
if (bl[l] == bl[r]) {
^
0_0_28962534_7727.cpp:93:3: error: 'T' was not declared in this scope
T[bl[l]].rebuild();
^
0_0_28962534_7727.cpp:96:2: error: 'T' was not declared in this scope
T[bl[l]].rebuild(); T[bl[r]].rebuild();
^
0_0_28962534_7727.cpp:96:4: error: 'bl' was not declared in this scope
T[bl[l]].rebuild(); T[bl[r]].rebuild();
^
0_0_28962534_7727.cpp:98:28: error: 'R' was not declared in this scope
ans += T[bl[l]].getsum(l, R[bl[l]]);
^
0_0_28962534_7727.cpp:101:25: error: 'L' was not declared in this scope
ans += T[bl[r]].getsum(L[bl[r]], r);
^
0_0_28962534_7727.cpp: In function 'int main()':
0_0_28962534_7727.cpp:106:7: error: 'n' was not declared in this scope
read(n); read(m); K = sqrt(n);
^
0_0_28962534_7727.cpp:106:16: error: 'm' was not declared in this scope
read(n); read(m); K = sqrt(n);
^
0_0_28962534_7727.cpp:106:20: error: 'K' was not declared in this scope
read(n); read(m); K = sqrt(n);
^
0_0_28962534_7727.cpp:108:8: error: 'a' was not declared in this scope
read(a[i]);
^
0_0_28962534_7727.cpp:109:3: error: 'bl' was not declared in this scope
bl[i] = (i - 1) / K + 1;
^
0_0_28962534_7727.cpp:110:8: error: 'L' was not declared in this scope
if (!L[bl[i]]) L[bl[i]] = i;
^
0_0_28962534_7727.cpp:111:3: error: 'R' was not declared in this scope
R[bl[i]] = i;
^
0_0_28962534_7727.cpp:113:10: error: 'bl' was not declared in this scope
rep (i, bl[n]) T[i].build(L[i], R[i]);
^
0_0_28962534_7727.cpp:2:42: note: in definition of macro 'rep'
#define rep(i, n) for (rint i = 1; i <= (n); i ++)
^
0_0_28962534_7727.cpp:113:17: error: 'T' was not declared in this scope
rep (i, bl[n]) T[i].build(L[i], R[i]);
^
0_0_28962534_7727.cpp:113:28: error: 'L' was not declared in this scope
rep (i, bl[n]) T[i].bui
|