0_0_30027936_12324.cpp:79:8: error: 'P' was not declared in this scope
vector<P> v[maxn];
^
0_0_30027936_12324.cpp:79:9: error: template argument 1 is invalid
vector<P> v[maxn];
^
0_0_30027936_12324.cpp:79:9: error: template argument 2 is invalid
0_0_30027936_12324.cpp:79:18: error: invalid type in declaration before ';' token
vector<P> v[maxn];
^
0_0_30027936_12324.cpp: In function 'void init()':
0_0_30027936_12324.cpp:83:38: error: request for member 'clear' in 'v[i]', which is of non-class type 'int'
for (int i = 0; i < maxn; i++) v[i].clear();
^
0_0_30027936_12324.cpp: In function 'void dijk()':
0_0_30027936_12324.cpp:108:30: error: request for member 'size' in 'v[top]', which is of non-class type 'int'
for (int i = 0; i < v[top].size(); i++) {
^
0_0_30027936_12324.cpp:109:18: error: invalid types 'int[int]' for array subscript
P p = v[top][i];
^
0_0_30027936_12324.cpp:117:30: error: request for member 'size' in 'v[top]', which is of non-class type 'int'
for (int i = 0; i < v[top].size();i++) {
^
0_0_30027936_12324.cpp:118:18: error: invalid types 'int[int]' for array subscript
P p = v[top][i];
^
0_0_30027936_12324.cpp: In function 'int main()':
0_0_30027936_12324.cpp:138:9: error: request for member 'push_back' in 'v[a]', which is of non-class type 'int'
v[a].push_back(P{ b,len });
^
0_0_30027936_12324.cpp:139:9: error: request for member 'push_back' in 'v[b]', which is of non-class type 'int'
v[b].push_back(P{ a,len });
^
|