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_25771417_25567.cpp:12:9: error: 'pair' does not name a type
 typedef pair<int, int> pii;
         ^
0_0_25771417_25567.cpp:13:1: error: 'pii' does not name a type
 pii s[N], val[N];
 ^
0_0_25771417_25567.cpp: In function 'int push_up(int)':
0_0_25771417_25567.cpp:15:36: error: 's' was not declared in this scope
 inline int push_up(int x) { return s[x] = min(val[x], min(s[ch[x][0]], s[ch[x][1]])), 0; }
                                    ^
0_0_25771417_25567.cpp:15:47: error: 'val' was not declared in this scope
 inline int push_up(int x) { return s[x] = min(val[x], min(s[ch[x][0]], s[ch[x][1]])), 0; }
                                               ^
0_0_25771417_25567.cpp:15:83: error: 'min' was not declared in this scope
 inline int push_up(int x) { return s[x] = min(val[x], min(s[ch[x][0]], s[ch[x][1]])), 0; }
                                                                                   ^
0_0_25771417_25567.cpp:15:84: error: 'min' was not declared in this scope
 inline int push_up(int x) { return s[x] = min(val[x], min(s[ch[x][0]], s[ch[x][1]])), 0; }
                                                                                    ^
0_0_25771417_25567.cpp:15:84: error: redeclaration of '<typeprefixerror>min'
0_0_25771417_25567.cpp:15:83: note: previous declaration '<typeprefixerror>min'
 inline int push_up(int x) { return s[x] = min(val[x], min(s[ch[x][0]], s[ch[x][1]])), 0; }
                                                                                   ^
0_0_25771417_25567.cpp: In function 'int rotate(int)':
0_0_25771417_25567.cpp:20:26: error: 'swap' was not declared in this scope
  return swap(pf[x], pf[y]), setc(y, c, a), setc(x, y, a ^ 1), setc(z, x, b);
                          ^
0_0_25771417_25567.cpp: In function 'int push_down(int)':
0_0_25771417_25567.cpp:25:25: error: 'swap' was not declared in this scope
  swap(ch[x][0], ch[x][1]);
                         ^
0_0_25771417_25567.cpp: In function 'int query(int, int)':
0_0_25771417_25567.cpp:65:72: error: 's' was not declared in this scope
 inline int query(int x, int y) { return evert(x), access(y), splay(x), s[x].sec; }
                                                                        ^
0_0_25771417_25567.cpp: At global scope:
0_0_25771417_25567.cpp:77:2: error: 'multiset' does not name a type
  multiset<int> L, R; int Lc, Rc, c; ll Ls, Rs;
  ^
0_0_25771417_25567.cpp:77:37: error: 'll' does not name a type
  multiset<int> L, R; int Lc, Rc, c; ll Ls, Rs;
                                     ^
0_0_25771417_25567.cpp:93:9: error: 'll' does not name a type
  inline ll calc(int n) { return Rs - Ls - (n & 1)*(*(R.begin())); }
         ^
0_0_25771417_25567.cpp: In member function 'int H::init(int)':
0_0_25771417_25567.cpp:78:34: error: 'L' was not declared in this scope
  inline int init(int n) { return L.clear(), R.clear(), Ls = Rs = Lc = Rc = 0, c = n; }
                                  ^
0_0_25771417_25567.cpp:78:45: error: 'R' was not declared in this scope
  inline int init(int n) { return L.clear(), R.clear(), Ls = Rs = Lc = Rc = 0, c = n; }
                                             ^
0_0_25771417_25567.cpp:78:56: error: 'Ls' was not declared in this scope
  inline int init(int n) { return L.clear(), R.clear(), Ls = Rs = Lc = Rc = 0, c = n; }
                                                        ^
0_0_25771417_25567.cpp:78:61: error: 'Rs' was not declared in this scope
  inline int init(int n) { return L.clear(), R.clear(), Ls = Rs = Lc = Rc = 0, c = n; }
                                                             ^
0_0_25771417_25567.cpp: In member function 'int H::push(int)':
0_0_25771417_25567.cpp:80:3: error: 'L' was not declared in this scope
   L.insert(x), Lc++, Ls += x; int v;
   ^
0_0_25771417_25567.cpp:80:22: error: 'Ls' was not declared in this scope
   L.insert(x), Lc++, Ls += x; int v;
                      ^
0_0_25771417_25567.cpp:81:15: error: 'R' was not declared in this scope
   if (Lc > c) R.insert(v = *(L.rbegin())), Rs += v, Rc++, L.erase(L.find(v)), Ls -= v, Lc--;
               ^
0_0_25771417_25567.cpp:81:44: error: 'Rs' was not declared in this scope
   if (Lc > c) R.insert(v = *(L.rbegin())), Rs += v, Rc++, L.erase(L.find(v)), Ls -= v, Lc--;
                                            ^
0_0_25771417_25567.cpp: In member function 'int H::pop(int)':
0_0_25771417_25567.cpp:85:19: error: 'L' was not declared in this scope
   if (!Rc) return L.erase(L.find(x)), Ls -= x, Lc--;
                   ^
