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_33865547_19221.cpp:26:1: error: 'deque' does not name a type
 deque<int> Q[N];
 ^
0_0_33865547_19221.cpp: In function 'int main()':
0_0_33865547_19221.cpp:34:15: error: 'Q' was not declared in this scope
     if (w==0) Q[u].push_front(val);
               ^
0_0_33865547_19221.cpp:35:10: error: 'Q' was not declared in this scope
     else Q[u].push_back(val);
          ^
0_0_33865547_19221.cpp:38:9: error: 'Q' was not declared in this scope
     if (Q[u].empty()) { puts("-1"); continue; }
         ^
0_0_33865547_19221.cpp:39:29: error: 'Q' was not declared in this scope
     if (w==0) printf("%d\n",Q[u].front()),Q[u].pop_front();
                             ^
0_0_33865547_19221.cpp:40:24: error: 'Q' was not declared in this scope
     else printf("%d\n",Q[u].back()),Q[u].pop_back();
                        ^
0_0_33865547_19221.cpp:44:14: error: 'Q' was not declared in this scope
      while (!Q[v].empty()) Q[u].push_back(Q[v].front()),Q[v].pop_front();
              ^
0_0_33865547_19221.cpp:46:14: error: 'Q' was not declared in this scope
      while (!Q[v].empty()) Q[u].push_back(Q[v].back()),Q[v].pop_back();
              ^
0_0_33865547_19221.cpp:50:26: error: 'Q' was not declared in this scope
   for (int i=1;i<=n;++i) Q[i].clear();
                          ^


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-23 05:46:25, Gzip enabled