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();
^
|