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_27076185_1215.cpp:6:8: error: 'node' was not declared in this scope
 vector<node> G[maxn];
        ^
0_0_27076185_1215.cpp:6:12: error: template argument 1 is invalid
 vector<node> G[maxn];
            ^
0_0_27076185_1215.cpp:6:12: error: template argument 2 is invalid
0_0_27076185_1215.cpp:6:21: error: invalid type in declaration before ';' token
 vector<node> G[maxn];
                     ^
0_0_27076185_1215.cpp: In function 'int dij(int, int)':
0_0_27076185_1215.cpp:12:15: error: request for member 'size' in 'G', which is of non-class type 'int [1000007]'
     int n = G.size();
               ^
0_0_27076185_1215.cpp:24:20: error: 'begin' was not declared in this scope
   for(auto& i : G[u]) {
                    ^
0_0_27076185_1215.cpp:24:20: note: suggested alternatives:
In file included from GCC4.9.2/x86_64-w64-mingw32/include/c++/x86_64-w64-mingw32/bits/stdc++.h:94:0,
                 from 0_0_27076185_1215.cpp:1:
GCC4.9.2/x86_64-w64-mingw32/include/c++/valarray:1206:5: note:   'std::begin'
     begin(const valarray<_Tp>& __va)
     ^
GCC4.9.2/x86_64-w64-mingw32/include/c++/valarray:1206:5: note:   'std::begin'
0_0_27076185_1215.cpp:24:20: error: 'end' was not declared in this scope
   for(auto& i : G[u]) {
                    ^
0_0_27076185_1215.cpp:24:20: note: suggested alternatives:
In file included from GCC4.9.2/x86_64-w64-mingw32/include/c++/x86_64-w64-mingw32/bits/stdc++.h:94:0,
                 from 0_0_27076185_1215.cpp:1:
GCC4.9.2/x86_64-w64-mingw32/include/c++/valarray:1226:5: note:   'std::end'
     end(const valarray<_Tp>& __va)
     ^
GCC4.9.2/x86_64-w64-mingw32/include/c++/valarray:1226:5: note:   'std::end'
0_0_27076185_1215.cpp:28:28: error: no matching function for call to 'std::priority_queue<node>::push(<brace-enclosed initializer list>)'
      q.push({i.v, dis[i.v]});
                            ^
0_0_27076185_1215.cpp:28:28: note: candidates are:
In file included from GCC4.9.2/x86_64-w64-mingw32/include/c++/queue:64:0,
                 from GCC4.9.2/x86_64-w64-mingw32/include/c++/x86_64-w64-mingw32/bits/stdc++.h:85,
                 from 0_0_27076185_1215.cpp:1:
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 = node; _Sequence = std::vector<node, std::allocator<node> >; _Compare = std::less<node>; std::priority_queue<_Tp, _Sequence, _Compare>::value_type = node]
       push(const value_type& __x)
       ^
GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/stl_queue.h:499:7: note:   no known conversion for argument 1 from '<brace-enclosed initializer list>' to 'const value_type& {aka const node&}'
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 = node; _Sequence = std::vector<node, std::allocator<node> >; _Compare = std::less<node>; std::priority_queue<_Tp, _Sequence, _Compare>::value_type = node]
       push(value_type&& __x)
       ^
GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/stl_queue.h:507:7: note:   no known conversion for argument 1 from '<brace-enclosed initializer list>' to 'std::priority_queue<node>::value_type&& {aka node&&}'
0_0_27076185_1215.cpp: In function 'int main()':
0_0_27076185_1215.cpp:48:22: error: request for member 'push_back' in 'G[u]', which is of non-class type 'int'
                 G[u].push_back({v, w});
                      ^
0_0_27076185_1215.cpp:49:22: error: request for member 'push_back' in 'G[v]', which is of non-class type 'int'
                 G[v].push_back({u, w});
                      ^
0_0_27076185_1215.cpp:58:22: error: request for member 'push_back' in 'G[u]', which is of non-class type 'int'
                 G[u].push_back({v, w});
                      ^
0_0_27076185_1215.cpp:59:22: error: request for member 'push_back' in 'G[v]', which is of non-class type 'int'
                 G[v].push_back({u, w});
                      ^
0_0_27076185_1215.cpp:67:22: error: request for member 'push_back' in 'G[u]', which is of non-class type 'int'
                 G[u].push_back({v, w});
                      ^
0_0_27076185_1215.cpp:68:22: error: request for member 'push_back' in 'G[v]', which is of non-class type 'int'
                 G[v].push_back({u, w});
                      ^
0_0_27076185_1215.cpp:72:22: error: request for member 'push_back' in 'G[u]', which is of non-class type 'int'
                 G[u].push_back({v, w});
                      ^
0_0_27076185_1215.cpp:73:22: error: request for member 'push_back' in 'G[v]', which is of non-class type 'int'
                 G[v].push_back({u, w});
                      ^
0_0_27076185_1215.cpp:79:22: error: request for member 'push_back' in 'G[u]', which is of non-class type 'int'
                 G[u].push_back({v, w});
                      ^
0_0_27076185_1215.cpp:80:22: error: request for member 'push_back' in 'G[v]', which is of non-class type 'int'
                 G[v].push_back({u, w});
                      ^
0_0_27076185_1215.cpp:84:22: error: request for member 'push_back' in 'G[u]', which is of non-class type 'int'
                 G[u].push_back({v, w});
                      ^
0_0_27076185_1215.cpp:85:22: error: request for member 'push_back' in 'G[v]', which is of non-class type 'int'
                 G[v].push_back({u, w});
                      ^
0_0_27076185_1215.cpp:89:40: error: invalid conversion from 'int*' to 'int' [-fpermissive]
         cout << dij(G, 0, n * m * 4 + 1) << '\n';
                                        ^
0_0_27076185_1215.cpp:89:40: error: too many arguments to function 'int dij(int, int)'
0_0_27076185_1215.cpp:11:5: note: declared here
 int dij(int s, int t) {
     ^


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