0_0_19823070_31368.cpp:13:8: error: redeclaration of 'int& node::nbsp'
int v,w;
^
0_0_19823070_31368.cpp:13:2: note: previous declaration 'int& node::nbsp'
int v,w;
^
0_0_19823070_31368.cpp:13:14: error: redeclaration of 'int& node::nbsp'
int v,w;
^
0_0_19823070_31368.cpp:13:2: note: previous declaration 'int& node::nbsp'
int v,w;
^
0_0_19823070_31368.cpp:13:20: error: redeclaration of 'int& node::nbsp'
int v,w;
^
0_0_19823070_31368.cpp:13:2: note: previous declaration 'int& node::nbsp'
int v,w;
^
0_0_19823070_31368.cpp:14:2: error: redeclaration of 'int& node::nbsp'
node(int _v, int _w) : v(_v), w(_w) {}
^
0_0_19823070_31368.cpp:13:2: note: previous declaration 'int& node::nbsp'
int v,w;
^
0_0_19823070_31368.cpp:14:8: error: redeclaration of 'int& node::nbsp'
node(int _v, int _w) : v(_v), w(_w) {}
^
0_0_19823070_31368.cpp:13:2: note: previous declaration 'int& node::nbsp'
int v,w;
^
0_0_19823070_31368.cpp:14:14: error: redeclaration of 'int& node::nbsp'
node(int _v, int _w) : v(_v), w(_w) {}
^
0_0_19823070_31368.cpp:13:2: note: previous declaration 'int& node::nbsp'
int v,w;
^
0_0_19823070_31368.cpp:14:20: error: redeclaration of 'int& node::nbsp'
node(int _v, int _w) : v(_v), w(_w) {}
^
0_0_19823070_31368.cpp:13:2: note: previous declaration 'int& node::nbsp'
int v,w;
^
0_0_19823070_31368.cpp: In constructor 'node::node(int, int)':
0_0_19823070_31368.cpp:14:25: error: uninitialized reference member in 'int&' [-fpermissive]
node(int _v, int _w) : v(_v), w(_w) {}
^
0_0_19823070_31368.cpp:13:2: note: 'int& node::nbsp' should be initialized
int v,w;
^
0_0_19823070_31368.cpp: In function 'int find(int)':
0_0_19823070_31368.cpp:20:2: error: 'nbsp' was not declared in this scope
if(x!=fa[x])
^
0_0_19823070_31368.cpp: In function 'void dfs(int, int)':
0_0_19823070_31368.cpp:26:2: error: 'nbsp' was not declared in this scope
int maxx=0;
^
0_0_19823070_31368.cpp:29:60: error: 'i' was not declared in this scope
int v=e[u][i].v;
^
0_0_19823070_31368.cpp:32:73: error: continue statement not within a loop
continue;
^
0_0_19823070_31368.cpp: In function 'void slove()':
0_0_19823070_31368.cpp:41:2: error: 'nbsp' was not declared in this scope
for(int i=1;i<=n;i++)
^
0_0_19823070_31368.cpp:43:55: error: 'i' was not declared in this scope
if(dp[i]==-1)
^
0_0_19823070_31368.cpp:44:77: error: 'i' was not declared in this scope
dfs(i,-1);
^
0_0_19823070_31368.cpp: In function 'int main()':
0_0_19823070_31368.cpp:50:2: error: 'nbsp' was not declared in this scope
while(scanf("%d%d",&n,&m)!=EOF)
^
0_0_19823070_31368.cpp:55:76: error: 'i' was not declared in this scope
fa[i]=i,dp[i]=-1,e[i].clear();
^
0_0_19823070_31368.cpp:63:97: error: continue statement not within a loop
continue;
^
0_0_19823070_31368.cpp:70:73: error: 'else' without a previous 'if'
else
^
0_0_19823070_31368.cpp:73:97: error: continue statement not within a loop
continue;
^
0_0_19823070_31368.cpp:79:73: error: continue statement not within a loop
continue;
^
|