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_30848622_19673.cpp:55:1: error: 'list' does not name a type
 list<node>que;
 ^
0_0_30848622_19673.cpp:56:10: error: 'list' was not declared in this scope
 map<int, list<node>::iterator>check;
          ^
0_0_30848622_19673.cpp:56:19: error: template argument 2 is invalid
 map<int, list<node>::iterator>check;
                   ^
0_0_30848622_19673.cpp:56:19: error: template argument 4 is invalid
0_0_30848622_19673.cpp:56:30: error: expected initializer before '>' token
 map<int, list<node>::iterator>check;
                              ^
0_0_30848622_19673.cpp: In function 'void Add()':
0_0_30848622_19673.cpp:63:6: error: 'check' was not declared in this scope
  if (check.count(u) != 0)
      ^
0_0_30848622_19673.cpp:69:2: error: 'que' was not declared in this scope
  que.push_back({ u,0 });
  ^
0_0_30848622_19673.cpp:70:2: error: 'list' was not declared in this scope
  list<node>::iterator it = que.end();
  ^
0_0_30848622_19673.cpp:70:11: error: expected primary-expression before '>' token
  list<node>::iterator it = que.end();
           ^
0_0_30848622_19673.cpp:70:23: error: missing template arguments before 'it'
  list<node>::iterator it = que.end();
                       ^
0_0_30848622_19673.cpp:71:2: error: 'it' was not declared in this scope
  it--;
  ^
0_0_30848622_19673.cpp:72:2: error: 'check' was not declared in this scope
  check[u] = it;
  ^
0_0_30848622_19673.cpp: In function 'void Close()':
0_0_30848622_19673.cpp:79:6: error: 'check' was not declared in this scope
  if (check.count(u) == 0)
      ^
0_0_30848622_19673.cpp:84:37: error: 'check' was not declared in this scope
  printf("close %d with %d.\n", u, (*check[u]).w);
                                     ^
0_0_30848622_19673.cpp:85:2: error: 'que' was not declared in this scope
  que.erase(check[u]);
  ^
0_0_30848622_19673.cpp: In function 'void Chat()':
0_0_30848622_19673.cpp:94:6: error: 'que' was not declared in this scope
  if (que.empty())
      ^
0_0_30848622_19673.cpp:101:5: error: 'check' was not declared in this scope
   (*check[topu]).w += x;
     ^
0_0_30848622_19673.cpp:103:5: error: 'que' was not declared in this scope
   (*que.begin()).w += x;
     ^
0_0_30848622_19673.cpp: In function 'void Rotate()':
0_0_30848622_19673.cpp:110:15: error: 'que' was not declared in this scope
  if (x<1 || x>que.size())
               ^
0_0_30848622_19673.cpp:117:2: error: 'list' was not declared in this scope
  list<node>::iterator it = que.begin();
  ^
0_0_30848622_19673.cpp:117:11: error: expected primary-expression before '>' token
  list<node>::iterator it = que.begin();
           ^
0_0_30848622_19673.cpp:117:23: error: missing template arguments before 'it'
  list<node>::iterator it = que.begin();
                       ^
0_0_30848622_19673.cpp:119:13: error: 'it' was not declared in this scope
  while (x--)it++;
             ^
0_0_30848622_19673.cpp:120:14: error: 'it' was not declared in this scope
  node res = *it;
              ^
0_0_30848622_19673.cpp:121:2: error: 'que' was not declared in this scope
  que.erase(it);
  ^
0_0_30848622_19673.cpp:123:2: error: 'check' was not declared in this scope
  check[res.u] = que.begin();
  ^
0_0_30848622_19673.cpp: In function 'void Prior()':
0_0_30848622_19673.cpp:128:6: error: 'que' was not declared in this scope
  if (que.empty())
      ^
0_0_30848622_19673.cpp:135:11: error: 'list' was not declared in this scope
  map<int, list<node>::iterator>::iterator it = check.end();
           ^
0_0_30848622_19673.cpp:135:20: error: template argument 2 is invalid
  map<int, list<node>::iterator>::iterator it = check.end();
                    ^
0_0_30848622_19673.cpp:135:20: error: template argument 4 is invalid
0_0_30848622_19673.cpp:135:31: error: qualified-id in declaration before '>' token
  map<int, list<node>::iterator>::iterator it = check.end();
                               ^
0_0_30848622_19673.cpp:136:2: error: 'it' was not declared in this scope
  it--;
  ^
0_0_30848622_19673.cpp:138:2: error: 'que' was not declared in this scope
  que.erase((*it).second);
  ^
0_0_30848622_19673.cpp:140:2: error: 'check' was not declared in this scope
  check[res.u] = que.begin();
  ^
0_0_30848622_19673.cpp: In function 'void Choose()':
0_0_30848622_19673.cpp:147:6: error: 'check' was not declared in this scope
  if (check.count(u) == 0)
      ^
0_0_30848622_19673.cpp:153:15: error: 'check' was not declared in this scope
  node res = (*check[u]);
               ^
0_0_30848622_19673.cpp:154:2: error: 'que' was not declared in this scope
  que.erase(check[u]);
  ^
0_0_30848622_19673.cpp: In function 'void Top()':
0_0_30848622_19673.cpp:163:6: error: 'check' was not declared in this scope
  if (check.count(u) == 0)
      ^
0_0_30848622_19673.cpp: In function 'int main()':
0_0_30848622_19673.cpp:191:3: error: 'que' was not declared in this scope
   que.clear();
   ^
0_0_30848622_19673.cpp:192:3: error: 'check' was not declared in this scope
   check.clear();
   ^
0_0_30848622_19673.cpp:214:18: error: unable to deduce 'auto&&' from 'que'
    for (auto p : que)
                  ^


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-22 22:49:01, Gzip enabled