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_13605809_6737.cpp: In function 'void dijkstra(int)':
0_0_13605809_6737.cpp:39:27: error: '__gnu_cxx::__alloc_traits<std::allocator<edge> >::value_type' has no member named 'second'
             int v=V[u][i].second;
                           ^
0_0_13605809_6737.cpp:40:34: error: '__gnu_cxx::__alloc_traits<std::allocator<edge> >::value_type' has no member named 'first'
             int edgeCost=V[u][i].first;
                                  ^
0_0_13605809_6737.cpp: In function 'int main()':
0_0_13605809_6737.cpp:68:37: error: no matching function for call to 'std::vector<edge>::push_back(mp)'
             V[v1].push_back(mp(w,v2));
                                     ^
0_0_13605809_6737.cpp:68:37: note: candidates are:
In file included from GCC4.9.2/x86_64-w64-mingw32/include/c++/vector:64:0,
                 from 0_0_13605809_6737.cpp:2:
GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/stl_vector.h:913:7: note: void std::vector<_Tp, _Alloc>::push_back(const value_type&) [with _Tp = edge; _Alloc = std::allocator<edge>; std::vector<_Tp, _Alloc>::value_type = edge]
       push_back(const value_type& __x)
       ^
GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/stl_vector.h:913:7: note:   no known conversion for argument 1 from 'mp {aka std::pair<int, int>}' to 'const value_type& {aka const edge&}'
GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/stl_vector.h:931:7: note: void std::vector<_Tp, _Alloc>::push_back(std::vector<_Tp, _Alloc>::value_type&&) [with _Tp = edge; _Alloc = std::allocator<edge>; std::vector<_Tp, _Alloc>::value_type = edge]
       push_back(value_type&& __x)
       ^
GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/stl_vector.h:931:7: note:   no known conversion for argument 1 from 'mp {aka std::pair<int, int>}' to 'std::vector<edge>::value_type&& {aka edge&&}'
0_0_13605809_6737.cpp:69:37: error: no matching function for call to 'std::vector<edge>::push_back(mp)'
             V[v2].push_back(mp(w,v1));
                                     ^
0_0_13605809_6737.cpp:69:37: note: candidates are:
In file included from GCC4.9.2/x86_64-w64-mingw32/include/c++/vector:64:0,
                 from 0_0_13605809_6737.cpp:2:
GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/stl_vector.h:913:7: note: void std::vector<_Tp, _Alloc>::push_back(const value_type&) [with _Tp = edge; _Alloc = std::allocator<edge>; std::vector<_Tp, _Alloc>::value_type = edge]
       push_back(const value_type& __x)
       ^
GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/stl_vector.h:913:7: note:   no known conversion for argument 1 from 'mp {aka std::pair<int, int>}' to 'const value_type& {aka const edge&}'
GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/stl_vector.h:931:7: note: void std::vector<_Tp, _Alloc>::push_back(std::vector<_Tp, _Alloc>::value_type&&) [with _Tp = edge; _Alloc = std::allocator<edge>; std::vector<_Tp, _Alloc>::value_type = edge]
       push_back(value_type&& __x)
       ^
GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/stl_vector.h:931:7: note:   no known conversion for argument 1 from 'mp {aka std::pair<int, int>}' to 'std::vector<edge>::value_type&& {aka edge&&}'


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-07-01 18:03:19, Gzip enabled