0_0_33732821_1209.cpp:13:8: error: 'pil' was not declared in this scope
vector<pil>son[N];
^
0_0_33732821_1209.cpp:13:11: error: template argument 1 is invalid
vector<pil>son[N];
^
0_0_33732821_1209.cpp:13:11: error: template argument 2 is invalid
0_0_33732821_1209.cpp:13:18: error: invalid type in declaration before ';' token
vector<pil>son[N];
^
0_0_33732821_1209.cpp: In function 'void dfs(int, int)':
0_0_33732821_1209.cpp:27:19: error: request for member 'size' in 'son[x]', which is of non-class type 'int'
int sz=son[x].size();
^
0_0_33732821_1209.cpp:28:21: error: 'begin' was not declared in this scope
for(auto i:son[x])
^
0_0_33732821_1209.cpp:28:21: 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_33732821_1209.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_33732821_1209.cpp:28:21: error: 'end' was not declared in this scope
for(auto i:son[x])
^
0_0_33732821_1209.cpp:28:21: 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_33732821_1209.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_33732821_1209.cpp: In function 'int main()':
0_0_33732821_1209.cpp:81:20: error: request for member 'clear' in 'son[i]', which is of non-class type 'int'
son[i].clear();
^
0_0_33732821_1209.cpp:88:47: error: request for member 'push_back' in 'son[x]', which is of non-class type 'int'
scanf("%d%d%lld",&x,&y,&w),son[x].push_back({y,w}),son[y].push_back({x,w});
^
0_0_33732821_1209.cpp:88:71: error: request for member 'push_back' in 'son[y]', which is of non-class type 'int'
scanf("%d%d%lld",&x,&y,&w),son[x].push_back({y,w}),son[y].push_back({x,w});
^
0_0_33732821_1209.cpp:100:33: error: 'begin' was not declared in this scope
for(auto j:son[i])
^
0_0_33732821_1209.cpp:100:33: 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_33732821_1209.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_33732821_1209.cpp:100:33: error: 'end' was not declared in this scope
for(auto j:son[i])
^
0_0_33732821_1209.cpp:100:33: 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_33732821_1209.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'
|