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_29928305_24962.cpp: In function 'void dijkstra()':
0_0_29928305_24962.cpp:45:4: error: reference to 'next' is ambiguous
    next=Q.top();Q.pop();
    ^
0_0_29928305_24962.cpp:35:2: note: candidates are: dijknob next
 }next;
  ^
In file included from GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/stl_algobase.h:66:0,
                 from GCC4.9.2/x86_64-w64-mingw32/include/c++/deque:60,
                 from GCC4.9.2/x86_64-w64-mingw32/include/c++/queue:60,
                 from 0_0_29928305_24962.cpp:2:
GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/stl_iterator_base_funcs.h:184:5: note:                 template<class _ForwardIterator> _ForwardIterator std::next(_ForwardIterator, typename std::iterator_traits<_Iter>::difference_type)
     next(_ForwardIterator __x, typename
     ^
0_0_29928305_24962.cpp:46:10: error: reference to 'next' is ambiguous
    int u=next.point;
          ^
0_0_29928305_24962.cpp:35:2: note: candidates are: dijknob next
 }next;
  ^
In file included from GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/stl_algobase.h:66:0,
                 from GCC4.9.2/x86_64-w64-mingw32/include/c++/deque:60,
                 from GCC4.9.2/x86_64-w64-mingw32/include/c++/queue:60,
                 from 0_0_29928305_24962.cpp:2:
GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/stl_iterator_base_funcs.h:184:5: note:                 template<class _ForwardIterator> _ForwardIterator std::next(_ForwardIterator, typename std::iterator_traits<_Iter>::difference_type)
     next(_ForwardIterator __x, typename
     ^
0_0_29928305_24962.cpp:47:16: error: reference to 'next' is ambiguous
    long long l=next.len;
                ^
0_0_29928305_24962.cpp:35:2: note: candidates are: dijknob next
 }next;
  ^
In file included from GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/stl_algobase.h:66:0,
                 from GCC4.9.2/x86_64-w64-mingw32/include/c++/deque:60,
                 from GCC4.9.2/x86_64-w64-mingw32/include/c++/queue:60,
                 from 0_0_29928305_24962.cpp:2:
GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/stl_iterator_base_funcs.h:184:5: note:                 template<class _ForwardIterator> _ForwardIterator std::next(_ForwardIterator, typename std::iterator_traits<_Iter>::difference_type)
     next(_ForwardIterator __x, typename
     ^
0_0_29928305_24962.cpp:57:38: error: no matching function for call to 'std::priority_queue<dijknob>::push(<brace-enclosed initializer list>, long long int&)'
     Q.push({way[i].to},dis[way[i].to]);
                                      ^
0_0_29928305_24962.cpp:57:38: note: candidates are:
In file included from GCC4.9.2/x86_64-w64-mingw32/include/c++/queue:64:0,
                 from 0_0_29928305_24962.cpp:2:
GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/stl_queue.h:499:7: note: void std::priority_queue<_Tp, _Sequence, _Compare>::push(const value_type&) [with _Tp = dijknob; _Sequence = std::vector<dijknob, std::allocator<dijknob> >; _Compare = std::less<dijknob>; std::priority_queue<_Tp, _Sequence, _Compare>::value_type = dijknob]
       push(const value_type& __x)
       ^
GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/stl_queue.h:499:7: note:   candidate expects 1 argument, 2 provided
GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/stl_queue.h:507:7: note: void std::priority_queue<_Tp, _Sequence, _Compare>::push(std::priority_queue<_Tp, _Sequence, _Compare>::value_type&&) [with _Tp = dijknob; _Sequence = std::vector<dijknob, std::allocator<dijknob> >; _Compare = std::less<dijknob>; std::priority_queue<_Tp, _Sequence, _Compare>::value_type = dijknob]
       push(value_type&& __x)
       ^
GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/stl_queue.h:507:7: note:   candidate expects 1 argument, 2 provided
0_0_29928305_24962.cpp:67:4: error: reference to 'next' is ambiguous
    next=Q.top();Q.pop();
    ^
0_0_29928305_24962.cpp:35:2: note: candidates are: dijknob next
 }next;
  ^
