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_21020417_14153.cpp:9:9: error: redeclaration of 'int& <anonymous struct>::nbsp'
     int xj,xm,xp;
         ^
0_0_21020417_14153.cpp:9:2: note: previous declaration 'int& <anonymous struct>::nbsp'
     int xj,xm,xp;
  ^
0_0_21020417_14153.cpp:10:2: error: redeclaration of 'int& <anonymous struct>::nbsp'
     int yj,ym,yp;
  ^
0_0_21020417_14153.cpp:9:2: note: previous declaration 'int& <anonymous struct>::nbsp'
     int xj,xm,xp;
  ^
0_0_21020417_14153.cpp:10:9: error: redeclaration of 'int& <anonymous struct>::nbsp'
     int yj,ym,yp;
         ^
0_0_21020417_14153.cpp:9:2: note: previous declaration 'int& <anonymous struct>::nbsp'
     int xj,xm,xp;
  ^
0_0_21020417_14153.cpp:11:2: error: redeclaration of 'int& <anonymous struct>::nbsp'
     int step;
  ^
0_0_21020417_14153.cpp:9:2: note: previous declaration 'int& <anonymous struct>::nbsp'
     int xj,xm,xp;
  ^
0_0_21020417_14153.cpp:11:9: error: redeclaration of 'int& <anonymous struct>::nbsp'
     int step;
         ^
0_0_21020417_14153.cpp:9:2: note: previous declaration 'int& <anonymous struct>::nbsp'
     int xj,xm,xp;
  ^
0_0_21020417_14153.cpp: In function 'int min(int, int)':
0_0_21020417_14153.cpp:20:2: error: 'nbsp' was not declared in this scope
     return a<b?a:b;
  ^
0_0_21020417_14153.cpp: In function 'int max(int, int)':
0_0_21020417_14153.cpp:24:2: error: 'nbsp' was not declared in this scope
     return a>b?a:b;
  ^
0_0_21020417_14153.cpp: In function 'int bfs()':
0_0_21020417_14153.cpp:27:4: error: 'nbsp' was not declared in this scope
 {   
    ^
0_0_21020417_14153.cpp:29:20: error: use of deleted function 'node::node()'
     node fir,nex;
                    ^
0_0_21020417_14153.cpp:12:2: note: 'node::node()' is implicitly deleted because the default definition would be ill-formed:
 }node;
  ^
0_0_21020417_14153.cpp:12:2: error: uninitialized reference member in 'struct node'
0_0_21020417_14153.cpp:9:2: note: 'int& node::nbsp' should be initialized
     int xj,xm,xp;
  ^
0_0_21020417_14153.cpp:29:24: error: use of deleted function 'node::node()'
     node fir,nex;
                        ^
0_0_21020417_14153.cpp:38:32: error: use of deleted function 'node& node::operator=(const node&)'
         fir=Q.front();
                                ^
0_0_21020417_14153.cpp:12:2: note: 'node& node::operator=(const node&)' is implicitly deleted because the default definition would be ill-formed:
 }node;
  ^
0_0_21020417_14153.cpp:12:2: error: non-static reference member 'int& node::nbsp', can't use default assignment operator
0_0_21020417_14153.cpp:45:60: error: use of deleted function 'node& node::operator=(const node&)'
                 nex=fir;
                                                            ^
0_0_21020417_14153.cpp:46:75: error: 'i' was not declared in this scope
                 nex.xm=fir.xm+dit[i][0];
                                                                           ^
0_0_21020417_14153.cpp:49:105: error: continue statement not within a loop
                 if((fir.xm+dic[i][0]==X)&&(fir.ym+dic[i][1]==Y))continue;
                                                                                                         ^
0_0_21020417_14153.cpp:50:100: error: continue statement not within a loop
                 if(map[fir.xm+dic[i][0]][fir.ym+dic[i][1]])continue;
                                                                                                    ^
0_0_21020417_14153.cpp:63:46: error: use of deleted function 'node& node::operator=(const node&)'
             nex=fir;
                                              ^
0_0_21020417_14153.cpp:64:61: error: 'i' was not declared in this scope
             nex.xj=fir.xj+dir[i][0];
                                                             ^
0_0_21020417_14153.cpp:78:57: error: 'else' without a previous 'if'
                 else
                                                         ^
0_0_21020417_14153.cpp:80:71: error: break statement not within loop or switch
                     break;
                                                                       ^
0_0_21020417_14153.cpp:88:46: error: use of deleted function 'node& node::operator=(const node&)'
             nex=fir;
                                              ^
0_0_21020417_14153.cpp:89:61: error: 'i' was not declared in this scope
             nex.xp=fir.xp+dir[i][0];
                                                             ^
0_0_21020417_14153.cpp:95:106: error: break statement not within loop or switch
                 if(!(nex.xp>=1&&nex.xp<=N&&nex.yp>=1&&nex.yp<=M))break;
                                                                                                          ^
0_0_21020417_14153.cpp:97:66: error: break statement not within loop or switch
                 if(num>1)break;  
                                                                  ^
0_0_21020417_14153.cpp:99:57: error: break statement not within loop or switch
                 break;
                                                         ^
0_0_21020417_14153.cpp: In function 'int main()':
0_0_21020417_14153.cpp:123:2: error: 'nbsp' was not declared in this scope
     char c[21][21];
  ^
0_0_21020417_14153.cpp:129:42: error: 'i' was not declared in this scope
         scanf("%s",c[i]+1);
                                          ^
0_0_21020417_14153.cpp:134:57: error: 'j' was not declared in this scope
              if(c[i][j]=='D')
                                                         ^
0_0_21020417_14153.cpp:136:78: error: 'j' was not declared in this scope
                     map[i][j]=1;
                                                                              ^
0_0_21020417_14153.cpp:138:49: error: 'else' without a previous 'if'
              else
                                                 ^
0_0_21020417_14153.cpp:140:78: error: 'j' was not declared in this scope
                     map[i][j]=0;
                                                                              ^
0_0_21020417_14153.cpp:142:57: error: 'j' was not declared in this scope
              if(c[i][j]=='S')
                                                         ^
0_0_21020417_14153.cpp:144:77: error: 'j' was not declared in this scope
                     X=i,Y=j;
                                                                             ^
0_0_21020417_14153.cpp:145:71: error: continue statement not within a loop
                     continue;
                                                                       ^
0_0_21020417_14153.cpp:147:57: error: 'j' was not declared in this scope
              if(c[i][j]=='C')
                                                         ^
0_0_21020417_14153.cpp:149:79: error: 'j' was not declared in this scope
                     ax=i,ay=j;
                                                                               ^
0_0_21020417_14153.cpp:150:71: error: continue statement not within a loop
                     continue;
                                                                       ^
0_0_21020417_14153.cpp:152:51: error: 'j' was not declared in this scope
             if(c[i][j]=='M')
                                                   ^
0_0_21020417_14153.cpp:154:65: error: 'j' was not declared in this scope
                 bx=i,by=j;
                                                                 ^
0_0_21020417_14153.cpp:155:57: error: continue statement not within a loop
                 continue;
                                                         ^
0_0_21020417_14153.cpp:157:51: error: 'j' was not declared in this scope
             if(c[i][j]=='P')
                                                   ^
0_0_21020417_14153.cpp:159:65: error: 'j' was not declared in this scope
                 cx=i,cy=j;
                                                                 ^
0_0_21020417_14153.cpp:169:29: error: 'else' without a previous 'if'
         else
                             ^


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-11-30 14:29:50, Gzip enabled