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_2176305_1393.cpp:8: error: expected unqualified-id before ')' token
0_0_2176305_1393.cpp:8: error: expected `,' or `;' before '{' token
GCC/bin/../lib/gcc/mingw32/3.4.2/../../../../include/c++/3.4.2/bits/stl_queue.h: In instantiation of `std::priority_queue<node, std::vector<node, std::allocator<node> >, cmp>':
0_0_2176305_1393.cpp:17:   instantiated from here
GCC/bin/../lib/gcc/mingw32/3.4.2/../../../../include/c++/3.4.2/bits/stl_queue.h:359: error: `std::priority_queue<_Tp, _Sequence, _Compare>::comp' has incomplete type
0_0_2176305_1393.cpp:8: error: forward declaration of `struct cmp'
0_0_2176305_1393.cpp:17: error: invalid use of undefined type `struct cmp'
0_0_2176305_1393.cpp:8: error: forward declaration of `struct cmp'
0_0_2176305_1393.cpp: In function `int main()':
0_0_2176305_1393.cpp:32: error: 'struct node' has no member named 'len'
GCC/bin/../lib/gcc/mingw32/3.4.2/../../../../include/c++/3.4.2/bits/stl_queue.h: In constructor `std::priority_queue<_Tp, _Sequence, _Compare>::priority_queue(const _Compare&, const _Sequence&) [with _Tp = node, _Sequence = std::vector<node, std::allocator<node> >, _Compare = cmp]':
0_0_2176305_1393.cpp:17:   instantiated from here
GCC/bin/../lib/gcc/mingw32/3.4.2/../../../../include/c++/3.4.2/bits/stl_queue.h:369: error: unnamed initializer for `std::priority_queue<node, std::vector<node, std::allocator<node> >, cmp>', which has no base classes
0_0_2176305_1393.cpp:17:   instantiated from here
GCC/bin/../lib/gcc/mingw32/3.4.2/../../../../include/c++/3.4.2/bits/stl_queue.h:369: error: `comp' undeclared (first use this function)
GCC/bin/../lib/gcc/mingw32/3.4.2/../../../../include/c++/3.4.2/bits/stl_queue.h:369: error: (Each undeclared identifier is reported only once for each function it appears in.)
GCC/bin/../lib/gcc/mingw32/3.4.2/../../../../include/c++/3.4.2/bits/stl_queue.h: In member function `void std::priority_queue<_Tp, _Sequence, _Compare>::pop() [with _Tp = node, _Sequence = std::vector<node, std::allocator<node> >, _Compare = cmp]':
0_0_2176305_1393.cpp:22:   instantiated from here
GCC/bin/../lib/gcc/mingw32/3.4.2/../../../../include/c++/3.4.2/bits/stl_queue.h:458: error: `comp' undeclared (first use this function)
GCC/bin/../lib/gcc/mingw32/3.4.2/../../../../include/c++/3.4.2/bits/stl_queue.h: In member function `void std::priority_queue<_Tp, _Sequence, _Compare>::push(const typename _Sequence::value_type&) [with _Tp = node, _Sequence = std::vector<node, std::allocator<node> >, _Compare = cmp]':
0_0_2176305_1393.cpp:25:   instantiated from here
GCC/bin/../lib/gcc/mingw32/3.4.2/../../../../include/c++/3.4.2/bits/stl_queue.h:432: error: `comp' undeclared (first use this function)


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-12-03 20:50:38, Gzip enabled