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_26463986_12217.cpp: In function 'bool islegal(int, int)':
0_0_26463986_12217.cpp:36:31: error: 'n' was not declared in this scope
  if(x+d1x[dir]>0&&x+d1x[dir]<=n&&y+d1y[dir]>0&&y+d1y[dir]<=m&&g[x+d1x[dir]][y+d1y[dir]] == '#') return false;
                               ^
0_0_26463986_12217.cpp:36:60: error: 'm' was not declared in this scope
  if(x+d1x[dir]>0&&x+d1x[dir]<=n&&y+d1y[dir]>0&&y+d1y[dir]<=m&&g[x+d1x[dir]][y+d1y[dir]] == '#') return false;
                                                            ^
0_0_26463986_12217.cpp:37:31: error: 'n' was not declared in this scope
  if(x+d2x[dir]>0&&x+d2x[dir]<=n&&y+d2y[dir]>0&&y+d2y[dir]<=m&&g[x+d2x[dir]][y+d2y[dir]] == '#') return false;
                               ^
0_0_26463986_12217.cpp:37:60: error: 'm' was not declared in this scope
  if(x+d2x[dir]>0&&x+d2x[dir]<=n&&y+d2y[dir]>0&&y+d2y[dir]<=m&&g[x+d2x[dir]][y+d2y[dir]] == '#') return false;
                                                            ^


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-07-02 16:31:58, Gzip enabled