0_0_25771417_25567.cpp:85:39: error: 'Ls' was not declared in this scope
   if (!Rc) return L.erase(L.find(x)), Ls -= x, Lc--;
                                       ^
0_0_25771417_25567.cpp:86:13: error: 'R' was not declared in this scope
   int v = *(R.begin());
             ^
0_0_25771417_25567.cpp:87:35: error: 'Rs' was not declared in this scope
   if (x >= v) R.erase(R.find(x)), Rs -= x, Rc--;
                                   ^
0_0_25771417_25567.cpp:88:8: error: 'L' was not declared in this scope
   else L.erase(L.find(x)), Ls -= x, Lc--;
        ^
0_0_25771417_25567.cpp:88:28: error: 'Ls' was not declared in this scope
   else L.erase(L.find(x)), Ls -= x, Lc--;
                            ^
0_0_25771417_25567.cpp:89:57: error: 'L' was not declared in this scope
   if (Lc < c&&Rc) v = *(R.begin()), R.erase(R.find(v)), L.insert(v), Lc++, Rc--, Ls += v, Rs -= v;
                                                         ^
0_0_25771417_25567.cpp:89:82: error: 'Ls' was not declared in this scope
   if (Lc < c&&Rc) v = *(R.begin()), R.erase(R.find(v)), L.insert(v), Lc++, Rc--, Ls += v, Rs -= v;
                                                                                  ^
0_0_25771417_25567.cpp:89:91: error: 'Rs' was not declared in this scope
   if (Lc < c&&Rc) v = *(R.begin()), R.erase(R.find(v)), L.insert(v), Lc++, Rc--, Ls += v, Rs -= v;
                                                                                           ^
0_0_25771417_25567.cpp: In function 'int main()':
0_0_25771417_25567.cpp:97:15: error: 'rint' was not declared in this scope
  int t = rint(); while (t--) {
               ^
0_0_25771417_25567.cpp:100:24: error: 'sort' was not declared in this scope
   sort(e + 1, e + m + 1);
                        ^
0_0_25771417_25567.cpp:101:32: error: 'val' was not declared in this scope
   for (int i = 0; i <= n; i++) val[i] = s[i] = mp(INF, 0);
                                ^
0_0_25771417_25567.cpp:101:41: error: 's' was not declared in this scope
   for (int i = 0; i <= n; i++) val[i] = s[i] = mp(INF, 0);
                                         ^
0_0_25771417_25567.cpp:8:14: error: 'INT_MAX' was not declared in this scope
 #define INF (INT_MAX-10)
              ^
0_0_25771417_25567.cpp:101:51: note: in expansion of macro 'INF'
   for (int i = 0; i <= n; i++) val[i] = s[i] = mp(INF, 0);
                                                   ^
0_0_25771417_25567.cpp:101:57: error: 'make_pair' was not declared in this scope
   for (int i = 0; i <= n; i++) val[i] = s[i] = mp(INF, 0);
                                                         ^
0_0_25771417_25567.cpp:102:32: error: 'val' was not declared in this scope
   for (int i = 1; i <= m; i++) val[n + i] = s[n + i] = mp(e[i].w, i);
                                ^
0_0_25771417_25567.cpp:102:45: error: 's' was not declared in this scope
   for (int i = 1; i <= m; i++) val[n + i] = s[n + i] = mp(e[i].w, i);
                                             ^
0_0_25771417_25567.cpp:102:68: error: 'make_pair' was not declared in this scope
   for (int i = 1; i <= m; i++) val[n + i] = s[n + i] = mp(e[i].w, i);
                                                                    ^
0_0_25771417_25567.cpp:8:14: error: 'INT_MAX' was not declared in this scope
 #define INF (INT_MAX-10)
              ^
0_0_25771417_25567.cpp:103:42: note: in expansion of macro 'INF'
   for (int i = 1; i <= m; i++) e[i].l = -INF, e[i].r = INF;
                                          ^
0_0_25771417_25567.cpp:109:14: error: 'll' was not declared in this scope
   int c = 0; ll ans = LLONG_MAX;
              ^
0_0_25771417_25567.cpp:117:27: error: 'ans' was not declared in this scope
    if (h.size() == n - 1) ans = min(ans, h.calc(n - 1));
                           ^
0_0_25771417_25567.cpp:117:44: error: 'struct H' has no member named 'calc'
    if (h.size() == n - 1) ans = min(ans, h.calc(n - 1));
                                            ^
0_0_25771417_25567.cpp:117:55: error: 'min' was not declared in this scope
    if (h.size() == n - 1) ans = min(ans, h.calc(n - 1));
                                                       ^
0_0_25771417_25567.cpp:119:20: error: 'ans' was not declared in this scope
   printf("%lld\n", ans % 998244353);
                    ^
0_0_25771417_25567.cpp:119:35: error: 'printf' was not declared in this scope
   printf("%lld\n", ans % 998244353);
                                   ^


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-26 16:59:21, Gzip enabled