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_17201109_10322.cpp:90:7: error: redefinition of 'int n'
 int t,n=7,m=8,num,dir[4][2]={-1,0,0,-1,0,1,1,0};
       ^
0_0_17201109_10322.cpp:5:5: note: 'int n' previously declared here
 int n,m,num,cnt,a[35][35],dir[4][2]={0,-1,0,1,-1,0,1,0};
     ^
0_0_17201109_10322.cpp:90:11: error: redefinition of 'int m'
 int t,n=7,m=8,num,dir[4][2]={-1,0,0,-1,0,1,1,0};
           ^
0_0_17201109_10322.cpp:5:7: note: 'int m' previously declared here
 int n,m,num,cnt,a[35][35],dir[4][2]={0,-1,0,1,-1,0,1,0};
       ^
0_0_17201109_10322.cpp:90:15: error: redefinition of 'int num'
 int t,n=7,m=8,num,dir[4][2]={-1,0,0,-1,0,1,1,0};
               ^
0_0_17201109_10322.cpp:5:9: note: 'int num' previously declared here
 int n,m,num,cnt,a[35][35],dir[4][2]={0,-1,0,1,-1,0,1,0};
         ^
0_0_17201109_10322.cpp:90:27: error: redefinition of 'int dir [4][2]'
 int t,n=7,m=8,num,dir[4][2]={-1,0,0,-1,0,1,1,0};
                           ^
0_0_17201109_10322.cpp:5:27: note: 'int dir [4][2]' previously defined here
 int n,m,num,cnt,a[35][35],dir[4][2]={0,-1,0,1,-1,0,1,0};
                           ^
0_0_17201109_10322.cpp:91:12: error: conflicting declaration 'int path [15]'
 int path[15],f[15];
            ^
0_0_17201109_10322.cpp:6:29: note: previous declaration as 'char path [625]'
 char map[35][35],p[]="LRUD",path[625];
                             ^
0_0_17201109_10322.cpp:92:16: error: conflicting declaration 'char map [15][15]'
 char map[15][15],p[]="ULRD",pathc[15];
                ^
0_0_17201109_10322.cpp:6:6: note: previous declaration as 'char map [35][35]'
 char map[35][35],p[]="LRUD",path[625];
      ^
0_0_17201109_10322.cpp:92:20: error: redefinition of 'char p []'
 char map[15][15],p[]="ULRD",pathc[15];
                    ^
0_0_17201109_10322.cpp:6:18: note: 'char p [5]' previously defined here
 char map[35][35],p[]="LRUD",path[625];
                  ^
0_0_17201109_10322.cpp: In function 'int ok(int, int)':
0_0_17201109_10322.cpp:93:5: error: redefinition of 'int ok(int, int)'
 int ok(int x,int y)
     ^
0_0_17201109_10322.cpp:7:5: note: 'int ok(int, int)' previously defined here
 int ok(int x,int y)
     ^
0_0_17201109_10322.cpp: In function 'int main()':
0_0_17201109_10322.cpp:153:5: error: redefinition of 'int main()'
 int main()
     ^
0_0_17201109_10322.cpp:52:5: note: 'int main()' previously defined here
 int main()
     ^


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-16 12:00:18, Gzip enabled