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_35320318_6729.cpp: In function 'void bfs()':
0_0_35320318_6729.cpp:26:21: error: 'd' was not declared in this scope
    int nx = tmp.x + d x[i], ny = tmp.y + dy[i], nn = tmp.num;
                     ^
0_0_35320318_6729.cpp:27:29: error: 'ny' was not declared in this scope
    if(nx >= 1 && nx <= n && ny >= 1 && ny <= m && !a[nx][ny]) {
                             ^
0_0_35320318_6729.cpp:28:37: error: 'nn' was not declared in this scope
     if(tmp.td != -1 && tmp.td != i) nn++;
                                     ^
0_0_35320318_6729.cpp:29:44: error: 'nn' was not declared in this scope
     if(vis[nx][ny] == -1 || vis[nx][ny] >= nn) {
                                            ^


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-29 10:26:35, Gzip enabled