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_24574884_12113.cpp:11:24: error: conflicting declaration 'int dx'
 int N, M, T, S_x, S_y, dx, dy, D_x, D_y,wall_count;
                        ^
0_0_24574884_12113.cpp:9:5: note: previous declaration as 'int dx [4]'
 int dx[]={-1,0,1,0};
     ^
0_0_24574884_12113.cpp:11:28: error: conflicting declaration 'int dy'
 int N, M, T, S_x, S_y, dx, dy, D_x, D_y,wall_count;
                            ^
0_0_24574884_12113.cpp:10:5: note: previous declaration as 'int dy [4]'
 int dy[]={0,-1,0,1};
     ^
0_0_24574884_12113.cpp: In function 'bool DFS(int, int, int)':
0_0_24574884_12113.cpp:26:14: error: invalid conversion from 'int*' to 'int' [-fpermissive]
      if(DFS(x+dx,y+dy,t+1)){
              ^
0_0_24574884_12113.cpp:13:6: note: initializing argument 1 of 'bool DFS(int, int, int)'
 bool DFS(int x, int y,int t)
      ^
0_0_24574884_12113.cpp:26:19: error: invalid conversion from 'int*' to 'int' [-fpermissive]
      if(DFS(x+dx,y+dy,t+1)){
                   ^
0_0_24574884_12113.cpp:13:6: note: initializing argument 2 of 'bool DFS(int, int, int)'
 bool DFS(int x, int y,int t)
      ^


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-30 04:30:14, Gzip enabled