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


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-07-07 06:18:30, Gzip enabled