0_0_26136353_705.cpp: In function 'void addedge(int, int)':
0_0_26136353_705.cpp:51:2: error: 'G' was not declared in this scope
G[cnt++]=edge(f,s,head[f],head[s]);
^
0_0_26136353_705.cpp:51:4: error: 'cnt' was not declared in this scope
G[cnt++]=edge(f,s,head[f],head[s]);
^
0_0_26136353_705.cpp:51:20: error: 'head' was not declared in this scope
G[cnt++]=edge(f,s,head[f],head[s]);
^
0_0_26136353_705.cpp: In function 'int main()':
0_0_26136353_705.cpp:102:24: error: 'struct edge' has no member named 'size'
if(flag==true&&G[h].size()>0){
^
0_0_26136353_705.cpp: In function 'void dfs2(int)':
0_0_26136353_705.cpp:140:23: error: 'struct edge' has no member named 'size'
for(int i=0;i<G[cur].size();i++){
^
0_0_26136353_705.cpp:141:17: error: no match for 'operator[]' (operand types are 'edge' and 'int')
if(bian[G[cur][i].index]==false){
^
0_0_26136353_705.cpp:142:15: error: no match for 'operator[]' (operand types are 'edge' and 'int')
bian[G[cur][i].index]=true;
^
0_0_26136353_705.cpp:143:15: error: no match for 'operator[]' (operand types are 'edge' and 'int')
dfs2(G[cur][i].to);
^
|