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_29413075_22947.cpp:32:9: error: redeclaration of 'int& coor::nbsp'
     double x;
         ^
0_0_29413075_22947.cpp:32:2: note: previous declaration 'int& coor::nbsp'
     double x;
  ^
0_0_29413075_22947.cpp:33:2: error: redeclaration of 'int& coor::nbsp'
     double y;
  ^
0_0_29413075_22947.cpp:32:2: note: previous declaration 'int& coor::nbsp'
     double x;
  ^
0_0_29413075_22947.cpp:33:9: error: redeclaration of 'int& coor::nbsp'
     double y;
         ^
0_0_29413075_22947.cpp:32:2: note: previous declaration 'int& coor::nbsp'
     double x;
  ^
0_0_29413075_22947.cpp:34:8: error: use of deleted function 'coor::coor()'
 }hero[5];
        ^
0_0_29413075_22947.cpp:30:8: note: 'coor::coor()' is implicitly deleted because the default definition would be ill-formed:
 struct coor
        ^
0_0_29413075_22947.cpp:30:8: error: uninitialized reference member in 'struct coor'
0_0_29413075_22947.cpp:32:2: note: 'int& coor::nbsp' should be initialized
     double x;
  ^
0_0_29413075_22947.cpp: In function 'double dis(coor, coor)':
0_0_29413075_22947.cpp:39:2: error: 'nbsp' was not declared in this scope
     return sqrt((a.x-b.x)*(a.x-b.x)+(a.y-b.y)*(a.y-b.y));
  ^
0_0_29413075_22947.cpp: In function 'int num(int, int)':
0_0_29413075_22947.cpp:45:2: error: 'nbsp' was not declared in this scope
     int cnt=0;
  ^
0_0_29413075_22947.cpp:47:39: error: 'i' was not declared in this scope
         if(gap[h][i]&&(s&M[i]))
                                       ^
0_0_29413075_22947.cpp: In function 'void bfs()':
0_0_29413075_22947.cpp:53:2: error: 'nbsp' was not declared in this scope
     int head=0,tail=1;
  ^
0_0_29413075_22947.cpp:63:43: error: continue statement not within a loop
             continue;
                                           ^
0_0_29413075_22947.cpp:65:43: error: continue statement not within a loop
             continue;
                                           ^
0_0_29413075_22947.cpp:70:55: error: 'i' was not declared in this scope
             if(nh&&(s&M[i])&&gap[i][last])
                                                       ^
0_0_29413075_22947.cpp:73:60: error: 'i' was not declared in this scope
                 dp[i][k+1][s-De[i]]+=t;
                                                            ^
0_0_29413075_22947.cpp:77:71: error: continue statement not within a loop
                     continue;
                                                                       ^
0_0_29413075_22947.cpp:87:38: error: 'i' was not declared in this scope
         int k=QK[i],s=QS[i],last=QL[i];
                                      ^
0_0_29413075_22947.cpp:88:33: error: 'last' was not declared in this scope
         vis[last][k][s]=false;
                                 ^
0_0_29413075_22947.cpp:88:42: error: 's' was not declared in this scope
         vis[last][k][s]=false;
                                          ^
0_0_29413075_22947.cpp: In function 'int main()':
0_0_29413075_22947.cpp:99:2: error: 'nbsp' was not declared in this scope
     memset(dp,0,sizeof dp);
  ^
0_0_29413075_22947.cpp:108:48: error: 'i' was not declared in this scope
             hero[i].x=x;
                                                ^
0_0_29413075_22947.cpp:114:60: error: 'i' was not declared in this scope
                 if(i==j)
                                                            ^
0_0_29413075_22947.cpp:114:63: error: 'j' was not declared in this scope
                 if(i==j)
                                                               ^
0_0_29413075_22947.cpp:115:71: error: continue statement not within a loop
                     continue;
                                                                       ^
0_0_29413075_22947.cpp:116:69: error: 'i' was not declared in this scope
                 if(dis(hero[i],hero[j])<=D)
                                                                     ^
0_0_29413075_22947.cpp:116:77: error: 'j' was not declared in this scope
                 if(dis(hero[i],hero[j])<=D)
                                                                             ^
0_0_29413075_22947.cpp:117:75: error: 'i' was not declared in this scope
                     gap[i][j]=true;
                                                                           ^
0_0_29413075_22947.cpp:117:78: error: 'j' was not declared in this scope
                     gap[i][j]=true;
                                                                              ^
0_0_29413075_22947.cpp:128:47: error: 'i' was not declared in this scope
             gap[i][6]=gap[6][i]=true;
                                               ^


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-06-26 22:56:06, Gzip enabled