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_24574871_29814.cpp:10:1: error: expected ',' or ';' before 'int'
 int dy[]={0,-1,0,1}
 ^
0_0_24574871_29814.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_24574871_29814.cpp:9:5: note: previous declaration as 'int dx [4]'
 int dx[]={-1,0,1,0}
     ^
0_0_24574871_29814.cpp: In function 'bool DFS(int, int, int)':
0_0_24574871_29814.cpp:22:50: error: invalid types 'int[int]' for array subscript
    if(x + dx[i] < 0 || x + dx[i] >= M || y + dy[i] < 0 || y + dy[i] >= N || map[y+dy[i]][x+dx[i]] == 'X' || used[y+dy][x+dx] == 1)
                                                  ^
0_0_24574871_29814.cpp:22:67: error: invalid types 'int[int]' for array subscript
    if(x + dx[i] < 0 || x + dx[i] >= M || y + dy[i] < 0 || y + dy[i] >= N || map[y+dy[i]][x+dx[i]] == 'X' || used[y+dy][x+dx] == 1)
                                                                   ^
0_0_24574871_29814.cpp:22:87: error: invalid types 'int[int]' for array subscript
    if(x + dx[i] < 0 || x + dx[i] >= M || y + dy[i] < 0 || y + dy[i] >= N || map[y+dy[i]][x+dx[i]] == 'X' || used[y+dy][x+dx] == 1)
                                                                                       ^
0_0_24574871_29814.cpp:22:124: error: invalid types 'int [7][int*]' for array subscript
    if(x + dx[i] < 0 || x + dx[i] >= M || y + dy[i] < 0 || y + dy[i] >= N || map[y+dy[i]][x+dx[i]] == 'X' || used[y+dy][x+dx] == 1)
                                                                                                                            ^
0_0_24574871_29814.cpp:25:16: error: invalid types 'int[int]' for array subscript
     used[y+dy[i]][x+dx[i]] = 1;
                ^
0_0_24574871_29814.cpp:26:14: error: invalid conversion from 'int*' to 'int' [-fpermissive]
      if(DFS(x+dx,y+dy,t+1)){
              ^
0_0_24574871_29814.cpp:13:6: note: initializing argument 1 of 'bool DFS(int, int, int)'
 bool DFS(int x, int y,int t)
      ^
0_0_24574871_29814.cpp:29:16: error: invalid types 'int[int]' for array subscript
     used[y+dy[i]][x+dx[i]] = 0;
                ^


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:15:21, Gzip enabled