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_36273630_19926.cpp:11:11: error: redefinition of 'const int maxn'
 const int maxn = 8;
           ^
0_0_36273630_19926.cpp:6:11: note: 'const int maxn' previously defined here
 const int maxn=8;
           ^
0_0_36273630_19926.cpp:12:23: error: redefinition of 'bool square [8][8]'
 bool square[maxn][maxn];
                       ^
0_0_36273630_19926.cpp:7:6: note: 'bool square [8][8]' previously declared here
 bool square[maxn][maxn];
      ^
0_0_36273630_19926.cpp:13:5: error: redefinition of 'int sx'
 int sx, sy, ex, ey;
     ^
0_0_36273630_19926.cpp:8:5: note: 'int sx' previously declared here
 int sx,sy,ex,ey;
     ^
0_0_36273630_19926.cpp:13:9: error: redefinition of 'int sy'
 int sx, sy, ex, ey;
         ^
0_0_36273630_19926.cpp:8:8: note: 'int sy' previously declared here
 int sx,sy,ex,ey;
        ^
0_0_36273630_19926.cpp:13:13: error: redefinition of 'int ex'
 int sx, sy, ex, ey;
             ^
0_0_36273630_19926.cpp:8:11: note: 'int ex' previously declared here
 int sx,sy,ex,ey;
           ^
0_0_36273630_19926.cpp:13:17: error: redefinition of 'int ey'
 int sx, sy, ex, ey;
                 ^
0_0_36273630_19926.cpp:8:14: note: 'int ey' previously declared here
 int sx,sy,ex,ey;
              ^
0_0_36273630_19926.cpp:14:13: error: redefinition of 'int dir [8][2]'
 int dir[8][2] = {{-2, -1}, {-2, 1}, {-1, -2}, {-1, 2}, {1, -2}, {1, 2}, {2, -1}, {2, 1}};
             ^
0_0_36273630_19926.cpp:9:5: note: 'int dir [8][2]' previously defined here
 int dir[8][2]={{-2,-1},{-2,1},{-1,-2},{-1,2},{1,-2},{1,2},{2,-1},{2,1}};
     ^
0_0_36273630_19926.cpp: In function 'int bfs()':
0_0_36273630_19926.cpp:18:2: error: 't' was not declared in this scope
  t.x=sx;
  ^
0_0_36273630_19926.cpp:24:3: error: 'tmp' was not declared in this scope
   tmp=que.front();
   ^
0_0_36273630_19926.cpp: In function 'int main()':
0_0_36273630_19926.cpp:42:21: error: 'strq' was not declared in this scope
  while(scanf("%s%s",strq,str2)!=EOF){
                     ^
0_0_36273630_19926.cpp:43:6: error: 'str' was not declared in this scope
   sx=str[1]-'1';sy=str1[0]-'a';
      ^


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-09-28 07:24:57, Gzip enabled