In file included from GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/stl_algobase.h:66:0,
                 from GCC4.9.2/x86_64-w64-mingw32/include/c++/deque:60,
                 from GCC4.9.2/x86_64-w64-mingw32/include/c++/queue:60,
                 from 0_0_29928305_24962.cpp:2:
GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/stl_iterator_base_funcs.h:184:5: note:                 template<class _ForwardIterator> _ForwardIterator std::next(_ForwardIterator, typename std::iterator_traits<_Iter>::difference_type)
     next(_ForwardIterator __x, typename
     ^
0_0_29928305_24962.cpp:68:10: error: reference to 'next' is ambiguous
    int u=next.point;
          ^
0_0_29928305_24962.cpp:35:2: note: candidates are: dijknob next
 }next;
  ^
In file included from GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/stl_algobase.h:66:0,
                 from GCC4.9.2/x86_64-w64-mingw32/include/c++/deque:60,
                 from GCC4.9.2/x86_64-w64-mingw32/include/c++/queue:60,
                 from 0_0_29928305_24962.cpp:2:
GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/stl_iterator_base_funcs.h:184:5: note:                 template<class _ForwardIterator> _ForwardIterator std::next(_ForwardIterator, typename std::iterator_traits<_Iter>::difference_type)
     next(_ForwardIterator __x, typename
     ^
0_0_29928305_24962.cpp:69:16: error: reference to 'next' is ambiguous
    long long l=next.len;
                ^
0_0_29928305_24962.cpp:35:2: note: candidates are: dijknob next
 }next;
  ^
In file included from GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/stl_algobase.h:66:0,
                 from GCC4.9.2/x86_64-w64-mingw32/include/c++/deque:60,
                 from GCC4.9.2/x86_64-w64-mingw32/include/c++/queue:60,
                 from 0_0_29928305_24962.cpp:2:
GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/stl_iterator_base_funcs.h:184:5: note:                 template<class _ForwardIterator> _ForwardIterator std::next(_ForwardIterator, typename std::iterator_traits<_Iter>::difference_type)
     next(_ForwardIterator __x, typename
     ^
0_0_29928305_24962.cpp:79:44: error: no matching function for call to 'std::priority_queue<dijknob>::push(<brace-enclosed initializer list>, long long int&)'
     Q.push({c_way[i].to},c_dis[c_way[i].to]);
                                            ^
0_0_29928305_24962.cpp:79:44: note: candidates are:
In file included from GCC4.9.2/x86_64-w64-mingw32/include/c++/queue:64:0,
                 from 0_0_29928305_24962.cpp:2:
GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/stl_queue.h:499:7: note: void std::priority_queue<_Tp, _Sequence, _Compare>::push(const value_type&) [with _Tp = dijknob; _Sequence = std::vector<dijknob, std::allocator<dijknob> >; _Compare = std::less<dijknob>; std::priority_queue<_Tp, _Sequence, _Compare>::value_type = dijknob]
       push(const value_type& __x)
       ^
GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/stl_queue.h:499:7: note:   candidate expects 1 argument, 2 provided
GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/stl_queue.h:507:7: note: void std::priority_queue<_Tp, _Sequence, _Compare>::push(std::priority_queue<_Tp, _Sequence, _Compare>::value_type&&) [with _Tp = dijknob; _Sequence = std::vector<dijknob, std::allocator<dijknob> >; _Compare = std::less<dijknob>; std::priority_queue<_Tp, _Sequence, _Compare>::value_type = dijknob]
       push(value_type&& __x)
       ^
GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/stl_queue.h:507:7: note:   candidate expects 1 argument, 2 provided
0_0_29928305_24962.cpp: In function 'int main()':
0_0_29928305_24962.cpp:99:16: error: expected primary-expression before ',' token
    for(int p=1;,p<=n;p++)
                ^
0_0_29928305_24962.cpp:104:31: error: 'wadd' was not declared in this scope
      wadd(p,way[i].to,way[i].l);
                               ^


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 14:38:25, Gzip enabled