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_32594002_15863.cpp: In function 'int main()':
0_0_32594002_15863.cpp:17:24: error: '_node' was not declared in this scope
         priority_queue<_node> q[N+1];
                        ^
0_0_32594002_15863.cpp:17:29: error: template argument 1 is invalid
         priority_queue<_node> q[N+1];
                             ^
0_0_32594002_15863.cpp:17:29: error: template argument 2 is invalid
0_0_32594002_15863.cpp:17:29: error: template argument 3 is invalid
0_0_32594002_15863.cpp:17:37: error: invalid type in declaration before ';' token
         priority_queue<_node> q[N+1];
                                     ^
0_0_32594002_15863.cpp:18:15: error: expected ';' before 't'
         _node t;
               ^
0_0_32594002_15863.cpp:23:24: error: 't' was not declared in this scope
                 cin >> t.name >> t.rp;
                        ^
0_0_32594002_15863.cpp:25:22: error: request for member 'push' in 'q[i]', which is of non-class type 'int'
                 q[i].push(t);
                      ^
0_0_32594002_15863.cpp:34:30: error: 't' was not declared in this scope
                 cin >> xi >> t.name >> t.rp;
                              ^
0_0_32594002_15863.cpp:36:23: error: request for member 'push' in 'q[xi]', which is of non-class type 'int'
                 q[xi].push(t);
                       ^
0_0_32594002_15863.cpp:39:30: error: request for member 'empty' in 'q[xj]', which is of non-class type 'int'
                 while(!q[xj].empty()) {
                              ^
0_0_32594002_15863.cpp:40:21: error: 't' was not declared in this scope
                     t = q[xj].top();
                     ^
0_0_32594002_15863.cpp:40:31: error: request for member 'top' in 'q[xj]', which is of non-class type 'int'
                     t = q[xj].top();
                               ^
0_0_32594002_15863.cpp:41:27: error: request for member 'push' in 'q[xi]', which is of non-class type 'int'
                     q[xi].push(t);
                           ^
0_0_32594002_15863.cpp:42:27: error: request for member 'pop' in 'q[xj]', which is of non-class type 'int'
                     q[xj].pop();
                           ^
0_0_32594002_15863.cpp:46:17: error: 't' was not declared in this scope
                 t = q[xi].top();
                 ^
0_0_32594002_15863.cpp:46:27: error: request for member 'top' in 'q[xi]', which is of non-class type 'int'
                 t = q[xi].top();
                           ^
0_0_32594002_15863.cpp:48:23: error: request for member 'pop' in 'q[xi]', which is of non-class type 'int'
                 q[xi].pop();
                       ^


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-06-26 11:00:21, Gzip enabled