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_29826034_24123.cpp: In function 'int main()':
0_0_29826034_24123.cpp:151:9: error: '__gnu_pbds' has not been declared
         __gnu_pbds::priority_queue<edge,greater<edge>,__gnu_pbds::pairing_heap_tag> q;
         ^
0_0_29826034_24123.cpp:151:40: error: expected primary-expression before ',' token
         __gnu_pbds::priority_queue<edge,greater<edge>,__gnu_pbds::pairing_heap_tag> q;
                                        ^
0_0_29826034_24123.cpp:151:54: error: expected primary-expression before ',' token
         __gnu_pbds::priority_queue<edge,greater<edge>,__gnu_pbds::pairing_heap_tag> q;
                                                      ^
0_0_29826034_24123.cpp:151:55: error: '__gnu_pbds' has not been declared
         __gnu_pbds::priority_queue<edge,greater<edge>,__gnu_pbds::pairing_heap_tag> q;
                                                       ^
0_0_29826034_24123.cpp:151:85: error: 'q' was not declared in this scope
         __gnu_pbds::priority_queue<edge,greater<edge>,__gnu_pbds::pairing_heap_tag> q;
                                                                                     ^
0_0_29826034_24123.cpp:152:16: error: '__gnu_pbds' was not declared in this scope
         vector<__gnu_pbds::priority_queue<edge,greater<edge>,__gnu_pbds::pairing_heap_tag>::point_iterator> pit(n+1);
                ^
0_0_29826034_24123.cpp:152:107: error: template argument 1 is invalid
         vector<__gnu_pbds::priority_queue<edge,greater<edge>,__gnu_pbds::pairing_heap_tag>::point_iterator> pit(n+1);
                                                                                                           ^
0_0_29826034_24123.cpp:152:107: error: template argument 2 is invalid
0_0_29826034_24123.cpp:152:112: error: invalid type in declaration before '(' token
         vector<__gnu_pbds::priority_queue<edge,greater<edge>,__gnu_pbds::pairing_heap_tag>::point_iterator> pit(n+1);
                                                                                                                ^
0_0_29826034_24123.cpp:157:14: error: invalid types 'int[int]' for array subscript
         pit[s]=q.push(edge(s,0LL));
              ^
0_0_29826034_24123.cpp:175:43: error: invalid types 'int[int]' for array subscript
                     if(pit[gr.g[minp][i].r]!=0)
                                           ^
0_0_29826034_24123.cpp:177:53: error: invalid types 'int[int]' for array subscript
                         q.modify(pit[gr.g[minp][i].r],edge(gr.g[minp][i].r,ans[gr.g[minp][i].r]));
                                                     ^
0_0_29826034_24123.cpp:181:44: error: invalid types 'int[int]' for array subscript
                         pit[gr.g[minp][i].r]=q.push(edge(gr.g[minp][i].r,ans[gr.g[minp][i].r]));
                                            ^


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-17 04:30:00, Gzip enabled