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_30399640_26809.cpp:39:22: error: conflicting declaration 'std::priority_queue<node> que'
 priority_queue<node> que;
                      ^
0_0_30399640_26809.cpp:31:14: note: previous declaration as 'std::vector<node> que'
 vector<node> que;
              ^
0_0_30399640_26809.cpp: In function 'void bfs()':
0_0_30399640_26809.cpp:46:15: error: 'class std::vector<node>' has no member named 'top'
         x=que.top();
               ^
0_0_30399640_26809.cpp:47:13: error: 'class std::vector<node>' has no member named 'pop'
         que.pop();
             ^
0_0_30399640_26809.cpp:54:13: error: expected primary-expression before '}' token
             }
             ^
0_0_30399640_26809.cpp:54:13: error: return-statement with a value, in function returning 'void' [-fpermissive]
0_0_30399640_26809.cpp:54:13: error: expected ';' before '}' token
0_0_30399640_26809.cpp:63:17: error: 'class std::vector<node>' has no member named 'push'
             que.push(node{x.from,y.to,x.sum+y.sum});
                 ^
0_0_30399640_26809.cpp: In function 'int main()':
0_0_30399640_26809.cpp:80:14: error: 'class std::vector<node>' has no member named 'pop'
          que.pop();
              ^
0_0_30399640_26809.cpp:85:17: error: 'class std::vector<node>' has no member named 'push'
             que.push(node{x,y,z});
                 ^


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-16 18:20:29, Gzip enabled